awesome-ha-blueprints icon indicating copy to clipboard operation
awesome-ha-blueprints copied to clipboard

New Controller - Sengled E1E-G7F Switch

Open phidauex opened this issue 2 years ago • 1 comments

Manufacturer

Sengled

Model

E1E-G7F

Short Description

4 button switch

Image

image

Actions

See below, Z2M mapped in draft blueprint already.

Additional Details

  • [X] I'd like to help developing this blueprint.

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 and off 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?

phidauex avatar Oct 30 '22 05:10 phidauex

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!

sirdrums avatar Mar 26 '23 03:03 sirdrums