Event when bulb is plugged in

I’m looking to act on an event (in a SmartApp) that is fired when a zigbee bulb is plugged in. I ran a test in Webcore to see if it was possible and the event does fire. But which event do I need to subscribe to in order to accomplish what I want? Is it simple “switch.on”?

Have you had a chance to look at the “canary bulb” Power outage management smart app? It uses an individual zigbee bulb coming on power as an indicator that power has been restored, so it should have what you want.

Read the thread about it, however, because the author found out that different brands of bulbs had different behavior in this circumstance, and not all report a power restored condition.

1 Like