I know it’s a new feature, but I couldn’t find information on something and thought I’d see if someone knows the answer rather than bugger about experimenting in the middle of the night.
For example let’s say I make a blueprint that handles motion events for 5 lights in the house, and it works great, but on only one of the lights I would like to add a second trigger - is this possible on the automation side?
So say my living room light and 3 others worked exactly as I wanted just off the blueprint, but I need my kitchen light to act differently, but ONLY in the respect of it having a second trigger, could I do this:
automation:
- alias: Living Room works just off blueprint
description: ''
use_blueprint:
path: amazing_blueprint.yaml
input:
motion: sensor.motion_livingroom
light:
entity_id: light.livingroom
- alias: Kitchen is the only light of 5 that needs a second trigger
description: ''
trigger:
- platform: state
entity_id: sensor.motion_conservatory
use_blueprint:
path: amazing_blueprint.yaml
input:
motion: sensor.motion_kitchen
light:
entity_id: light.kitchen
(For clarity the above code would be in automations.yaml or equivalent)
So this way, both sensor.motion_kitchen and sensor.motion_conservatory would trigger the automation, but the conservatory sensor would not be tagged to !input motion
in the blueprint.
Of course, if anything else in the blueprint relied on the state of !input motion
I would get erroneous results, but if I was happy it wouldn’t cause any clashes - can this be done?
Or once use_blueprint:
is in the automation will it ignore any extra triggers I provide?
Before anyone says: “You could just add the second motion sensor to the inputs…”, it might not always be a motion sensor, it might be an additional condition for one light or whatever, this example is just a proof of concept so I don’t have to get in to the much more complicated example that I actually have here if it’s basically never going to work because of how it’s designed.
Thoughts from devs or anyone who has experimented on this specific appreciated.
Thanks.