Zigbee2mqtt: Mijia wireless Button was triggered(single click event) every hour

Created on 1 Jun 2018  路  14Comments  路  Source: Koenkk/zigbee2mqtt

Hello,
My room light was turned on evey hour tonight ,so I checked my HA logbook, and found out that my automation was triggered due to my Mija button was clicked.but I am sure that I did not click it, the first trigger was at 23:48
I was expecting the light to turn on at 3:48, and it did happen as expected.
please check the log below,
Is there anything I can do to troubleshoot this?
Thanks


2018-6-1 23:48:54 INFO MQTT publish, topic: 'zigbee2mqtt/0x00158d00022bcc7f', payload: '{"battery":"100.00","voltage":3092,"click":"single"}'
2018-6-2 00:48:25 INFO MQTT publish, topic: 'zigbee2mqtt/0x00158d00022bcc7f', payload: '{"battery":"100.00","voltage":3092,"click":"single"}',
2018-6-2 01:48:37 INFO MQTT publish, topic: 'zigbee2mqtt/0x00158d00022bcc7f', payload: '{"battery":"100.00","voltage":3082,"click":"single"}',
2018-6-2 02:48:48 INFO MQTT publish, topic: 'zigbee2mqtt/0x00158d00022bcc7f', payload: '{"battery":"100.00","voltage":3082,"click":"single"}',
2018-6-2 03:48:21 INFO MQTT publish, topic: 'zigbee2mqtt/0x00158d00022bcc7f', payload: '{"battery":"100.00","voltage":3082,"click":"single"}'

Most helpful comment

I can confirm that the bug has been fixed, thanks @Koenkk you are the best

All 14 comments

Can you run with DEBUG=zigbee2mqtt:controller npm start?

@Koenkk , sorry I forgot to mention that I am using @danielwelch hassio-zigbee2mqtt and i will check if there is way to do that in hassio addon tommorw.

same problem with two WXKG01LM switches

@Koenkk I have restarted the addon with debug set to true, and the problem is solved somehow.

Does it also work without debug now?

Hi @Koenkk,
I was able to reproduce this issue once I click the switch (WXKG01LM),
please see the attachment , in the file out.log, it shows that the switch was clicked every hour from 2018-6-2 12:47:13 to 2018-6-2 18:48:15 (UTC+8)
out.log
err.log

,

@Koenkk yesterday, the button sent a single click every hour, today for a change is double
this is a really strange bug

Jun 02 13:10:22 orangepizero node[4169]: 2018-6-2 13:10:22 INFO MQTT publish, topic: 'zigbee2mqtt/Xiaomi_Switch1', payload: '{"battery":"100.00","voltage":3032,"click":"double"}'
Jun 02 14:10:34 orangepizero node[4169]: 2018-6-2 14:10:34 INFO MQTT publish, topic: 'zigbee2mqtt/Xiaomi_Switch1', payload: '{"battery":"100.00","voltage":3032,"click":"double"}'
Jun 02 15:10:46 orangepizero node[4169]: 2018-6-2 15:10:46 INFO MQTT publish, topic: 'zigbee2mqtt/Xiaomi_Switch1', payload: '{"battery":"100.00","voltage":3032,"click":"double"}'
Jun 02 16:10:54 orangepizero node[4169]: 2018-6-2 16:10:54 INFO MQTT publish, topic: 'zigbee2mqtt/Xiaomi_Switch1', payload: '{"battery":"100.00","voltage":3032,"click":"double"}'
Jun 02 17:11:06 orangepizero node[4169]: 2018-6-2 17:11:06 INFO MQTT publish, topic: 'zigbee2mqtt/Xiaomi_Switch1', payload: '{"battery":"100.00","voltage":3032,"click":"double"}'

I think i've found the bug, can you update zigbee2mqtt and check if this has been fixed?

Thanks @Koenkk I updated and I will let you know soon

@Koenkk,
I have tested the latest version, and I think its fix now, I did not find aditional click event except the one I clicked this morning.
Thanks

Great!

I can confirm that the bug has been fixed, thanks @Koenkk you are the best

I have the same problem with a Miija door sensor MCCGQ01LM. Every hour it sends the contact info too. So my home assistant starts the automations.

payload: '{"contact":true,"linkquality":126,"battery":"27.00","voltage":2955}'

@classiphil you need to trigger you automation based on a state change instead of a single MQTT message.

Was this page helpful?
0 / 5 - 0 ratings