Laurence
(Omojo)
October 7, 2016, 10:04pm
1
I have a couple of LIFX bulbs around my house. When turned off in the app, they all come on when there’s a power outage and the powers restored. This gives me great concern and this happens a lot when we’re all out of the house and the stay on till we get back. Was wondering if there’s a smart app to remedy this i.e. turn the lights of when they come of after an outage and power restored.
This is a characteristic of most smart bulbs. There’s a smart app that works with zigbee bulbs, but I don’t know if it works with Wi-Fi bulbs. This is a clickable link.
I was tired of coming home or waking up to find all my smart bulbs turned on due to a power outage.
This app was inspired by the concept of a “Canary” bulb from @JDRoberts ( see Power Outage and Zigbee Bulbs )
Basically you set up a smart bulb that you never use. If this bulb is on, then the app turns it off and any bulbs that were off before the power outage occurred.
There is a lot of discussion on other posts about whether you should be changing the states of bulbs because you don’t know if anyone intended to change the states of the light while the power was out or after the power came back on and before the ST hub reconnects to the internet. This option works for my usage, hopefully it works for yours.
The code:
definition(
name: "Smarter Bulbs",
namespace: "nsweet68",
author…
1 Like
Laurence
(Omojo)
October 7, 2016, 10:38pm
3
What app it that and how do I install it. Is it in the marketplace in the ST app
It’s custom code. So you need to follow the procedure in the following FAQ, although it’s pretty straightforward. Basically you’re going to copy the author’s code and paste it into your own account. ( again, this is a clickable link)
The original FAQ information in this thread refers to the original smartthings architecture, which was in place through the end of 2022 and a little beyond. Custom code was written in the groovy programming language and ran in the smartthings cloud.
As of May 2023, you can no longer add new Groovy DTH‘s or smartapps to your smartthings account. So if you came here because of a link in an old forum thread, or on another site, I’m afraid the Groovy information is no longer usable.
All of this was replaced by a new architecture. Cloud to cloud integrations use the smartthings API. Hub connected devices, mostly Zigbee and zwave, now use “Edge Drivers,” written in the LUA programming language. Here’s the official announcement on those:
The process for using a custom Edge Driver in the new …
You could ask any follow-up questions about the smartapp in the author’s thread that I linked to above.
Laurence
(Omojo)
October 8, 2016, 12:22am
6
Don’t have the “My Smartapp” in my ST mobile app.
In the mobile app, or the IDE?
In the mobile app.:
Open the mobile app
tap on “marketplace” in the lower right
tap on “smartapps” in the upper right
scroll all the way down, and you should see “my apps” at the bottom
In the IDE
You might not be on the right “shard” for your account.
If you click on “my devices” do you see the devices listed for your account?
Laurence
(Omojo)
October 8, 2016, 1:58am
8
Thanks, I guess I needed a little while to update. It’s there now
1 Like