mjn
(Martin Newham)
May 6, 2016, 10:02am
1
I’ve looked at the SmartThings market, but couldn’t see anything that would switch OFF a socket if the power usage dropped below a set level.
Thought this would be useful to power off washers once the machine stopped drawing significant power, or to cut power to a charger when the car/device battery was full (not drawing any more power).
CSC
May 6, 2016, 10:37am
2
Here you go (Work with ST outlet currently)
My first contribution to the community.
Always leave my phone charging and forgot to turn off the power, so based on some example I found in the forum, I wrote a small app that allow you to determine (indirectly) the charging is complete and trigger the power off of Smart Outlet.
When charging phone / tablet / etc, the power drawn will reduce when fully charged, usually fell below 1W. So defining something like 0.8W is a good start, once it reached the triggering point, Smart Outlet will be power off and no over-charging happen to the device.
You may copy the code below and create as your own app.
1 Like
mjn
(Martin Newham)
May 6, 2016, 11:18am
3
Cool, I’m new to this coding in ST, is there a crib sheet on what I need to do, and get it onto my hub?
CSC
May 6, 2016, 2:52pm
4
You need to sign up an developer account, then add the code into your smartapps section. Search the forum, there are guide.
1 Like
mjn
(Martin Newham)
May 6, 2016, 6:24pm
5
Got it! BIG thanks, my first app is yours!