Hi everyone,
I’m using the core 1-Wire integration in Home Assistant and need some help achieving a much faster update rate for a specific sensor that I’m using as a button input.
My Setup:
- Home Assistant Version: 2024.12.5
- 1-Wire Integration: The standard core integration.
- 1-Wire Hardware Connection (Hub): Connected via owserver running the same machine
Sensors:
- (multiple DS18B20 temperature sensors in each room of my home)
- (multiple DS2408 (8-Channel Addressable Switch) configured as output on custom boards connected to relais for activating or deactivating power sockets)
- new and the reason of my question, a DS2408 configured as input for a push buttons. One of its input pins is connected to a physical pushbutton.
The Problem:
I need the state change of the pushbutton (connected to the DS2408) to be reflected in Home Assistant almost immediately, ideally with a delay of around 1 second or less. The default polling interval for the 1-Wire integration seems to be much slower, resulting in a noticeable lag which is not suitable for a button press.
What I’ve Tried:
- I understand that the 1-Wire integration is now set up and configured via the UI (Settings → Devices & Services → Integrations).
- I have looked through the “Configure” / “Options” dialog for the 1-Wire integration in the UI. However, I could not find any setting to adjust the polling interval (scan_interval), neither globally nor specifically for binary sensors. My previous attempts to configure this via configuration.yaml were unsuccessful, likely because this method is deprecated for this integration’s setup and common options.
My Question:
Is there a way within the standard Home Assistant 1-Wire integration to force a polling interval of approximately 1 second specifically for the binary_sensor entity associated with my DS2408?
Ideally, I would like to achieve this without increasing the polling frequency for all my other sensors (like the temperature sensors) on the same bus, to avoid unnecessary system load.
If setting a specific, fast polling interval for just one device or device type (binary_sensor) is not possible through the standard UI options, are there any known workarounds, custom configurations (perhaps using customize.yaml or automations?), or alternative approaches to get a fast response time for a 1-Wire based button in Home Assistant?
Thanks in advance for any help or suggestions!