Blueprint UI support for selecting multiple entities for triggers and conditions

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!

Unfortunate that no one replied here :frowning:

I am not sure when it was introduced, but I am able to configure multiple entities in a blueprint:

blueprint:
  name: Test 2022-06-04
  description: 'BLABLABLA'
  domain: script
  input:
    light:
      name: Light
      selector:
        entity:
          domain: light
          multiple: true

sequence:
- alias: DO NOTHING

2022-06-04_11h54_59

I am currently using HA version 2022.5.4

I saw this! Thanks for flagging here so I remembered to mark as solved :slight_smile:

Doesn’t work for me!

  input:
    motion_entity:
      name: Motion Sensor
      selector:
        entity:
          domain: binary_sensor
          device_class: motion
          multiple: true

Only a single entity is selectable.