forked from jeremywillans/ha-rest980-roomba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lovelace_mop.yaml
147 lines (147 loc) · 4.58 KB
/
lovelace_mop.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
type: vertical-stack
cards:
- entity: sensor.mop
type: custom:roomba-vacuum-card
mode: mop
- type: entities
entities:
- entities:
- entity: input_boolean.mop_schedule_1
name: Master Ensuite Clean (11am M/W/F)
- entity: input_boolean.mop_schedule_2
name: Apartment Clean (12pm Sun)
head:
label: Cleaning Schedules
type: section
type: custom:fold-entity-row
- entities:
- input_boolean.mop_clean_kitchen
- input_boolean.mop_clean_dining
- input_boolean.mop_clean_living
- input_boolean.mop_clean_hall
- input_boolean.mop_clean_bathroom
- input_boolean.mop_clean_laundry
- input_boolean.mop_clean_entry
- input_boolean.mop_clean_ensuite
- entity: automation.mop_clean_rooms
lock:
enabled: |-
[[[
if ((states['group.mop_rooms'].state == "on") && (states['sensor.mop'].state == "Ready"))
return false;
return true;
]]]
exemptions: []
name: Clean Rooms
styles:
card:
- height: 50px
tap_action:
action: call-service
service: automation.trigger
service_data:
entity_id: automation.mop_clean_rooms
type: custom:button-card
head:
label: Selective Room Cleaning
type: section
type: custom:fold-entity-row
- entities:
- style: |-
.text-divider {
padding: 0em;
margin: 0em;
} h2 {
font-size: 1em;
margin-block-start: 0em;
margin-block-end: 0em;
}
text: Clean
type: custom:text-divider-row
- color: '#40bf6a'
due: true
entity: sensor.mop_maint_clean_pad
locale: en-au
severity:
- color: '#bfb540'
value: 0 days
- color: '#bf4060'
value: '-1 days'
style: |
ha-card {
padding: 2px;
--ha-card-box-shadow: 'none';
--paper-card-background-color: rgba(0, 0, 0, 0);
}
timeout: 10 days
title: Mop Pad
type: custom:check-button-card
- color: '#40bf6a'
due: true
entity: sensor.mop_maint_clean_contacts
locale: en-au
severity:
- color: '#bfb540'
value: 0 days
- color: '#bf4060'
value: '-3 days'
style: |
ha-card {
padding: 2px;
--ha-card-box-shadow: 'none';
--paper-card-background-color: rgba(0, 0, 0, 0);
}
timeout: 18 days
title: Contacts
type: custom:check-button-card
- color: '#40bf6a'
due: true
entity: sensor.mop_maint_clean_wheels
locale: en-au
severity:
- color: '#bfb540'
value: 0 days
- color: '#bf4060'
value: '-3 days'
style: |
ha-card {
padding: 2px;
--ha-card-box-shadow: 'none';
--paper-card-background-color: rgba(0, 0, 0, 0);
}
timeout: 18 days
title: Wheels
type: custom:check-button-card
- style: |-
.text-divider {
padding: 0em;
margin: 0em;
} h2 {
font-size: 1em;
margin-block-start: 0em;
margin-block-end: 0em;
}
text: Replace
type: custom:text-divider-row
- color: '#40bf6a'
due: true
entity: sensor.mop_maint_replace_pad
locale: en-au
severity:
- color: '#bfb540'
value: 0 months
- color: '#bf4060'
value: '-4 months'
style: |
ha-card {
padding: 2px;
--ha-card-box-shadow: 'none';
--paper-card-background-color: rgba(0, 0, 0, 0);
}
timeout: 8 months
title: Mop Pad
type: custom:check-button-card
head:
label: Maintenance
type: section
type: custom:fold-entity-row