Hue dimmer switch
I hit the setup button on the back of the switch, and successfully paired the switch. Pressing any button on the switch does nothing. Interestingly, no light shows in the upper left corner on the device (like it usually does) when a button is pressed.
Is there additional support required in the sniffer firmware required to support this device? It would be great to be able to drop the hue hub all together and use my own home grown solution.
Below is the addition to the devices.js file:
{
'RWL020': {
model: '324131092621',
vendor: 'Philips',
description: 'Hue Dimmer Switch',
supports: 'single, double, triple, quadruple, many and long click',
homeassistant: [homeassistant.sensor_click]
}
}
@Trakkasure can you check the logs and post some messages from there? Are there any WARN?
This device is not supported yet, so you have to follow: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
So, i did that. However, when clicking the switch button to send a signal, nothing happens. typically Hue switches illuminate an LED in the upper right corner when pressing a button.
This does not happen. Nothing happens in the software when I do press a button. Below is a debug log:
$ DEBUG=zigbee-shepherd* npm start
> [email protected] start /Volumes/SSD/Build/CC2531/zigbee2mqtt
> node index.js
2018-5-15 21:37:23 INFO Starting zigbee-shepherd
zigbee-shepherd:init zigbee-shepherd booting... +0ms
zigbee-shepherd:request REQ --> SYS:osalNvRead +18ms
zigbee-shepherd:request RSP <-- SYS:osalNvRead, status: 0 +23ms
zigbee-shepherd:request REQ --> SAPI:readConfiguration +13ms
zigbee-shepherd:request RSP <-- SAPI:readConfiguration, status: 0 +24ms
zigbee-shepherd:request REQ --> SAPI:readConfiguration +11ms
zigbee-shepherd:request RSP <-- SAPI:readConfiguration, status: 0 +9ms
zigbee-shepherd:request REQ --> SAPI:readConfiguration +12ms
zigbee-shepherd:request RSP <-- SAPI:readConfiguration, status: 0 +19ms
zigbee-shepherd:request REQ --> SAPI:readConfiguration +11ms
zigbee-shepherd:request RSP <-- SAPI:readConfiguration, status: 0 +13ms
zigbee-shepherd:request REQ --> SAPI:getDeviceInfo +12ms
zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo +4ms
zigbee-shepherd:init Start the ZNP as a coordinator... +0ms
zigbee-shepherd:request REQ --> ZDO:startupFromApp +0ms
zigbee-shepherd:msgHdlr IND <-- ZDO:stateChangeInd +1s
zigbee-shepherd:init Now the ZNP is a coordinator. +1ms
zigbee-shepherd:request REQ --> SAPI:getDeviceInfo +0ms
zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo +4ms
zigbee-shepherd:request REQ --> SAPI:getDeviceInfo +0ms
zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo +3ms
zigbee-shepherd:request REQ --> SAPI:getDeviceInfo +1ms
zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo +3ms
zigbee-shepherd:request REQ --> SAPI:getDeviceInfo +0ms
zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo +4ms
zigbee-shepherd:request REQ --> SAPI:getDeviceInfo +0ms
zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo +3ms
zigbee-shepherd:request REQ --> SAPI:getDeviceInfo +1ms
zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo +3ms
zigbee-shepherd:request REQ --> ZDO:nodeDescReq +1ms
zigbee-shepherd:msgHdlr IND <-- ZDO:nodeDescRsp +12ms
zigbee-shepherd:request REQ --> ZDO:activeEpReq +1ms
zigbee-shepherd:msgHdlr IND <-- ZDO:activeEpRsp +11ms
zigbee-shepherd:request REQ --> AF:register +1ms
zigbee-shepherd:request RSP <-- AF:register, status: 0 +4ms
zigbee-shepherd:init Register delegator, epId: 1, profId: 260 +12ms
zigbee-shepherd:request REQ --> AF:register +1ms
zigbee-shepherd:request RSP <-- AF:register, status: 0 +3ms
zigbee-shepherd:init Register delegator, epId: 2, profId: 257 +12ms
zigbee-shepherd:request REQ --> AF:register +1ms
zigbee-shepherd:request RSP <-- AF:register, status: 0 +4ms
zigbee-shepherd:init Register delegator, epId: 3, profId: 261 +11ms
zigbee-shepherd:request REQ --> AF:register +1ms
zigbee-shepherd:request RSP <-- AF:register, status: 0 +4ms
zigbee-shepherd:init Register delegator, epId: 4, profId: 263 +11ms
zigbee-shepherd:request REQ --> AF:register +0ms
zigbee-shepherd:request RSP <-- AF:register, status: 0 +5ms
zigbee-shepherd:init Register delegator, epId: 5, profId: 264 +11ms
zigbee-shepherd:request REQ --> AF:register +0ms
zigbee-shepherd:request RSP <-- AF:register, status: 0 +5ms
zigbee-shepherd:init Register delegator, epId: 6, profId: 265 +12ms
zigbee-shepherd:request REQ --> ZDO:nodeDescReq +1ms
zigbee-shepherd:msgHdlr IND <-- ZDO:nodeDescRsp +12ms
zigbee-shepherd:request REQ --> ZDO:activeEpReq +0ms
zigbee-shepherd:msgHdlr IND <-- ZDO:activeEpRsp +13ms
zigbee-shepherd:request REQ --> ZDO:mgmtPermitJoinReq +1ms
zigbee-shepherd:msgHdlr IND <-- ZDO:permitJoinInd +10ms
zigbee-shepherd:msgHdlr IND <-- ZDO:mgmtPermitJoinRsp +2ms
zigbee-shepherd:init Loading devices from database done. +9ms
zigbee-shepherd:init zigbee-shepherd is up and ready. +0ms
zigbee-shepherd:init Network information: +0ms
zigbee-shepherd:init >> State: Coordinator +0ms
zigbee-shepherd:init >> Channel: 11 +1ms
zigbee-shepherd:init >> PanId: 0x1a62 +0ms
zigbee-shepherd:init >> Nwk Addr: 0 +0ms
zigbee-shepherd:init >> Ieee Addr: 0x00124b000e896f18 +0ms
zigbee-shepherd:init >> Ext. PanId: 0xdddddddddddddddd +0ms
zigbee-shepherd:request REQ --> ZDO:nodeDescReq +0ms
2018-5-15 21:37:24 INFO zigbee-shepherd started
2018-5-15 21:37:24 INFO Connecting to MQTT server at mqtt://10.10.10.83:1883
2018-5-15 21:37:24 INFO zigbee-shepherd ready
2018-5-15 21:37:24 INFO Currently 1 devices are joined:
2018-5-15 21:37:24 INFO 0x00178801020e690e (0x00178801020e690e): 324131092621 - Philips Hue Dimmer Switch
2018-5-15 21:37:25 INFO Connected to MQTT server
2018-5-15 21:37:25 INFO MQTT publish, topic: 'zigbee/bridge/state', payload: 'online'
2018-5-15 21:37:25 WARN `permit_join` set to `true` in configuration.yaml.
2018-5-15 21:37:25 WARN Allowing new devices to join.
2018-5-15 21:37:25 WARN Set `permit_join` to `false` once you joined all devices.
2018-5-15 21:37:25 INFO Zigbee: allowing new devices to join.
zigbee-shepherd:request REQ --> ZDO:mgmtPermitJoinReq +366ms
zigbee-shepherd:msgHdlr IND <-- ZDO:permitJoinInd +19ms
zigbee-shepherd:msgHdlr IND <-- ZDO:mgmtPermitJoinRsp +4ms
zigbee-shepherd:request REQ --> ZDO:nodeDescReq +5s
Zigate has a list of parameters available for a number of devices that are not supported by zigbee2mqtt yet including the dimmer switch. Is it possible to port them over? For example, the Hue dimmer http://zigate.fr/philips-hue-telecommande-compatible-zigate-clusters/
This looks like the same problem as with the TRADFRI remote control: https://github.com/Koenkk/zigbee2mqtt/issues/14
@Koenkk Yes, you are correct. The Hue Dimmer Switch can also directly control the bulbs. Same issue as the Ikea remote.
We need to find a way to send commands to the coordinator (CC2531): https://github.com/ebaauw/homebridge-hue/wiki/ZigBee-Devices#hue-dimmer-switch
Do you mean this type of Switch ? https://youtu.be/QXBZDUR4QN0?t=44s
I do
I was playing around with this today because I would also like to be able to use the Hue remotes. Obviously it doesn't work, I get the same behavior.
I'm a little fuzzy on what's going on, you're saying that it's because the remote sends commands directly to a bulb, not through the hub even when it's paired? I know the dimmers support standalone operation where it directly controls a bulb without a hub, but I thought it also supported passing events through the hub.
If you can point me in the right direction I can hack on this.
Reading https://github.com/ebaauw/homebridge-hue/wiki/ZigBee-Devices#hue-dimmer-switch.
'The Hue dimmer switch uses standard ZigBee attribute reporting for the FC00 cluster, to send button events to the Hue bridge. In addition, it sends commands from the 0006 and 0008 clusters, to interact directly with lights.'
Can you check if anything happens when running with DEBUG=* npm start while pressing some buttons on the remote?
Found this, looks promising! https://github.com/rogro82/com.hue.zigbee/commit/4e2c8ae582e64eef07958dc629cde6f8d441105e
There's still no output even with debug when pressing buttons. If I hold down the setup button on the remote to pair it I get a message that it has paired. Shortly after, if I press a button it gives me the standard device connecting message, but subsequent button presses have no effect. If you let it sit for a bit and then press a button again you get the connecting message, so it's obviously waking from sleep, but there's no actual actions triggered otherwise. If you I can post a log of this if you want, but I don't see much useful in there.
Then we need to dive a little bit more in the athom implementation as they are also using zigbee-shepherd (a modified version).
I'll have a look and try and learn up too, I'm still pretty new to Zigbee on a technical level, if you have recommended reading I'm keen to know more. The Hue remotes are perfect for what I want to do and I already have a couple, so getting them working would be very nice, plus it's something fun to hack on.
What I'm not really understanding is why there aren't any events triggered when pressing buttons. From looking at the code in the project you linked, it doesn't look like they are doing anything special or different to parse. It kinda makes me think that the remotes are using a different underlying protocol that zigbee-shepherd is ignoring. On the bright side, it does seem to be at least possible to get them working.
Hi i got my dimmer device today:
Pairing bringout this log entry:
6/1/2018, 6:15:04 PM [33mWARN[39m Device with modelID 'RWL021' is not supported.
6/1/2018, 6:15:04 PM [33mWARN[39m Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
6/1/2018, 6:15:04 PM [33mWARN[39m Device with modelID 'RWL021' is not supported.
6/1/2018, 6:15:04 PM [33mWARN[39m Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
My ModelID is another one as the original author post by opening!
And my database.db contain this two entrys:
{"id":5,"type":"EndDevice","ieeeAddr":"0x0017880103caab06","nwkAddr":14408,"manufId":4107,"manufName":"Philips","powerSource":"Battery","modelId":"RWL021","epList":[1,2],"status":"online","joinTime":1527869694,"endpoints":{"1":{"profId":49246,"epId":1,"devId":2096,"inClusterList":[0],"outClusterList":[0,3,4,5,6,8],"clusters":{}},"2":{"profId":260,"epId":2,"devId":12,"inClusterList":[0,1,3,15,64512],"outClusterList":[25],"clusters":{}}},"_id":"fotpP5FUoTPffL9h"}
{"id":5,"type":"EndDevice","ieeeAddr":"0x0017880103caab06","nwkAddr":14408,"manufId":4107,"manufName":"Philips","powerSource":"Battery","modelId":"RWL021","epList":[1,2],"status":"online","joinTime":1527869694,"endpoints":{"1":{"profId":49246,"epId":1,"devId":2096,"inClusterList":[0],"outClusterList":[0,3,4,5,6,8],"clusters":{"genBasic":{"dir":{"value":3},"attrs":{"zclVersion":1,"appVersion":2,"stackVersion":1,"hwVersion":1,"manufacturerName":"Philips","modelId":"RWL021","dateCode":"20160302","powerSource":3,"swBuildId":"5.45.1.17846"}},"genIdentify":{"dir":{"value":2},"attrs":{}},"genGroups":{"dir":{"value":2},"attrs":{}},"genScenes":{"dir":{"value":2},"attrs":{}},"genOnOff":{"dir":{"value":2},"attrs":{}},"genLevelCtrl":{"dir":{"value":2},"attrs":{}}}},"2":{"profId":260,"epId":2,"devId":12,"inClusterList":[0,1,3,15,64512],"outClusterList":[25],"clusters":{"64512":{"dir":{"value":1},"attrs":{}},"genBasic":{"dir":{"value":1},"attrs":{"zclVersion":1,"appVersion":2,"stackVersion":1,"hwVersion":1,"manufacturerName":"Philips","modelId":"RWL021","dateCode":"20160302","powerSource":3,"swBuildId":"5.45.1.17846"}},"genPowerCfg":{"dir":{"value":1},"attrs":{"batteryVoltage":30,"batteryPercentageRemaining":200}},"genIdentify":{"dir":{"value":1},"attrs":{}},"genBinaryInput":{"dir":{"value":1},"attrs":{}},"genOta":{"dir":{"value":2},"attrs":{}}}}},"_id":"fotpP5FUoTPffL9h"}
@Koenkk: Do you could use this info ? If I could help you could give me some hints and maybe some code to test and debug :)
@tb-killa That's better than what I get, I don't even get the "device not supported" message. I wonder if they have changed how the dimmer's work in the later models.
Do you get any messages when pressing buttons on the remote?
@jasonmhite At this time No because i have to modifiy the "converter" first.
@tb-killa if you have access to your host I can help you hot-patch your container to modify the converter. Just ping me on discord.
@ciotlosm I follow the guide from the wiki but after insert the needing Code Segment
'RWL021': {
model: '324131137411',
vendor: 'Philips',
description: 'Hue dimmer switch',
supports: 'on/off, brightness',
fromZigbee: [],
toZigbee: [],
},
nothing return.... like the author of the issue get. Now we have to digging deeper.