I associated action for each of the presses/holds
Here are some logs from CLI (just installed it and first time used
)
Every 30s on idle:
2022-11-16T07:54:15.420727633+00:00 DEBUG Xiaomi/Aqara Switch and Button v1.7 driver device thread event handled
On single press:
Action/event execution as selected
2022-11-16T07:57:56.159586274+00:00 TRACE Xiaomi/Aqara Switch and Button v1.7 Received event with handler zigbee
2022-11-16T07:57:56.248535274+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 <ZigbeeDevice: da9f2bf2-91f5-426c-8813-0293c9ddf33a [0x11CE] (Knapp)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x11CE, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0x0012 >, lqi: 0xD2, rssi: -58, body_length: 0x0008, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x63, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0055, DataType: Uint16, Uint16: 0x0001 > > > >
2022-11-16T07:57:56.421000274+00:00 TRACE Xiaomi/Aqara Switch and Button v1.7 Found ZigbeeMessageDispatcher handler in switch
2022-11-16T07:57:56.447270608+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 Executing ZclClusterAttributeValueHandler: cluster: 0x0012, attribute: 0x0055
2022-11-16T07:57:56.459006274+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 <ZigbeeDevice: da9f2bf2-91f5-426c-8813-0293c9ddf33a [0x11CE] (Knapp)> emitting event: {“attribute_id”:“button”,“capability_id”:“button”,“component_id”:“main”,“state”:{“value”:“pushed”},“state_change”:true}
2022-11-16T07:57:56.566475941+00:00 DEBUG Xiaomi/Aqara Switch and Button v1.7 WXKG11LM device thread event handled
On hold (and release after ca 2s):
Action/event execution as selected
2022-11-16T08:00:49.174980585+00:00 TRACE Xiaomi/Aqara Switch and Button v1.7 Received event with handler zigbee
2022-11-16T08:00:49.185556251+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 <ZigbeeDevice: da9f2bf2-91f5-426c-8813-0293c9ddf33a [0x11CE] (Knapp)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x11CE, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0x0012 >, lqi: 0xCC, rssi: -70, body_length: 0x0008, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x65, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0055, DataType: Uint16, Uint16: 0x0000 > > > >
2022-11-16T08:00:49.257588585+00:00 TRACE Xiaomi/Aqara Switch and Button v1.7 Found ZigbeeMessageDispatcher handler in switch
2022-11-16T08:00:49.262933918+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 Executing ZclClusterAttributeValueHandler: cluster: 0x0012, attribute: 0x0055
2022-11-16T08:00:49.270469585+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 <ZigbeeDevice: da9f2bf2-91f5-426c-8813-0293c9ddf33a [0x11CE] (Knapp)> emitting event: {“attribute_id”:“button”,“capability_id”:“button”,“component_id”:“main”,“state”:{“value”:“held”},“state_change”:true}
2022-11-16T08:00:49.307994918+00:00 DEBUG Xiaomi/Aqara Switch and Button v1.7 WXKG11LM device thread event handled
2022-11-16T08:00:49.566391918+00:00 TRACE Xiaomi/Aqara Switch and Button v1.7 Received event with handler zigbee
2022-11-16T08:00:49.616010252+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 <ZigbeeDevice: da9f2bf2-91f5-426c-8813-0293c9ddf33a [0x11CE] (Knapp)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x11CE, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0x0012 >, lqi: 0xD0, rssi: -70, body_length: 0x0008, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x66, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0055, DataType: Uint16, Uint16: 0x00FF > > > >
2022-11-16T08:00:49.637934918+00:00 TRACE Xiaomi/Aqara Switch and Button v1.7 Found ZigbeeMessageDispatcher handler in switch
2022-11-16T08:00:49.643577918+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 Executing ZclClusterAttributeValueHandler: cluster: 0x0012, attribute: 0x0055
2022-11-16T08:00:49.655070252+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 button released, no such st event
2022-11-16T08:00:49.662593585+00:00 DEBUG Xiaomi/Aqara Switch and Button v1.7 WXKG11LM device thread event handled
On double press:
Action/event execution as selected
2022-11-16T08:05:19.811020975+00:00 TRACE Xiaomi/Aqara Switch and Button v1.7 Received event with handler zigbee
2022-11-16T08:05:19.821432975+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 <ZigbeeDevice: da9f2bf2-91f5-426c-8813-0293c9ddf33a [0x11CE] (Knapp)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x11CE, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: 0x0012 >, lqi: 0xCE, rssi: -62, body_length: 0x0008, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x6D, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0055, DataType: Uint16, Uint16: 0x0002 > > > >
2022-11-16T08:05:19.862697975+00:00 TRACE Xiaomi/Aqara Switch and Button v1.7 Found ZigbeeMessageDispatcher handler in switch
2022-11-16T08:05:19.871850308+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 Executing ZclClusterAttributeValueHandler: cluster: 0x0012, attribute: 0x0055
2022-11-16T08:05:19.883842975+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 <ZigbeeDevice: da9f2bf2-91f5-426c-8813-0293c9ddf33a [0x11CE] (Knapp)> emitting event: {“attribute_id”:“button”,“capability_id”:“button”,“component_id”:“main”,“state”:{“value”:“pushed_2x”},“state_change”:true}
2022-11-16T08:05:19.929023641+00:00 DEBUG Xiaomi/Aqara Switch and Button v1.7 WXKG11LM device thread event handled
On 3x & 4x press:
No log update and no execution of selected action/event
Tried multiple times … rapid, slower … nada!
On 5x press (rapid or slower):
Log update but no execution of selected or any other action/event … interesting, there is life!
2022-11-16T08:10:51.479613586+00:00 TRACE Xiaomi/Aqara Switch and Button v1.7 Received event with handler zigbee
2022-11-16T08:10:51.490858872+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 <ZigbeeDevice: da9f2bf2-91f5-426c-8813-0293c9ddf33a [0x11CE] (Knapp)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x11CE, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: Basic >, lqi: 0xD2, rssi: -68, body_length: 0x003A, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x1C, mfg_code: 0x115F, seqno: 0x71, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0005, DataType: CharString, ModelIdentifier: “lumi.remote.b1acn01” >, < AttributeRecord || AttributeId: 0xFF01, DataType: CharString, CharString: “\x01\x21\xD1\x0B\x03\x28\x1C\x04\x21\xA8\x13\x05\x21\xF9\x00\x06\x24\x0A\x00\x00\x00\x00\x0A\x21\x00\x00” > > > >
2022-11-16T08:10:51.508219215+00:00 TRACE Xiaomi/Aqara Switch and Button v1.7 Found ZigbeeMessageDispatcher handler in switch
2022-11-16T08:10:51.514024783+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 Executing ZclClusterAttributeValueHandler: cluster: Basic, attribute: 0xFF01
2022-11-16T08:10:51.523838020+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 <ZigbeeDevice: da9f2bf2-91f5-426c-8813-0293c9ddf33a [0x11CE] (Knapp)> emitting event: {“attribute_id”:“battery”,“capability_id”:“battery”,“component_id”:“main”,“state”:{“value”:100}}
2022-11-16T08:10:51.546750804+00:00 DEBUG Xiaomi/Aqara Switch and Button v1.7 0x04 Uint16: 0x13A8
2022-11-16T08:10:51.599678922+00:00 INFO Xiaomi/Aqara Switch and Button v1.7 xiaomi_utils.lua: emit_signal_event 249 10
2022-11-16T08:10:51.623889688+00:00 DEBUG Xiaomi/Aqara Switch and Button v1.7 WXKG11LM device thread event handled