esphome / esphome/feature-requests

update_interval for binary_sensor

Open
#878 4 comments 0 reactions 0 assignees View on GitHub
component: binary_sensor
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

Use the update_interval setting to cause a binary_sensor to send the state on the specified interval

**Please describe your use case for this integration and alternatives you've tried:**

When coding my motion sensors using C++, I included the function to send a state every 60 seconds. Then, in Home Assistant, I would expire the state after a few minutes. This would show if the sensor was no longer communicating with the host, and help show if wires had been cut or disconnected. Using an ESPHome based sensor, I have to remove the expire_after setting in Hass or the sensor will show as unavailable when there is no movement over a time longer that the expire interval.

An update_interval would serve as a heartbeat for the sensor hardware.

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.