Closed tube0013 closed 6 years ago
In order for a device to be fully supported you also need to add converters to lib/converters/zigbee2mqtt.js
, see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices#3-adding-converters-for-your-device-to-libconverterszigbee2mqttjs
I've added initial support for this bulb in the dev branch: https://github.com/Koenkk/zigbee2mqtt/tree/dev. Can you test if everything works?
Also can you describe how you factory resetted the bulb (so I can update the wiki with this)?
thanks I will try and give the dev branch a test tonight. here is the reset procedure. My bulb was not paired to anything yet, and so it joined right away. I have another that I will try and test tonight as well that was previously paired to smartthings.
Turn OFF the bulb for 1 second
Turn ON the bulb for 3-4 seconds
Turn OFF the bulb for 1 second
Turn ON the bulb for 3-4 seconds
Turn OFF the bulb for 1 second
Turn ON the bulb
Wait until the bulb begins to blink (after about 5 seconds)```
I pulled in the changes in dev and all seems good. - Sample output (note running zigbee2mqtt via systemd so it runs at startup of a headless pi) as turning light on and off and adjusting brightness.
May 15 17:55:45 zPi zigbee2mqtt[22912]: 2018-5-15 17:55:45 #033[32mINFO#033[39m MQTT publish, topic: 'zigbee2mqtt/0x94103ef6bf428aad', payload: '{"state":"ON","brightness":255}'
May 15 17:55:48 zPi zigbee2mqtt[22912]: 2018-5-15 17:55:48 #033[32mINFO#033[39m Zigbee publish to '0x94103ef6bf428aad', genOnOff - on - {} - 1
May 15 17:55:48 zPi zigbee2mqtt[22912]: 2018-5-15 17:55:48 #033[32mINFO#033[39m Zigbee publish to '0x94103ef6bf428aad', genLevelCtrl - moveToLevel - {"level":144,"transtime":0} - 1
May 15 17:55:49 zPi zigbee2mqtt[22912]: 2018-5-15 17:55:49 #033[32mINFO#033[39m MQTT publish, topic: 'zigbee2mqtt/0x94103ef6bf428aad', payload: '{"state":"ON","brightness":255}'
May 15 17:55:50 zPi zigbee2mqtt[22912]: 2018-5-15 17:55:50 #033[32mINFO#033[39m MQTT publish, topic: 'zigbee2mqtt/0x94103ef6bf428aad', payload: '{"state":"ON","brightness":144}'
May 15 17:56:14 zPi zigbee2mqtt[22912]: 2018-5-15 17:56:14 #033[32mINFO#033[39m Zigbee publish to '0x94103ef6bf428aad', genOnOff - on - {} - 1
May 15 17:56:14 zPi zigbee2mqtt[22912]: 2018-5-15 17:56:14 #033[32mINFO#033[39m Zigbee publish to '0x94103ef6bf428aad', genLevelCtrl - moveToLevel - {"level":255,"transtime":0} - 1
May 15 17:56:14 zPi zigbee2mqtt[22912]: 2018-5-15 17:56:14 #033[32mINFO#033[39m MQTT publish, topic: 'zigbee2mqtt/0x94103ef6bf428aad', payload: '{"state":"ON","brightness":144}'
May 15 17:56:16 zPi zigbee2mqtt[22912]: 2018-5-15 17:56:16 #033[32mINFO#033[39m MQTT publish, topic: 'zigbee2mqtt/0x94103ef6bf428aad', payload: '{"state":"ON","brightness":255}'
May 15 17:56:35 zPi zigbee2mqtt[22912]: 2018-5-15 17:56:35 #033[32mINFO#033[39m Zigbee publish to '0x94103ef6bf428aad', genOnOff - off - {} - 1
May 15 17:56:36 zPi zigbee2mqtt[22912]: 2018-5-15 17:56:36 #033[32mINFO#033[39m MQTT publish, topic: 'zigbee2mqtt/0x94103ef6bf428aad', payload: '{"state":"OFF","brightness":255}'
Supported now
I got this working by adding the following to device.js
It shows in HomeAssistant and I'm able to control it, but I still get these messages: