Files
hassio-configuration/configuration/automation/notification_wrong_code.yaml
Alexander Savin 26d86dec90
Some checks failed
Savin's Home Assistant / build (push) Failing after 1m45s
Update to the current version
2025-05-11 16:07:21 -04:00

32 lines
964 B
YAML

---
- id: notification_lock_wrong_code
alias: '[Notification] Wrong Code'
initial_state: 'true'
trigger:
platform: state
entity_id: sensor.lock_01_alarm_type
to: '0'
condition:
condition: and
conditions:
- condition: template
value_template: "{{ states('sensor.lock_01_alarm_level') | int == 0 }}"
- condition: template
value_template: "{{ states('sensor.lock_01_alarm_type') | int == 0 }}"
action:
- service: telegram_bot.send_message
data:
target: "-1002338954143"
message_thread_id: 3
message_tag: night_mode_finished
title: "[Home Assistant] Security"
message: 'Someone entered the wrong code'
# - service: notify.telegram_alex
# data:
# message: "Someone entered the wrong code"
# - service: notify.mobile_app_alex_google_pixel_7_pro
# data:
# message: Someone entered the wrong code
# title: WRONG CODE