Hello!
I have SNZB-04P sensor installed via Zigbee2mqtt. Everything works fine and home assistant sees it’s OPEN\CLOSED states without problems.
Decided to make an automation to get Push Notification’s and everything got messed up ![]()
When door is opened I get two notifications in a row - Door Closed + Door Opened
When door is closed I get two notifications in a row - Door Closed + Door Closed
What am I doing wrong? ![]()
Yaml for Door Opened:
alias: Гараж (Відкриття)
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.datchik_vidkrittia_garazh_contact
to:
- "on"
for:
hours: 0
minutes: 0
seconds: 1
conditions: []
actions:
- action: notify.mobile_app_iphone_rostyslav
metadata: {}
data:
message: Відкрито!
data:
push:
sound:
name: default
critical: 1
volume: 1
title: ГАРАЖ
mode: single
YAML for door closed
alias: Гараж (Закриття)
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.datchik_vidkrittia_garazh_contact
to:
- "off"
conditions: []
actions:
- action: notify.mobile_app_iphone_rostyslav
metadata: {}
data:
message: Закрито!
data:
push:
sound:
name: default
critical: 1
volume: 1
title: ГАРАЖ
mode: single
