Yeelight - control from LUA
Posted: Saturday 19 January 2019 16:50
I just received my first Yeelight RGBW lamp.
First step was to test from the Yeelight app in Android: works fine.
But being a Domoticz addict, I took it to the next level and installed the Yeelight hardware. Before I did this I set the developer mode in the lamp, assigned a static IP address, and enabled the Yeelight hardware line in Domoticz.
Sure enough after a little while a new device showed up. I set the status to "used", and found a neat new device in the switches. With this I can switch on/off, set the color, and dimlevel. Great.
But the next step was not so successful: I created a little LUA script from the Wiki page. Removed a few little glitches, until it ran OK (or at least without error messages).
Still, whatever I do from the matching dummy dimmers, the lamp does not respond at all.
Any hints?
First step was to test from the Yeelight app in Android: works fine.
But being a Domoticz addict, I took it to the next level and installed the Yeelight hardware. Before I did this I set the developer mode in the lamp, assigned a static IP address, and enabled the Yeelight hardware line in Domoticz.
Sure enough after a little while a new device showed up. I set the status to "used", and found a neat new device in the switches. With this I can switch on/off, set the color, and dimlevel. Great.
But the next step was not so successful: I created a little LUA script from the Wiki page. Removed a few little glitches, until it ran OK (or at least without error messages).
Still, whatever I do from the matching dummy dimmers, the lamp does not respond at all.
Any hints?