Skip to content

Commit

Permalink
Pending changes exported from your codespace
Browse files Browse the repository at this point in the history
  • Loading branch information
xnemesis committed Aug 29, 2024
1 parent a5f93a2 commit 34ec374
Showing 1 changed file with 14 additions and 7 deletions.
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:
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

0 comments on commit 34ec374

Please sign in to comment.