Replies: 3 comments 20 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.
-
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