67 lines
2.2 KiB
YAML
Executable File
67 lines
2.2 KiB
YAML
Executable File
#-------------------------------------------
|
|
# @CCOSTAN
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
# Neato Support for D7 Connected Botvac - control my [Neato Vacuum](https://amzn.to/2kqnnqu) with Home Assistant.
|
|
#-------------------------------------------
|
|
|
|
##############################################################################
|
|
### Configuration - Authentication via the DEVELOPER Portal
|
|
##############################################################################
|
|
|
|
# neato:
|
|
# client_id: !secret neato_client_id
|
|
# client_secret: !secret neato_client_secret
|
|
|
|
|
|
automation:
|
|
|
|
##############################################################################
|
|
### Automations - Help Neato!
|
|
### https://www.vcloudinfo.com/2020/05/home-assistant-neato-vacuum-automation.html
|
|
##############################################################################
|
|
|
|
- alias: 'Help Neato'
|
|
id: 6548de52-a4a4-4df2-9d66-9c2c15577a7e
|
|
trigger:
|
|
- platform: state
|
|
entity_id: vacuum.neato_vac
|
|
to: 'error'
|
|
- platform: event
|
|
event_type: event_did_someone_help_neato_loop
|
|
|
|
condition:
|
|
- condition: state
|
|
entity_id: vacuum.neato_vac
|
|
state: 'error'
|
|
|
|
action:
|
|
- wait_template: "{{ states.group.family.state == 'home' }}"
|
|
- wait_template: "{{ is_state('group.bed', 'off') }}"
|
|
- delay: 00:05:00
|
|
|
|
- service: vacuum.locate
|
|
entity_id: vacuum.neato_vac
|
|
|
|
- service: script.speech_engine
|
|
data:
|
|
value1: >
|
|
{% set error = states.vacuum.neato_vac.attributes['status'] %}
|
|
{{ "Neato Vacuum is complaining about " ~ error ~ " [ask Residents to help]" }}
|
|
|
|
- service: script.notify_engine
|
|
data:
|
|
title: 'Help Neato'
|
|
value1: "{{ states.vacuum.neato_vac.attributes['status'] }}"
|
|
who: 'family'
|
|
ios_category: 'camera'
|
|
camera_entity: 'camera.neato_vac_cleaning_map'
|
|
content_type: 'jpeg'
|
|
group: 'information'
|
|
|
|
- delay: 00:01:00
|
|
- service: vacuum.locate
|
|
entity_id: vacuum.neato_vac
|
|
|
|
- delay: 00:20:00
|
|
- event: event_did_someone_help_neato_loop
|