forked from tglicker/Home-Assistant-Configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
floorplan_vacuum.yaml
executable file
·37 lines (34 loc) · 1.3 KB
/
floorplan_vacuum.yaml
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
name: Vacuum Floorplan
image: /local/custom_ui/floorplan/home_vacuum.svg
stylesheet: /local/custom_ui/floorplan/home_vacuum.css
# These options are optional
# warnings: # enable warnings (to find out why things might not be working correctly)
# pan_zoom: # enable experimental panning / zooming
groups:
- name: Vacuum Scripts
entities:
- script.vacuum_bedroom
- script.vacuum_ensuite_bathroom
- script.vacuum_main_bathroom
- script.vacuum_projector_room
- script.vacuum_study
- script.vacuum_entryway
- script.vacuum_living_room
- script.vacuum_dining_room
- script.vacuum_kitchen
action:
domain: script
service: turn_on
- name: Vacuum Sensors
entities:
- sensor.xiaomi_vacuum_cleaner_status
text_template: '${entity.state ? entity.state : "unknown"}'
states:
- state: 'Charging'
class: 'info-text'
- state: 'Zoned cleaning'
class: 'success-text'
- state: 'Cleaning'
class: 'success-text'
- state: 'Returning home'
class: 'warning-text'