# Use of outlet plug to monitor mains supply

**URL:** <https://community.smartthings.com/t/use-of-outlet-plug-to-monitor-mains-supply/42799>\
**Category:** Devices & Integrations\
**Created:** [March 20, 2016, 4:33pm UTC](https://community.smartthings.com/t/use-of-outlet-plug-to-monitor-mains-supply/42799 "2016-03-20T16:33:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew\_newton](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/andrew_newton/32/132028_2.png) [@andrew\_newton](https://community.smartthings.com/u/andrew_newton)\
**Post date:** [March 20, 2016, 4:33pm UTC](https://community.smartthings.com/t/use-of-outlet-plug-to-monitor-mains-supply/42799/1 "2016-03-20T16:33:11Z")

</div>

Does any one know of a way to use an outlet plug to monitor the power and report if power goes out?

Would be a useful function if it could…

---

<div class="post-metadata">

**Author:** ![bamarayne](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/bamarayne/32/18206_2.png) [@bamarayne](https://community.smartthings.com/u/bamarayne)\
**Post date:** [March 20, 2016, 5:18pm UTC](https://community.smartthings.com/t/use-of-outlet-plug-to-monitor-mains-supply/42799/2 "2016-03-20T17:18:51Z")

</div>

Question, if the power goes out, how are you going to power the plug to let you know the power is out?

---

<div class="post-metadata">

**Author:** ![Luvien](https://avatars.discourse-cdn.com/v4/letter/l/a87d85/32.png) [@Luvien](https://community.smartthings.com/u/Luvien)\
**Post date:** [March 20, 2016, 5:40pm UTC](https://community.smartthings.com/t/use-of-outlet-plug-to-monitor-mains-supply/42799/3 "2016-03-20T17:40:55Z")

</div>

Small UPS for the hub. If the plug doesnt answer, power is down. Might use this smartapp. Long shot, it’s only an idea.

> [@\[OBSOLETE\] Device Monitor - Get Notified if Devices Stop Reporting](https://community.smartthings.com/t/release-device-monitor-get-notified-if-devices-stop-reporting/41141):
>
> 2017-06-08 - Update: Added support for new Ask Alexa features: Message Queue, message expiration, and message overwriting. 2017-03-11 - Update: Added the ability to be notified if your Hub goes offline / online. 2017-03-08 - Update: Added support for SmartThings “Health Check” capability. If the device supports it, Device Monitor will look at the online/offline status of the device. This can be more accurate than looking at events sent by the device. 2016-09-06 - Update: Added support for [Ask Alexa](https://community.smartthings.com/t/release-ask-alexa/46786). 2016-08-22 - Update: I have made a few changes. I am using a more accurate event detection, battery levels can be checked, and you can be notified when devices come back online. Check [post 63](https://community.smartthings.com/t/release-device-monitor-get-notified-if-devices-stop-reporting/41141/65) for more info. [image] This app checks the selected devices to determine if they are communicatin…

LJ

---

<div class="post-metadata">

**Author:** ![andrew\_newton](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/andrew_newton/32/132028_2.png) [@andrew\_newton](https://community.smartthings.com/u/andrew_newton)\
**Post date:** [March 20, 2016, 7:59pm UTC](https://community.smartthings.com/t/use-of-outlet-plug-to-monitor-mains-supply/42799/4 "2016-03-20T19:59:57Z")

</div>

Well that was my thought, the use of the non reporting from a device, after all the outlet is the only one powered without a battery and the hub as a battery backup so it was the best I could think of.

I could put a ups on the hub but then I would have to include the internet modem/router and switch etc so unless I go big on ups my run time is probably only going to be 30 mins which seems pointless as I think the hub batteries will last that long.s

---

<div class="post-metadata">

**Author:** ![andrew\_newton](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/andrew_newton/32/132028_2.png) [@andrew\_newton](https://community.smartthings.com/u/andrew_newton)\
**Post date:** [March 20, 2016, 8:07pm UTC](https://community.smartthings.com/t/use-of-outlet-plug-to-monitor-mains-supply/42799/5 "2016-03-20T20:07:14Z")

</div>

Thanks for the smartapp suggestion… very good question how long is considered inactive

well I think its important to understand the reporting cycle of each device… that way you can decide what is too long … for example if the outlet reports once an hour it might not be a good candidate, but if it reports every 10-15 mins then useful as this gives a reasonable time to monitor … surely there is a much simpler way… I noticed in the IDE that the hub description states battery in use =false so surely must go to true if power fails…can this not be used ??/ I’m not a coder so sorry if I presumed too much

Thanks for the help thou

Andy

---

<div class="post-metadata">

**Author:** ![Whippm](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/whippm/32/20672_2.png) [@Whippm](https://community.smartthings.com/u/Whippm)\
**Post date:** [March 20, 2016, 8:24pm UTC](https://community.smartthings.com/t/use-of-outlet-plug-to-monitor-mains-supply/42799/6 "2016-03-20T20:24:46Z")

</div>

I quite simply do not put batteries in the hub. I get a somewhat timely push message that my hub is not connected when the power goes out. You will notice in the events that the hub pings frequently.

I really don’t see the value of keeping batteries in the hub (limited local processing and no power to the bulbs) without a UPS system for the router, modem, etc. I think it is healthy that the hub reboots when the rest of the system does. I _am_ using a really nice Monster Home Theater power conditioner for spike/brownout protection.

---

<div class="post-metadata">

**Author:** ![Dan999](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@Dan999](https://community.smartthings.com/u/Dan999)\
**Post date:** [March 21, 2016, 4:37pm UTC](https://community.smartthings.com/t/use-of-outlet-plug-to-monitor-mains-supply/42799/7 "2016-03-21T16:37:50Z")

</div>

> [@andrew\_newton](#):
>
> Does any one know of a way to use an outlet plug to monitor the power and report if power goes out?

If you have a first generation SmartThings motion sensor, it will send an event for power lost / restored. I’m using that with a community developed smartapp to get power failure alerts as well as turn off lights in some cases. It’s been working pretty well when it was last tested.

> [@Power outage and lights](https://community.smartthings.com/t/power-outage-and-lights/12660):
>
> We had our first power outage since I installed smartthings. When the power came back on, all the connected lights (three GE Links and a LIFX) came on. I understand why, as they basically operate like normal bulbs when you operate it with a (dumb) switch, and this probably looked like a switch off / switch on to the lights. The hub, router, etc is on a UPS, so they stay on during shorter power outages. Has anyone done anything to keep the lights off, or switch them off, after power is restored? It will be disturbing to the household if a power outage happens during the night.
