Skip to content

Commit

Permalink
Fix Generate and Clear Image Commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Willans authored and Jeremy Willans committed Jan 24, 2020
1 parent 065a71c commit 9942b7b
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions vacuum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,6 @@ rest_command:
method: POST
content_type: 'application/json'
payload: '{{ payload }}'
vacuum_clear_image:
url: >-
{{ states("input_text.vacuum_map") }}?clear=true
verify_ssl: !secret vacuum_verify_ssl
method: 'get'
vacuum_generate_image:
url: >-
{{ states("input_text.vacuum_map") }}?last=true
verify_ssl: !secret vacuum_verify_ssl
method: 'get'

###################################
# Input Boolean
Expand Down Expand Up @@ -305,7 +295,7 @@ automation:
to: 'Cleaning'
action:
- service: shell_command.vacuum_clear_log
- service: rest_command.vacuum_clear_image
- service: shell_command.vacuum_clear_image

# Update Vacuum Log File with Finished Status
- alias: Vacuum Notify on Finished Cleaning
Expand Down Expand Up @@ -343,7 +333,7 @@ automation:
for:
seconds: 10
action:
service: rest_command.vacuum_generate_image
service: shell_command.vacuum_generate_image

###################################
# Notify
Expand All @@ -369,4 +359,6 @@ camera:
###################################

shell_command:
vacuum_clear_log: cp /dev/null {{ states('input_text.vacuum_log') }}
vacuum_clear_log: cp /dev/null {{ states('input_text.vacuum_log') }}
vacuum_clear_image: curl -X GET -s -O /dev/null '{{ states("input_text.vacuum_map") }}?clear=true'
vacuum_generate_image: curl -X GET -s -O /dev/null '{{ states("input_text.vacuum_map") }}?last=true'

0 comments on commit 9942b7b

Please sign in to comment.