This commit is contained in:
parent
f775fc083b
commit
ae2790c0c6
|
@ -65,11 +65,12 @@ automation:
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data_template:
|
data_template:
|
||||||
value1: >
|
value1: >
|
||||||
|
{% set error = states.vacuum.carlo_neato.attributes['status'] %}
|
||||||
{{ [
|
{{ [
|
||||||
"Neato is asking for help. The error reported is {{ trigger.to_state.attributes.status }}. Please find him and help him.",
|
"Neato is asking for help. The error reported is " ~ error + " . Please find him and help him.",
|
||||||
"Please be nice and help Neato. He is complaining about {{ trigger.to_state.attributes.status }}",
|
"Please be nice and help Neato. He is complaining about " ~ error + ".",
|
||||||
"If you don't want to vacuum, you need to help Neato. He is complaining about {{ trigger.to_state.attributes.status }} and needs help.",
|
"If you don't want to vacuum, you need to help Neato. He is complaining about " ~ error +" and needs help.",
|
||||||
"Something is wrong with Neato. Please find him and help him. I have detected a {{ trigger.to_state.attributes.status }} error."
|
"Something is wrong with Neato. Please find him and help him. I have detected a " ~ error + " error."
|
||||||
] | random }}
|
] | random }}
|
||||||
|
|
||||||
- service: vacuum.locate
|
- service: vacuum.locate
|
||||||
|
@ -78,11 +79,13 @@ automation:
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data_template:
|
||||||
title: 'Help Neato'
|
title: 'Help Neato'
|
||||||
value1: '{{ trigger.to_state.attributes.status }}'
|
value1: "{{ states.vacuum.carlo_neato.attributes['status'] }}"
|
||||||
who: 'family'
|
who: 'family'
|
||||||
ios_category: 'camera'
|
ios_category: 'camera'
|
||||||
camera_entity: 'camera.carlo_neato_cleaning_map'
|
camera_entity: 'camera.carlo_neato_cleaning_map'
|
||||||
content_type: 'jpeg'
|
content_type: 'jpeg'
|
||||||
|
apns_headers:
|
||||||
|
'apns-collapse-id': 'neato-carlo_neato_cleaning_map'
|
||||||
|
|
||||||
- delay: 00:20:00
|
- delay: 00:20:00
|
||||||
- event: event_did_someone_help
|
- event: event_did_someone_help
|
||||||
|
|
Loading…
Reference in New Issue