MASSIVE re-org - Moving config to packages to better organize

This commit is contained in:
Jeffrey Stone
2020-06-12 16:02:42 -04:00
parent 7bfa8c169f
commit 3d4ff5ca61
19 changed files with 1903 additions and 802 deletions

View File

@@ -237,4 +237,31 @@ automation:
] | random }}
{{ states.sensor.mail_usps_mail.state }} pieces of mail today.
{%- endif -%}
call_interuption: 1
- alias: "Delivered Package Notification"
initial_state: true
trigger:
- platform: state
entity_id: sensor.mail_fedex_delivered_2
- platform: state
entity_id: sensor.mail_ups_delivered
#send only if mail or packages are more than 0
condition:
- condition: or
conditions:
- condition: template
value_template: "{{ states('sensor.mail_fedex_delivered_2') | int > 0 }}"
- condition: template
value_template: "{{ states('sensor.mail_ups_delivered') | int > 0 }}"
action:
- service: script.text_notify
data_template:
who: "jeff"
title: "Package Delivered"
message: "Fedex/UPS just made a delivery"
- service: script.ah_report
data_template:
usps: >-
A package was just left on the porch.
call_interuption: 1