Page 1 of 1

Zigbee2mqtt and WW lamps / colour temperature

Posted: Saturday 21 November 2020 15:39
by jefft
Hi All,

I just added a couple of Innr tunable white zigbee bulbs to my test system to try them out. Zigbee2mqtt supports the bulb (RB278T) and it pairs okay, but in the domoticz UI, it shows up as a simple dimmer with no colour temperature control.

Checking the database, I see that the Type and SubType values are wrong - a RGBWW dimmer would be 241, 4 but zigbee2mqtt has created this device with 244, 73. As it's a test system, I thought I'd try changing those; sadly, that didn't work. If I send messages to the mqtt broker with a "color_temp" value, that works find. So, it seems that the problem is in how domoticz-zigbee2mqtt-plugin creates the device in domoticz and handles commands from domoticz.

Has anyone had / solved the same issue with Hue, Innr or similar bulbs and zigbee2mqtt? Or any ideas how to fix it?

Thanks!

Re: Zigbee2mqtt and WW lamps / colour temperature

Posted: Saturday 21 November 2020 23:53
by felix63
Same thing.. and no idea how to fix

domoticz Version: 2020.2
zigbee2mqtt: 1.15.0

Re: Zigbee2mqtt and WW lamps / colour temperature

Posted: Sunday 22 November 2020 15:25
by jefft
I've found the error and a workaround :-) I'll raise a pull request to fix the plugin later when I have time, if the author doesn't do it faster; it's a one-word correction:

Find the file domoticz/plugins/domoticz-zigbee2mqtt-plugin/adapters/innr/__init__.py and edit it. You'll see the problem instantly - the RB278T line gives the lamp the DimmableBulbAdapter when it ought to use the RGBWAdapter. Change that one word, save the file. Delete all the lamp's devices from domoticz (Setup->Devices), then restart the domoticz service so that the plugin is reloaded.

When the plugin finds that the lamp no longer has a device in domoticz, it will re-create the device, this time with the correct type. Tested and confirmed working :-)

Enjoy!