Need Switches #75
-
|
Hello, I need a switch in the dashboard that can change the status of the heat pump (STANDBY = 0, AUTOMATIC = 1, AWAY = 2, HOLIDAY = 3, ONLY_HOT WATER = 4, ONLY_HEATING = 5). This also applies to the “Anforderung Warmwasserladung”. Theoretically, I would only have to pass the boolean value 1 here, since the IDM resets the status automatically, right? Unfortunately, a normal ON/OFF switch does not work here. I hope someone can help me? Many thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
The integration currently doesn't support setting those values. However, you can use the standard Modbus integration (in addition to this integration) to achieve this. First set up the integration in modbus:
- type: tcp
name: heat_pump # or choose a different name
host: IP_ADDRESS # set this just like you when setting up this integration
port: 502
sensors:
- name: heatpump-operation-mode
address: 1005Important The current version of HA requires that at least one sensor is defined. See also #75 (reply in thread) After a restart of Home Assistant, you can use the service: modbus.write_register
data:
address: 1005
slave: 1
hub: heat_pump
value: 0 # raw value for STANDBY like you described in your questionCaution This value (and most other writable values) is written to an EEPROM by the heat pump. These chips have limited number of write cycles (about 300 000), after which the chip may fail and need replacement. Make sure you know what you're doing and check (1) that you're only sending new values to the heat pump when necessary (i.e. value is different and needs update) and (2) you limit the number of automatic changes without user interaction.
I don't think setting the days for vacation status will be possible, since I don't see that exposed via Modbus anywhere. However, you may be able to use a Home Assistant Automation to automatically switch modes. To do that, it would probably best if you asked on the Community Forum if you need help, since at that point it doesn't really matter whether your automation is toggling a switch for the heat pump or something else.
Same procedure as above, but with modbus:
- type: tcp
# ... remaining config from above ...
switches:
- name: Switch1
address: 1712
write_type: holdingNot 100% sure if the status is automatically reset, but I guess it probably resets once the max. temperature is reached. However, I'm not certain the switch configured via the Modbus integration would update. You'd have to verify that. Note This is actually one of the few (non-temperature) values that is not written to the EEPROM and can be written arbitrarily. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much for your comprehensive answer! :) Then I'll get to work... with all the caution required (by you). |
Beta Was this translation helpful? Give feedback.
-
|
After spending quite a while to use the modbus.write_register service, I still get following error: Any clue? modbus is initiated in configuration.yaml: modbus:
- type: tcp
name: heat_pump # or choose a different name
host: 192.168.178.61 # set this just like you when setting up this integration
port: 502
delay: 0
message_wait_milliseconds: 30
timeout: 5 |
Beta Was this translation helpful? Give feedback.
-
|
I don't know since when, but switches can be directly defined beneath the configuration of the hub. |
Beta Was this translation helpful? Give feedback.

The integration currently doesn't support setting those values. However, you can use the standard Modbus integration (in addition to this integration) to achieve this. First set up the integration in
configuration.yaml:Important
The current version of HA requires that at least one sensor is defined. See also #75 (reply in thread)
After a restart of Home Assistant, you can use the
modbus.write_registerservice to send values to the heat pump.