Smart Lighting Recovery After Power Outage

Hi everyone, I wanted to share my experience and solution regarding a common issue with Zigbee bulbs during power outages. After a recent power cut, I noticed that all my Zigbee bulbs (Cree GE, etc.) turned on automatically. While this might seem like a minor inconvenience, it quickly became annoying, especially at 3 AM when I’d have to get up to turn them off manually.

I’ve read through several discussions on this topic and understand that the bulbs often rely on battery backup during outages. However, finding a reliable app or method to address this issue has been challenging. My initial thought was to create a local app that monitors the batteryInUse status and cycles through the devices to restore their previous states once power is restored.

Here’s what I’ve been considering: if the hub detects that the bulbs are using their batteries (batteryInUse = true), it could set a flag. Once power is restored (batteryInUse = false), the app would cycle through the devices and restore their previous states. While this isn’t a perfect solution, it’s a start and could save a lot of time and frustration.

I’d love to hear if anyone has successfully implemented a similar solution or if there are existing apps or scripts that can help automate this process. Any insights or suggestions would be greatly appreciated! Let’s keep the conversation going and help each other find the best workaround for this common issue. :slight_smile: