forked from ptdalen/home-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui-lovelace.yaml
executable file
·213 lines (207 loc) · 7.2 KB
/
ui-lovelace.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
210
211
212
213
title: The Beach House
# Include external resources
resources:
- url: /local/my-custom-card.js
type: js
- url: /local/my-webfont.css
type: css
- url: /local/custom_ui/dark-sky-weather-card.js?v=1
type: js
# Optional background for all views. Check https://developer.mozilla.org/en-US/docs/Web/CSS/background for more examples.
background: center / cover no-repeat url("/background.png") fixed
# Exclude entities from "Unused entities" view
excluded_entities:
- weblink.router
views:
# View tab title.
- title: Rooms
panel: true
# Optional unique id for direct access /lovelace/${id}
id: Rooms
# Optional background (overwrites the global background).
background: radial-gradient(crimson, skyblue)
# Each view can have a different theme applied. Theme should be defined in the frontend.
theme: dark-mode
# The cards to show on this view.
cards:
# The picture entity card will represent an entity with a picture
- type: picture-elements
image: /local/lovelace/living_room_full.jpg
elements:
- type: state-icon
tap_action: toggle
entity: light.living_room_lamp_two
style:
top: 76%
left: 83%
--iron-icon-height: 50px
--iron-icon-width: 50px
- type: image
tap_action: toggle
entity: light.left_shelf_lights
image: /local/lovelace/shelf.png
state_filter:
"off": opacity(50%)
"on": opacity(1%)
style:
top: 63.5%
left: 40.25%
width: 6.75%
- type: image
tap_action: toggle
entity: light.right_shelf_lights
image: /local/lovelace/shelf.png
state_filter:
"off": opacity(50%)
"on": opacity(1%)
style:
top: 62.5%
left: 71.25%
width: 6.75%
- type: image
tap_action: toggle
entity: light.tv_backlights
image: /local/lovelace/tv.png
state_filter:
"off": opacity(50%)
"on": opacity(1%)
style:
top: 55.75%
left: 55.5%
width: 18%
- type: state-icon
tap_action: toggle
entity: light.living_room_fan_light
style:
top: 45%
left: 56%
- type: state-icon
tap_action: toggle
entity: fan.living_room_fan
style:
top: 39%
left: 56%
- type: state-icon
tap_action: toggle
entity: light.living_room_ceiling_light
style:
top: 6%
left: 38%
- type: state-icon
tap_action: toggle
entity: switch.fireplace
style:
top: 86%
left: 56%
- type: state-icon
tap_action: toggle
entity: switch.sconce_light
style:
top: 42%
left: 2%
- type: state-label
prefix: "Living Room Temp "
entity: sensor.living_room_temperature
style:
top: 10%
left: 80%
- type: service-button
title: Tap here to turn all lights off
style:
top: 98%
left: 70%
service: homeassistant.turn_off
service_data:
entity_id: group.livingroom
# The picture entity card will represent an entity with a picture
- type: picture-elements
image: /local/lovelace/kitchen.jpg
elements:
- type: state-icon
tap_action: toggle
entity: light.alcove_light
style:
top: 50%
left: 94.5%
- type: state-icon
tap_action: toggle
entity: light.kitchen_cabinet_tops
style:
top: 36.5%
left: 49%
- type: state-icon
tap_action: toggle
entity: light.kitchen_cabinet_bottoms
style:
top: 66%
left: 51%
- type: state-icon
tap_action: toggle
entity: light.kitchen_island_light
style:
top: 10%
left: 32%
- type: state-icon
tap_action: toggle
entity: light.kitchen_island_light
style:
top: 20%
left: 65%
- type: state-icon
tap_action: toggle
entity: light.kitchen_counter_light
style:
top: 28%
left: 28%
- type: state-icon
tap_action: toggle
entity: light.kitchen_counter_light
style:
top: 33%
left: 54%
- type: state-label
prefix: "Kitchen Temp "
entity: sensor.motion_sensor_kitchen_temp
style:
top: 10%
left: 80%
- type: service-button
title: Tap here to turn all lights off
style:
top: 98%
left: 70%
service: homeassistant.turn_off
service_data:
entity_id: group.kitchen
# Specify a tab icon if you want the view tab to be an icon.
- icon: mdi:home-assistant
# Title of the view. Will be used as the tooltip for tab icon
- title: Weather
cards:
- type: vertical-stack
cards:
- type: custom:dark-sky-weather-card
entity_sun: sun.sun
entity_daily_summary: sensor.dark_sky_daily_summary
entity_current_conditions: sensor.dark_sky_icon
entity_humidity: sensor.dark_sky_humidity
entity_pressure: sensor.dark_sky_pressure
entity_temperature: sensor.dark_sky_temperature
entity_visibility: sensor.dark_sky_visibility
entity_wind_bearing: sensor.dark_sky_wind_bearing
entity_wind_speed: sensor.dark_sky_wind_speed
entity_forecast_high_temp_1: sensor.dark_sky_daytime_high_temperature_1
entity_forecast_high_temp_2: sensor.dark_sky_daytime_high_temperature_2
entity_forecast_high_temp_3: sensor.dark_sky_daytime_high_temperature_3
entity_forecast_high_temp_4: sensor.dark_sky_daytime_high_temperature_4
entity_forecast_high_temp_5: sensor.dark_sky_daytime_high_temperature_5
entity_forecast_low_temp_1: sensor.dark_sky_overnight_low_temperature
entity_forecast_low_temp_2: sensor.dark_sky_overnight_low_temperature_1
entity_forecast_low_temp_3: sensor.dark_sky_overnight_low_temperature_2
entity_forecast_low_temp_4: sensor.dark_sky_overnight_low_temperature_3
entity_forecast_low_temp_5: sensor.dark_sky_overnight_low_temperature_4
entity_forecast_icon_1: sensor.dark_sky_icon_1
entity_forecast_icon_2: sensor.dark_sky_icon_2
entity_forecast_icon_3: sensor.dark_sky_icon_3
entity_forecast_icon_4: sensor.dark_sky_icon_4
entity_forecast_icon_5: sensor.dark_sky_icon_5