Hi All,
Firstly, I’m brand new to Home Assistant (installed last week but wanted to get it up and running for a lifetime!) so forgive the newbie-ness of the below.
I’m trying to create a sensor (if that’s the right thing) to track when my Hive heating is in the state ON.
The difficulty I’m having is that I have a split zone heating system (Upstairs / Downstairs).
So I am trying to create a sensor along the lines of:
IF
sensor.upstairs_mode = “ON”
OR
sensor.downstairs_mode = “ON”
THEN “ON”
This is so that I can graph when either upstairs OR downstairs is on in a single sensor (as if either of them are on - I’m using my heating) and then track Today’s time on, This week’s time on etc.
I’m struggling to understand how to do this.
I managed to use the template developer tool and get the below which gives me a number of any that are ON, but that’s not exactly how I want it I don’t think:
{{ ['sensor.upstairs_state', 'sensor.downstairs_state'] | map('states') | select('eq', 'ON') | list | count }}
Any help would be appreciated!
Thank you!