Edge Driver or Device Handeler for a TUYA (Zemismart) Zigbee plug with energy mesurment capabilities

(Part II)

2022-08-30T16:17:35.998358025+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“main”,“state”:{“unit”:“W”,“value”:0.0}}
2022-08-30T16:17:36.017677358+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:36.026640358+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:36.037879358+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: SimpleMetering >, lqi: 0x6C, rssi: -73, body_length: 0x0006, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x08, ZCLCommandId: 0x01 >, < ReadAttributeResponse || < AttributeRecord || AttributeId: 0x0400, ZclStatus: UNSUPPORTED_ATTRIBUTE > > > >
2022-08-30T16:17:36.099454692+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-30T16:17:36.105673358+00:00 INFO Zigbee Switch Power Mc Executing ZclClusterAttributeValueHandler: cluster: OnOff, attribute: OnOff
2022-08-30T16:17:36.113134692+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> emitting event: {“attribute_id”:“signalMetrics”,“capability_id”:“legendabsolute60149.signalMetrics”,“component_id”:“main”,“state”:{“value”:“LQI: 104 … RSSI: -74 dBm”},“visibility”:{“displayed”:false}}
2022-08-30T16:17:36.133476025+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“on”}}
2022-08-30T16:17:36.158185025+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:36.164871692+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:36.174385692+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: SimpleMetering >, lqi: 0x68, rssi: -74, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x09, ZCLCommandId: 0x01 >, < ReadAttributeResponse || < AttributeRecord || AttributeId: 0x0000, ZclStatus: SUCCESS, DataType: Uint48, CurrentSummationDelivered: 0x000000000219 > > > >
2022-08-30T16:17:36.195855025+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:36.202347692+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:36.211226692+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x00, dest_addr: 0x0000, dest_endpoint: 0x00, profile: 0x0000, cluster: 0x8021 >, lqi: 0x68, rssi: -74, body_length: 0x0002, < ZDOMessageBody || < ZDOHeader || seqno: 0x67 >, < BindRequestResponse || status: 0x00 > > >
2022-08-30T16:17:36.234113358+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-30T16:17:36.240379692+00:00 INFO Zigbee Switch Power Mc Executing ZclClusterAttributeValueHandler: cluster: SimpleMetering, attribute: CurrentSummationDelivered
2022-08-30T16:17:36.254183692+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> emitting event: {“attribute_id”:“energy”,“capability_id”:“energyMeter”,“component_id”:“main”,“state”:{“unit”:“kWh”,“value”:537.0}}
2022-08-30T16:17:36.274553692+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:36.283444692+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:36.292573025+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: ElectricalMeasurement >, lqi: 0x68, rssi: -74, body_length: 0x0004, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x0A, ZCLCommandId: 0x07 >, < ConfigureReportingResponse || ZclStatus: SUCCESS > > >
2022-08-30T16:17:36.339045692+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:36.346630025+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:36.362848358+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x00, dest_addr: 0x0000, dest_endpoint: 0x00, profile: 0x0000, cluster: 0x8021 >, lqi: 0x68, rssi: -74, body_length: 0x0002, < ZDOMessageBody || < ZDOHeader || seqno: 0x68 >, < BindRequestResponse || status: 0x00 > > >
2022-08-30T16:17:36.465709692+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:36.472524358+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:36.482145358+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x68, rssi: -74, body_length: 0x0004, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x0B, ZCLCommandId: 0x07 >, < ConfigureReportingResponse || ZclStatus: SUCCESS > > >
2022-08-30T16:17:36.503315692+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:36.509500025+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:36.519627358+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x00, dest_addr: 0x0000, dest_endpoint: 0x00, profile: 0x0000, cluster: 0x8021 >, lqi: 0x68, rssi: -74, body_length: 0x0002, < ZDOMessageBody || < ZDOHeader || seqno: 0x69 >, < BindRequestResponse || status: 0x00 > > >
2022-08-30T16:17:36.541873025+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:36.550430358+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:36.561379692+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: SimpleMetering >, lqi: 0x68, rssi: -74, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x0C, ZCLCommandId: 0x07 >, < ConfigureReportingResponse || < ConfigureReportingResponseRecord || ZclStatus: UNSUPPORTED_ATTRIBUTE, direction: 0x00, attr_id: 0x0400 > > > >
2022-08-30T16:17:36.582658692+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:36.588991692+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:36.599475692+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: SimpleMetering >, lqi: 0x68, rssi: -74, body_length: 0x0004, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x0D, ZCLCommandId: 0x07 >, < ConfigureReportingResponse || ZclStatus: SUCCESS > > >
2022-08-30T16:17:36.621418358+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:36.627837358+00:00 TRACE Zigbee Switch Power Mc Received event with handler device_lifecycle
2022-08-30T16:17:36.643761692+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received lifecycle event: infoChanged
2022-08-30T16:17:36.655766358+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:36.663797358+00:00 TRACE Zigbee Switch Power Mc Found DeviceLifecycleDispatcher handler in Zigbee_Switch
2022-08-30T16:17:36.669771358+00:00 PRINT Zigbee Switch Power Mc device.preferences[infoChanged]= Plug
2022-08-30T16:17:36.677297025+00:00 PRINT Zigbee Switch Power Mc << Preference changed: name, old, new >> changeProfileEner nil Plug
2022-08-30T16:17:36.691828358+00:00 PRINT Zigbee Switch Power Mc device.preferences[infoChanged]= 10
2022-08-30T16:17:36.699611025+00:00 PRINT Zigbee Switch Power Mc << Preference changed: name, old, new >> offTime nil 10
2022-08-30T16:17:36.705040025+00:00 PRINT Zigbee Switch Power Mc device.preferences[infoChanged]= 10.0
2022-08-30T16:17:36.711326025+00:00 PRINT Zigbee Switch Power Mc << Preference changed: name, old, new >> randomMax nil 10.0
2022-08-30T16:17:36.717716025+00:00 PRINT Zigbee Switch Power Mc device.preferences[infoChanged]= 1.0
2022-08-30T16:17:36.724543025+00:00 PRINT Zigbee Switch Power Mc << Preference changed: name, old, new >> randomMin nil 1.0
2022-08-30T16:17:36.730455358+00:00 PRINT Zigbee Switch Power Mc device.preferences[infoChanged]= No
2022-08-30T16:17:36.735895692+00:00 PRINT Zigbee Switch Power Mc << Preference changed: name, old, new >> signalMetricsVisibles nil No
2022-08-30T16:17:36.741924025+00:00 PRINT Zigbee Switch Power Mc device.preferences[infoChanged]= 0.0
2022-08-30T16:17:36.748256692+00:00 PRINT Zigbee Switch Power Mc << Preference changed: name, old, new >> groupAdd nil 0.0
2022-08-30T16:17:36.759980025+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x5E16, dest_endpoint: 0x01, profile: 0x0104, cluster: Groups >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x01, seqno: 0x00, ZCLCommandId: 0x02 >, < GetGroupMembership || group_list_length: 0x00 > > >
2022-08-30T16:17:36.803414358+00:00 PRINT Zigbee Switch Power Mc device.preferences[infoChanged]= 0
2022-08-30T16:17:36.811681025+00:00 PRINT Zigbee Switch Power Mc << Preference changed: name, old, new >> localTimeOffset nil 0
2022-08-30T16:17:36.817663358+00:00 PRINT Zigbee Switch Power Mc device.preferences[infoChanged]=
2022-08-30T16:17:36.828077358+00:00 PRINT Zigbee Switch Power Mc << Preference changed: name, old, new >> version nil
2022-08-30T16:17:36.834296692+00:00 PRINT Zigbee Switch Power Mc device.preferences[infoChanged]= 10
2022-08-30T16:17:36.849302358+00:00 PRINT Zigbee Switch Power Mc << Preference changed: name, old, new >> onTime nil 10
2022-08-30T16:17:36.856965692+00:00 PRINT Zigbee Switch Power Mc device.preferences[infoChanged]= 255
2022-08-30T16:17:36.863316025+00:00 PRINT Zigbee Switch Power Mc << Preference changed: name, old, new >> restoreState nil 255
2022-08-30T16:17:36.869591692+00:00 PRINT Zigbee Switch Power Mc <<< Write restore state >>>
2022-08-30T16:17:36.878655358+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x5E16, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x00, seqno: 0x00, ZCLCommandId: 0x02 >, < WriteAttribute || < AttributeRecord || attr_id: 0x4003, DataType: Enum8, data: 0xFF > > > >
2022-08-30T16:17:36.904232358+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x5E16, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x00, seqno: 0x00, ZCLCommandId: 0x02 >, < WriteAttribute || < AttributeRecord || attr_id: 0x8002, DataType: Enum8, data: 0x02 > > > >
2022-08-30T16:17:36.922241358+00:00 PRINT Zigbee Switch Power Mc device.preferences[infoChanged]= 1.0
2022-08-30T16:17:36.928273358+00:00 PRINT Zigbee Switch Power Mc << Preference changed: name, old, new >> groupRemove nil 1.0
2022-08-30T16:17:36.936904358+00:00 PRINT Zigbee Switch Power Mc Remove Groups >>>>>>>>>>>>>>>>>
2022-08-30T16:17:36.954491358+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x5E16, dest_endpoint: 0x01, profile: 0x0104, cluster: Groups >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x01, seqno: 0x00, ZCLCommandId: 0x03 >, < RemoveGroup || group_id: 0x0001 > > >
2022-08-30T16:17:36.981732358+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x5E16, dest_endpoint: 0x01, profile: 0x0104, cluster: Groups >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x01, seqno: 0x00, ZCLCommandId: 0x02 >, < GetGroupMembership || group_list_length: 0x00 > > >
2022-08-30T16:17:37.012056025+00:00 PRINT Zigbee Switch Power Mc Device ID <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)>
2022-08-30T16:17:37.018896692+00:00 PRINT Zigbee Switch Power Mc Manufacturer >>> _TZ3000_9vo5icau Manufacturer_Len >>> 16
2022-08-30T16:17:37.028580025+00:00 PRINT Zigbee Switch Power Mc Model >>> TS011F Model_len >>> 6
2022-08-30T16:17:37.037145025+00:00 PRINT Zigbee Switch Power Mc Memory >>>>>>> 2323.0244140625 Kbytes
2022-08-30T16:17:37.050355358+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:37.074053025+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:37.091575358+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: Groups >, lqi: 0x68, rssi: -74, body_length: 0x0005, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x19, seqno: 0x0E, ZCLCommandId: 0x02 >, < GetGroupMembershipResponse || capacity: 0xFF, group_list_length: 0x00 > > >
2022-08-30T16:17:37.128850692+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-30T16:17:37.141362692+00:00 INFO Zigbee Switch Power Mc Executing ZclClusterCommandHandler: cluster: Groups, command: GetGroupMembership
2022-08-30T16:17:37.150829692+00:00 PRINT Zigbee Switch Power Mc group_list >>>>>> {}
2022-08-30T16:17:37.169198692+00:00 PRINT Zigbee Switch Power Mc All Deleted
2022-08-30T16:17:37.176766692+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> emitting event: {“attribute_id”:“getGroups”,“capability_id”:“legendabsolute60149.getGroups”,“component_id”:“main”,“state”:{“value”:“All Deleted”}}
2022-08-30T16:17:37.205196358+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:37.212621025+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:37.222626025+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x68, rssi: -74, body_length: 0x0006, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x0F, ZCLCommandId: 0x04 >, < WriteAttributeReponse || < WriteAttributeResponseRecord || ZclStatus: UNSUPPORTED_ATTRIBUTE, AttributeId: 0x4003 > > > >
2022-08-30T16:17:37.247679691+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:37.254272025+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:37.265157358+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x68, rssi: -74, body_length: 0x0004, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x10, ZCLCommandId: 0x04 >, < WriteAttributeReponse || ZclStatus: SUCCESS > > >
2022-08-30T16:17:37.287046358+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:37.293225358+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:37.304582358+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: Groups >, lqi: 0x68, rssi: -74, body_length: 0x0006, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x19, seqno: 0x11, ZCLCommandId: 0x03 >, < RemoveGroupResponse || status: 0x8B, group_id: 0x0001 > > >
2022-08-30T16:17:37.326539358+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled
2022-08-30T16:17:37.332687691+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-30T16:17:37.385369691+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: Groups >, lqi: 0x68, rssi: -74, body_length: 0x0005, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x19, seqno: 0x12, ZCLCommandId: 0x02 >, < GetGroupMembershipResponse || capacity: 0xFF, group_list_length: 0x00 > > >
2022-08-30T16:17:37.409334025+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-30T16:17:37.415374358+00:00 INFO Zigbee Switch Power Mc Executing ZclClusterCommandHandler: cluster: Groups, command: GetGroupMembership
2022-08-30T16:17:37.422126025+00:00 PRINT Zigbee Switch Power Mc group_list >>>>>> {}
2022-08-30T16:17:37.428088691+00:00 PRINT Zigbee Switch Power Mc All Deleted
2022-08-30T16:17:37.434815691+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> emitting event: {“attribute_id”:“getGroups”,“capability_id”:“legendabsolute60149.getGroups”,“component_id”:“main”,“state”:{“value”:“All Deleted”}}
2022-08-30T16:17:37.453837025+00:00 DEBUG Zigbee Switch Power Mc TS011F Plug device thread event handled

This device has something weird, in my opinion.

  • It has the cluster 0702 simplemetering that gives the following errors:
    function SimpleMetering:get_attribute_by_id(attr_id)
    attributes
    [0x0000] = “CurrentSummationDelivered”,
    [0x0400] = “InstantaneousDemand”, UNSUPPORTED_ATTRIBUTE
    [0x0301] = “Multiplier”, UNSUPPORTED_ATTRIBUTE
    [0x0302] = “Divider”, UNSUPPORTED_ATTRIBUTE

  • have the 0B04 ElectricalMeasurement cluster with the following errors:
    attributes:
    [0x050b] = “ActivePower”,
    [0x0603] = “ACCurrentDivisor”, UNSUPPORTED_ATTRIBUTE
    [0x0604] = “ACPowerMultiplier”, UNSUPPORTED_ATTRIBUTE

Then

  • Use 0x0B04, attribute [0x050b] = “ActivePower” for powerMeter events
  • Use 0x0702, attribute [0x0000] = “CurrentSummationDelivered”, for Energy events

These attributes respond as successfully configured and therefore should send reports with changes of power 1w and energy 1kw

2022-08-30T16:17:36.599475692+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: SimpleMetering >, lqi: 0x68, rssi: -74, body_length: 0x0004, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x0D, ZCLCommandId: 0x07 >, < ConfigureReportingResponse || ZclStatus: SUCCESS > > >

2022-08-30T16:17:36.292573025+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (TS011F Plug)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: ElectricalMeasurement >, lqi: 0x68, rssi: -74, body_length: 0x0004, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x0A, ZCLCommandId: 0x07 >, < ConfigureReportingResponse || ZclStatus: SUCCESS > > >

Then there is a very rare thing that an error appears in the middle of the configuration that refers to a different Zigbee Siren Mc driver. Do you have this driver installed on your Hub?

2022-08-30T16:17:33.885605026+00:00 ERROR Zigbee Siren Mc driver thread encountered error: [string “st/zigbee/device_management.lua”]:136: attempt to call a nil value (method ‘check_monitored_attributes’)

I don’t know what could happen, but the device isn’t right, I have one that should support the same cluster and attributes as this one and it doesn’t support any of them, it doesn’t measure energy or power. They are the problems of these cheap devices

Its just a virtual device that I tested with a routine.

The stranger thing is it works with online consumption information on a tuya app and hub.

After all thank you for analyse!

same here. On the SmartLife app the mettering occurs live, while with this Edge Driver it takes over 10 minutes to update.

@Dienzora @Noe_Bailly

It is possible that tuya uses its clusters E000 and E001 instead of the standard 0702 and 0B04.

I have made a modification for this manufacturer: _TZ3000_9vo5icau and model: TS011F to manually configure the reports with the supported attributes.

try to see if it works

┌─────────────┬──────────────────────────────────────┐
│ Name        │ Zigbee Switch Power Mc               │
│ Version     │ 2022-08-30T19:13:16.923824481        │
└─────────────┴──────────────────────────────────────┘

Thanks Mariano, but still the same here!

@Dienzora @Noe_Bailly

I have made for this device a reading of the power and energy attributes 2 seconds after turning on or off and then it will be executed every time the on-off cluster sends its report, every 5 minutes + 2 sec

Try to see if that works

┌─────────────┬──────────────────────────────────────┐
│ Name        │ Zigbee Switch Power Mc               │
│ Version     │ 2022-08-30T20:36:05.018764301        │
└─────────────┴──────────────────────────────────────┘

Hi, @Dienzora

I am Andres, a member of the Developer Support team.

I need to ask you a favor, I would need you to provide us access to your information so that the team can check on this. Here, there is a list of steps to follow to do that. Can you please do that?

  1. Go to the SmartThings Web (my.smartthings.com)
  2. Log in to your Samsung Account
  3. Select Menu (⋮) and choose Settings
  4. Toggle on Account Data Access
  5. Select the time period and confirm - In this step, please select “Until turned off”, once the team finishes, we’ll let you know so you can disable it again.

Didn’t work, still the same.

Did. Thanks

Hi @Dienzora

Please, Coud you send me a log when push on other with switch off?

This last change should work, it’s like a refresh for power and energy.

I may have made a mistake writing the code

here is it:

2022-08-31T00:00:15.205856423+00:00 TRACE Zigbee Switch Power Mc Received event with handler capability
2022-08-31T00:00:15.215175423+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> received command: {“args”:{},“capability”:“switch”,“command”:“on”,“component”:“main”,“positional_args”:{}}
2022-08-31T00:00:15.221010423+00:00 TRACE Zigbee Switch Power Mc Found CapabilityCommandDispatcher handler in Zigbee_Switch
2022-08-31T00:00:15.236780757+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T00:00:15.311631757+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-31T00:00:15.322538757+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x84, rssi: -67, body_length: 0x0005, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x47, ZCLCommandId: 0x0B >, < DefaultResponse || cmd: 0x01, ZclStatus: SUCCESS > > >
2022-08-31T00:00:15.344402090+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-31T00:00:15.350254757+00:00 INFO Zigbee Switch Power Mc Executing ZclGlobalCommandHandler: cluster: OnOff, command: DefaultResponse
2022-08-31T00:00:15.357344423+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“on”}}
2022-08-31T00:00:15.378559090+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T00:00:16.784236757+00:00 DEBUG Zigbee Contact Mc driver device thread event handled
2022-08-31T00:00:30.979907431+00:00 TRACE Zigbee Switch Power Mc Received event with handler capability
2022-08-31T00:00:30.989589764+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> received command: {“args”:{},“capability”:“switch”,“command”:“off”,“component”:“main”,“positional_args”:{}}
2022-08-31T00:00:30.996236097+00:00 TRACE Zigbee Switch Power Mc Found CapabilityCommandDispatcher handler in Zigbee_Switch
2022-08-31T00:00:31.049542764+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T00:00:31.150324764+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-31T00:00:31.161138764+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x7C, rssi: -69, body_length: 0x0005, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x48, ZCLCommandId: 0x0B >, < DefaultResponse || cmd: 0x00, ZclStatus: SUCCESS > > >
2022-08-31T00:00:31.194871431+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-31T00:00:31.200473431+00:00 INFO Zigbee Switch Power Mc Executing ZclGlobalCommandHandler: cluster: OnOff, command: DefaultResponse
2022-08-31T00:00:31.207089098+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“off”}}
2022-08-31T00:00:31.230704431+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled

Hi @Dienzora

Is this log with the last driver versión?

I think is not installed the last versión in your hub, i do not see the read attribute commands

It’s in the last version:

Hi @Dienzora,

Please One question, you can’t see the LQI and RSSI of the signal either?

It seems that the device is responding with a GlobalCommand instead of the on-off attribute and the default libraries emit the event instead of the function I wrote.

I’m going to make some modifications for this handler

@Dienzora

Try with this driver version

┌─────────────┬──────────────────────────────────────┐
│ Name        │ Zigbee Switch Power Mc               │
│ Version     │ 2022-08-31T10:50:52.164548444        │
└─────────────┴──────────────────────────────────────┘

Hi Mariano, about this question, I can see.

I’ll run a log on/off with this new version right now, then I’ll send you.

Thanks

Here is the log:

2022-08-31T20:26:27.444976623+00:00 TRACE Zigbee Switch Power Mc Received event with handler capability
2022-08-31T20:26:27.454294623+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> received command: {“args”:{},“capability”:“switch”,“command”:“off”,“component”:“main”,“positional_args”:{}}
2022-08-31T20:26:27.460990623+00:00 TRACE Zigbee Switch Power Mc Found CapabilityCommandDispatcher handler in Zigbee_Switch
2022-08-31T20:26:27.488177623+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T20:26:27.610542956+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-31T20:26:27.619463289+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x74, rssi: -71, body_length: 0x0005, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x2C, ZCLCommandId: 0x0B >, < DefaultResponse || cmd: 0x00, ZclStatus: SUCCESS > > >
2022-08-31T20:26:27.642265956+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-31T20:26:27.648602623+00:00 INFO Zigbee Switch Power Mc Executing ZclGlobalCommandHandler: cluster: OnOff, command: DefaultResponse
2022-08-31T20:26:27.655040623+00:00 PRINT Zigbee Switch Power Mc <<< GlobalCommand Handler >>>
2022-08-31T20:26:27.665586289+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“off”}}
2022-08-31T20:26:27.690270956+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> emitting event: {“attribute_id”:“signalMetrics”,“capability_id”:“legendabsolute60149.signalMetrics”,“component_id”:“main”,“state”:{“value”:“LQI: 116 … RSSI: -71 dBm”},“visibility”:{“displayed”:true}}
2022-08-31T20:26:27.717579289+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T20:26:27.725626289+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T20:26:29.380529956+00:00 ERROR Zigbee Siren Mc driver thread encountered error: [string “st/zigbee/device_management.lua”]:136: attempt to call a nil value (method ‘check_monitored_attributes’)
2022-08-31T20:26:29.742743290+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T20:26:29.800957290+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-31T20:26:29.821375290+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: ElectricalMeasurement >, lqi: 0x74, rssi: -71, body_length: 0x0009, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x2D, ZCLCommandId: 0x01 >, < ReadAttributeResponse || < AttributeRecord || AttributeId: 0x050B, ZclStatus: SUCCESS, DataType: Int16, ActivePower: 7 > > > >
2022-08-31T20:26:29.954099290+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-31T20:26:29.968001290+00:00 INFO Zigbee Switch Power Mc Executing ZclClusterAttributeValueHandler: cluster: ElectricalMeasurement, attribute: ActivePower
2022-08-31T20:26:29.995197290+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“main”,“state”:{“unit”:“W”,“value”:7.0}}
2022-08-31T20:26:30.185227623+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T20:26:30.273472290+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-31T20:26:30.301155956+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: SimpleMetering >, lqi: 0x74, rssi: -71, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x2E, ZCLCommandId: 0x01 >, < ReadAttributeResponse || < AttributeRecord || AttributeId: 0x0000, ZclStatus: SUCCESS, DataType: Uint48, CurrentSummationDelivered: 0x00000000021A > > > >
2022-08-31T20:26:30.493403956+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-31T20:26:30.597080956+00:00 INFO Zigbee Switch Power Mc Executing ZclClusterAttributeValueHandler: cluster: SimpleMetering, attribute: CurrentSummationDelivered
2022-08-31T20:26:30.617952956+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> emitting event: {“attribute_id”:“energy”,“capability_id”:“energyMeter”,“component_id”:“main”,“state”:{“unit”:“kWh”,“value”:538.0}}
2022-08-31T20:26:30.771174290+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T20:26:31.314235956+00:00 DEBUG ST Zigbee Button Mc driver device thread event handled
2022-08-31T20:26:32.556071290+00:00 DEBUG Zigbee Motion Sensor Frient driver device thread event handled
2022-08-31T20:26:35.414299290+00:00 DEBUG Zigbee Contact Mc driver device thread event handled
2022-08-31T20:26:41.704218291+00:00 PRINT Virtual Calendar Mc <<<< sun_rise_Offset: 667 Min
2022-08-31T20:26:41.710533624+00:00 PRINT Virtual Calendar Mc <<<< sun_set_offset: -30 Min
2022-08-31T20:26:41.717411958+00:00 INFO Virtual Calendar Mc <Device: cf2df8dd-6392-431b-abe4-c3748087ec2a (My Calendar)> emitting event: {“attribute_id”:“sunRiseOffset”,“capability_id”:“legendabsolute60149.sunRiseOffset1”,“component_id”:“main”,“state”:{“value”:667},“visibility”:{“displayed”:false}}
2022-08-31T20:26:41.748479291+00:00 INFO Virtual Calendar Mc <Device: cf2df8dd-6392-431b-abe4-c3748087ec2a (My Calendar)> emitting event: {“attribute_id”:“sunSetOffset”,“capability_id”:“legendabsolute60149.sunSetOffset1”,“component_id”:“main”,“state”:{“value”:-30},“visibility”:{“displayed”:false}}
2022-08-31T20:26:41.776925958+00:00 INFO Virtual Calendar Mc <Device: cf2df8dd-6392-431b-abe4-c3748087ec2a (My Calendar)> emitting event: {“attribute_id”:“localDate”,“capability_id”:“legendabsolute60149.localDate”,“component_id”:“main”,“state”:{“value”:“2022/08/31 17:26”},“visibility”:{“displayed”:false}}
2022-08-31T20:26:41.804283291+00:00 INFO Virtual Calendar Mc <Device: cf2df8dd-6392-431b-abe4-c3748087ec2a (My Calendar)> emitting event: {“attribute_id”:“localHour”,“capability_id”:“legendabsolute60149.localHour”,“component_id”:“main”,“state”:{“value”:1726},“visibility”:{“displayed”:false}}
2022-08-31T20:26:41.830386291+00:00 INFO Virtual Calendar Mc <Device: cf2df8dd-6392-431b-abe4-c3748087ec2a (My Calendar)> emitting event: {“attribute_id”:“localHourTwo”,“capability_id”:“legendabsolute60149.localHourTwo”,“component_id”:“main”,“state”:{“value”:1726},“visibility”:{“displayed”:false}}
2022-08-31T20:26:41.852659624+00:00 DEBUG Virtual Calendar Mc My Calendar device thread event handled
2022-08-31T20:26:43.536348296+00:00 DEBUG Zigbee Switch Power Mc driver device thread event handled
2022-08-31T20:26:46.444702748+00:00 TRACE Zigbee Motion Sensor Frient Received event with handler zigbee
2022-08-31T20:26:46.456255521+00:00 INFO Zigbee Motion Sensor Frient <ZigbeeDevice: 44cfb8b9-9307-44c9-af7e-6b86025d5938 [0xD8AA] (Sensor do Banheiro)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xD8AA, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: IASZone >, lqi: 0x74, rssi: -71, body_length: 0x0009, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x0C, ZCLCommandId: 0x00 >, < ZoneStatusChangeNotification || zone_status: 0x0000, extended_status: 0x00, zone_id: 0x01, delay: 0x0000 > > >
2022-08-31T20:26:46.480210826+00:00 TRACE Zigbee Motion Sensor Frient Found ZigbeeMessageDispatcher handler in zigbee-motion
2022-08-31T20:26:46.486533653+00:00 INFO Zigbee Motion Sensor Frient Executing ZclClusterCommandHandler: cluster: IASZone, command: ZoneEnrollResponse
2022-08-31T20:26:46.493772270+00:00 INFO Zigbee Motion Sensor Frient <ZigbeeDevice: 44cfb8b9-9307-44c9-af7e-6b86025d5938 [0xD8AA] (Sensor do Banheiro)> emitting event: {“attribute_id”:“motion”,“capability_id”:“motionSensor”,“component_id”:“main”,“state”:{“value”:“inactive”}}
2022-08-31T20:26:46.546603339+00:00 DEBUG Zigbee Motion Sensor Frient Sensor do Banheiro device thread event handled
2022-08-31T20:26:52.739466225+00:00 TRACE Zigbee Switch Power Mc Received event with handler capability
2022-08-31T20:26:52.748572776+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> received command: {“args”:{},“capability”:“switch”,“command”:“on”,“component”:“main”,“positional_args”:{}}
2022-08-31T20:26:52.754608459+00:00 TRACE Zigbee Switch Power Mc Found CapabilityCommandDispatcher handler in Zigbee_Switch
2022-08-31T20:26:52.775674320+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T20:26:52.851589592+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-31T20:26:52.859711651+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x74, rssi: -71, body_length: 0x0005, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x2F, ZCLCommandId: 0x0B >, < DefaultResponse || cmd: 0x01, ZclStatus: SUCCESS > > >
2022-08-31T20:26:52.880832873+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-31T20:26:52.886131521+00:00 INFO Zigbee Switch Power Mc Executing ZclGlobalCommandHandler: cluster: OnOff, command: DefaultResponse
2022-08-31T20:26:52.891962769+00:00 PRINT Zigbee Switch Power Mc <<< GlobalCommand Handler >>>
2022-08-31T20:26:52.898437671+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“on”}}
2022-08-31T20:26:52.923725642+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> emitting event: {“attribute_id”:“signalMetrics”,“capability_id”:“legendabsolute60149.signalMetrics”,“component_id”:“main”,“state”:{“value”:“LQI: 116 … RSSI: -71 dBm”},“visibility”:{“displayed”:true}}
2022-08-31T20:26:52.955192701+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T20:26:52.966411975+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T20:26:55.265809100+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T20:26:55.988420558+00:00 TRACE Zigbee Motion Sensor Frient Received event with handler zigbee
2022-08-31T20:26:55.999880952+00:00 INFO Zigbee Motion Sensor Frient <ZigbeeDevice: 44cfb8b9-9307-44c9-af7e-6b86025d5938 [0xD8AA] (Sensor do Banheiro)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xD8AA, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: IASZone >, lqi: 0x7C, rssi: -69, body_length: 0x0009, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x0D, ZCLCommandId: 0x00 >, < ZoneStatusChangeNotification || zone_status: 0x0001, extended_status: 0x00, zone_id: 0x01, delay: 0x0000 > > >
2022-08-31T20:26:56.046409205+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-31T20:26:56.074127724+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: ElectricalMeasurement >, lqi: 0x7C, rssi: -69, body_length: 0x0009, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x30, ZCLCommandId: 0x01 >, < ReadAttributeResponse || < AttributeRecord || AttributeId: 0x050B, ZclStatus: SUCCESS, DataType: Int16, ActivePower: 0 > > > >
2022-08-31T20:26:56.090434207+00:00 TRACE Zigbee Motion Sensor Frient Found ZigbeeMessageDispatcher handler in zigbee-motion
2022-08-31T20:26:56.098877093+00:00 INFO Zigbee Motion Sensor Frient Executing ZclClusterCommandHandler: cluster: IASZone, command: ZoneEnrollResponse
2022-08-31T20:26:56.117804885+00:00 INFO Zigbee Motion Sensor Frient <ZigbeeDevice: 44cfb8b9-9307-44c9-af7e-6b86025d5938 [0xD8AA] (Sensor do Banheiro)> emitting event: {“attribute_id”:“motion”,“capability_id”:“motionSensor”,“component_id”:“main”,“state”:{“value”:“active”}}
2022-08-31T20:26:56.250223728+00:00 DEBUG Zigbee Motion Sensor Frient Sensor do Banheiro device thread event handled
2022-08-31T20:26:56.289318266+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-31T20:26:56.305930901+00:00 INFO Zigbee Switch Power Mc Executing ZclClusterAttributeValueHandler: cluster: ElectricalMeasurement, attribute: ActivePower
2022-08-31T20:26:56.320204368+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“main”,“state”:{“unit”:“W”,“value”:0.0}}
2022-08-31T20:26:56.368853013+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T20:26:56.423671075+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-31T20:26:56.432681912+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x5E16, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: SimpleMetering >, lqi: 0x7C, rssi: -69, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x31, ZCLCommandId: 0x01 >, < ReadAttributeResponse || < AttributeRecord || AttributeId: 0x0000, ZclStatus: SUCCESS, DataType: Uint48, CurrentSummationDelivered: 0x00000000021A > > > >
2022-08-31T20:26:56.470245351+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-31T20:26:56.484620201+00:00 INFO Zigbee Switch Power Mc Executing ZclClusterAttributeValueHandler: cluster: SimpleMetering, attribute: CurrentSummationDelivered
2022-08-31T20:26:56.492621867+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: a3288c78-4d4d-4519-9e4f-c7d33dac257e [0x5E16] (Base de Carregamento)> emitting event: {“attribute_id”:“energy”,“capability_id”:“energyMeter”,“component_id”:“main”,“state”:{“unit”:“kWh”,“value”:538.0}}
2022-08-31T20:26:56.531530645+00:00 DEBUG Zigbee Switch Power Mc Base de Carregamento device thread event handled
2022-08-31T20:26:59.391238118+00:00 ERROR Zigbee Siren Mc driver thread encountered error: [string “st/zigbee/device_management.lua”]:136: attempt to call a nil value (method ‘check_monitored_attributes’)
2022-08-31T20:27:01.324219793+00:00 DEBUG ST Zigbee Button Mc driver device thread event handled
2022-08-31T20:27:02.562222819+00:00 DEBUG Zigbee Motion Sensor Frient driver device thread event handled
2022-08-31T20:27:05.421284303+00:00 DEBUG Zigbee Contact Mc driver device thread event handled
2022-08-31T20:27:07.632127840+00:00 TRACE Zigbee Motion Sensor Frient Received event with handler zigbee
2022-08-31T20:27:07.641733641+00:00 INFO Zigbee Motion Sensor Frient <ZigbeeDevice: 44cfb8b9-9307-44c9-af7e-6b86025d5938 [0xD8AA] (Sensor do Banheiro)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xD8AA, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: IASZone >, lqi: 0x78, rssi: -70, body_length: 0x0009, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x0E, ZCLCommandId: 0x00 >, < ZoneStatusChangeNotification || zone_status: 0x0000, extended_status: 0x00, zone_id: 0x01, delay: 0x0000 > > >
2022-08-31T20:27:07.659119329+00:00 TRACE Zigbee Motion Sensor Frient Found ZigbeeMessageDispatcher handler in zigbee-motion
2022-08-31T20:27:07.664522363+00:00 INFO Zigbee Motion Sensor Frient Executing ZclClusterCommandHandler: cluster: IASZone, command: ZoneEnrollResponse
2022-08-31T20:27:07.671841020+00:00 INFO Zigbee Motion Sensor Frient <ZigbeeDevice: 44cfb8b9-9307-44c9-af7e-6b86025d5938 [0xD8AA] (Sensor do Banheiro)> emitting event: {“attribute_id”:“motion”,“capability_id”:“motionSensor”,“component_id”:“main”,“state”:{“value”:“inactive”}}
2022-08-31T20:27:07.718302239+00:00 DEBUG Zigbee Motion Sensor Frient Sensor do Banheiro device thread event handled
2022-08-31T20:27:13.539380993+00:00 INFO Zigbee Switch Power Mc Doing health check read for [9EBE]:0006:0000
2022-08-31T20:27:13.555637117+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: 79f92b74-4c56-4adc-a798-1146bf6b10d8 [0x9EBE] (Geladeira)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x9EBE, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x00, seqno: 0x00, ZCLCommandId: 0x00 >, < ReadAttribute || AttributeId: 0x0000 > > >
2022-08-31T20:27:13.584668292+00:00 DEBUG Zigbee Switch Power Mc driver device thread event handled
2022-08-31T20:27:13.701121156+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-31T20:27:13.711535027+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: 79f92b74-4c56-4adc-a798-1146bf6b10d8 [0x9EBE] (Geladeira)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x9EBE, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x74, rssi: -71, body_length: 0x0008, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x32, ZCLCommandId: 0x01 >, < ReadAttributeResponse || < AttributeRecord || AttributeId: 0x0000, ZclStatus: SUCCESS, DataType: Boolean, OnOff: true > > > >
2022-08-31T20:27:13.734294067+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-31T20:27:13.740299402+00:00 INFO Zigbee Switch Power Mc Executing ZclClusterAttributeValueHandler: cluster: OnOff, attribute: OnOff
2022-08-31T20:27:13.749095798+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: 79f92b74-4c56-4adc-a798-1146bf6b10d8 [0x9EBE] (Geladeira)> emitting event: {“attribute_id”:“signalMetrics”,“capability_id”:“legendabsolute60149.signalMetrics”,“component_id”:“main”,“state”:{“value”:“LQI: 116 … RSSI: -71 dBm”},“visibility”:{“displayed”:true}}
2022-08-31T20:27:13.770120638+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: 79f92b74-4c56-4adc-a798-1146bf6b10d8 [0x9EBE] (Geladeira)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“on”}}
2022-08-31T20:27:13.799135805+00:00 DEBUG Zigbee Switch Power Mc Geladeira device thread event handled
2022-08-31T20:27:13.807933535+00:00 DEBUG Zigbee Switch Power Mc Geladeira device thread event handled
2022-08-31T20:27:14.104672497+00:00 TRACE Zigbee Motion Sensor Frient Received event with handler zigbee
2022-08-31T20:27:14.114106212+00:00 INFO Zigbee Motion Sensor Frient <ZigbeeDevice: 44cfb8b9-9307-44c9-af7e-6b86025d5938 [0xD8AA] (Sensor do Banheiro)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xD8AA, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: IASZone >, lqi: 0x74, rssi: -71, body_length: 0x0009, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x09, seqno: 0x0F, ZCLCommandId: 0x00 >, < ZoneStatusChangeNotification || zone_status: 0x0001, extended_status: 0x00, zone_id: 0x01, delay: 0x0000 > > >
2022-08-31T20:27:14.135583278+00:00 TRACE Zigbee Motion Sensor Frient Found ZigbeeMessageDispatcher handler in zigbee-motion
2022-08-31T20:27:14.144029499+00:00 INFO Zigbee Motion Sensor Frient Executing ZclClusterCommandHandler: cluster: IASZone, command: ZoneEnrollResponse
2022-08-31T20:27:14.153891428+00:00 INFO Zigbee Motion Sensor Frient <ZigbeeDevice: 44cfb8b9-9307-44c9-af7e-6b86025d5938 [0xD8AA] (Sensor do Banheiro)> emitting event: {“attribute_id”:“motion”,“capability_id”:“motionSensor”,“component_id”:“main”,“state”:{“value”:“active”}}
2022-08-31T20:27:14.250827872+00:00 DEBUG Zigbee Motion Sensor Frient Sensor do Banheiro device thread event handled
2022-08-31T20:27:15.857143296+00:00 DEBUG Zigbee Switch Power Mc Geladeira device thread event handled
2022-08-31T20:27:15.940471272+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-31T20:27:15.971090908+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: 79f92b74-4c56-4adc-a798-1146bf6b10d8 [0x9EBE] (Geladeira)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x9EBE, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: ElectricalMeasurement >, lqi: 0x6C, rssi: -73, body_length: 0x0009, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x33, ZCLCommandId: 0x01 >, < ReadAttributeResponse || < AttributeRecord || AttributeId: 0x050B, ZclStatus: SUCCESS, DataType: Int16, ActivePower: 94 > > > >
2022-08-31T20:27:16.012281159+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-31T20:27:16.026779738+00:00 INFO Zigbee Switch Power Mc Executing ZclClusterAttributeValueHandler: cluster: ElectricalMeasurement, attribute: ActivePower
2022-08-31T20:27:16.038313502+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: 79f92b74-4c56-4adc-a798-1146bf6b10d8 [0x9EBE] (Geladeira)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“main”,“state”:{“unit”:“W”,“value”:94.0}}
2022-08-31T20:27:16.077190264+00:00 DEBUG Zigbee Switch Power Mc Geladeira device thread event handled
2022-08-31T20:27:16.097563446+00:00 TRACE Zigbee Switch Power Mc Received event with handler zigbee
2022-08-31T20:27:16.134519581+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: 79f92b74-4c56-4adc-a798-1146bf6b10d8 [0x9EBE] (Geladeira)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x9EBE, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: SimpleMetering >, lqi: 0x6C, rssi: -73, body_length: 0x000D, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x34, ZCLCommandId: 0x01 >, < ReadAttributeResponse || < AttributeRecord || AttributeId: 0x0000, ZclStatus: SUCCESS, DataType: Uint48, CurrentSummationDelivered: 0x000000003866 > > > >
2022-08-31T20:27:16.176174065+00:00 TRACE Zigbee Switch Power Mc Found ZigbeeMessageDispatcher handler in Zigbee_Switch
2022-08-31T20:27:16.183651802+00:00 INFO Zigbee Switch Power Mc Executing ZclClusterAttributeValueHandler: cluster: SimpleMetering, attribute: CurrentSummationDelivered
2022-08-31T20:27:16.197409677+00:00 INFO Zigbee Switch Power Mc <ZigbeeDevice: 79f92b74-4c56-4adc-a798-1146bf6b10d8 [0x9EBE] (Geladeira)> emitting event: {“attribute_id”:“energy”,“capability_id”:“energyMeter”,“component_id”:“main”,“state”:{“unit”:“kWh”,“value”:14438.0}}
2022-08-31T20:27:16.241113518+00:00 DEBUG Zigbee Switch Power Mc Geladeira device thread event handled
2022-08-31T20:27:29.391699863+00:00 ERROR Zigbee Siren Mc driver thread encountered error: [string “st/zigbee/device_management.lua”]:136: attempt to call a nil value (method ‘check_monitored_attributes’)

In this version, I saw two behaviors:

Fisrt (When I turn it off)

It refresh with the last watts consumption info.

Second (When I turn it on)

It refresh to zero, after “save” the last one.

Please, Could you send a log with this driver only.
The last log is for all drivers and is very hard to follow