forked from rgc99/irrigation_unlimited
-
Notifications
You must be signed in to change notification settings - Fork 0
/
card.yaml
209 lines (209 loc) · 6.69 KB
/
card.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
type: vertical-stack
cards:
- type: entities
entities:
- type: 'custom:fold-entity-row'
style:
.: |
div#head {
--toggle-icon-width: 24px;
}
head:
type: 'custom:multiple-entity-row'
entity: binary_sensor.irrigation_unlimited_c1_m
state_header: Status
state_color: true
entities:
- attribute: current_duration
name: Duration
hide_unavailable: true
- attribute: time_remaining
name: Remaining
hide_unavailable: true
- attribute: percent_complete
name: Complete
unit: '%'
secondary_info:
attribute: current_name
hide_unavailable: true
padding: 20
entities:
- type: 'custom:multiple-entity-row'
entity: binary_sensor.irrigation_unlimited_c1_m
name: Enabled
icon: 'mdi:sprinkler'
show_state: false
secondary_info:
attribute: enabled
tap_action:
action: call-service
service: irrigation_unlimited.toggle
service_data:
entity_id: binary_sensor.irrigation_unlimited_c1_m
entities:
- attribute: zone_count
name: Zones
- type: 'custom:multiple-entity-row'
entity: binary_sensor.irrigation_unlimited_c1_m
name: Next
icon: 'mdi:clock-start'
show_state: false
secondary_info:
attribute: next_name
hide_unavailable: true
entities:
- attribute: next_start
name: Start
hide_unavailable: true
format: datetime
- attribute: next_duration
name: Duration
hide_unavailable: true
- type: divider
- type: 'custom:fold-entity-row'
style:
.: |
div#head {
--toggle-icon-width: 24px;
}
head:
type: 'custom:multiple-entity-row'
entity: binary_sensor.irrigation_unlimited_c1_z1
state_header: Status
state_color: true
entities:
- attribute: current_duration
name: Duration
hide_unavailable: true
- attribute: time_remaining
name: Remaining
hide_unavailable: true
- attribute: percent_complete
name: Complete
unit: '%'
secondary_info:
attribute: current_name
hide_unavailable: true
padding: 20
entities:
- type: 'custom:multiple-entity-row'
entity: binary_sensor.irrigation_unlimited_c1_z1
name: Enabled
icon: 'mdi:sprinkler'
show_state: false
secondary_info:
attribute: enabled
tap_action:
action: call-service
service: irrigation_unlimited.toggle
service_data:
entity_id: binary_sensor.irrigation_unlimited_c1_z1
entities:
- attribute: adjustment
name: Adjustment
- attribute: schedule_count
name: Schedules
- type: 'custom:multiple-entity-row'
entity: binary_sensor.irrigation_unlimited_c1_z1
name: Next
icon: 'mdi:clock-start'
show_state: false
secondary_info:
attribute: next_name
hide_unavailable: true
entities:
- attribute: next_start
name: Start
hide_unavailable: true
format: datetime
- attribute: next_duration
name: Duration
hide_unavailable: true
- type: 'custom:logbook-card'
entity: binary_sensor.irrigation_unlimited_c1_z1
title: History
attributes:
- value: current_name
label: Schedule
- value: adjustment
label: Adjustment
history: 5
collapse: 2
show:
separator: true
hiddenState:
- 'off'
- type: divider
- type: 'custom:fold-entity-row'
style:
.: |
div#head {
--toggle-icon-width: 24px;
}
head:
type: 'custom:multiple-entity-row'
entity: binary_sensor.irrigation_unlimited_c1_z2
state_header: Status
state_color: true
entities:
- attribute: current_duration
name: Duration
hide_unavailable: true
- attribute: time_remaining
name: Remaining
hide_unavailable: true
- attribute: percent_complete
name: Complete
unit: '%'
secondary_info:
attribute: current_name
hide_unavailable: true
padding: 20
entities:
- type: 'custom:multiple-entity-row'
entity: binary_sensor.irrigation_unlimited_c1_z2
name: Enabled
icon: 'mdi:sprinkler'
show_state: false
secondary_info:
attribute: enabled
tap_action:
action: call-service
service: irrigation_unlimited.toggle
service_data:
entity_id: binary_sensor.irrigation_unlimited_c1_z2
entities:
- attribute: adjustment
name: Adjustment
- attribute: schedule_count
name: Schedules
- type: 'custom:multiple-entity-row'
entity: binary_sensor.irrigation_unlimited_c1_z2
name: Next
icon: 'mdi:clock-start'
show_state: false
secondary_info:
attribute: next_name
hide_unavailable: true
entities:
- attribute: next_start
name: Start
hide_unavailable: true
format: datetime
- attribute: next_duration
name: Duration
hide_unavailable: true
- type: 'custom:logbook-card'
entity: binary_sensor.irrigation_unlimited_c1_z2
title: History
attributes:
- value: current_name
label: Schedule
- value: adjustment
label: Adjustment
history: 5
collapse: 2
show:
separator: true
hiddenState:
- 'off'