I have a binary sensor, coming from an ONVIF camera, that’s linked to intrusion detection.
The problem is that it doesn’t go to off, so I’m trying to investigate if I can manually set it to off after some time.
But while experimenting with the Developer tools > states, I notice that after I set the state to ‘off’ it flips back on always on the 43 second mark…
The binary_sensor’s state value is updated periodically by its integration. Manually setting its value is not permanent; it only lasts until the integration sets it (to something else) or when Home Assistant is restarted.
In addition, it’s a binary_sensor so its state value is normally set by its integration (you may have noticed there’s no service call to set a binary_sensor’s state).
The binary_sensor’s state value is set by its integration. Regardless of what value you use to set it manually, if the integration is using polling (and it appears that this one using a 1-minute polling interval) the integration will set the value at the next polling interval.
It’s the responsibility of the binary_sensor’s integration to set its state value and it’s clearly doing that, once a minute.
Yeah and the main issue remains mine doesn’t send an off signal at all… So I was hoping that by manually setting it to off, the integration would at least wait until it got a real message from the camera to turn it on again, but alas.