2018-01-01 19:00:45 -05:00
|
|
|
#-------------------------------------------
|
|
|
|
# @CCOSTAN
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
2020-05-22 13:43:39 -04:00
|
|
|
# Neato Support for D7 Connected Botvac - control my [Neato Vacuum](https://amzn.to/2kqnnqu) with Home Assistant.
|
2024-07-24 05:48:36 +00:00
|
|
|
# Switched from Neato to Dreame Vacuum - https://amzn.to/4f7NpFP
|
2018-01-01 19:00:45 -05:00
|
|
|
#-------------------------------------------
|
2018-07-24 13:12:07 -04:00
|
|
|
|
2021-11-11 14:41:15 -05:00
|
|
|
##############################################################################
|
|
|
|
### Configuration - Authentication via the DEVELOPER Portal
|
2024-07-24 05:48:36 +00:00
|
|
|
### HACS - https://github.com/Tasshack/dreame-vacuum
|
2021-11-11 14:41:15 -05:00
|
|
|
##############################################################################
|
|
|
|
|
2023-10-21 18:39:19 +00:00
|
|
|
automation:
|
2020-05-29 16:45:24 -04:00
|
|
|
|
|
|
|
##############################################################################
|
2024-08-05 17:03:43 +00:00
|
|
|
### Automations - Help Vacuum!
|
2020-05-31 15:10:58 -04:00
|
|
|
### https://www.vcloudinfo.com/2020/05/home-assistant-neato-vacuum-automation.html
|
2020-05-29 16:45:24 -04:00
|
|
|
##############################################################################
|
|
|
|
|
2024-07-24 05:48:36 +00:00
|
|
|
- alias: 'Help Vacuum'
|
2020-07-20 19:33:03 +01:00
|
|
|
id: 6548de52-a4a4-4df2-9d66-9c2c15577a7e
|
2020-05-29 16:45:24 -04:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
2024-07-24 05:48:36 +00:00
|
|
|
entity_id: sensor.l10s_vacuum_error
|
2020-05-29 16:45:24 -04:00
|
|
|
- platform: event
|
2024-07-24 05:48:36 +00:00
|
|
|
event_type: event_did_someone_help_vacuum_loop
|
2024-08-05 17:03:43 +00:00
|
|
|
|
2020-05-29 16:45:24 -04:00
|
|
|
condition:
|
2024-08-05 17:03:43 +00:00
|
|
|
- condition: template
|
|
|
|
value_template: "{{ states('sensor.l10s_vacuum_error') not in ['no_error', 'unavailable'] }}"
|
2020-05-29 16:45:24 -04:00
|
|
|
|
|
|
|
action:
|
2022-06-23 12:00:17 -04:00
|
|
|
- wait_template: "{{ is_state('group.bed', 'off') }}"
|
2024-08-05 17:03:43 +00:00
|
|
|
timeout:
|
|
|
|
seconds: 600
|
|
|
|
continue_on_timeout: true
|
|
|
|
- wait_template: "{{ is_state('group.family', 'home') }}"
|
|
|
|
- delay: 00:03:00
|
2024-07-02 17:09:40 +00:00
|
|
|
|
|
|
|
- service: vacuum.locate
|
2024-07-24 05:48:36 +00:00
|
|
|
entity_id: vacuum.l10s_vacuum
|
2020-05-29 16:45:24 -04:00
|
|
|
|
|
|
|
- service: script.speech_engine
|
2020-09-26 10:52:45 -04:00
|
|
|
data:
|
2024-07-24 05:48:36 +00:00
|
|
|
value1: >
|
|
|
|
{% set error_description = state_attr('sensor.l10s_vacuum_error', 'description') %}
|
|
|
|
{{ "Vacuum is complaining: " ~ error_description ~ " [ask Residents to help]" }}
|
2024-08-05 17:03:43 +00:00
|
|
|
Currently in {{states('sensor.l10s_vacuum_current_room')}}"
|
2020-05-29 16:45:24 -04:00
|
|
|
|
|
|
|
- service: script.notify_engine
|
2020-09-26 10:52:45 -04:00
|
|
|
data:
|
2024-07-24 05:48:36 +00:00
|
|
|
title: 'Help vacuum'
|
2024-08-05 17:03:43 +00:00
|
|
|
value1: "{{ state_attr('sensor.l10s_vacuum_error', 'description') }} - {{states('sensor.l10s_vacuum_current_room')}}"
|
2020-05-29 16:45:24 -04:00
|
|
|
who: 'family'
|
|
|
|
ios_category: 'camera'
|
2024-07-24 05:48:36 +00:00
|
|
|
camera_entity: 'camera.l10s_vacuum_map'
|
2020-05-29 16:45:24 -04:00
|
|
|
content_type: 'jpeg'
|
2023-11-17 22:16:41 +00:00
|
|
|
group: 'information'
|
2020-05-29 16:45:24 -04:00
|
|
|
|
2024-07-02 17:09:40 +00:00
|
|
|
- delay: 00:01:00
|
|
|
|
- service: vacuum.locate
|
2024-07-24 05:48:36 +00:00
|
|
|
entity_id: vacuum.l10s_vacuum
|
2024-07-02 17:09:40 +00:00
|
|
|
|
2020-05-29 16:45:24 -04:00
|
|
|
- delay: 00:20:00
|
2024-07-24 05:48:36 +00:00
|
|
|
- event: event_did_someone_help_vacuum_loop
|