Skip to content

Instantly share code, notes, and snippets.

@luizbafilho
Created June 30, 2024 14:20
Show Gist options
  • Save luizbafilho/ce06f625d84c65e6adf0b98a34cd4cb7 to your computer and use it in GitHub Desktop.
Save luizbafilho/ce06f625d84c65e6adf0b98a34cd4cb7 to your computer and use it in GitHub Desktop.
blueprint:
name: Paralelo Virtual
description: Acenda/Apaga todos os switchs/lights do grupo simultaneamente
domain: automation
input:
entrada_switchs:
name: Escolha os pontos de Iluminação
selector:
entity:
domain:
- switch
- light
multiple: true
trigger:
platform: state
entity_id: !input entrada_switchs
action:
- service: >
{% if trigger.to_state.state == "on" %}
homeassistant.turn_on
{% elif trigger.to_state.state == "off" %}
homeassistant.turn_off
{% endif %}
target:
entity_id:
!input entrada_switchs
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment