Search found 2 matches

by errevs
14 Aug 2016 14:14
Forum: Discussions in English
Topic: Detect unpowered devices.
Replies: 3
Views: 3264

Re: Detect unpowered devices.

Yeah, I figured. But is there nothing in the API that tells me that the device is offline? doing /command/update on the device still returns "200 OK", even if it is powered down.

Thanks for your reply :)
by errevs
13 Aug 2016 14:55
Forum: Discussions in English
Topic: Detect unpowered devices.
Replies: 3
Views: 3264

Detect unpowered devices.

I am writing a small program that is supposed to do something based on whether the lights in our office are on. I have bought a razberry and a smartplug. The problem is that the light switch on the wall controls the contact that the smartplug is plugged into. Polling the API when the lights are off ...