hello,
We live on a large house.
We have one thermostat for the ground floor and one thermostat on the 1st floor.
I am using history stats for daily usage of thermostats.
### daily usage of ground-floor thermostat
- platform: history_stats
name: Heat daily usage-ground floor
entity_id: switch.shelly1_1158ec
state: 'on'
type: time
start: '{{ now().replace(hour=0, minute=0, second=0) }}'
end: '{{ now() }}'
### daily usage of attic thermostat
- platform: history_stats
name: Heat daily usage-Attic
entity_id: switch.shelly1_11505d
state: 'on'
type: time
start: '{{ now().replace(hour=0, minute=0, second=0) }}'
end: '{{ now() }}'
So I know the daily use of each thermostat.
It works fluently without problems. -
Then I am using utility meter that gives me the monthly operation of each thermostat.
heat_attic_monthly:
source: sensor.heat_daily_usage_attic
cycle: monthly
heat_ground_monthly:
source: sensor.heat_daily_usage_ground_floor
cycle: monthly
This works great too!
I know the monthly and daily use for each thermostat (hours)
My puzzle started when I saw this mini graph:
Instead of consumption I want to show the daily use (hours) of each thermostat on a monthly graph.
I tried to use Statistics Graph and the entity sensor.heat_attic_monthly but it didn’t show anything. Then I just realized that this is not possible, as the sensor.heat_attic_monthly is just a number and not the 30 values (month) I need to be able to visualize the monthly use on a graph.
So please, help me to straight this out to my head.
How I can achieve the above graph?
Any help or direction will be much appreciated!
Thanks in advance and please excuse my English!