Hi, I am trying to learn more complex automations, i have have looked at example on the forum, but cant seem to get it to work, here is my config, please let me know what I have done wrong…
- alias: 'Notify What Sensor Triggered Alarm'
initial_state: 'on'
trigger:
platform: state
entity_id:
- binary_sensor.door_window_sensor_158d0001a98401
- binary_sensor.door_window_sensor_158d0001d5c426
- binary_sensor.door_window_sensor_158d0001d86d4a
- binary_sensor.motion_sensor_158d00015dbf8b
- binary_sensor.motion_sensor_158d00015dc0c3
- binary_sensor.door_window_sensor_158d0001ab635f
- binary_sensor.door_window_sensor_158d0001bf273e
- binary_sensor.door_window_sensor_158d0001a2f80d
- binary_sensor.door_window_sensor_158d0001c034d7
- binary_sensor.door_window_sensor_158d00019f8f40
- binary_sensor.door_window_sensor_158d0001bf26b6
- binary_sensor.door_window_sensor_158d0001c0351d
- binary_sensor.door_window_sensor_158d0001a1e67f
- binary_sensor.door_window_sensor_158d0001a2f598
- binary_sensor.door_window_sensor_158d000155f033
- binary_sensor.door_window_sensor_158d000149abb1
- binary_sensor.door_window_sensor_158d0001bf276c
- binary_sensor.door_window_sensor_158d0001bf277a
- binary_sensor.door_window_sensor_158d0001a98550
from: 'off'
to: 'on'
condition:
condition: state
entity_id: alarm_control_panel.house
state: 'disarmed'
action:
- service: notify.ios_iosiphone
data:
message: "The {{ trigger.to_state.name }} was changed to {{ trigger.to_state.state }}"
PS. I have used Disarmed for Testing…