This Home Assistant automation notifies you the moment new mail is delivered. A small motion sensor installed inside the mailbox detects any movement – like opening the lid or inserting a letter – and triggers two independent automations:
binary_sensor.briefkasten_bewegung
– the motion triggerinput_boolean.briefkasten_heute_geoeffnet
– flag for daily open trackingThis automation sets a flag to indicate that the mailbox was opened today. You can use this boolean in dashboards, daily summaries, or reset it every night.
alias: Mailbox Opened Flag
description: ""
trigger:
- platform: state
entity_id: binary_sensor.briefkasten_bewegung
from: "off"
to: "on"
condition: []
action:
- service: input_boolean.turn_on
entity_id: input_boolean.briefkasten_heute_geoeffnet
mode: single
When the motion sensor is triggered, this automation sends push notifications to multiple devices and announces the event via Alexa.
alias: Mailbox Notification
description: ""
trigger:
- platform: state
entity_id: binary_sensor.briefkasten_bewegung
to: "on"
condition: []
action:
- service: notify.mobile_app_iphone_randy
data:
message: Die Post war da!
- service: notify.mobile_app_iphone_von_jessica
data:
message: Die Post war da!
- service: notify.alexa_media_wohnzimmer
data:
message: Die Post war da!
- service: notify.alexa_media_kuche
data:
message: Die Post war da!
mode: single
To reset the input_boolean.briefkasten_heute_geoeffnet
every night, use the following automation:
alias: Reset Mailbox Opened Flag
trigger:
- platform: time
at: "23:59:00"
action:
- service: input_boolean.turn_off
entity_id: input_boolean.briefkasten_heute_geoeffnet
mode: single
"Mail delivered today? ✅"