Input Boolean to Light Control

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

To help someone that has an input boolean from any non-light specific device directly toggle a light or light group

blueprint:
  name: Control light with boolean
  description: Turn on/off a light or light group based on the state of an input boolean.
  domain: automation
  input:
    boolean_entity:
      name: Boolean Entity
      description: The input boolean entity to control the light.
      selector:
        entity:
          domain: input_boolean
    light_entity:
      name: Light Entity
      description: The light or light group to be controlled.
      selector:
        entity:
          domain: light

trigger:
  platform: state
  entity_id: !input boolean_entity

action:
  - service: >
      {% if trigger.to_state.state == "on" %}
        light.turn_on
      {% else %}
        light.turn_off
      {% endif %}
    target:
      entity_id: !input light_entity
2 Likes