diff --git a/components/tc_bus/protocol.cpp b/components/tc_bus/protocol.cpp
index 3c879bb..5fd1d53 100644
--- a/components/tc_bus/protocol.cpp
+++ b/components/tc_bus/protocol.cpp
@@ -198,7 +198,7 @@ namespace esphome
                             case 1:
                                 data.type = COMMAND_TYPE_SELECT_EEPROM_PAGE;
 
-                                uint32_t thirdNibble = (value >> 24) & 0xF; // Nibble isolieren
+                                uint32_t thirdNibble = (command >> 24) & 0xF; // Nibble isolieren
                                 data.address = static_cast<uint8_t>(thirdNibble);
 
                                 data.serial_number = command & 0xFFFFF;