zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Device sporadically switches ON

Open ChankyTheConqueror opened this issue 5 years ago • 12 comments

Bug Report

What happened

I have a smart switch module of type: MS-104BZ image

This device mysteriously switches itself ON without any MQTT request (there are no sets with retained flags or any other requests, the device is simply powered ON). I have been observing it for some days and now the only clue i have is this: image

When the above messages come in (They always come in pair) both switches are set ON. image

What did you expect to happen

The device should only switch on when there is a request.

How to reproduce it (minimal and precise)

Switches on sporadically

Debug Info

Zigbee2MQTT version: Adapter hardware: CC2531, CC2530, CC26X2R1 or CC1352P-2 im using the zzh from electrolama

Adapter firmware version: image

Any help in finding the issue will be highly appreciated

ChankyTheConqueror avatar Nov 19 '21 10:11 ChankyTheConqueror

Check the timestamps the light turns on. A friend of me had the same problem and after weeks of searching we noticed this device switching on/off at the same time as the street lights switching. Maybe you have the same problem.

Timminater avatar Nov 22 '21 11:11 Timminater

Hi Timminater, mine is completely random since i posted the device hasnt switched on again by itself again.

ChankyTheConqueror avatar Nov 26 '21 19:11 ChankyTheConqueror

The devices still switches on sporadically, anyone out here, who can help me debug the issue?

ChankyTheConqueror avatar Dec 07 '21 18:12 ChankyTheConqueror

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jan 07 '22 00:01 github-actions[bot]

Is it really impossible to debug such an issue?

ChankyTheConqueror avatar Jan 07 '22 10:01 ChankyTheConqueror

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Feb 07 '22 00:02 github-actions[bot]

come on guys a little debugging help is all i need.

ChankyTheConqueror avatar Feb 07 '22 10:02 ChankyTheConqueror

Given that there is nothing in the logs besides Received zigbee message.., it seems z2m itself doesn't send this message. That leaves two other root causes:

  • The firmware on the device is bugged, turning itself on
  • Other devices in the network control this switch, to see if this is the case sniff the traffic while the switch switches on. https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html#with-cc2531

Koenkk avatar Feb 07 '22 16:02 Koenkk

Thanks for the advice ill try sniffing the traffic

ChankyTheConqueror avatar Feb 13 '22 07:02 ChankyTheConqueror

Hi @Koenkk, i have captured the zigbee traffic where it is sporadically going ON, how can i tell if another device is switching on? see attachment thanks in advance. The device Network ID is 0xcdbd

zigbee_debug.zip

ChankyTheConqueror avatar Feb 13 '22 18:02 ChankyTheConqueror

@ChankyTheConqueror do you know at what +- No. (first column) the bulb turns off?

Koenkk avatar Feb 13 '22 19:02 Koenkk

unfortunately i cant quite tell, i left the sniffer on most of the day but it should be just within last half hour of the trace. i can retry again tomorrow ill be working from home. Thanks in the meantime

ChankyTheConqueror avatar Feb 13 '22 20:02 ChankyTheConqueror