Hi I am struggeling to reduce the amount of push messages when new mail arrives.
I would like to receive a push message when mail is delivered to our mailbox out side at the entrance of our garden. However, I want to filter out the messages when one of us checks the mail box coming home or leaving the house.
For this purpose I want to use a door sensor. Both mail box sensor and door sensor work fine. So I try to achieve the following automation:
(for this purpose I created a 2 minute timer triggered by opening the door)
Mailbox trigger → Condition: 2 mins door triggered timer is Idle → wait and check if no door will be triggered in the next 2 minutes → send push message.
I am almost there: When the door does not open during 2 mins after mailbox is triggered I receive the message. Unfortunately, the message is delivered instantly when the door is opened < 2 mins after the mailbox trigger. How can I prevent this last issue to happen? I fail to add this timer / condition combination as a condition.
Thanks!
alias: Test mailbox trigger
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 559c17fc8cf2e26b281609a02f690b2b
type: action
subtype: vibration
discovery_id: 0x00158d00067a161a action_vibration
condition:
- condition: state
entity_id: timer.deur_triggered_timer
state: Idle
action:
- wait_for_trigger:
- type: opened
platform: device
device_id: 3633f5aa04ca84b23b23eacbd4b44e36
entity_id: binary_sensor.bk_deur_contact
domain: binary_sensor
timeout: '00:02:00'
- service: notify.mobile_app_g_a_ms_iphone
data:
message: Er is post
mode: single