Lag time for Philips Hue Bulbs

320 views
Skip to first unread message

jimbodude

unread,
Dec 31, 2013, 12:23:53 AM12/31/13
to ope...@googlegroups.com
I'm just getting started with openHAB.  So far, I have it running, and my only items are three Philips Hue bulbs.  I'm noticing about a 5 second delay from the time when the command appears in the OSGi console output to the time when the change starts taking effect at the bulb.  It happens no matter what the command is - OFF, specific settings, ON.  From the Hue/openHAB demo video, it doesn't seem like it should be that long - looks like closer to 1/2 second or less, which would be great.

Here is my items file:
Color hueA "hueA" (Colorize) {hue="1"}
Color hueB "hueB" (Colorize) {hue="2"}
Color hueC "hueC" (Colorize) {hue="3"}

I'm sending commands through the REST API with curl, like this:
curl -i -H "Content-Type: text/plain" -X POST -d "OFF" http://192.168.0.248:8080/rest/items/hueC
curl -i -H "Content-Type: text/plain" -X POST -d "357.41177,100.0,10.0" http://192.168.0.248:8080/rest/items/hueC
curl -i -H "Content-Type: text/plain" -X POST -d "357.41177,100.0,100.0" http://192.168.0.248:8080/rest/items/hueC

I'm running on a Raspberry Pi, model B running the rasbian disro from http://www.raspberrypi.org/downloads (not NOOBS).  meminfo says:
MemTotal:         237052 kB
MemFree:           23140 kB

Both the Hue Bridge and RPi are on the same hardwired network.

Any idea where this lag comes from or how to narrow it down?  Or is the RPi just not powerful enough to handle even this simple task?

Thanks in advance.

Kai Kreuzer

unread,
Dec 31, 2013, 9:58:42 AM12/31/13
to ope...@googlegroups.com
Hi,

I assume you are using openHAB 1.3.x?
I have done some improvements end of October on the 1.4 snapshot, see https://github.com/openhab/openhab/pull/58
So please check if it still occurs with the current snapshot version (from https://openhab.ci.cloudbees.com/job/openHAB/) - if so, please let us know!

Cheers,
Kai

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/groups/opt_out.

James Cialdea

unread,
Dec 31, 2013, 10:49:51 AM12/31/13
to ope...@googlegroups.com

Yes, 1.3.1, how did I forget to include that... I'll pull a snapshot and see how that goes.

Also, from other recommendations, I'm using Oracle jdk 1.8 pre release. I didn't try other jdk versions yet.

JCialdea

You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/_7fAptoan2I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.

jimbodude

unread,
Jan 1, 2014, 3:16:43 PM1/1/14
to ope...@googlegroups.com
1.4 seems to have cured it.  Thanks for the suggestion there, and nice fix.
Reply all
Reply to author
Forward
0 new messages