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.
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 ...