I’m having trouble tracking the states of lamps in my app. I could really use some more data returned from the API calls. For instance, a call to the toggle
endpoint returns this data:
"id": "d3b2f2d97452", "label": "Left Lamp", "status": "ok"
That doesn’t tell me the resulting state of the lamp. Did I toggle it on or off?
Also the HTTP API has inherent lag and rapid fire requests get mixed up. A timestamp of the operation would be nice, so I can report only the latest data. Here’s what I’d like to see in the toggle
return data:
"id": "d3b2f2d97452", "label": "Left Lamp", "status": "ok" "timestamp": "[UTC timestamp]", "power": "on"
And similar additions to the other state setters. It would make mirroring the app lamp states with real world states more accurate on my end.
Just a thought