I figured as much. I was worried about the efficiency of storing the data in the recorder twice, but hadn’t considered the efficiency of having to do the math to display an attribute. Disk space is cheap. I can live with this.
So my life can serve as a warning to others, here is what I did:
The goal was to create that Ecobee-esque history like arasboo posted above so I could track how my HVAC was performing. I miss my Ecobee. My new system didn’t like them, so I’m having to use their thermostats instead. New system is a mini-split, so there is one outdoor thing shared by four indoor things, so everything below repeats four times.
My HVAC’s climate entity has a huge list of attributes that looks kinda like this, with a bunch of lines trimmed to focus on the important bits. The ‘hvac_mode’ is what I set it to and becomes the entity’s state. The ‘hvac_action’ is what the equipment is actually doing. And those ‘current_*’ and ‘target_*’ attributes are useful to keep an eye on.
hvac_modes:
- auto
- heat
- cool
- 'off'
fan_modes:
- auto
- 'on'
- low
- medium
- high
- Schedule
preset_modes:
- Schedule
- Temp Hold
- Away
- Manual
current_temperature: 67
target_temp_high: 75
target_temp_low: 67
current_humidity: 41
fan_mode: auto
hvac_action: heating
preset_mode: Schedule
aux_heat: 'off'
fan: 'on'
schedule_mode: true
friendly_name: Den
The attribute becomes a sensor with a template like this, times four.
sensor:
- platform: template
sensors:
hvac_den:
friendly_name: "Den"
value_template: "{{ state_attr('climate.den', 'hvac_action') }}"
Then I created a card like this.
type: custom:history-explorer-card
header: HVAC History
defaultTimeRange: 3d
recordedEntitiesOnly: true
uimode: dark
uiLayout:
selector: hide
uiColors:
labels: white
buttons: rgba(0,0,0,0)
showTooltipColorsLine: false
showTooltipColorsTimeline: false
stateColors:
sensor.idle: grey
sensor.cooling: dodgerblue
sensor.heating: red
graphs:
- type: timeline
entities:
- entity: climate.den
name: System
- entity: sensor.hvac_den
- entity: sensor.hvac_bedroom
- entity: sensor.hvac_living_room
name: Living Rm
- entity: sensor.hvac_upstairs
- type: line
title: Temperature
entities:
- entity: sensor.den_indoor_temperature
color: yellow
fill: rgba(0,0,0,0)
name: Den
- entity: sensor.bedroom_indoor_temperature
color: green
fill: rgba(0,0,0,0)
name: Bedroom
- entity: sensor.living_room_indoor_temperature
color: dodgerblue
fill: rgba(0,0,0,0)
name: Living Room
- entity: sensor.upstairs_indoor_temperature
color: orange
fill: rgba(0,0,0,0)
name: Upstairs
- entity: sensor.den_outdoor_temperature
color: red
fill: rgba(0,0,0,0)
name: Outside
The end result was a graph that looked like this, where I can see what mode the system is set to and when each unit turns on and off.
This is nearly exactly the view I wanted before you created this card. This is awesome. Now, the next step is to change the crap insulation in my house so the system doesn’t run so often. There’s way too much red on that graph.