It would be fantastic if we could have UI support for selecting multiple entities for use in triggers and conditions in blueprint automations.
Currently (as I understand it), we can only select one entity per input using the UI, but if we switch to Edit in YAML mode, we can enter multiple entities and the blueprint will work successfully (assuming the blueprint was designed to work with multiple entities).
We can select multiple targets, but these only work in actions (to my knowledge).
For example, with the following blueprint excerpt:
blueprint:
name: Occupancy Based Lights
description: Turn on and off lights based on motion
domain: automation
input:
motion_entity:
name: Motion Sensor
description: Motion sensor used to trigger lights on
selector:
entity:
domain: binary_sensor
device_class: motion
the current UI only allows us to create the following blueprint automation:
alias: Auto Lights Lounge
description: Turn lights on and off automatically based on occupancy
use_blueprint:
path: homeassistant/occupancy_based_lights.yaml
input:
motion_entity: binary_sensor.lounge_motion_1
I would love if we could add a boolean option to our blueprint such as multi_select
:
blueprint:
name: Occupancy Based Lights
description: Turn on and off lights based on motion
domain: automation
input:
motion_entity:
name: Motion Sensor
description: Motion sensor used to trigger lights on
selector:
entity:
multi_select: true
domain: binary_sensor
device_class: motion
that would then allow the following output:
alias: Auto Lights Lounge
description: Turn lights on and off automatically based on occupancy
use_blueprint:
path: homeassistant/occupancy_based_lights.yaml
input:
motion_entity:
- binary_sensor.lounge_motion_1
- binary_sensor.lounge_motion_2
While this is easy to work around either using the selector object
, or falling back to YAML mode, neither of those options provide easy selection or input validation.
Thanks!