#update blueprint for multiple entites.

1 messages · Page 1 of 1 (latest)

iron wolf
#

I want to update this blueprint to use more than one blocker entity. I cant figure out the part on how to update the blocker entity. I have taken control of the blue print and in my yaml i have updated the entity but i get an error when it runs? MY automation: https://dpaste.org/9O2hV

The original blueprint : https://community.home-assistant.io/t/turn-on-light-switch-scene-script-or-group-based-on-motion-illuminance-sun-more-conditions/257085

#

the error is here. I want to use more than one entity for the blocker?

iron wolf
#

any update

strange current
#

change the selector to allow multiple entities
change the conidtion to


  - condition: template
    alias: 'Check for blocker entity'
    value_template: >
      {% if blocker_entity is none %}
        true
      {% else %}
        {% set entities = [blocker_entity] if blocker_entity is string else blocker_entity %}
        {{ entities | select('is_state', 'off') | list | count > 0 }}
      {% endif %}