2018-01-02 00:00:45 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
# @CCOSTAN
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
2020-05-22 17:43:39 +00:00
|
|
|
# Neato Support for D7 Connected Botvac - control my [Neato Vacuum](https://amzn.to/2kqnnqu) with Home Assistant.
|
2018-01-02 00:00:45 +00:00
|
|
|
#-------------------------------------------
|
2018-07-24 17:12:07 +00:00
|
|
|
|
2021-11-11 19:41:15 +00:00
|
|
|
##############################################################################
|
|
|
|
### Configuration - Authentication via the DEVELOPER Portal
|
|
|
|
##############################################################################
|
|
|
|
|
2022-06-21 14:36:35 +00:00
|
|
|
# neato:
|
|
|
|
# client_id: !secret neato_client_id
|
|
|
|
# client_secret: !secret neato_client_secret
|
2021-11-11 19:41:15 +00:00
|
|
|
|
2020-05-23 20:34:20 +00:00
|
|
|
|
2023-10-21 18:39:19 +00:00
|
|
|
automation:
|
2020-05-29 20:45:24 +00:00
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
### Automations - Help Neato!
|
2020-05-31 19:10:58 +00:00
|
|
|
### https://www.vcloudinfo.com/2020/05/home-assistant-neato-vacuum-automation.html
|
2020-05-29 20:45:24 +00:00
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
- alias: 'Help Neato'
|
2020-07-20 18:33:03 +00:00
|
|
|
id: 6548de52-a4a4-4df2-9d66-9c2c15577a7e
|
2020-05-29 20:45:24 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
2022-12-19 23:44:47 +00:00
|
|
|
entity_id: vacuum.neato_vac
|
2020-05-29 20:45:24 +00:00
|
|
|
to: 'error'
|
|
|
|
- platform: event
|
2020-09-06 17:44:40 +00:00
|
|
|
event_type: event_did_someone_help_neato_loop
|
2020-05-29 20:45:24 +00:00
|
|
|
|
|
|
|
condition:
|
|
|
|
- condition: state
|
2022-12-19 23:44:47 +00:00
|
|
|
entity_id: vacuum.neato_vac
|
2020-05-29 20:45:24 +00:00
|
|
|
state: 'error'
|
|
|
|
|
|
|
|
action:
|
2020-06-03 20:36:46 +00:00
|
|
|
- wait_template: "{{ states.group.family.state == 'home' }}"
|
2022-06-23 16:00:17 +00:00
|
|
|
- wait_template: "{{ is_state('group.bed', 'off') }}"
|
2022-06-23 17:13:36 +00:00
|
|
|
- delay: 00:05:00
|
2020-05-29 20:45:24 +00:00
|
|
|
|
|
|
|
- service: script.speech_engine
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2020-05-29 20:45:24 +00:00
|
|
|
value1: >
|
2022-12-19 23:44:47 +00:00
|
|
|
{% set error = states.vacuum.neato_vac.attributes['status'] %}
|
2020-05-29 20:45:24 +00:00
|
|
|
{{ [
|
2020-05-29 21:31:54 +00:00
|
|
|
"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 " ~ error + ".",
|
|
|
|
"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 " ~ error + " error."
|
2020-05-29 20:45:24 +00:00
|
|
|
] | random }}
|
|
|
|
|
|
|
|
- service: vacuum.locate
|
2022-12-19 23:44:47 +00:00
|
|
|
entity_id: vacuum.neato_vac
|
2020-05-29 20:45:24 +00:00
|
|
|
|
|
|
|
- service: script.notify_engine
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2020-05-29 20:45:24 +00:00
|
|
|
title: 'Help Neato'
|
2022-12-19 23:44:47 +00:00
|
|
|
value1: "{{ states.vacuum.neato_vac.attributes['status'] }}"
|
2020-05-29 20:45:24 +00:00
|
|
|
who: 'family'
|
|
|
|
ios_category: 'camera'
|
2022-12-19 23:44:47 +00:00
|
|
|
camera_entity: 'camera.neato_vac_cleaning_map'
|
2020-05-29 20:45:24 +00:00
|
|
|
content_type: 'jpeg'
|
2023-11-17 22:16:41 +00:00
|
|
|
group: 'information'
|
2020-05-29 20:45:24 +00:00
|
|
|
|
|
|
|
- delay: 00:20:00
|
2020-09-06 17:44:40 +00:00
|
|
|
- event: event_did_someone_help_neato_loop
|