-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HA MQTT Device Events do not deliver payloads #25051
Comments
Have you tried this ? You should listen to
|
|
That's intriguing, I suspect that would work. I think event entities are the right way to do this (as opposed to device triggers) disappointed we don't get these in an release before the removal. I'll have to update to the dev version to verify, but again, I suspect this would work. |
Normally. In standard 1.42.0 if you set this in
you would have the |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
What happened?
I have an automation for an RGBGenie 3009, this device has a color wheel that allows sending arbitrary colors. With the removal of _action entities, automations like this will stop working since the
payload_json
attribute which is found in the _action entity will no longer be accessible:I'll note that there is a viable work around for this specific automation which looks something like this:
That said, I can imagine more complex automations would be out of luck since Home Assistant does not allow using wildcards in event triggers. Waiting for generic MQTT events like this might cause unexpected behaviors, for example: if a device reports a change in battery level while an automation is executing. One place this would break is while waiting for an event in a loop. This is probably not a blocking issue, but it will make some automations orders of magnitude more complex and in some cases I imagine existing behaviors might be impossible.
What did you expect to happen?
The MQTT device trigger would ideally contain a variable with the payload data included for use in automations/scripts.
How to reproduce it (minimal and precise)
Try to setup an automation for any device that sends arbitrary payload data (EG: x,y color values) when an event occurs.
Zigbee2MQTT version
1.42.0
Adapter firmware version
20230507
Adapter
usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00
Setup
Proxmox LXC (TTeck)
Debug log
No response
The text was updated successfully, but these errors were encountered: