mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-09-13 15:26:58 +00:00
Lots of troubleshooting and stuff related to OpenAI #1368
This commit is contained in:
62
config/packages/vacuum.yaml
Executable file
62
config/packages/vacuum.yaml
Executable file
@@ -0,0 +1,62 @@
|
||||
#-------------------------------------------
|
||||
# @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.
|
||||
# Switched from Neato to Dreame Vacuum - https://amzn.to/4f7NpFP
|
||||
#-------------------------------------------
|
||||
|
||||
##############################################################################
|
||||
### Configuration - Authentication via the DEVELOPER Portal
|
||||
### HACS - https://github.com/Tasshack/dreame-vacuum
|
||||
##############################################################################
|
||||
|
||||
automation:
|
||||
|
||||
##############################################################################
|
||||
### Automations - Help Neato!
|
||||
### https://www.vcloudinfo.com/2020/05/home-assistant-neato-vacuum-automation.html
|
||||
##############################################################################
|
||||
|
||||
- alias: 'Help Vacuum'
|
||||
id: 6548de52-a4a4-4df2-9d66-9c2c15577a7e
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.l10s_vacuum_error
|
||||
from: 'No error'
|
||||
- platform: event
|
||||
event_type: event_did_someone_help_vacuum_loop
|
||||
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: "{{ states('sensor.l10s_vacuum_error') != 'No 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.l10s_vacuum
|
||||
|
||||
- service: script.speech_engine
|
||||
data:
|
||||
value1: >
|
||||
{% set error_description = state_attr('sensor.l10s_vacuum_error', 'description') %}
|
||||
{{ "Vacuum is complaining: " ~ error_description ~ " [ask Residents to help]" }}
|
||||
|
||||
- service: script.notify_engine
|
||||
data:
|
||||
title: 'Help vacuum'
|
||||
value1: "{{ state_attr('sensor.l10s_vacuum_error', 'description') }}"
|
||||
who: 'family'
|
||||
ios_category: 'camera'
|
||||
camera_entity: 'camera.l10s_vacuum_map'
|
||||
content_type: 'jpeg'
|
||||
group: 'information'
|
||||
|
||||
- delay: 00:01:00
|
||||
- service: vacuum.locate
|
||||
entity_id: vacuum.l10s_vacuum
|
||||
|
||||
- delay: 00:20:00
|
||||
- event: event_did_someone_help_vacuum_loop
|
Reference in New Issue
Block a user