Im currently trying to utilize a Hue light / motion sensor to determine if my ‘dumb’ bathroom light (in a room with no windows) is on or off by interpreting the ambient light detected from the Hue sensor and displaying it with a simple switch. Im currently at step 1 of the process: Getting data off the Hue sensor. I run openHAB 2.4 with the Hue 2.4 binding. My config is as follows:
I don’t get a reading displayed and I’m not sure why, this is basically the demo setup from the binding documentation.
I also am uncertain about the reading interval of the sensor, my guess right now is that the light sensor only updates the reading if the motion sensor is triggered. Is that true and if so, is there a way to manually trigger the motion sensor to refresh the reading via openHAB?
I’m sure it’s possible someway because you can actually do exactly that during the setup of HomeKit after adding a Hue Bridge to determine which sensor is in which room.
Would be glad to hear from someone who has worked with the Hue sensors before and can give me some insight. Thanks in advance!
rule "Light_Bathroom_Toggle"
when
Item Sensor_Bathroom_Illuminance received update
then
val lux = (Sensor_Bathroom_Illuminance.state as QuantityType<Number>)
if (lux > 10){
Light_Bathroom_Toggle.postUpdate(ON)
}
if (lux < 10){
Light_Bathroom_Toggle.postUpdate(OFF)
}
end
And it is not possible to trigger sensor polling manually. The binding handels it internally. You can only set the intervall as described in the documentation link I provided. And IMO, there’s no need to lower it from the default value so the bridge wont “choke up” with too fast polling.