It would be really nice if we could select a device trigger as an input for blueprints, the same way we can select device triggers in automations. This could help reducing the dependency of a blueprint on specific devices.
I can’t quite figure out how the selectors work but I guess it could be almost the same as an action, except that the action is outgoing while a device trigger is incoming
Example:
I want to create a blueprint with 3 inputs: Light, Toggle Trigger and Brightness Trigger.
Automation 1:
Light: living_room.main
Toggle Trigger: remote_x.button_1_click
Brightness Trigger: remote_x.button_1_double_click
Automation 2:
Light: hallway.main
Toggle Trigger: remote_y.button_short_press
Brightness Trigger: remote_y.button_long_press
Blueprint:
...
input:
light:
selector:
target:
entity:
domain: light
toggle_trigger:
selector:
device_trigger:
brightness_trigger:
selector:
device_trigger:
...
Automation:
alias: Control livingroom light
use_blueprint:
path: homeassistant/toggle_with_brightness.yaml
input:
light: living_room.main
toggle_trigger:
device_id: <guid>
domain: zha
platform: device
type: remote_button_short_press
subtype: button_1
brightness_trigger:
device_id: <guid>
domain: zha
platform: device
type: remote_button_double_press
subtype: button_1
I would like to know if other people also see the value in this, or know what it would take to implement this.