Scratching my head trying to think of the best way to add a binary input for when the heat pump is being used for space heating only. I currently use the 3 way valve to report when using DHW is active as that changes to a binary 1 when in the DHW position(heatpump_dhw), however it reports 0 when in space heating. How have others configured this to display when the heatpump is being used for space heating . I am using home assistant connected to my daikin heat pump via a ESP32 stick.
By trial and error I have now got this working correctly. I had to set up a template on HA to make this work. Space heating will be shown when:- Heat pump is in operation mode ‘heating’, 3 way valve selected to space heating (off) and HP power is over 700W. Hope this helps.
unique_id: "ch_on"
device_class: power
icon: mdi:radiator
state: >
{% if is_state('sensor.operation_mode','Heating')
and is_state('binary_sensor.3_port_valve', 'off')
and(states('sensor.shellyem_485519d750d2_channel_1_power') | float > 700) %}
{{1}}
{% else %}
0
{% endif %}