kvj / hass_nuki_ng

Better support for Nuki devices in the Home Assistant
MIT License
167 stars 32 forks source link

[opener] auto turn off "ringActionState" binary sensor #148

Closed alucar-d closed 7 months ago

alucar-d commented 1 year ago

Actually, when a ring action happens the binary sensor "ring action" turned on. When polling for updates is enabled in the integration configuration, it calls the /list endpoint of the Nuki Bridge HTTP API so the "ring action" sensor may be turned off with the polling updates.

So what happens if the polling for updates is disabled? Well, once the "ring action" binary sensor turned on it will never turned off. I delegate the updates for Nuki devices to the webhook so I keep disabled the polling for updates to reduce LAN traffic.

This PR introduced the schedule of a task to turn off the "ring action" binary sensor 5 second after it turn on.

tristanXme commented 7 months ago

Works for me. Thank you.

kvj commented 7 months ago

I've merged two open PRs, could you please check the latest master and then I can release a new version?