Open phidauex opened 1 year ago
Hi @phidauex, still looking for the deconz action names for this controller?
I've listened to the deconz events of the controller using the event listener in HA:
On short: 1002
On long: 1003
On double: 1004 (repeats when the button is held)
Up: 2002 (the only event on this button, repeats when the button is held)
Down: 3002 (the only event on this button, repeats when the button is held)
Off short: 4002
Off long: 4003
Off double: 4004' (repeats when the button is held)
I hope this helps!
Manufacturer
Sengled
Model
E1E-G7F
Short Description
4 button switch
Image
Actions
See below, Z2M mapped in draft blueprint already.
Additional Details
Useful resources
Draft blueprint, starting from your Xiaomi button blueprint. I removed the long hold portions of the script since the Sengled switch doesn't support any hold/release type actions, just short/long/double. Tested for basic functionality already. Deconz and ZHA are commented out pending action definitions.
https://gist.github.com/phidauex/834718c9ce6eb8e670dd8a91f107c0b8
Additional context
Thanks for providing such useful templates - I fought with this device for a while until I worked from your examples. The only pitfall (which was probably hurting me in other cases) is that the device action sends
on
andoff
in the action text for short button presses, which requires wrapping in string characters in the blueprint to prevent HA from interpreting it as a generic true/false.I don't have the action names from ZHA or Deconz for this device, and I'm not sure how to get them short of spinning up a separate instance. Suggestions?