-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathchip_bar.yaml
151 lines (150 loc) · 4.59 KB
/
chip_bar.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
type: custom:stack-in-card
mode: horizontal
keep:
box_shadow: false
margin: false
border_radius: false
background: false
outer_padding: false
style: |
ha-card {
background-color: rgb(var(--main-theme-bg));
border-radius: var(--border-radius-bar);
box-shadow: none;
}
cards:
# Alarm
- type: 'custom:button-card'
template:
- chip_alarm_icon
tap_action:
action: navigate
navigation_path: /ui-lovelace-minimalist/security
entity: alarm_control_panel.homebase
- type: "custom:button-card"
template: chip_mdi_icon_state_nb
variables:
ulm_chip_mdi_icon_state_entity: sensor.power_kw
ulm_chip_mdi_icon_state_icon: mdi:lightning-bolt
ulm_chip_mdi_icon_state_icon_color: var(--google-yellow)
# Lights
- type: conditional
conditions:
- entity: group.all_lighting
state: "on"
card:
type: "custom:button-card"
tap_action:
action: navigate
navigation_path: /ui-lovelace-minimalist/lights
template: chip_mdi_icon_state_nb
variables:
ulm_chip_mdi_icon_state_entity: sensor.current_lights_on
ulm_chip_mdi_icon_state_icon: mdi:lightbulb-variant
ulm_chip_mdi_icon_state_icon_color: var(--google-orange)
# Doors
- type: conditional
conditions:
- entity: group.all_door_sensors
state: "on"
card:
type: "custom:button-card"
template: chip_mdi_icon_state_nb
tap_action:
action: navigate
navigation_path: /ui-lovelace-minimalist/doors
variables:
ulm_chip_mdi_icon_state_entity: sensor.current_doors_open
ulm_chip_mdi_icon_state_icon: mdi:door
ulm_chip_mdi_icon_state_icon_color: var(--google-green)
# Pool
- type: conditional
conditions:
- entity: switch.pool_pump
state: "on"
card:
type: "custom:button-card"
template: chip_mdi_icon_only
variables:
ulm_chip_mdi_icon_only_entity: switch.pool_pump
ulm_chip_mdi_icon_only_icon: mdi:pool
ulm_chip_mdi_icon_only_icon_color: var(--google-blue)
# Appliances
- type: conditional
conditions:
- entity: group.all_appliances
state: "on"
card:
type: "custom:button-card"
template: chip_mdi_icon_state_nb
tap_action:
action: navigate
navigation_path: /ui-lovelace-minimalist/appliances
haptic: success
variables:
ulm_chip_mdi_icon_state_entity: sensor.current_appliances
ulm_chip_mdi_icon_state_icon: mdi:dishwasher
ulm_chip_mdi_icon_state_icon_color: var(--google-red)
# Garden
- type: conditional
conditions:
- entity: switch.vege_patch_zone
state: "on"
card:
type: "custom:button-card"
template: chip_mdi_icon_only
variables:
ulm_chip_mdi_icon_only_entity: switch.vege_patch_zone
ulm_chip_mdi_icon_only_icon: mdi:sprout
ulm_chip_mdi_icon_only_icon_color: var(--google-green)
# Leak
- type: conditional
conditions:
- entity: group.all_leak_sensors
state: "on"
card:
type: "custom:button-card"
template: chip_mdi_icon_only
variables:
ulm_chip_mdi_icon_only_entity: group.all_leak_sensors
ulm_chip_mdi_icon_only_icon: mdi:water
ulm_chip_mdi_icon_only_icon_color: var(--google-blue)
# Calendars
- type: conditional
conditions:
- entity: group.calendars
state: "on"
card:
type: "custom:button-card"
template: chip_mdi_icon_only
tap_action:
action: navigate
navigation_path: /ui-lovelace-minimalist/calendar
variables:
ulm_chip_mdi_icon_only_entity: group.calendars
ulm_chip_mdi_icon_only_icon: mdi:calendar
ulm_chip_mdi_icon_only_icon_color: var(--google-orange)
# Green Waste
- type: conditional
conditions:
- entity: calendar.green_waste
state: "on"
card:
type: "custom:button-card"
template: chip_mdi_icon_only
variables:
ulm_chip_mdi_icon_only_entity: calendar.green_waste
ulm_chip_mdi_icon_only_icon: mdi:trash-can
ulm_chip_mdi_icon_only_icon_color: var(--google-green)
# Recycling
- type: conditional
conditions:
- entity: calendar.recycling
state: "on"
card:
type: "custom:button-card"
template: chip_mdi_icon_only
variables:
ulm_chip_mdi_icon_only_entity: calendar.recycling
ulm_chip_mdi_icon_only_icon: mdi:trash-can
ulm_chip_mdi_icon_only_icon_color: var(--google-yellow)