Hi all - after successfully creating sensors to count both the number of lights on and doors open, I’m struggling to achieve the same with the number of radiators heating.
The key difference is that rather than counting the state itself, I need to count a specific attribute (‘is_heating’) for all my climate entities. I can draw out a result from a template using {{ state_attr('climate.wiser_bedroom', 'is_heating') }}
- this returns false when off, and true when the radiators are on.
How can I use this to build a count for all the climate entities whose ‘is_heating’ attribute = true?
Huge thanks!