I want to count every time a binary_sensor
changes state. the docs say that the state
can be a list.
But this doesn’t work (for me)
- platform: history_stats
name: Rain Gauge Tips Today
entity_id: binary_sensor.rain_gauge
state:
- "off"
- "on"
type: count
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"
For the record and to pre-empt history, recorder etc. questions these do,
state: "on"
state: "off"
state:
- "on"
state:
- "off"