Problem with new Xiaomi switches
After pairing new Xiaomi switches (Aqara WXKG11LM) in payload the click value is missing. Only battery value is transferred.
Can you provide your log with debug enabled? https://github.com/Koenkk/zigbee2mqtt/wiki/Configuration
Hi Koen,
thanks for your reply.
Could you please explain how to get the log with debug enabled?
I already have 3 Xiaomi Aqara switches working since a few weeks without this problem. Only the new ones show this problem.
I'm using 1 coordinator, 2 routers and 13 end devices. Could the problem be caused by the amount of devices?
Thx
See wiki: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-debug
2018-9-17 19:28:47 - info: Logging to directory: '/opt/zigbee2mqtt/data/log/2018-09-17.19:28:47'
2018-9-17 19:28:47 - debug: Using zigbee-shepherd with settings: '{"net":{"panId":6754,"channelList":[11]},"dbPath":"/opt/zigbee2mqtt/data/database.db","sp":{"baudRate":115200,"rtscts":true}}'
2018-9-17 19:28:47 - debug: Loaded state from file /opt/zigbee2mqtt/data/state.json
2018-9-17 19:28:47 - info: Starting zigbee2mqtt version 0.1.3 (commit #c8c8417)
2018-9-17 19:28:47 - info: Starting zigbee-shepherd
2018-9-17 19:28:48 - info: zigbee-shepherd started
2018-9-17 19:28:48 - info: Coordinator firmware version: '20180815'
2018-9-17 19:28:48 - debug: zigbee-shepherd info: {"enabled":true,"net":{"state":"Coordinator","channel":11,"panId":"0x1a62","extPanId":"0xdddddddddddddddd","ieeeAddr":"0x00124b0012023512","nwkAddr":0},"firmware":{"transportrev":2,"product":0,"version":"2.6.3","revision":20180815},"startTime":1537205328,"joinTimeLeft":0}
2018-9-17 19:28:48 - info: Currently 18 devices are joined:
2018-9-17 19:28:48 - info: 0x00158d0001ef874e (0x00158d0001ef874e): WXKG11LM - Xiaomi Aqara wireless switch (EndDevice)
2018-9-17 19:28:48 - info: 0x00158d0001ef874f (0x00158d0001ef874f): WXKG11LM - Xiaomi Aqara wireless switch (EndDevice)
2018-9-17 19:28:48 - info: 0x00158d00022c75ed (0x00158d00022c75ed): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
2018-9-17 19:28:48 - info: 0x00158d00022f6e4f (0x00158d00022f6e4f): SJCGQ11LM - Xiaomi Aqara water leak sensor (EndDevice)
2018-9-17 19:28:48 - info: 0x00158d00022f06d5 (0x00158d00022f06d5): SJCGQ11LM - Xiaomi Aqara water leak sensor (EndDevice)
2018-9-17 19:28:48 - info: 0x00158d00022f6e01 (0x00158d00022f6e01): SJCGQ11LM - Xiaomi Aqara water leak sensor (EndDevice)
2018-9-17 19:28:48 - info: 0x00158d00022cdd62 (0x00158d00022cdd62): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
2018-9-17 19:28:48 - info: 0x00158d000233f425 (0x00158d000233f425): SJCGQ11LM - Xiaomi Aqara water leak sensor (EndDevice)
2018-9-17 19:28:48 - info: 0x00158d0002484ae3 (0x00158d0002484ae3): SJCGQ11LM - Xiaomi Aqara water leak sensor (EndDevice)
2018-9-17 19:28:48 - info: 0x00158d00023690cf (0x00158d00023690cf): SJCGQ11LM - Xiaomi Aqara water leak sensor (EndDevice)
2018-9-17 19:28:48 - info: 0x00158d00024a45cd (0x00158d00024a45cd): MFKZQ01LM - Xiaomi Mi smart home cube (EndDevice)
2018-9-17 19:28:48 - info: 0x00158d00022ca929 (0x00158d00022ca929): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
2018-9-17 19:28:48 - info: 0x00124b0012023365 (0x00124b0012023365): CC2530.ROUTER - Custom devices (DiY) CC2530 router (Router)
2018-9-17 19:28:48 - info: 0x00158d0001e8900b (0x00158d0001e8900b): WXKG11LM - Xiaomi Aqara wireless switch (EndDevice)
2018-9-17 19:28:48 - info: 0x00124b00120231fc (0x00124b00120231fc): CC2530.ROUTER - Custom devices (DiY) CC2530 router (Router)
2018-9-17 19:28:48 - info: 0x00158d000215cabc (0x00158d000215cabc): WXKG11LM - Xiaomi Aqara wireless switch (EndDevice)
2018-9-17 19:28:48 - info: 0x00158d0001db95a1 (0x00158d0001db95a1): JTYJ-GD-01LM/BW - Xiaomi MiJia Honeywell smoke detector (EndDevice)
2018-9-17 19:28:48 - info: 0x00158d000215ca61 (0x00158d000215ca61): WXKG11LM - Xiaomi Aqara wireless switch (EndDevice)
2018-9-17 19:28:48 - warn: permit_join set to true in configuration.yaml.
2018-9-17 19:28:48 - warn: Allowing new devices to join.
2018-9-17 19:28:48 - warn: Set permit_join to false once you joined all devices.
2018-9-17 19:28:48 - info: Zigbee: allowing new devices to join.
2018-9-17 19:28:48 - info: Connecting to MQTT server at mqtt://localhost:1883
2018-9-17 19:28:49 - info: zigbee-shepherd ready
2018-9-17 19:28:49 - info: Connected to MQTT server
2018-9-17 19:28:49 - info: MQTT publish, topic: 'zigbee2mqtt/bridge/state', payload: 'online'
2018-9-17 19:28:49 - info: MQTT publish, topic: 'zigbee2mqtt/0x00158d0001ef874e', payload: '{"battery":"100.00","voltage":3045,"linkquality":47}'
2018-9-17 19:28:49 - info: MQTT publish, topic: 'zigbee2mqtt/0x00158d00022c75ed', payload: '{"battery":"98.33","voltage":2995,"linkquality":39,"humidity":43.99,"temperature":24.58,"pressure":964}'
2018-9-17 19:28:49 - info: MQTT publish, topic: 'zigbee2mqtt/0x00158d00022f6e4f', payload: '{"battery":"100.00","voltage":3035,"linkquality":18,"water_leak":false}'
2018-9-17 19:28:49 - info: MQTT publish, topic: 'zigbee2mqtt/0x00158d00022f06d5', payload: '{"battery":"100.00","voltage":3045,"linkquality":70,"water_leak":false}'
2018-9-17 19:28:49 - info: MQTT publish, topic: 'zigbee2mqtt/0x00158d00022f6e01', payload: '{"battery":"100.00","voltage":3025,"water_leak":false}'
2018-9-17 19:28:49 - info: MQTT publish, topic: 'zigbee2mqtt/0x00158d000233f425', payload: '{"battery":"100.00","voltage":3055,"linkquality":13,"water_leak":false}'
2018-9-17 19:28:49 - info: MQTT publish, topic: 'zigbee2mqtt/0x00158d0002484ae3', payload: '{"battery":"95.00","voltage":2985,"linkquality":10,"water_leak":false}'
2018-9-17 19:28:49 - info: MQTT publish, topic: 'zigbee2mqtt/0x00158d00023690cf', payload: '{"battery":"100.00","voltage":3045,"linkquality":26,"water_leak":false}'
2018-9-17 19:28:49 - info: MQTT publish, topic: 'zigbee2mqtt/0x00124b0012023365', payload: '{"description":"15428/0x00158D00022CA929","type":"CHILD_RFD","rssi":170,"state":false}'
2018-9-17 19:28:49 - info: MQTT publish, topic: 'zigbee2mqtt/0x00124b00120231fc', payload: '{"description":"44122/0x00158D00022C75ED","type":"CHILD_RFD","rssi":94,"linkquality":13,"state":false}'
2018-9-17 19:28:49 - info: MQTT publish, topic: 'zigbee2mqtt/0x00158d000215cabc', payload: '{"battery":"100.00","voltage":3195,"linkquality":60}'
2018-9-17 19:28:58 - debug: Recieved zigbee message with data {"cid":"genBinaryValue","data":{"description":"53730/0x00158D0001E8900B","inactiveText":"CHILD_RFD","presentValue":39,"relinquishDefault":2,"minimumOffTime":0}}
2018-9-17 19:28:58 - info: MQTT publish, topic: 'zigbee2mqtt/0x00124b0012023365', payload: '{"description":"53730/0x00158D0001E8900B","type":"CHILD_RFD","rssi":39,"state":false}'
2018-9-17 19:28:58 - debug: Recieved zigbee message with data {"cid":"genBinaryValue","data":{"description":"22537/0x00158D00022F6E01","inactiveText":"CHILD_RFD","presentValue":60,"relinquishDefault":2,"minimumOffTime":1}}
2018-9-17 19:28:58 - info: MQTT publish, topic: 'zigbee2mqtt/0x00124b0012023365', payload: '{"description":"22537/0x00158D00022F6E01","type":"CHILD_RFD","rssi":60,"state":false}'
2018-9-17 19:28:58 - debug: Recieved zigbee message with data {"cid":"genBinaryValue","data":{"description":"0/0x00124B0012023512","inactiveText":"COORD","presentValue":1,"relinquishDefault":0,"minimumOffTime":0}}
2018-9-17 19:28:58 - info: MQTT publish, topic: 'zigbee2mqtt/0x00124b0012023365', payload: '{"description":"0/0x00124B0012023512","type":"COORD","rssi":1,"state":false}'
2018-9-17 19:28:58 - debug: Recieved zigbee message with data {"cid":"genBinaryValue","data":{"description":"15428/0x00158D00022CA929","inactiveText":"CHILD_RFD","presentValue":170,"relinquishDefault":2,"minimumOffTime":1}}
2018-9-17 19:28:58 - info: MQTT publish, topic: 'zigbee2mqtt/0x00124b0012023365', payload: '{"description":"15428/0x00158D00022CA929","type":"CHILD_RFD","rssi":170,"state":false}'
2018-9-17 19:28:58 - debug: Recieved zigbee message with data {"cid":"genOnOff","data":{"onOff":0}}
2018-9-17 19:28:58 - info: MQTT publish, topic: 'zigbee2mqtt/0x00124b0012023365', payload: '{"description":"15428/0x00158D00022CA929","type":"CHILD_RFD","rssi":170,"state":false}'
2018-9-17 19:29:08 - debug: Saving state to file /opt/zigbee2mqtt/data/state.json
2018-9-17 19:29:08 - info: MQTT publish, topic: 'zigbee2mqtt/bridge/state', payload: 'offline'
2018-9-17 19:29:08 - info: Disconnecting from MQTT server
2018-9-17 19:29:08 - info: zigbee-shepherd stopped
That's the new Xiaomi Aqara switch:
2018-9-17 19:28:49 - info: MQTT publish, topic: 'zigbee2mqtt/0x00158d000215cabc', payload: '{"battery":"100.00","voltage":3195,"linkquality":60}'
The payload "click" is missing.... :-(
I don't see any clicks received.
Did you by any chance modify the zigbee2mqtt code? I see strange messages like:
2018-9-17 19:28:58 - debug: Recieved zigbee message with data {"cid":"genBinaryValue","data":{"description":"53730/0x00158D0001E8900B","inactiveText":"CHILD_RFD","presentValue":39,"relinquishDefault":2,"minimumOffTime":0}}
Hi Koen,
that's exactly my problem, the clicks don't appear in the payload.
In my smart home FHEM I only get this readings:
battery | ok | 2018-09-17 22:41:00 battery_level | 100.00 | 2018-09-17 22:41:00 linkquality | 49 | 2018-09-17 22:41:00 transmission-state | incoming publish received | 2018-09-17 22:41:00 voltage | 3155 | 2018-09-17 22:41:00
I didn't modify the code. Is it possible that this strange message comes from the router?
This is one of my older, working switches:
Sep 17 22:54:48 Raspberry-MQTT npm[576]: zigbee2mqtt:debug 2018-9-17 22:54:48 Recieved zigbee message with data {"cid":"genOnOff","data":{"onOff":1}} Sep 17 22:54:48 Raspberry-MQTT npm[576]: zigbee2mqtt:info 2018-9-17 22:54:48 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001ef874f', payload: '{"battery":"100.00","voltage":3075,"linkquality":23,"click":"single"}'
And this is one of the new, not working switches:
Sep 17 22:58:01 Raspberry-MQTT npm[576]: zigbee2mqtt:debug 2018-9-17 22:58:01 Recieved zigbee message with data {"cid":"genBasic","data":{"65281":{"1":3155,"3":26,"4":5032,"5":54,"6":[0,196608],"10":0},"modelId":"lumi.sensor_switch.aq2"}} Sep 17 22:58:01 Raspberry-MQTT npm[576]: zigbee2mqtt:info 2018-9-17 22:58:01 MQTT publish, topic: 'zigbee2mqtt/0x00158d000215cabc', payload: '{"battery":"100.00","voltage":3155,"linkquality":70}' Sep 17 22:58:01 Raspberry-MQTT npm[576]: zigbee2mqtt:debug 2018-9-17 22:58:01 Recieved zigbee message with data {"cid":"genBasic","data":{"65281":[null,3155,null,26,null,54,[0,196608],null,null,null,0]}}
Can you try repairing?
And when running with DEBUG=* npm start do you see any messages appear once you press the button?
@kaelsaes @Koenkk
I don't see any clicks received.
Did you by any chance modify the zigbee2mqtt code? I see strange messages like:
2018-9-17 19:28:58 - debug: Recieved zigbee message with data {"cid":"genBinaryValue","data":{"description":"53730/0x00158D0001E8900B","inactiveText":"CHILD_RFD","presentValue":39,"relinquishDefault":2,"minimumOffTime":0}}
I see this messages only ones in combination with router firmware: http://ptvo.info/cc2530-based-zigbee-coordinator-and-router-112/
description – network and MAC address.
inactiveText – device role in a network.
presentValue – RSSI value of the last received packet (rxLqi).
relinquishDefault (optional) – path depth.
minimumOffTime (optional) – number of associated devices.
I repaired many times without success.
I will try to test with the debug option.
Is it possible that the new switch devices aren't recognized correctly by the zigbee2mqtt software?
Thx
serialport:unixRead Starting read +4s serialport:unixRead Finished read 86 bytes +1ms serialport:main binding.read finished +4s cc-znp { sof: 254, cc-znp len: 81, cc-znp type: 'AREQ', cc-znp subsys: 'AF', cc-znp cmd: 'incomingMsg', cc-znp payload: cc-znp { groupid: 0, cc-znp clusterid: 0, cc-znp srcaddr: 43510, cc-znp srcendpoint: 1, cc-znp dstendpoint: 1, cc-znp wasbroadcast: 0, cc-znp linkquality: 31, cc-znp securityuse: 0, cc-znp timestamp: 9084513, cc-znp transseqnumber: 0, cc-znp len: 61, cc-znp data: <Buffer 1c 5f 11 06 0a 05 00 42 16 6c 75 6d 69 2e 73 65 6e 73 6f 72 5f 73 77 69 74 63 68 2e 61 71 32 01 ff 42 1a 01 21 53 0c 03 28 21 04 21 a8 13 05 21 37 00 ... > }, cc-znp fcs: 226, cc-znp csum: 226 } +4s serialport:main _read reading +15ms serialport:bindings read +16ms serialport:unixRead Starting read +16ms cc-znp:AREQ <-- AF:incomingMsg, { groupid: 0, clusterid: 0, srcaddr: 43510, srcendpoint: 1, dstendpoint: 1, wasbroadcast: 0, linkquality: 31, securityuse: 0, timestamp: 9084513, transseqnumber: 0, len: 61, data: <Buffer 1c 5f 11 06 0a 05 00 42 16 6c 75 6d 69 2e 73 65 6e 73 6f 72 5f 73 77 69 74 63 68 2e 61 71 32 01 ff 42 1a 01 21 53 0c 03 28 21 04 21 a8 13 05 21 37 00 ... > } +5ms zigbee-shepherd:af dispatchIncomingMsg(): type: incomingMsg, msg: [object Object] +1ms zigbee-shepherd:msgHdlr IND <-- AF:incomingMsg, transId: 0 +24ms serialport:unixRead waiting for readable because of code: EAGAIN +28ms serialport:poller Polling for "readable" +46ms zigbee-shepherd:af dispatchIncomingMsg(): type: zclIncomingMsg, msg: [object Object] +2ms zigbee2mqtt:debug 2018-9-20 21:16:28 Recieved zigbee message with data {"cid":"genBasic","data":{"65281":{"1":3155,"3":33,"4":5032,"5":55,"6":[0,0],"10":0},"modelId":"lumi.sensor_switch.aq2"}} zigbee2mqtt:info 2018-9-20 21:16:28 MQTT publish, topic: 'zigbee2mqtt/0x00158d000215cabc', payload: '{"battery":"100.00","voltage":3155,"linkquality":31}' zigbee2mqtt:debug 2018-9-20 21:16:28 Recieved zigbee message with data {"cid":"genBasic","data":{"65281":[null,null,null,33,null,55]}}
Any ideas?
@kaelsaes I dont have the solution but I have what appears to be the same issue with a WXKG11LM. It was working previously (I think until the last update of of the docker addon)
Edit... it looks like it might be fixed:
https://github.com/Koenkk/zigbee-shepherd-converters/pull/89
Thx.
I still get the message "Cannot get the Node Descriptor of the device" and the Aqara switch doesn't send the click payload.
Hi,
I have same issue too. Device is recognized byt action is not included in payload. See here:
zigbee2mqtt:warn 2018-12-26 09:52:40 Message without device!
zigbee2mqtt:warn 2018-12-26 09:52:43 Message without device!
zigbee2mqtt:info 2018-12-26 09:52:43 Device incoming...
zigbee2mqtt:info 2018-12-26 09:52:43 MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
zigbee2mqtt:info 2018-12-26 09:52:43 MQTT publish: topic 'homeassistant/sensor/0x00158d00027255ee/click/config', payload '{"icon":"mdi:toggle-switch","value_template":"{{ value_json.click }}","json_attributes":["linkquality","battery","voltage","action","duration"],"force_update":true,"state_topic":"zigbee2mqtt/0x00158d00027255ee","availability_topic":"zigbee2mqtt/bridge/state","name":"0x00158d00027255ee_click","unique_id":"0x00158d00027255ee_click_zigbee2mqtt","device":{"identifiers":"zigbee2mqtt_0x00158d00027255ee","name":"0x00158d00027255ee","sw_version":"Zigbee2mqtt 1.0.1","model":"Aqara wireless switch (WXKG11LM)","manufacturer":"Xiaomi"}}'
zigbee2mqtt:info 2018-12-26 09:54:13 MQTT publish: topic 'zigbee2mqtt/0x00158d00027255ee', payload '{"battery":100,"voltage":3055,"linkquality":149}'
zigbee2mqtt:info 2018-12-26 09:54:27 MQTT publish: topic 'zigbee2mqtt/0x00158d00027255ee', payload '{"battery":100,"voltage":3055,"linkquality":63}'
zigbee2mqtt:info 2018-12-26 09:54:29 MQTT publish: topic 'zigbee2mqtt/0x00158d00027255ee', payload '{"battery":100,"voltage":3055,"linkquality":63}'
If I try to press and hold for 5 seconds middle button (not the reset one) it shows strange messages like message without device, button starts blinking for a while (like in pairing mode) and then stops. But behaviour is still same: after I press once button or twice, no action shown, it's still same message. If I press longer middle button then repeating again device shows message without device.
I'm using latest stable zigbee2mqtt firmware and latest available version of HA running in Hass.
zigbee2mqtt:info 2018-12-26 10:34:35 MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"log_level":"info","permit_join":true}'
zigbee2mqtt:info 2018-12-26 10:35:36 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":100,"voltage":3055,"linkquality":205}'
zigbee2mqtt:warn 2018-12-26 10:35:40 Message without device!
zigbee2mqtt:error 2018-12-26 10:36:08 Cannot get the Node Descriptor of the Device: 0x00158d00021327a4 (Error: Timed out after 10000 ms)
zigbee2mqtt:error 2018-12-26 10:36:28 Cannot get the Node Descriptor of the Device: 0x00158d00021327a4 (Error: Timed out after 10000 ms)
zigbee2mqtt:warn 2018-12-26 10:36:42 Message without device!
zigbee2mqtt:warn 2018-12-26 10:36:45 Message without device!
zigbee2mqtt:warn 2018-12-26 10:36:48 Message without device!
zigbee2mqtt:info 2018-12-26 10:36:52 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":100,"voltage":3055,"linkquality":55}'
zigbee2mqtt:warn 2018-12-26 10:36:52 Message without device!
zigbee2mqtt:info 2018-12-26 10:36:52 Device incoming...
zigbee2mqtt:info 2018-12-26 10:36:52 MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
zigbee2mqtt:info 2018-12-26 10:36:58 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":100,"voltage":3055,"linkquality":18}'
zigbee2mqtt:info 2018-12-26 10:37:03 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":100,"voltage":3055,"linkquality":39}'
zigbee2mqtt:info 2018-12-26 10:37:14 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":100,"voltage":3055,"linkquality":70}'
@MyKEcz please try remove all entries of 0x00158d00027255ee from database.db and repair with the procedure from https://koenkk.github.io/zigbee2mqtt/getting_started/pairing_devices.html#xiaomi
Hi @Koenkk , I tried to remove the 0x00158d00021327a4 from database (what I provided above - 0x00158d00027255ee was wrong device id, it was my temperature sensor and I don't know why I replaced when I posted here, my mistake).
So I removed the correct device 0x00158d00021327a4 from database.db and then started pairing again.
Here we can see device was correct recognized as Aqara wireless switch (WXKG11LM) with following json attributes which should be provided in payload: "linkquality","battery","voltage","action","duration"
zigbee2mqtt:info 2018-12-28 15:47:16 Zigbee: allowing new devices to join.
zigbee2mqtt:info 2018-12-28 15:47:16 MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"log_level":"info","permit_join":true}'
zigbee2mqtt:warn 2018-12-28 15:49:13 Device with modelID 'undefined' is not supported.
zigbee2mqtt:warn 2018-12-28 15:49:13 Please see: https://koenkk.github.io/zigbee2mqtt/how_tos/how_to_support_new_devices.html
zigbee2mqtt:info 2018-12-28 15:49:16 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":100,"voltage":3035,"linkquality":99}'
zigbee2mqtt:info 2018-12-28 15:49:16 MQTT publish: topic 'homeassistant/sensor/0x00158d00021327a4/click/config', payload '{"icon":"mdi:toggle-switch","value_template":"{{ value_json.click }}","json_attributes":["linkquality","battery","voltage","action","duration"],"force_update":true,"state_topic":"zigbee2mqtt/0x00158d00021327a4","availability_topic":"zigbee2mqtt/bridge/state","name":"0x00158d00021327a4_click","unique_id":"0x00158d00021327a4_click_zigbee2mqtt","device":{"identifiers":"zigbee2mqtt_0x00158d00021327a4","name":"0x00158d00021327a4","sw_version":"Zigbee2mqtt 1.0.1","model":"Aqara wireless switch (WXKG11LM)","manufacturer":"Xiaomi"}}'
zigbee2mqtt:warn 2018-12-28 15:49:16 Message without device!
zigbee2mqtt:warn 2018-12-28 15:49:19 Message without device!
zigbee2mqtt:warn 2018-12-28 15:49:23 Message without device!
zigbee2mqtt:warn 2018-12-28 15:49:26 Message without device!
zigbee2mqtt:info 2018-12-28 15:49:26 Device incoming...
But after device is paired and I few times press button and it shows again only 3 json attributes: "battery","voltage","linkquality"
zigbee2mqtt:info 2018-12-28 15:49:26 MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
zigbee2mqtt:info 2018-12-28 15:49:38 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":100,"voltage":3035,"linkquality":94}'
zigbee2mqtt:info 2018-12-28 15:49:43 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":100,"voltage":3035,"linkquality":94}'
zigbee2mqtt:info 2018-12-28 15:49:50 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":100,"voltage":3035,"linkquality":99}'
zigbee2mqtt:info 2018-12-28 15:49:53 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":100,"voltage":3035,"linkquality":94}'
I don't understand why. I tried to remove that device from database.db three times with same result. I suspect my WXKG11LM switch is broken(?).
This is how my WXKG11LM switch looks in database.db:
{"id":5,"type":"EndDevice","ieeeAddr":"0x00158d00021327a4","nwkAddr":23228,"manufId":4151,"epList":[1],"status":"online","joinTime":1546008550,"endpoints":{"1":{"profId":260,"epId":1,"devId":24321,"inClusterList":[0,6,65535],"outClusterList":[0,4,65535],"clusters":{}}},"_id":"KFdwdYE0uEVtz9BV"}
{"id":5,"type":"EndDevice","ieeeAddr":"0x00158d00021327a4","nwkAddr":23228,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_switch.aq2","epList":[1],"status":"online","joinTime":1546008550,"endpoints":{"1":{"profId":260,"epId":1,"devId":24321,"inClusterList":[0,6,65535],"outClusterList":[0,4,65535],"clusters":{}}},"_id":"KFdwdYE0uEVtz9BV"}
{"id":5,"type":"EndDevice","ieeeAddr":"0x00158d00021327a4","nwkAddr":23228,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_switch.aq2","epList":[1],"status":"online","joinTime":1546008550,"endpoints":{"1":{"profId":260,"epId":1,"devId":24321,"inClusterList":[0,6,65535],"outClusterList":[0,4,65535],"clusters":{"genBasic":{"dir":{"value":3},"attrs":{}},"genGroups":{"dir":{"value":2},"attrs":{}},"genOnOff":{"dir":{"value":1},"attrs":{}},"manuSpecificCluster":{"dir":{"value":3},"attrs":{}}}}},"_id":"KFdwdYE0uEVtz9BV"}
Edit: I forget to mention anytime I press button on switch it will fast blink 2 times and report only 3 json attributes. No matter how often I press in a row, it's all the time 2 blinks.
Can you provide the log when having advanced -> log_level: debug in your configuration.yaml?
Here is debug log level after pairing enabled and in the end few times pressed button on aquara switch:
zigbee2mqtt:debug 2018-12-29 09:56:23 Received MQTT message on 'zigbee2mqtt/bridge/config/permit_join' with data 'true'
zigbee2mqtt:info 2018-12-29 09:56:23 Zigbee: allowing new devices to join.
zigbee2mqtt:info 2018-12-29 09:56:23 MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"log_level":"debug","permit_join":true}'
zigbee2mqtt:debug 2018-12-29 09:57:07 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,65536],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:57:07 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":99,"voltage":3015,"linkquality":92}'
zigbee2mqtt:info 2018-12-29 09:57:07 MQTT publish: topic 'homeassistant/sensor/0x00158d00021327a4/click/config', payload '{"icon":"mdi:toggle-switch","value_template":"{{ value_json.click }}","json_attributes":["linkquality","battery","voltage","action","duration"],"force_update":true,"state_topic":"zigbee2mqtt/0x00158d00021327a4","availability_topic":"zigbee2mqtt/bridge/state","name":"0x00158d00021327a4_click","unique_id":"0x00158d00021327a4_click_zigbee2mqtt","device":{"identifiers":"zigbee2mqtt_0x00158d00021327a4","name":"0x00158d00021327a4","sw_version":"Zigbee2mqtt 1.0.1","model":"Aqara wireless switch (WXKG11LM)","manufacturer":"Xiaomi"}}'
zigbee2mqtt:debug 2018-12-29 09:57:07 Received zigbee message of type 'devInterview' with data '"0x00158d00021327a4"'
zigbee2mqtt:warn 2018-12-29 09:57:07 Message without device!
zigbee2mqtt:debug 2018-12-29 09:57:10 Received zigbee message of type 'devInterview' with data '"0x00158d00021327a4"'
zigbee2mqtt:warn 2018-12-29 09:57:10 Message without device!
zigbee2mqtt:debug 2018-12-29 09:57:17 Received zigbee message of type 'devInterview' with data '"0x00158d00021327a4"'
zigbee2mqtt:warn 2018-12-29 09:57:17 Message without device!
zigbee2mqtt:debug 2018-12-29 09:57:17 Received zigbee message of type 'devLeaving' with data '"0x00158d00021327a4"'
zigbee2mqtt:warn 2018-12-29 09:57:17 Message without device!
zigbee2mqtt:debug 2018-12-29 09:57:17 Received zigbee message of type 'devInterview' with data '"0x00158d00021327a4"'
zigbee2mqtt:warn 2018-12-29 09:57:17 Message without device!
zigbee2mqtt:debug 2018-12-29 09:57:17 Received zigbee message of type 'devIncoming' with data '"0x00158d00021327a4"' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:57:17 Device incoming...
zigbee2mqtt:info 2018-12-29 09:57:17 MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
zigbee2mqtt:debug 2018-12-29 09:57:17 Received zigbee message of type 'devStatus' with data '"online"' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:debug 2018-12-29 09:57:31 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,0],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'undefined' (0x00158d00021327a4)
zigbee2mqtt:warn 2018-12-29 09:57:31 Device with modelID 'undefined' is not supported.
zigbee2mqtt:warn 2018-12-29 09:57:31 Please see: https://koenkk.github.io/zigbee2mqtt/how_tos/how_to_support_new_devices.html
zigbee2mqtt:warn 2018-12-29 09:57:37 Device with modelID 'undefined' is not supported.
zigbee2mqtt:debug 2018-12-29 09:57:37 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,0],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'undefined' (0x00158d00021327a4)
zigbee2mqtt:warn 2018-12-29 09:57:37 Please see: https://koenkk.github.io/zigbee2mqtt/how_tos/how_to_support_new_devices.html
zigbee2mqtt:debug 2018-12-29 09:57:41 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,65536],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:57:41 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":99,"voltage":3015,"linkquality":81}'
zigbee2mqtt:debug 2018-12-29 09:57:41 Received zigbee message of type 'devInterview' with data '"0x00158d00021327a4"'
zigbee2mqtt:warn 2018-12-29 09:57:41 Message without device!
zigbee2mqtt:debug 2018-12-29 09:57:45 Received zigbee message of type 'devInterview' with data '"0x00158d00021327a4"'
zigbee2mqtt:warn 2018-12-29 09:57:45 Message without device!
zigbee2mqtt:debug 2018-12-29 09:57:46 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,196608],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:57:46 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":99,"voltage":3015,"linkquality":86}'
zigbee2mqtt:debug 2018-12-29 09:57:47 Received zigbee message of type 'devInterview' with data '"0x00158d00021327a4"'
zigbee2mqtt:warn 2018-12-29 09:57:47 Message without device!
zigbee2mqtt:debug 2018-12-29 09:57:50 Received zigbee message of type 'devInterview' with data '"0x00158d00021327a4"'
zigbee2mqtt:warn 2018-12-29 09:57:50 Message without device!
zigbee2mqtt:debug 2018-12-29 09:57:50 Received zigbee message of type 'devIncoming' with data '"0x00158d00021327a4"' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:57:50 Device incoming...
zigbee2mqtt:info 2018-12-29 09:57:50 MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
zigbee2mqtt:debug 2018-12-29 09:57:50 Received zigbee message of type 'devStatus' with data '"online"' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:debug 2018-12-29 09:57:52 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,327680],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:57:52 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":99,"voltage":3015,"linkquality":86}'
zigbee2mqtt:debug 2018-12-29 09:57:52 Received zigbee message of type 'devChange' with data '{"cid":"genBasic","data":{"65281":[null,3015,null,35,424,12108,[0,327680],null,null,null,0],"modelId":"lumi.sensor_switch.aq2"}}' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:debug 2018-12-29 09:57:56 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,327680],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:57:56 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":99,"voltage":3015,"linkquality":89}'
zigbee2mqtt:debug 2018-12-29 09:57:58 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,327680],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:57:58 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":99,"voltage":3015,"linkquality":89}'
zigbee2mqtt:debug 2018-12-29 09:58:01 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,327680],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:58:01 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":99,"voltage":3015,"linkquality":89}'
zigbee2mqtt:debug 2018-12-29 09:58:04 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,327680],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:58:04 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":99,"voltage":3015,"linkquality":86}'
zigbee2mqtt:debug 2018-12-29 09:58:06 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,327680],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:58:06 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":99,"voltage":3015,"linkquality":92}'
zigbee2mqtt:debug 2018-12-29 09:58:09 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,327680],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:58:09 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":99,"voltage":3015,"linkquality":92}'
zigbee2mqtt:debug 2018-12-29 09:58:12 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,327680],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:58:12 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":99,"voltage":3015,"linkquality":89}'
zigbee2mqtt:debug 2018-12-29 09:58:15 Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"1":3015,"3":35,"4":424,"5":12108,"6":[0,327680],"10":0},"modelId":"lumi.sensor_switch.aq2"}}' of device 'lumi.sensor_switch.aq2' (0x00158d00021327a4)
zigbee2mqtt:info 2018-12-29 09:58:15 MQTT publish: topic 'zigbee2mqtt/0x00158d00021327a4', payload '{"battery":99,"voltage":3015,"linkquality":76}'