This page last changed on Nov 12, 2013 by ptruman.

Does OR resend "state" messages?

Just wondering, as I've got two Hue bulbs setup in a group, and the periodically "switch off", after they've been turned on with the Hue app (not OR).

I'm trying to work out if this is maybe down to OR re-sending a previously used "off" command, or the fact I have two Android devices which can both control Hue, or something else? (not yet looked into the logs)

OR does poll status of devices. However, the delay can be perceptible if you are using another app. to control the device as well.

Posted by atamariya at Nov 13, 2013 03:33

I think I phrased that wrong

Does it "resend" state, i.e. if you set a device "off", does OR periodically re-issue the "off" command, or ONLY poll the current state? (if a sensor is set up?)

I was trying to figure out why the Hue lights kept randomly turning back off, although they behaved yesterday which made tracking it a bit annoying.... :\

Posted by ptruman at Nov 13, 2013 11:17

No, OR doesn't resend commands.

Posted by atamariya at Nov 14, 2013 03:13

Actually, if I "reload" the OR on my server, the Hue lights go out. So that DOES reset them to "off" for some reason...

Posted by ptruman at Nov 17, 2013 22:25

That's interesting. Which protocol are you using for controlling the lights?

Posted by atamariya at Nov 18, 2013 03:36

They are Philips Hue lights, which run on HTTP (GET/PUT) and return JSON.

I shall check if it's a state thing (not updated the controller for a bit but have turned polling the state of one bulb back on)....as I think it was along the lines of :

1) OR used to turn Hue bulbs off
2) Hue app used to turn Hue bulbs on
3) OR was NOT (at that point) polling state as a sensor
4) OR controller reloaded (updated the GUI or amended a device)
5) Hue lights turned off upon reload

I need to check a beta app and make some mods anyway so will try to do a constructive test! (not to mention add some more devices, now my new light fittings arrived!)

Posted by ptruman at Nov 19, 2013 12:05
Document generated by Confluence on Jun 05, 2016 09:42