@bravenel I tried this in my app, I am not getting the event - and don;t see anything in the logs from my app subscribe("location", "systemStart", reConnect)
and this is my handler
private reConnect()
{
log.debug "Reconnecting after system restart"
def theDevice = getDevicebyNetworkId()
if (theDevice) {
theDevice.configure()
}
}
Maybe you've considered this as well but you can make the device support initialization and then put anything you want done on startup in the initialize method I think. That's what I think I'm doing everywhere. I guess that doesn't work for apps though.
I was thinking the same, but didn't have time to post it. I thought initialize() was run on each driver (and app?? Can't remember) after a reboot as well.
I had recently lost power and when restored, my bulbs powered on in the on state. I wrote a rule to periodically turn off lights during day time. I say the original post today and wrote a trigger rule, which I thought would address the issue. Have a missed a step ?
ogiewon
Thanks for pointing that out, to me trigger rules area little "strange". However am I correct, that the rule as defined, will trigger when hub boots. I did boot several times and log show the trigger was invoked. I the reason I relied to the thread was that it appeared that a subscribe operation was required.
Yes, the trigger will fire each time the hub boots. For your Triggered Rule, when the hub restarts, the trigger fires and causes your rule to be evaluated. If the Mode is Day, your Actions for True will execute.
My needs are simpler... I use the following RM Trigger (not a triggered rule) to send me a notification each time my hub starts up.
Is there an event related to a hub that has just started rebooting? Would it be possible to create one in a future release? It would greatly help with my app "CSP Watchdog" monitor the status of a second hub.