8000 Statistics sensor not counting 0 · Issue #19800 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Statistics sensor not counting 0 #19800
Closed
@tungmeister

Description

@tungmeister

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0