Aqara Mini Switch, only MultiClick property available

Hello,

I am just getting started with WebThings. Installed it yesterday on my Raspberri Pi 3 Model B, with a ConBee II stick.

I am having some troubles with my Aqara Mini Switch. I can pair it just fine, and it shows up in the UI, but when I try to use it for Rules, it only shows the MultiClick property, with the option to set something like “If MultiClick is > N”.

I don’t really understand how that property should be observed within the rules. When I try and click the switch in different variations I am getting the output below in the log. It seems like it sends attrData:1 on single click and attrData:2 on double click, and the other values I got when I tried some long presses, but I can’t really work out which is which (0 and 255).

Basically I’m wondering how to use the “MultiClick” value in rules for different types presses of the switch. I have tried triggering some rules with different values, but haven’t got any response what so ever. The only response I’m getting from the button presses are the log outputs.

2021-08-06 14:48:03.557 INFO   : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d00052b9272-switch remote64: 00158d00052b9272 profileId: 0104 clusterId: 0012 sourceEndpoint: 01 cmdId: report payload: [{"attrId":85,"dataType":33,"attrData":1}]
2021-08-06 14:48:18.906 INFO   : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d00052b9272-switch remote64: 00158d00052b9272 profileId: 0104 clusterId: 0012 sourceEndpoint: 01 cmdId: report payload: [{"attrId":85,"dataType":33,"attrData":2}]
2021-08-06 14:48:29.118 INFO   : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d00052b9272-switch remote64: 00158d00052b9272 profileId: 0104 clusterId: 0012 sourceEndpoint: 01 cmdId: report payload: [{"attrId":85,"dataType":33,"attrData":1}]
2021-08-06 14:48:32.779 INFO   : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d00052b9272-switch remote64: 00158d00052b9272 profileId: 0104 clusterId: 0012 sourceEndpoint: 01 cmdId: report payload: [{"attrId":85,"dataType":33,"attrData":2}]
2021-08-06 14:48:37.470 INFO   : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d00052b9272-switch remote64: 00158d00052b9272 profileId: 0104 clusterId: 0012 sourceEndpoint: 01 cmdId: report payload: [{"attrId":85,"dataType":33,"attrData":1}]
2021-08-06 14:48:42.039 INFO   : zigbee-adapter: Kicking WatchDog for 3600 seconds
2021-08-06 14:48:44.212 INFO   : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d00052b9272-switch remote64: 00158d00052b9272 profileId: 0104 clusterId: 0012 sourceEndpoint: 01 cmdId: report payload: [{"attrId":85,"dataType":33,"attrData":0}]
2021-08-06 14:48:44.649 INFO   : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d00052b9272-switch remote64: 00158d00052b9272 profileId: 0104 clusterId: 0012 sourceEndpoint: 01 cmdId: report payload: [{"attrId":85,"dataType":33,"attrData":1}]
2021-08-06 14:48:57.568 INFO   : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d00052b9272-switch remote64: 00158d00052b9272 profileId: 0104 clusterId: 0012 sourceEndpoint: 01 cmdId: report payload: [{"attrId":85,"dataType":33,"attrData":0}]
2021-08-06 14:48:58.693 INFO   : zigbee-adapter: handleReadRsp: ##### No property found for frame ##### zb-00158d00052b9272-switch remote64: 00158d00052b9272 profileId: 0104 clusterId: 0012 sourceEndpoint: 01 cmdId: report payload: [{"attrId":85,"dataType":33,"attrData":255}]

Hi OBlissing - see the article I posted some time back about the same device. I have managed to build a custom configuration for this device …
Toggle device on/off using Aqara Mini Switch -WXKG11LM - WebThings - Mozilla Discourse

With this config, you will be able to detect four states: one click, double click, long press, and long press release. the last two really only count for one action as a long press is always followed by the release - but I guess you could have some action that is initiated on the long press and remains until the release - and then you have to hold the button for as long as the action is desired. Please note that there is no “resting” state and a single click returns “1” and this continues to be reported until a different state is set (e.g. a double click). What this means is that you cannot use the single click to “toggle” a device on and off - which was the topic of my posting in the link above. The frustration to me is that Home Assistant implements a toggle out of the box and I am trying to get the same behaviour using WebThings. Hope the config in the link above is useful.