this post was submitted on 17 Dec 2025
17 points (100.0% liked)
homeassistant
17171 readers
2 users here now
Home Assistant is open source home automation that puts local control and privacy first.
Powered by a worldwide community of tinkerers and DIY enthusiasts.
Home Assistant can be self-installed on ProxMox, Raspberry Pi, or even purchased pre-installed: Home Assistant: Installation
Discussion of Home-Assistant adjacent topics is absolutely fine, within reason.
If you're not sure, DM @GreatAlbatross@feddit.uk
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The right answer: enable the online/offline detection in zigbee2mqtt. I forget the name of the setting though (edit: it's called availability). This might increase power consumption on some battery devices. You can then check if devices are available in your scripts and ignore their state if not.
It has a delay until offline state is detected, the delay can be tweaked as far as I know, but is a tradeoff with battery powered devices consumption.
Helpful! Thank you I will look into it.
To add, I found some old Philips switches might have reacted badly to this, because they drained battery super fast afterwards. Like a month or two. I switched them all to cheap Ikea switches which work as usual and drain very slowly. All working nicely and I can make toggle buttons work like you described even if some lights are cut off from power.
But yeah there might be problems with certain devices and drain.