Mariano-Github / Edge-Drivers-Beta

Edge Driver Beta Modified for Created
Apache License 2.0
122 stars 121 forks source link

zigbee-switch-power-v5 #33

Closed albertovm closed 2 years ago

albertovm commented 2 years ago

Hi Mariano,

Could you take a quick look if there is something wrong that could be making all my devices turn off randomly? This one in the following log was ON, and just turn OFF with any interaction.

2022-10-25T17:10:33.256594005+00:00 TRACE Zigbee Tomadas WPlaza - MC Received event with handler zigbee

2022-10-25T17:10:33.270970818+00:00 INFO Zigbee Tomadas WPlaza - MC <ZigbeeDevice: 7bbc2c8f-e87c-4357-a05e-77fa6bb4cfae [0x14F3] (Sala Tomada James)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x14F3, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x68, rssi: -74, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0xD1, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0000, DataType: Boolean, OnOff: false > > > >

2022-10-25T17:10:33.343094276+00:00 TRACE Zigbee Tomadas WPlaza - MC Found ZigbeeMessageDispatcher handler in Zigbee_Switch

2022-10-25T17:10:33.352434693+00:00 INFO Zigbee Tomadas WPlaza - MC Executing ZclClusterAttributeValueHandler: cluster: OnOff, attribute: OnOff

2022-10-25T17:10:33.365325609+00:00 INFO Zigbee Tomadas WPlaza - MC <ZigbeeDevice: 7bbc2c8f-e87c-4357-a05e-77fa6bb4cfae [0x14F3] (Sala Tomada James)> emitting event: {"attribute_id":"signalMetrics","capability_id":"legendabsolute60149.signalMetrics","component_id":"main","state":{"value":"LQI: 104 ... RSSI: -74 dBm"},"visibility":{"displayed":false}}

2022-10-25T17:10:33.476719068+00:00 INFO Zigbee Tomadas WPlaza - MC <ZigbeeDevice: 7bbc2c8f-e87c-4357-a05e-77fa6bb4cfae [0x14F3] (Sala Tomada James)> emitting event: {"attribute_id":"switch","capability_id":"switch","component_id":"main","state":{"value":"off"}}

2022-10-25T17:10:33.591623109+00:00 DEBUG Zigbee Tomadas WPlaza - MC Sala Tomada James device thread event handled

2022-10-25T17:10:33.604483172+00:00 TRACE Zigbee Tomadas WPlaza - MC Received event with handler zigbee

2022-10-25T17:10:33.620764463+00:00 INFO Zigbee Tomadas WPlaza - MC <ZigbeeDevice: 7bbc2c8f-e87c-4357-a05e-77fa6bb4cfae [0x14F3] (Sala Tomada James)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x14F3, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x68, rssi: -74, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0xD3, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0000, DataType: Boolean, OnOff: false > > > >

2022-10-25T17:10:33.669589109+00:00 TRACE Zigbee Tomadas WPlaza - MC Received event with handler zigbee

2022-10-25T17:10:33.685278172+00:00 INFO Zigbee Tomadas WPlaza - MC <ZigbeeDevice: 7bbc2c8f-e87c-4357-a05e-77fa6bb4cfae [0x14F3] (Sala Tomada James)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x14F3, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xE001 >, lqi: 0x64, rssi: -75, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0xD2, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0xD001, DataType: Bitmap32, Bitmap32: 0x00000004 > > > >

2022-10-25T17:10:33.737237630+00:00 TRACE Zigbee Tomadas WPlaza - MC Found ZigbeeMessageDispatcher handler in Zigbee_Switch

2022-10-25T17:10:33.747268547+00:00 INFO Zigbee Tomadas WPlaza - MC Executing ZclClusterAttributeValueHandler: cluster: OnOff, attribute: OnOff

2022-10-25T17:10:33.761006401+00:00 INFO Zigbee Tomadas WPlaza - MC <ZigbeeDevice: 7bbc2c8f-e87c-4357-a05e-77fa6bb4cfae [0x14F3] (Sala Tomada James)> emitting event: {"attribute_id":"signalMetrics","capability_id":"legendabsolute60149.signalMetrics","component_id":"main","state":{"value":"LQI: 104 ... RSSI: -74 dBm"},"visibility":{"displayed":false}}

2022-10-25T17:10:33.871136192+00:00 INFO Zigbee Tomadas WPlaza - MC <ZigbeeDevice: 7bbc2c8f-e87c-4357-a05e-77fa6bb4cfae [0x14F3] (Sala Tomada James)> emitting event: {"attribute_id":"switch","capability_id":"switch","component_id":"main","state":{"value":"off"}}

2022-10-25T17:10:33.907851859+00:00 DEBUG Zigbee Tomadas WPlaza - MC Sala Tomada James device thread event handled

2022-10-25T17:10:33.921946213+00:00 DEBUG Zigbee Tomadas WPlaza - MC Sala Tomada James device thread event handled

Mariano-Github commented 2 years ago

Hi,

Could be the problem is with the last hub firmware. The new thread Network Channel can interfere with zigbee channel

https://community.smartthings.com/t/interesting-odd-behavior-after-thread-firmware-update-on-v3-hub/250346?u=mariano_colmenarejo

albertovm commented 2 years ago

I am not sure that I received this update yet. I have a Smartthings Wifi, and usually updates are too late.

Mariano-Github commented 2 years ago

In the logs you sent, don't see any command sent by the driver. It is only seen that the device informs that its status is off and the event is emitted to the platform. What driver is it?

albertovm commented 2 years ago

It is your zigbee-switch-power-v5. I did a duplicated installation to don´t run tests with your driver already working in 4 devices. I have 4 devices with this fail.

Mariano-Github commented 2 years ago

It seems that your devices are detecting a under_voltage fault Cluster 0xE001, attribute 0xD001, value = 0000004 and then turn off

2022-10-25T17:10:33.685278172+00:00 INFO Zigbee Tomadas WPlaza - MC <ZigbeeDevice: 7bbc2c8f-e87c-4357-a05e-77fa6bb4cfae [0x14F3] (Sala Tomada James)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x14F3, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0xE001 >, lqi: 0x64, rssi: -75, body_length: 0x000A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0xD2, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0xD001, DataType: Bitmap32, Bitmap32: 0x00000004 > > > >

DP26 Fault

Direction | Cluster ID | Command/Attribute ID | Value -- | -- | -- | -- Server to client | 0xE001: TUYA_ELECTRICIAN_PRIVATE | 0xD001: Tuya-specific attribute | Bit 0: Over-current.Bit 1: Over-voltage.Bit 2: Under-voltage.

https://developer.tuya.com/en/docs/iot/tuya-zigbee-measuring-smart-plug-access-standard?id=K9ik6zvofpzqk

albertovm commented 2 years ago

I was following this possibility. 😅 I did observe many "zeros" in energy data. Let me try them in my parents home with the same driver. Thanks!

Samsung did report by email the Zigbee problem that you wrote.