EPMatt / awesome-ha-blueprints

A curated collection of automation blueprints for Home Assistant.
https://epmatt.github.io/awesome-ha-blueprints
GNU General Public License v3.0
841 stars 248 forks source link

New Controller - Sengled E1E-G7F Switch #439

Open phidauex opened 1 year ago

phidauex commented 1 year ago

Manufacturer

Sengled

Model

E1E-G7F

Short Description

4 button switch

Image

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

sirdrums commented 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:

I hope this helps!