I have a binary sensor configured to have “Running” and “Not Running” states.
It’s a template sensor, here the other part of the configuration:
Now, when I tried to configure a History Stat tracking this binary sensor, to make it work I had to set as state “on”, instead of “running”.
At that point I was basically trying everything, but I think this is wrong!
- platform: history_stats
name: PompaUnoTempo
entity_id: binary_sensor.pompauno
state: "on" # <--- I was setting here "running"
type: time
duration:
days: 3
end: "{{ now() }}"