Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix legacy notification warning #71

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions vacuum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,11 @@ automation:
entity_id: sensor.vacuum
state: 'Train'
action:
- service: notify.vacuumfile
data_template:
message: "{{ states('sensor.vacuum_location') }}"
- target:
entity_id: notify.vacuumfile
data:
message: "{{ states('sensor.vacuum_location') }}"
action: notify.send_message

# Initialize Blank Vacuum Log File
- alias: Vacuum Clean Log
Expand Down Expand Up @@ -552,9 +554,12 @@ automation:
from: 'Pending'
to: 'Ready'
action:
- service: notify.vacuumfile
data_template:
action:
- target:
xnemesis marked this conversation as resolved.
Show resolved Hide resolved
entity_id: notify.vacuumfile
data:
message: "Finished"
action: notify.send_message

# Update Vacuum Log File with Stuck Status
- alias: Vacuum Notify on Stuck Status
Expand All @@ -563,9 +568,11 @@ automation:
platform: template
value_template: "{{ is_state_attr('sensor.vacuum', 'phase', 'Stuck') }}"
action:
- service: notify.vacuumfile
data_template:
- target:
entity_id: notify.vacuumfile
data:
message: "Stuck"
action: notify.send_message
# DELETE BELOW SECTION IF YOU DONT WANT NOTIFICATIONS
- delay: 5
- service: !secret vacuum_notify
Expand Down