diff --git a/custom_components/heru/const.py b/custom_components/heru/const.py index e3da35e..89942b5 100644 --- a/custom_components/heru/const.py +++ b/custom_components/heru/const.py @@ -300,6 +300,17 @@ "entity_category": EntityCategory.DIAGNOSTIC, "register_type": DISCRETE_INPUTS, }, + { + "name": "Cooling alarm", + "modbus_address": "1x00032", + "address": 31, + "scale": None, + "icon": ICON_ALARM, + "unit_of_measurement": None, + "device_class": None, + "entity_category": EntityCategory.DIAGNOSTIC, + "register_type": DISCRETE_INPUTS, + }, ] @@ -412,6 +423,13 @@ "icon": ICON_COOLING, "register_type": HOLDING_REGISTERS, }, + { + "name": "Cooler enabled", + "modbus_address": "4x00069", + "address": 68, + "icon": ICON_COOLING, + "register_type": HOLDING_REGISTERS, + }, ] diff --git a/custom_components/heru/heru_coordinator.py b/custom_components/heru/heru_coordinator.py index 7b5d99c..7a3cf9f 100644 --- a/custom_components/heru/heru_coordinator.py +++ b/custom_components/heru/heru_coordinator.py @@ -57,7 +57,7 @@ async def _async_update_data(self): # 4x00001 - 4x00067 holding_registers_result = await self.client.read_holding_registers( - 0, 67, DEFAULT_SLAVE + 0, 69, DEFAULT_SLAVE ) self.holding_registers = holding_registers_result.registers