State triggered automations don't execute

This will work.

  - alias: "Belysning: Lamporna i skafferiet"
    trigger:
      platform: state
      entity_id: binary_sensor.skafferidorren
    action:
      - service: notify.ilias_galaxy_note_8
        data_template:
          title: "HEMMET {{ now().strftime('%R') }}"
          message: "Skafferidörren: {{ trigger.to_state.state }}"
1 Like