24 lines
708 B
YAML
24 lines
708 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: 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
|