MQTT deice triggers are annoying to work with, because 1) they are only available for setup through the UI and 2) you can’t add multiple device_id
s in a list as you can pretty much everywhere in HA.
Details:
-
I mostly use YAML for my automations in HA. The MQTT device_triggers cannot be set up without creating a new automation in the UI and selecting MQTT device trigger and selecting the device, switching to yaml, copy-paste the required
device_id
. I should be able to just look up somehwere what the device_id is, without having to create (and cancel) an automation through the UI. -
I have multiple IKEA buttons of the same type, and a press on either one of them results in the same action to be started: crank the ventilation up to 80%. With MQTT device triggers, one cannot use a list of device_id’s in the trigger as one can in many other places in HA (incuding state triggers) - leading to duplicated code/lines where only the device_id differs.