Polling Interval between ST and Hue


(gfbuyer) #1

Anyone know how long the polling interval is between Hue and ST. For example if the power is removed or restored to a set of Hue lights by turning off/on a physical switch, how long until the proper status of the lights is reflected in ST ?


[BETA] Hue & Improved - Support for multiple Hue bridges!
#2

Should be instant if you are using a Hue Bridge.


But you’d have to ask @JDRoberts…I’m not familiar with Hue.


#3

If you check your user guide, you will see that the Hue bulbs are intended to always have power.

If you are regularly cutting power to them with a switch that cuts the current, then the inrush current each time the lights are turned back on can damage the radio inside the bulbs over time, making an expensive bulb that much more expensive. :disappointed_relieved: this isn’t a problem if there’s just an emergency power outage once or twice a year, but you definitely should not use them with a physical switch that cuts the current on a regular basis.

As you noticed, the bulbs also can’t report their status when the power is cut. You have to wait until hue bridge notices that they are “unavailable“ (again, because it expects them to always be on power) and then eventually for that to be made available to other integrations. And even then, it will report them as “unavailable“ rather than as “off,“ because the power cut is not the same thing as the bulb turning itself off.

The method that is used for the official smartthings/hue bridge integration is very different. It checks the “heartbeat log” that the hue bridge keeps for itself, rather than polling the individual bulbs, And it gets the on/off status from there. Which is a good thing because it reduces traffic on the network and it’s also very fast: as noted in the previous post linked to, it’s about every five seconds.

So as long as you are using the bulbs with hue bridge and you are not physically cutting the current to them, but just using normal recommended switches, either the switches from the Hue system like the Hue dimmer switch or perhaps another battery-operated switch or a mains powered accessory switch which is sending a signal to the smartthings hub which then sends the request to the hue bridge, the status should update in just a few seconds.

If you are using a switch, either smart or dumb, which physically cuts current to the bulbs, all bets are off, both as to when the status will be updated and how long the bulb itself will last. :alarm_clock:


#4

Didn’t think he meant physical as in wall switch…I assume he meant like a Hue dimmer switch paired to the Hue hub and not to ST. But if you meant like a physical wall switch @gfbuyer, then yeah…that’s a no-no. But if he meant a hue dimmer switch, that would be basically instant (5 seconds) because of heartbeat…correct?


#5

Yes, good point, thanks. :sunglasses:. If it’s a switch that doesn’t cut the current, then the switch action will be reported to either the hue bridge or the smartthings hub (depending on the specific switch model and network setup), And if it’s to the hue bridge, the status should be updated to smartthings in about five seconds.