[Edge] Driver for Aqara Switches and Remotes

Can you elaborate, please?
What do you mean by “without long explanation about cli stuff”?

I as developer want to see the errors from users of my driver to fix issues . without extra steps from users side.
CLI thing is way too complicated for ordinary people.

2 Likes

deviceLabel: WS-USC03 Wall Switch (Neutral, Single Rocker)
model: lumi.switch.b1naus0
Can you add this fingerprint, This is my last Aqara switch not on an edge driver, all the rest of my Aqara switches are the no neutral versions and are working great.

Aqara US Wall Switch (With Neutral, Single Rocker) (WS-USC03) Zigbee compatibility added

1 Like

Thanks, just got it setup.

1 Like

I finally got time to play with the logs. I did a opening and closing of the curtain before i set the setting attribute.

Here you go

connecting... connected
2022-07-26T03:37:12.213745937+00:00 DEBUG Xiaomi Blinds  driver device thread event handled
2022-07-26T03:37:19.924073605+00:00 TRACE Xiaomi Blinds  Received event with handler capability
2022-07-26T03:37:19.932670605+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> received command: {"args":{},"capability":"windowShade","command":"open","component":"main","positional_args":{}}
2022-07-26T03:37:19.943515938+00:00 TRACE Xiaomi Blinds  Found CapabilityCommandDispatcher handler in blinds
2022-07-26T03:37:19.949118605+00:00 INFO Xiaomi Blinds  window shade level is already set to    100
2022-07-26T03:37:19.958396271+00:00 DEBUG Xiaomi Blinds  Aqara Curtain B1 device thread event handled
2022-07-26T03:37:24.749432938+00:00 TRACE Xiaomi Blinds  Received event with handler capability
2022-07-26T03:37:24.758034605+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> received command: {"args":{},"capability":"windowShade","command":"close","component":"main","positional_args":{}}
2022-07-26T03:37:24.763971605+00:00 TRACE Xiaomi Blinds  Found CapabilityCommandDispatcher handler in blinds
2022-07-26T03:37:24.772500938+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0xD9B9, dest_endpoint: 0x01, profile: 0x0104, cluster: AnalogOutput >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x00, seqno: 0x00, ZCLCommandId: 0x02 >, < WriteAttribute || < AttributeRecord || attr_id: 0x0055, DataType: SinglePrecisionFloat, data: (1 + -1.000000) * 2^(-1) > > > >
2022-07-26T03:37:24.785317938+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> emitting event: {"attribute_id":"windowShade","capability_id":"windowShade","component_id":"main","state":{"value":"closing"}}
2022-07-26T03:37:24.816333272+00:00 DEBUG Xiaomi Blinds  Aqara Curtain B1 device thread event handled
2022-07-26T03:37:25.093871938+00:00 TRACE Xiaomi Blinds  Received event with handler zigbee
2022-07-26T03:37:25.104157605+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xD9B9, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: AnalogOutput >, lqi: 0xC4, rssi: -51, body_length: 0x0004, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x63, ZCLCommandId: 0x04 >, < WriteAttributeReponse || ZclStatus: SUCCESS > > >
2022-07-26T03:37:25.123559605+00:00 DEBUG Xiaomi Blinds  Aqara Curtain B1 device thread event handled
2022-07-26T03:37:25.960453605+00:00 TRACE Xiaomi Blinds  Received event with handler zigbee
2022-07-26T03:37:25.969835605+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xD9B9, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: AnalogOutput >, lqi: 0xC8, rssi: -50, body_length: 0x0011, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x8A, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0055, DataType: SinglePrecisionFloat, PresentValue: 0 >, < AttributeRecord || AttributeId: 0xF000, DataType: Uint32, Uint32: 0x00020000 > > > >
2022-07-26T03:37:25.988555272+00:00 TRACE Xiaomi Blinds  Found ZigbeeMessageDispatcher handler in blinds
2022-07-26T03:37:25.993852605+00:00 INFO Xiaomi Blinds  Executing ZclClusterAttributeValueHandler: cluster: AnalogOutput, attribute: PresentValue
2022-07-26T03:37:26.001081939+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0xD9B9, dest_endpoint: 0x01, profile: 0x0104, cluster: AnalogOutput >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x00, seqno: 0x00, ZCLCommandId: 0x00 >, < ReadAttribute || AttributeId: 0x0055 > > >
2022-07-26T03:37:26.013426939+00:00 DEBUG Xiaomi Blinds  Aqara Curtain B1 device thread event handled
2022-07-26T03:37:26.480400939+00:00 TRACE Xiaomi Blinds  Received event with handler zigbee
2022-07-26T03:37:26.490807605+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xD9B9, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: AnalogOutput >, lqi: 0xC4, rssi: -51, body_length: 0x000B, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x64, ZCLCommandId: 0x01 >, < ReadAttributeResponse || < AttributeRecord || AttributeId: 0x0055, ZclStatus: SUCCESS, DataType: SinglePrecisionFloat, PresentValue: (1 + 0.546875) * 2^(6) > > > >
2022-07-26T03:37:26.508930939+00:00 TRACE Xiaomi Blinds  Found ZigbeeMessageDispatcher handler in blinds
2022-07-26T03:37:26.514220939+00:00 INFO Xiaomi Blinds  Executing ZclClusterAttributeValueHandler: cluster: AnalogOutput, attribute: PresentValue
2022-07-26T03:37:26.520551272+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> emitting event: {"attribute_id":"shadeLevel","capability_id":"windowShadeLevel","component_id":"main","state":{"value":100}}
2022-07-26T03:37:26.539830939+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> emitting event: {"attribute_id":"windowShade","capability_id":"windowShade","component_id":"main","state":{"value":"open"}}
2022-07-26T03:37:26.562228272+00:00 DEBUG Xiaomi Blinds  Aqara Curtain B1 device thread event handled
2022-07-26T03:37:38.353871940+00:00 TRACE Xiaomi Blinds  Received event with handler zigbee
2022-07-26T03:37:38.411152273+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xD9B9, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: AnalogOutput >, lqi: 0xC4, rssi: -51, body_length: 0x0011, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x98, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0055, DataType: SinglePrecisionFloat, PresentValue: (1 + 0.000000) * 2^(1) >, < AttributeRecord || AttributeId: 0xF000, DataType: Uint32, Uint32: 0x00020000 > > > >
2022-07-26T03:37:38.526783273+00:00 TRACE Xiaomi Blinds  Found ZigbeeMessageDispatcher handler in blinds
2022-07-26T03:37:38.565356273+00:00 INFO Xiaomi Blinds  Executing ZclClusterAttributeValueHandler: cluster: AnalogOutput, attribute: PresentValue
2022-07-26T03:37:38.573518273+00:00 INFO Xiaomi Blinds  moving
2022-07-26T03:37:38.608431273+00:00 DEBUG Xiaomi Blinds  Aqara Curtain B1 device thread event handled
2022-07-26T03:37:38.663832940+00:00 TRACE Xiaomi Blinds  Received event with handler zigbee
2022-07-26T03:37:38.673534273+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xD9B9, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: AnalogOutput >, lqi: 0xC4, rssi: -51, body_length: 0x0011, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x99, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0055, DataType: SinglePrecisionFloat, PresentValue: 0 >, < AttributeRecord || AttributeId: 0xF000, DataType: Uint32, Uint32: 0x00020000 > > > >
2022-07-26T03:37:38.883845940+00:00 TRACE Xiaomi Blinds  Found ZigbeeMessageDispatcher handler in blinds
2022-07-26T03:37:38.893556273+00:00 INFO Xiaomi Blinds  Executing ZclClusterAttributeValueHandler: cluster: AnalogOutput, attribute: PresentValue
2022-07-26T03:37:38.935978607+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0xD9B9, dest_endpoint: 0x01, profile: 0x0104, cluster: AnalogOutput >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x00, seqno: 0x00, ZCLCommandId: 0x00 >, < ReadAttribute || AttributeId: 0x0055 > > >
2022-07-26T03:37:38.958816273+00:00 DEBUG Xiaomi Blinds  Aqara Curtain B1 device thread event handled
2022-07-26T03:37:39.159474273+00:00 TRACE Xiaomi Blinds  Received event with handler zigbee
2022-07-26T03:37:39.171743273+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xD9B9, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: AnalogOutput >, lqi: 0xC4, rssi: -51, body_length: 0x000B, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x65, ZCLCommandId: 0x01 >, < ReadAttributeResponse || < AttributeRecord || AttributeId: 0x0055, ZclStatus: SUCCESS, DataType: SinglePrecisionFloat, PresentValue: 0 > > > >
2022-07-26T03:37:39.207172273+00:00 TRACE Xiaomi Blinds  Found ZigbeeMessageDispatcher handler in blinds
2022-07-26T03:37:39.212979607+00:00 INFO Xiaomi Blinds  Executing ZclClusterAttributeValueHandler: cluster: AnalogOutput, attribute: PresentValue
2022-07-26T03:37:39.224510274+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> emitting event: {"attribute_id":"shadeLevel","capability_id":"windowShadeLevel","component_id":"main","state":{"value":0}}
2022-07-26T03:37:39.269870274+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> emitting event: {"attribute_id":"windowShade","capability_id":"windowShade","component_id":"main","state":{"value":"closed"}}
2022-07-26T03:37:39.324218940+00:00 DEBUG Xiaomi Blinds  Aqara Curtain B1 device thread event handled
2022-07-26T03:37:42.216865607+00:00 DEBUG Xiaomi Blinds  driver device thread event handled
2022-07-26T03:37:49.614430941+00:00 TRACE Xiaomi Blinds  Received event with handler device_lifecycle
2022-07-26T03:37:49.626906275+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> received lifecycle event: infoChanged
2022-07-26T03:37:49.651845275+00:00 TRACE Xiaomi Blinds  Found DeviceLifecycleDispatcher handler in blinds
2022-07-26T03:37:49.658725275+00:00 INFO Xiaomi Blinds  infoChanged
2022-07-26T03:37:49.667334275+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0xD9B9, dest_endpoint: 0x01, profile: 0x0104, cluster: Basic >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x04, mfg_code: 0x115F, seqno: 0x00, ZCLCommandId: 0x02 >, < WriteAttribute || < AttributeRecord || attr_id: 0xFF28, DataType: Boolean, data: false > > > >
2022-07-26T03:37:49.686433941+00:00 DEBUG Xiaomi Blinds  Aqara Curtain B1 device thread event handled
2022-07-26T03:37:49.959648275+00:00 TRACE Xiaomi Blinds  Received event with handler zigbee
2022-07-26T03:37:49.968225608+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xD9B9, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: Basic >, lqi: 0xC8, rssi: -50, body_length: 0x0009, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x1C, mfg_code: 0x115F, seqno: 0xA4, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0xFF28, DataType: Boolean, Boolean: false > > > >
2022-07-26T03:37:49.988863608+00:00 DEBUG Xiaomi Blinds  Aqara Curtain B1 device thread event handled
2022-07-26T03:37:49.994328941+00:00 TRACE Xiaomi Blinds  Received event with handler zigbee
2022-07-26T03:37:50.002479608+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xD9B9, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: Basic >, lqi: 0xC4, rssi: -51, body_length: 0x0006, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x1C, mfg_code: 0x115F, seqno: 0x66, ZCLCommandId: 0x04 >, < WriteAttributeReponse || ZclStatus: SUCCESS > > >
2022-07-26T03:37:50.021301608+00:00 DEBUG Xiaomi Blinds  Aqara Curtain B1 device thread event handled
2022-07-26T03:38:00.574075276+00:00 TRACE Xiaomi Blinds  Received event with handler capability
2022-07-26T03:38:00.583213609+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> received command: {"args":{},"capability":"windowShade","command":"close","component":"main","positional_args":{}}
2022-07-26T03:38:00.593547609+00:00 TRACE Xiaomi Blinds  Found CapabilityCommandDispatcher handler in blinds
2022-07-26T03:38:00.601943609+00:00 INFO Xiaomi Blinds  window shade level is already set to    0
2022-07-26T03:38:00.608348276+00:00 DEBUG Xiaomi Blinds  Aqara Curtain B1 device thread event handled
2022-07-26T03:38:03.810551943+00:00 TRACE Xiaomi Blinds  Received event with handler capability
2022-07-26T03:38:03.838903276+00:00 INFO Xiaomi Blinds  <ZigbeeDevice: 723e4bc1-861d-407d-9c4e-a55d13c76c62 [0xD9B9] (Aqara Curtain B1)> received command: {"args":{},"capability":"windowShade","command":"close","component":"main","positional_args":{}}
2022-07-26T03:38:03.853667943+00:00 TRACE Xiaomi Blinds  Found CapabilityCommandDispatcher handler in blinds
2022-07-26T03:38:03.858750610+00:00 INFO Xiaomi Blinds  window shade level is already set to    0
2022-07-26T03:38:03.866048276+00:00 DEBUG Xiaomi Blinds  Aqara Curtain B1 device thread event handled

may I ask you to clean and label the log and send it to PM.

so far I can see you set the attribute to False and it was accepted by the device . You need to set it to True (reverse)

Did you get it to work? Ive got the same problem. It connects to my ikea bulbs.

No I didnt... One of most frustrating smart home products Ive ever purchased.

what have you tried? can you send the cli log ?

1 Like

I got the h1 double rocker but it keeps connectin to other zigbee bulbs. It doesnt appear at all in the smarthings app. If installed cli, but how can I get to the logs?

please search the forum for cli edge logs , or contact ST representative

If I do a logcat on your edge driver, and I search for a device, nothings happens. This are the logs from my zigbee bulbs which react to the aqara switch. I don’t know if this is the info you want. At some point yesterday, there was a switch created but it didn’t respond to the real aqara switch.

Logs:
2022-08-01T07:33:10.375934259+00:00 TRACE Zigbee Light Multifunction Mc Received event with handler zigbee
2022-08-01T07:33:10.413462925+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: 69407c8d-922e-4768-827f-97fcea906197 [0xFB77] (Ikea lamp)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xFB77, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x88, rssi: -66, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x2F, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0000, DataType: Boolean, OnOff: true > > > >
2022-08-01T07:33:10.441418925+00:00 TRACE Zigbee Light Multifunction Mc Found ZigbeeMessageDispatcher handler in zigbee_light_multifunctions
2022-08-01T07:33:10.447027925+00:00 INFO Zigbee Light Multifunction Mc Executing ZclClusterAttributeValueHandler: cluster: OnOff, attribute: OnOff
2022-08-01T07:33:10.457168925+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: 69407c8d-922e-4768-827f-97fcea906197 [0xFB77] (Ikea lamp)> emitting event: {“attribute_id”:“signalMetrics”,“capability_id”:“legendabsolute60149.signalMetrics”,“component_id”:“main”,“state”:{“value”:“LQI: 136 … RSSI: -66 dBm”},“visibility”:{“displayed”:false}}
2022-08-01T07:33:10.478165259+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: 69407c8d-922e-4768-827f-97fcea906197 [0xFB77] (Ikea lamp)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“on”}}
2022-08-01T07:33:10.502691925+00:00 DEBUG Zigbee Light Multifunction Mc Ikea lamp device thread event handled
2022-08-01T07:33:10.508167259+00:00 TRACE Zigbee Light Multifunction Mc Received event with handler zigbee
2022-08-01T07:33:10.518749259+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: 0b8caed7-c629-4e71-bdd3-9ebb7dff5d80 [0xEC1E] (IKEA Bulb)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xEC1E, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x88, rssi: -66, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x34, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0000, DataType: Boolean, OnOff: false > > > >
2022-08-01T07:33:10.538852259+00:00 TRACE Zigbee Light Multifunction Mc Found ZigbeeMessageDispatcher handler in zigbee_light_multifunctions
2022-08-01T07:33:10.544979592+00:00 INFO Zigbee Light Multifunction Mc Executing ZclClusterAttributeValueHandler: cluster: OnOff, attribute: OnOff
2022-08-01T07:33:10.551742592+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: 0b8caed7-c629-4e71-bdd3-9ebb7dff5d80 [0xEC1E] (IKEA Bulb)> emitting event: {“attribute_id”:“signalMetrics”,“capability_id”:“legendabsolute60149.signalMetrics”,“component_id”:“main”,“state”:{“value”:“LQI: 136 … RSSI: -66 dBm”},“visibility”:{“displayed”:false}}
2022-08-01T07:33:10.575146925+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: 0b8caed7-c629-4e71-bdd3-9ebb7dff5d80 [0xEC1E] (IKEA Bulb)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“off”}}
2022-08-01T07:33:10.595590592+00:00 DEBUG Zigbee Light Multifunction Mc IKEA Bulb device thread event handled
2022-08-01T07:33:16.129486261+00:00 DEBUG Zigbee Light Multifunction Mc driver device thread event handled
2022-08-01T07:33:20.729733930+00:00 TRACE Zigbee Light Multifunction Mc Received event with handler zigbee
2022-08-01T07:33:20.738516263+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: 69407c8d-922e-4768-827f-97fcea906197 [0xFB77] (Ikea lamp)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xFB77, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x88, rssi: -66, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x30, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0000, DataType: Boolean, OnOff: false > > > >
2022-08-01T07:33:20.777011263+00:00 TRACE Zigbee Light Multifunction Mc Found ZigbeeMessageDispatcher handler in zigbee_light_multifunctions
2022-08-01T07:33:20.783037263+00:00 INFO Zigbee Light Multifunction Mc Executing ZclClusterAttributeValueHandler: cluster: OnOff, attribute: OnOff
2022-08-01T07:33:20.790789263+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: 69407c8d-922e-4768-827f-97fcea906197 [0xFB77] (Ikea lamp)> emitting event: {“attribute_id”:“signalMetrics”,“capability_id”:“legendabsolute60149.signalMetrics”,“component_id”:“main”,“state”:{“value”:“LQI: 136 … RSSI: -66 dBm”},“visibility”:{“displayed”:false}}
2022-08-01T07:33:20.817142263+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: 69407c8d-922e-4768-827f-97fcea906197 [0xFB77] (Ikea lamp)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“off”}}
2022-08-01T07:33:20.837218263+00:00 DEBUG Zigbee Light Multifunction Mc Ikea lamp device thread event handled
2022-08-01T07:33:20.846843263+00:00 TRACE Zigbee Light Multifunction Mc Received event with handler zigbee
2022-08-01T07:33:20.855137264+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: 0b8caed7-c629-4e71-bdd3-9ebb7dff5d80 [0xEC1E] (IKEA Bulb)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xEC1E, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, lqi: 0x88, rssi: -66, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x35, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0000, DataType: Boolean, OnOff: true > > > >
2022-08-01T07:33:20.876613264+00:00 TRACE Zigbee Light Multifunction Mc Found ZigbeeMessageDispatcher handler in zigbee_light_multifunctions
2022-08-01T07:33:20.882741930+00:00 INFO Zigbee Light Multifunction Mc Executing ZclClusterAttributeValueHandler: cluster: OnOff, attribute: OnOff
2022-08-01T07:33:20.889990264+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: 0b8caed7-c629-4e71-bdd3-9ebb7dff5d80 [0xEC1E] (IKEA Bulb)> emitting event: {“attribute_id”:“signalMetrics”,“capability_id”:“legendabsolute60149.signalMetrics”,“component_id”:“main”,“state”:{“value”:“LQI: 136 … RSSI: -66 dBm”},“visibility”:{“displayed”:false}}
2022-08-01T07:33:20.913644264+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: 0b8caed7-c629-4e71-bdd3-9ebb7dff5d80 [0xEC1E] (IKEA Bulb)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“on”}}
2022-08-01T07:33:20.934331930+00:00 DEBUG Zigbee Light Multifunction Mc IKEA Bulb device thread event handled

This are the loggings when I search for a device

Edit ; It did create a device this time but it doesnt react when buttons get pushed.

open settings of this device and set it up as described in the answer before



(upload://dum5fq3G2J0TcS2IbnxR90JPA6j.png)

Like this?

The group is still 0 = send to all devices your own

also I don’t see any confirmation from the device, device was not woken up

Hi… my Aqara buttons work really fine with your Edge driver! Thanks.

Only my Mijia buttons (WXKG12LM) are really hard to sync. :face_exhaling:
They were working with Groovy driver, but it is not working with Edge.

image

My Xiaomi devices did work fine with bspranger´s drivers, if this could give you any idea.
He has many Xiaomi´s Groovy drivers: GitHub - bspranger/Xiaomi: my Xiaomi Device Handlers for Smartthings

For buttons I had those:

  • [Xiaomi Aqara Button Old Firmware ]
  • [Xiaomi Button Old Firmware ]

Sorry I do not understand. You put like 3 or 4 models in one response and it’s really hard to understand what works for you and what doesn’t.
let’s use this website

to stay on the same page, because the model name and the attached picture belongs to different devices

—-

It’s really hard to pair Xiaomi devices , you need to keep pressing the pair button every second to keep device awake . but do not press long so it wouldn’t reset several times.

1 Like

Only sharing some working Groovy drivers from that Github account, with data for many Xiaomi buttons/switches.
And I drivers were working fine in my previous ST configuration.

Aqara Button - model WXKG11LM (original revision)

  • fingerprint endpointId: “01”, profileId: “0104”, deviceId: “5F01”, inClusters: “0000,FFFF,0006”, outClusters: “0000,0004,FFFF”, manufacturer: “LUMI”, model: “lumi.sensor_switch.aq2”, deviceJoinName: “Aqara Button WXKG11LM”

Aqara Button - model WXKG11LM (new revision)

  • fingerprint endpointId: “01”, profileId: “0104”, deviceId: “5F01”, inClusters: “0000,0012,0003”, outClusters: “0000”, manufacturer: “LUMI”, model: “lumi.remote.b1acn01”, deviceJoinName: “Aqara Button WXKG11LM r2”

Aqara Button - model WXKG12LM

  • fingerprint endpointId: “01”, profileId: “0104”, deviceId: “5F01”, inClusters: “0000,0001,0006,0012”, outClusters: “0000”, manufacturer: “LUMI”, model: “lumi.sensor_switch.aq3”, deviceJoinName: “Aqara Button WXKG12LM”
  • fingerprint endpointId: “01”, profileId: “0104”, deviceId: “5F01”, inClusters: “0000,0001,0006,0012”, outClusters: “0000”, manufacturer: “LUMI”, model: “lumi.sensor_swit”, deviceJoinName: “Aqara Button WXKG12LM”

Aqara Smart Light Switch - single button - model WXKG03LM (Original revision)

  • fingerprint endpointId: “01”, profileId: “0104”, deviceId: “5F01”, inClusters: “0000,0003,0019,0012,FFFF”, outClusters: “0000,0003,0004,0005,0019,0012,FFFF”, manufacturer: “LUMI”, model: “lumi.sensor_86sw1lu”, deviceJoinName: “Aqara Switch WXKG03LM”
  • fingerprint endpointId: “01”, profileId: “0104”, deviceId: “5F01”, inClusters: “0000,0003,0019,0012,FFFF”, outClusters: “0000,0003,0004,0005,0019,0012,FFFF”, manufacturer: “LUMI”, model: “lumi.sensor_86sw1”, deviceJoinName: “Aqara Switch WXKG03LM”

Aqara Smart Light Switch - single button - model WXKG03LM (New revision)

  • fingerprint endpointId: “01”, profileId: “0104”, deviceId: “5F01”, inClusters: “0000,0003,0019,0012,FFFF”, outClusters: “0000,0003,0004,0005,0019,0012,FFFF”, manufacturer: “LUMI”, model: “lumi.remote.b186acn01”, deviceJoinName: “Aqara Switch WXKG03LM r2”

Aqara Smart Light Switch - dual button - model WXKG02LM (Original revision)

  • fingerprint endpointId: “01”, profileId: “0104”, deviceId: “5F01”, inClusters: “0000,0003,0019,0012,FFFF”, outClusters: “0000,0003,0004,0005,0019,0012,FFFF”, manufacturer: “LUMI”, model: “lumi.sensor_86sw2Un”, deviceJoinName: “Aqara Switch WXKG02LM”
  • fingerprint endpointId: “01”, profileId: “0104”, deviceId: “5F01”, inClusters: “0000,0003,0019,0012,FFFF”, outClusters: “0000,0003,0004,0005,0019,0012,FFFF”, manufacturer: “LUMI”, model: “lumi.sensor_86sw2”, deviceJoinName: “Aqara Switch WXKG02LM”

Aqara Smart Light Switch - dual button - model WXKG02LM (New revision)

  • fingerprint endpointId: “01”, profileId: “0104”, deviceId: “5F01”, inClusters: “0000,0003,0019,0012,FFFF”, outClusters: “0000,0003,0004,0005,0019,0012,FFFF”, manufacturer: “LUMI”, model: “lumi.remote.b286acn01”, deviceJoinName: “Aqara Switch WXKG02LM r2”

Aqara Button - model WXKG11LM (original revision)|

  • fingerprint deviceId: 5F01, inClusters: 0000,FFFF,0006, outClusters: 0000,0004,FFFF, manufacturer: LUMI, model: lumi.sensor_switch.aq2, deviceJoinName: Aqara Button WXKG11LM|

Aqara Button - model WXKG11LM (new revision)

  • fingerprint deviceId: 5F01, inClusters: 0000,0012,0003, outClusters: 0000, manufacturer: LUMI, model: lumi.remote.b1acn01, deviceJoinName: Aqara Button WXKG11LM r2|

Aqara Button - model WXKG12LM

  • fingerprint deviceId: 5F01, inClusters: 0000,0001,0006,0012, outClusters: 0000, manufacturer: LUMI, model: lumi.sensor_switch.aq3, deviceJoinName: Aqara Button WXKG12LM|
  • fingerprint deviceId: 5F01, inClusters: 0000,0001,0006,0012, outClusters: 0000, manufacturer: LUMI, model: lumi.sensor_swit, deviceJoinName: Aqara Button WXKG12LM|

Original Xiaomi Button

  • fingerprint endpointId: “01”, profileId: “0104”, deviceId: “0104”, inClusters: “0000,0003,FFFF,0019”, outClusters: “0000,0004,0003,0006,0008,0005,0019”, manufacturer: “LUMI”, model: “lumi.sensor_switch”, deviceJoinName: “Original Xiaomi Button”