I'd like to create a single automation to turn a Zigbee (with zigbee2mqtt) wall switch into a bathroom fan timer. I was able to create an automation around a timer with timer.finished and timer.started in the When section and use conditions in the action section to respond to the timer start and complete events. But while I was able to add to the "when" section of the automation an "up_single" action on the mbath_exhaust_fan_switch device, in the Action section it doesn't give me the option to add that as an "if triggered by" to the when section. Can anyone tell me what the trick to that is?
#How to use a zigbee2mqtt button press as an "is triggered by" option in the action section?
1 messages · Page 1 of 1 (latest)
If I've added an "up_single" action on a device to the when section, how do I figure out what trigger_id it generated for that?
Looking at the yaml for the automation this is what's currently in the when for that button press:
''' - domain: mqtt
device_id: 7bbc762cf761d5d9e61609480906f367
type: action
subtype: up_single
trigger: device
'''
Oh, I think maybe I've got it. To the above I added a line:
'''id: mbath_exhaust_fan_up_single_button'''
and then went back to the automation editor and it showed up as an option for "is triggered by"