Hi,
I have a set of Hue light and I would like them to turn on whenever my phone is in Bluetooth range.
I have been using the following python script : https://gist.github.com/jamesabruce/dbb593a597acb2c0b93b
and in theory, it works the switch associated with the light turns on.
Console outputs: “Blabla state updated to ON”.
However, the light itself does not turn on, the console doesn’t show anything like “Blabla received command ON”
Note that when I trigger the switch manually it does work.
sitemap home label=“Test”
{
Frame {
Group item=Lights label=“All lighting” icon="hue"
Group item=Bedroom label=“Bedroom” icon=“bedroom”
}
}
And yes it’s possible. It works well when trigger the switch from my sitemap. The script seems fine as well. I do see the updated state here on http://x.x.x.x:8080/rest/items/LSwitch/state. But sendCommand does not react to it.
Maybe i found something. In your Lights group is one Switch and one Color thias maybe crashes your send command to this group. Did you found any hintes in the openhab logfile?