automations/modes/tamper_stop.yaml
#
# Reset flag when tampered devices have their own alarm reset
#
# @publish input_boolean.tamper_detected
#
- id: tamper_detection_stop
alias: "Tamper Detection STOP"
trigger:
# When front door tamper is no longer detected.
- platform: state
entity_id: sensor.front_door_burglar
to: '0'
action:
# Disable tamper alert.
- service: input_boolean.turn_off
data:
entity_id: input_boolean.tamper_detected