The only history available for cover entities is Open or Closed:
I would like to be able to see the history of my cover position precisely.
The only history available for cover entities is Open or Closed:
I would like to be able to see the history of my cover position precisely.
I would love this to
@NKH Thanks for the tip.
You just made me realized we can do this without any external component:
Create sensors using templates in configuration.yaml
:
template:
- sensor:
- name: "Shutter - Kitchen: current position"
unique_id: shutter_kitchen_current_position
unit_of_measurement: "%"
icon: mdi:window-shutter
state: >
{{ state_attr('cover.shutter_kitchen', 'current_position') }}
- sensor:
- name: "Shutter - Living Room: current position"
unique_id: shutter_living_room_current_position
unit_of_measurement: "%"
icon: mdi:window-shutter
state: >
{{ state_attr('cover.shutter_living_room', 'current_position') }}
...
Then use these sensors on the default History Graph card:
type: history-graph
entities:
- entity: sensor.shutter_kitchen_current_position
name: Kitchen
- entity: sensor.shutter_living_room_current_position
name: Living room
hours_to_show: 36
title: Shutters position
Output: