[XTension] SNZB-01 and Central Scene

KC Hundere kc at hundere.org
Thu Dec 21 12:54:30 EST 2023


I am trying to make use of a Sonoff SNZB-01 Zigbee switch
<https://sonoff.tech/product/gateway-and-sensors/snzb-01/>.  Pairing it to
the hubitat and exposing it to the Maker API creates a Button Central Scene
Device. The button has 3 separate functions, pushed, doubletapped and held.

To test, I put into the ON script:


on centralScene(theButton, theGesture)

write log "the button: " & theButton

write log "the gesture: " & theGesture

end centralScene

Both the pushed and doubletapped actions result in the expected results,
but when the button is held, I get a non specific HELD Event Detected in
the log, but no button or gesture information.  The rest of the debug log
looks the same for each of the gestures, briefly listed below

Seems like there might be some missing code in the plugin.  I did
upgrade to yesterday's release, no change.

=======================================
 Received value for button1 of 0.
 MakerDev: sending non-specific push data to pbswitch Central Scene Device
 PUSH to pbswitch Central Scene Device={'content': {'name': 'pushed',
'value': '1', 'displayName': 'pbswitch', 'deviceId': '112',
'descriptionText': 'pbswitch button 1 was pushed', 'unit': None, 'type':
'physical', 'data': None}}
 the button: 1
 the gesture: 1
 DATA = pbswitch button 1 was pushed
 Received value for button1 of 1.
 MakerDev: sending non-specific push data to pbswitch Central Scene Device
 PUSH to pbswitch Central Scene Device={'content': {'name': 'doubleTapped',
'value': '1', 'displayName': 'pbswitch', 'deviceId': '112',
'descriptionText': 'pbswitch button 1 was doubleTapped', 'unit': None,
'type': 'physical', 'data': None}}
 the button: 1
 the gesture: 2
 DATA = pbswitch button 1 was doubleTapped
 Received value for button1 of 2.
 MakerDev: sending non-specific push data to pbswitch Central Scene Device
 PUSH to pbswitch Central Scene Device={'content': {'name': 'held',
'value': '1', 'displayName': 'pbswitch', 'deviceId': '112',
'descriptionText': 'pbswitch button 1 was held', 'unit': None, 'type':
'physical', 'data': None}}
 HELD Event Detected
 DATA = pbswitch button 1 was held

=+=+=+=+=+=+=+=+
KC Hundere
kc at hundere.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://machomeautomation.com/pipermail/xtensionlist_machomeautomation.com/attachments/20231221/a23024c5/attachment.htm>


More information about the XtensionList mailing list