-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhome-assistant.yaml
More file actions
38 lines (38 loc) · 1.2 KB
/
Copy pathhome-assistant.yaml
File metadata and controls
38 lines (38 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
################################################################################# Example Home Assistant config
vacuum:
- platform: template
vacuums:
irobot:
friendly_name: "iRobot"
unique_id: irobot
start:
action: button.press
target:
entity_id: button.irobot_clean
stop:
action: button.press
target:
entity_id: button.irobot_stop
pause:
action: button.press
target:
entity_id: button.irobot_stop
return_to_base:
action: button.press
target:
entity_id: button.irobot_dock
clean_spot:
action: button.press
target:
entity_id: button.irobot_clean_spot
battery_level_template: "{{ states('sensor.irobot_irobot_battery')|int }}"
value_template: >-
{% if states('sensor.irobot_irobot_activity') == "Cleaning" %}
cleaning
{% elif states('sensor.irobot_irobot_activity') == "Lost" %}
paused
{% elif states('sensor.irobot_irobot_activity') == "Docked" %}
docked
{% else %}
error
{% endif %}