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
Show file tree
Hide file tree
Changes from 3 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
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,14 @@ recorder:
- sensor.rest980
- camera.roomba
```
### Step 13: Create Generic Camera Integration

### Step 13: Enjoy!
Create a new integration of 'Generic Camera' with the name 'Roomba' (or "Braava' if you are using mop.yaml). Set the 'Still Image URL' to the below and save the integration.
```
{{ states('input_text.vacuum_map') }}
```

### Step 14: Enjoy!

## Support

Expand Down
11 changes: 0 additions & 11 deletions mop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -698,17 +698,6 @@ notify:
platform: file
filename: !secret mop_log

###################################
# Camera
###################################

camera:
- platform: generic
still_image_url: >-
{{ states('input_text.mop_map') }}
content_type: image/png
name: Braava

###################################
# Shell Command
###################################
Expand Down
32 changes: 14 additions & 18 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 Expand Up @@ -787,17 +794,6 @@ notify:
platform: file
filename: !secret vacuum_log

###################################
# Camera
###################################

camera:
- platform: generic
still_image_url: >-
{{ states('input_text.vacuum_map') }}
content_type: image/png
name: Roomba

###################################
# Shell Command
###################################
Expand Down