Can someone give me a little help in modifying the below automation to where it will work if any of my 3 doors are opened. It looks like it is only working for if the back door is opened. I see where the trigger value template needs to be changed or expanded I believe but don’t really know the proper language to use to update it. Thank you all so much for your help with this simple one I believe!
- id: security_breach_door
alias: Security Breach Doors
trigger:
- platform: state
entity_id:
- binary_sensor.front_door
- binary_sensor.garage_entry_door
- binary_sensor.back_door
to: "on"
condition:
- condition: state
entity_id: input_boolean.sentry_mode
state: "on"
action:
- choose:
- conditions:
- condition: template
value_template:
'{{ trigger.to_state.attributes.friendly_name == "Back Door"
}}'
- condition: state
entity_id: input_boolean.dog_mode
state: "on"
sequence:
- service: script.text_notify
data:
who: "parents"
message: "Dog Mode enabled, bypassing back door sensor."
default:
- service: script.jarvis_alert
data_template:
message: "My security protocols are being overidden,, The {{ trigger.to_state.attributes.friendly_name }} has been opened."
# - service: script.text_alert
# data:
# who: parents
# title: "Security Alert!!"
# message: "{{ trigger.to_state.attributes.friendly_name }} has been opened."
# - service: input_boolean.turn_on
# entity_id: input_boolean.security_issue
initial_state: true