Closed
Description
Home assistant: 84.6
I've got a statistics sensor setup as below:
sensor:
- platform: statistics
entity_id: binary_sensor.bedside_lamp_toggle
name: toggle
max_age:
seconds: 2
I would expect this to show the count for the binary sensor from the last 2 seconds and then return to 0 if the sensor doesn't change in the next 2 seconds. Rather than this the count always shows the last recorded value e.g. 1 or 2 and will only change when new values are recorded rather than the absence of values.