Hi,
'm trying to implement home security alarm. i need help for the following. My sensors are grouped and want to identify which sensor triggered on notification.
Code:
- id: ‘1565547823939’
alias: Beam Sensor
trigger:- entity_id: binary_sensor.front_beam
platform: state
to: ‘on’ - entity_id: binary_sensor.back_beam
platform: state
to: ‘on’ - entity_id: binary_sensor.east_beam
platform: state
to: ‘on’
condition: - condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_away
action: - data:
message: “ALARM! The alarm is armed in Away mode {{ states(‘binary_sensor.date_time’) }}”
service: notify.ios_aslu_iphone - data:
message: Check Area
service: notify.aslu_notify
- entity_id: binary_sensor.front_beam
When message arrives, saying sensor as ‘Unknown’
Please help me to fix this,
Aslam