Skip to content

Instantly share code, notes, and snippets.

@tteck
Created December 5, 2020 18:04
Show Gist options
  • Save tteck/bf511d1212e8193ea01995baa77c05ae to your computer and use it in GitHub Desktop.
Save tteck/bf511d1212e8193ea01995baa77c05ae to your computer and use it in GitHub Desktop.
A blueprint that turns on the selected switches when the alarm is disarmed.
blueprint:
name: Turn on switches when the alarm is disarmed
description: A blueprint that turns on the selected switches when the alarm is disarmed.
domain: automation
input:
alarm:
name: Alarm Control Panel
description: Select Alarm Control Panel
selector:
entity:
domain: alarm_control_panel
switches:
name: Switches
description: Select one or more switch to turn on
selector:
target:
entity:
domain: switch
trigger:
- platform: state
entity_id: !input 'alarm'
to: disarmed
action:
- service: switch.turn_on
target: !input 'switches'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment