Georg
(George)
October 16, 2024, 8:29am
1
Good day! I need help with adding a History Stats helper from the UI
I am trying to follow the instruction found here History Stats - Home Assistant (home-assistant.io) but there is no such an option… am I missing somethimg?
in my config.yaml
I do have integration enabled:
history:
Thanks
tom_l
October 16, 2024, 9:00am
2
Did you restart Home Assistant after adding that?
A restart is required the first time you add new integration.
Georg
(George)
October 16, 2024, 3:04pm
3
Yes. That line in my config it is there for a year or so. I am constantly using recorder and track history of sensors’ values. The last restart I did was yesterday…
tom_l
October 16, 2024, 9:15pm
4
Opps. history:
is the history graph panel integration , not history_stats.
In YAML you would do:
sensor:
- platform: history_stats ### <- this
name: Lamp ON today
entity_id: light.my_lamp
state: "on"
type: time
start: "{{ today_at() }}"
end: "{{ now() }}"
I have no idea how or why it is not showing up in the UI. The UI is relatively new, which version of Home Assistant are you on?
Georg
(George)
October 17, 2024, 5:21am
5
This! I was 3 months behind the latest version. I have just updated to the latest and see that helper in the UI just fine. Thanks!