Skip to content

Commit

Permalink
Add cooler accessory switch and alarm #23
Browse files Browse the repository at this point in the history
  • Loading branch information
toringer committed Apr 30, 2024
1 parent 72866d3 commit 6651079
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions custom_components/heru/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
]


Expand Down Expand Up @@ -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,
},
]


Expand Down
2 changes: 1 addition & 1 deletion custom_components/heru/heru_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6651079

Please sign in to comment.