Replies: 1 comment 9 replies
-
This is the automation I use for packages (all packages). - alias: "Notif: Mail Delievered"
id: mail_delivered
initial_state: true
trigger:
#Trigger if mail or packages get updated
- platform: state
entity_id: sensor.mail_packages_delivered
#send only if mail or packages are more than 0
condition:
- condition: template
value_template: "{{ states('sensor.mail_packages_delivered') | int(0) > 0 }}"
action:
- service_template: >
notify.{{ states('input_select.notify_select') }}
data:
title: "Mail and Packages"
message: "{{ states('sensor.mail_packages_delivered')}} package(s) have been delivered."
- service: script.house_annoucement
data:
volume: 0.9
this_message: "{{ states('sensor.mail_packages_delivered')}} package(s) have been delivered." |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I have an automation to send me notifications for amazon packages but I have no idea why it will never work even though this addon does seem to be working and collecting the info when packages are delivered...
Environment (please complete the following information):
Logs
None sorry
Screenshots
Additional context
Here is my code:
Beta Was this translation helpful? Give feedback.
All reactions