Replies: 5 comments 55 replies
-
Whatever way is picked, I think it should follow:
|
Beta Was this translation helpful? Give feedback.
-
The current implementation should work on a basic level for almost all current actions, except for those like 511.344 which somehow adds endpoints to the actual payload string but not the What exactly is your proposal? To do the parsing in |
Beta Was this translation helpful? Give feedback.
-
To be honest, I would do it like this: сompletely revert #24233 and all followups. Then add a new expose Regarding #24233, I think this implementation is a bit messy, IMO. All attempts to make workaround are hacky that will cause a lot of problems that will be difficult to solve later. |
Beta Was this translation helpful? Give feedback.
-
Just in case, real-life example of evolution of automations in HA with current implementation of event entities. Simple case: button (in this aqara) toggles light group. legacy actions:
currently recommended device triggers:
event entity:
If I add second button to this scenario, this story will look even more scary.... |
Beta Was this translation helpful? Give feedback.
-
Started playing with the event entities. While I see both sides, one thing that was amazing for me was the ability to teach my wife how to make her own automations in the HA GUI tied to events of my Zigbee switches. I showed her how to press the button to force HA to see the event as an option, then go to the Automation GUI and choose that switch by name and pick the event to then drive any automation. I realize the YAML way is harder, but the GUI option was amazing for her and made it easy for her to make her own things. So, that helps drive even more acceptance of the automations to my home. More people can more easily do it, which I think is a good thing. Currently have 2 Zigbee networks, each exceeding 180 devices and Z2M is the best for me, and I love the direction with events. |
Beta Was this translation helpful? Give feedback.
-
Z2M 1.42.0 added support for the Home Assistant event entities. This was done in #24233. The current implementation has some limitations, it doesn't work for all actions atm. The current patterns are supported for now:
zigbee2mqtt/lib/extension/homeassistant.ts
Line 39 in 5b907f2
My initial thought was to add a new
action_data
property for this (#24233 (comment)), but this will add a lot of duplication, so not a good option.Therefore I'm now thinking to move the patterns that are now in
homeassistant.ts
into thee.action()
exposes.What do you think? @mundschenk-at @Nerivec @Drafteed
Beta Was this translation helpful? Give feedback.
All reactions