Thanks both, I did think it be something like that but I was unsure how I made the HVAC_ a sensor… I’m very new to templating only currently doing it by copying others
Added all my code just incase a future me is lurking here
This is what takes the attribute from drayton Wiser thermostat which stays (Idle, Heat, off)
Then we create 3 more sensors which use the ‘‘History_stat’’ to grab the time the sensors has been in ‘‘Heat’’ mode, bare in mind this will only start from when the sensor is made, and will be incorrect if HA went down.
Not 100% if the yesterday is working yet as there is no data, will see tommorow
Below is a picture of my dashboard (using mushroom cards)
The drayton Wiser is a brilliant option as its instant via HA as working locally unlike ‘‘Hive’’ integration
little bit more complicated to setup, but worth it
Thanks for this. I’ve added it for my thermostat so I can calculate run time vs. gas use. I also added it for my sump to track run time.
I had a similar setup that counted the # of runs each day. This is some nice added data.
One thing - since HA already keeps history, I don’t see a need for yesterday. You should be able to pull it from the history - no?