I have 4 thermostats one one floor, 5 on another and 3 on another floor (12 in total).
I want to create a template sensor to know how many thermostats are on for any given floor.
the following works for all thermostats:
{{ states.climate | selectattr('attributes.hvac_action','eq', 'heating') | list | count }}
However, this counts all 12 thermostats.
I tried specifying the individual thermostats but this isn’t working (it gives a result of 0 when they are on) - see below the code I used for the ground floor as an example - I listed all the entities and deleted “attributes.”). Any help much appreciated!
My goal is just to declutter the dashboard as much as possible. If I want to drill down into items on the dashboard I can do so. But I’m all about a visually
minimal dashboard but keeping max functionality.