[Blueprint] Turn on lights when the alarm is disarmed

blueprint:
  name: Turn on lights when the alarm is disarmed
  description: A blueprint that turns on the selected lights when the alarm is disarmed.
  domain: automation
  input:
    alarm:
      name: Alarm Control Panel
      description: Select a Alarm Control Panel
      selector:
        entity:
          domain: alarm_control_panel
    lights:
      name: Lights
      description: Select one or more light to turn on
      selector:
        target:
          entity:
            domain: light

trigger:
- platform: state
  entity_id: !input 'alarm'
  to: disarmed
action:
- service: light.turn_on
  target: !input 'lights'