forked from landonr/homeThing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsharedRemoteConfig.yaml
executable file
·348 lines (309 loc) · 9.15 KB
/
sharedRemoteConfig.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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
logger:
level: INFO
api:
services:
- service: goto_screen
variables:
screen_name: string
then:
- lambda: |-
goToScreenFromString(screen_name);
ota:
wifi:
ssid: ${wifi_ssid}
password: ${wifi_password}
fast_connect: true
ap:
ssid: "${friendly_name} Fallback"
password: ${wifi_fallback_password}
captive_portal:
http_request:
useragent: esphome/device
timeout: 10s
color:
- id: my_red
red: 100%
green: 0%
blue: 0%
- id: my_yellow
red: 100%
green: 75%
blue: 10%
- id: my_green
red: 0%
green: 100%
blue: 0%
- id: color_accent_primary
red: ${color_accent_primary_red}
green: ${color_accent_primary_green}
blue: ${color_accent_primary_blue}
- id: my_gray_dark
red: 40%
green: 40%
blue: 40%
- id: my_gray_dark_2
red: 8%
green: 8%
blue: 8%
- id: my_gray
red: 10%
green: 10%
blue: 10%
- id: my_black
red: 0%
green: 0%
blue: 0%
- id: my_white
red: 100%
green: 100%
blue: 100%
font:
## Font needs to be monospace!
- file: "fonts/iosevka.ttf"
id: large_font
size: ${large_font_size}
glyphs: '*/\$#<>!?"%()[]+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz&êÊîÎâÂôÔéÉíÍáÁóÓëËüÜïÏṣṢ''’'
- file: "fonts/iosevka.ttf"
id: medium_font
size: ${medium_font_size}
glyphs: '*/\$#<>!?"%()[]+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz&êÊîÎâÂôÔéÉíÍáÁóÓëËüÜïÏṣṢ''’'
- file: "fonts/iosevka.ttf"
id: small_font
size: ${small_font_size}
glyphs: '*/\$#<>!?"%()[]+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz&êÊîÎâÂôÔéÉíÍáÁóÓëËüÜïÏṣṢ''’'
- file: 'fonts/materialdesignicons-webfont.ttf'
id: material_font_large
size: ${icon_size_large}
glyphs: [
'', # mdi-play
'', # mdi-stop
'', # home-pause
'', # mdi-moon-waning-crescent
'', # mdi-shuffle
'', # mdi-shuffle-disabled
'', # mdi-volume-high
'', # mdi-volume-low
'', # mdi-plex
'', # mdi-netflix
'', # mdi-youtube
'', # mdi-spotify
'', # mdi-television
'', # mdi-home
]
- file: 'fonts/materialdesignicons-webfont.ttf'
id: material_font_small
size: ${icon_size}
glyphs: [
'', # mdi-play
'', # mdi-stop
'', # home-pause
'', # mdi-moon-waning-crescent
'', # mdi-shuffle
'', # mdi-shuffle-disabled
'', # mdi-volume-high
'', # mdi-volume-low
'', # mdi-plex
'', # mdi-netflix
'', # mdi-youtube
'', # mdi-spotify
'', # mdi-television
'', # mdi-home
]
globals:
## Size of the large font above
- id: large_font_size
type: int
restore_value: no
initial_value: ${large_font_size}
## Size of the medium font above
- id: medium_font_size
type: int
restore_value: no
initial_value: ${medium_font_size}
## Size of the small font above
- id: small_font_size
type: int
restore_value: no
initial_value: ${small_font_size}
## Height / width ratio of the monospace font used
- id: font_size_width_ratio
type: double
restore_value: no
initial_value: "0.6"
## Status bar height
- id: header_height
type: int
restore_value: no
initial_value: ${header_height}
## Global margin size
- id: margin_size
type: int
restore_value: no
initial_value: ${margin_size}
## Scrollbar total width
- id: scroll_bar_width
type: int
restore_value: no
initial_value: ${scroll_bar_width}
## Volume bar and media duration bar margin
- id: bottom_bar_margin
type: int
restore_value: no
initial_value: ${bottom_bar_margin}
## Height and width of the icons used in px
- id: icon_size
type: int
restore_value: no
initial_value: ${icon_size}
## Height and width of the icons used in px
- id: icon_size_large
type: int
restore_value: no
initial_value: ${icon_size_large}
## Max lines on now playing screen before truncating happens
- id: now_playing_max_lines
type: int
restore_value: no
initial_value: ${now_playing_max_lines}
## Draw buttons in now playing menu for 3 button devices
- id: draw_now_playing_menu
type: bool
restore_value: no
initial_value: ${draw_now_playing_menu}
## Draw battery icon if battery level is supported
- id: draw_battery_level
type: bool
restore_value: no
initial_value: ${draw_battery_level}
## Draw volume level in header
- id: draw_volume_level
type: bool
restore_value: no
initial_value: ${draw_volume_level}
## Draw shuffle icon if shuffle is disabled
- id: draw_shuffle_disabled
type: bool
restore_value: no
initial_value: ${draw_shuffle_disabled}
## Draw time in header
- id: draw_header_time
type: bool
restore_value: no
initial_value: ${draw_header_time}
## Customize device boot name
- id: boot_device_name
type: std::string
restore_value: no
initial_value: ${boot_name}
## Turn off display after x seconds of idle
- id: display_timeout
type: int
restore_value: no
initial_value: ${display_timeout}
## Go to sleep after x seconds of idle
- id: sleep_after
type: int
restore_value: no
initial_value: ${sleep_after}
## Let the menu selection roll-over when reaching the beginning/end
- id: menu_rollover_on
type: bool
restore_value: no
initial_value: ${menu_rollover_on}
## Find a new active media player if the current active one stops playing
- id: sync_active_player
type: bool
restore_value: no
initial_value: ${sync_active_player}
## Black background
- id: dark_mode
type: bool
restore_value: no
initial_value: ${dark_mode}
interval:
- interval: 1s
then:
- lambda: |-
idleTick();
- interval: 0.3s
then:
- lambda: |-
activeTick();
deep_sleep:
id: deep_sleep_1
binary_sensor:
- platform: status
name: "${boot_name} Node Status"
id: system_status
time:
- platform: homeassistant
id: esptime
custom_component:
# Home assistant speakers and tv. Set TV up with a sound bar
- lambda: |-
SpeakerSetup soundBar = SpeakerSetup("media_player.beam", "Beam");
std::vector<TVSetup> tvSetup = {
TVSetup("media_player.55_tcl_roku_tv", "TV",
&soundBar
),
TVSetup("media_player.55_tcl_roku_tv", "Fake", NULL)
};
std::vector<SpeakerSetup> speakerSetup = {
SpeakerSetup("media_player.kitchen", "Kitchen"),
SpeakerSetup("media_player.bedroom", "Bedroom"),
SpeakerSetup("media_player.office", "Office")
};
speakerGroup = new SonosSpeakerGroupComponent(displayUpdate);
speakerGroup->setup(tvSetup, speakerSetup);
return {speakerGroup};
id: speaker_group_component
## Home assistant scripts and scenes. Set with a friendly name
- lambda: |-
std::vector<BaseService> scenes {
ScriptService("script.colors", "Colors"),
ScriptService("script.warm", "Warm"),
ScriptService("script.dim_scene_script", "Dim"),
ScriptService("script.off_script", "Lights Off"),
SceneService("scene.hell", "Hell"),
ScriptService("script.feed_cat_single", "Feed cat")
};
sceneGroup = new SceneGroupComponent();
sceneGroup->setup(scenes);
return {sceneGroup};
id: scene_group_component
## Home assistant lights. Set with a friendly name
- lambda: |-
std::vector<FriendlyNameEntity> lights {
FriendlyNameEntity("light.bathroom_lights", "Bathroom"),
FriendlyNameEntity("light.bedroom_lights", "Bedroom"),
FriendlyNameEntity("light.kitchen_lights", "Kitchen"),
FriendlyNameEntity("light.living_room_lights", "Living Room"),
FriendlyNameEntity("light.office_lamp", "Office Lamp")
};
lightGroup = new LightGroupComponent(displayUpdate);
lightGroup->setup(lights);
return {lightGroup};
id: light_group_component
## Home assistant switches. Set with a friendly name
- lambda: |-
std::vector<FriendlyNameEntity> switches {
FriendlyNameEntity("switch.office_fan", "Office Fan"),
FriendlyNameEntity("switch.office_powerstrip", "Office Power Strip")
};
switchGroup = new SwitchGroupComponent(displayUpdate);
switchGroup->setup(switches);
return {switchGroup};
id: switch_group_component
## Home assistant sensors. Set with a friendly name
- lambda: |-
std::vector<FriendlyNameEntity> sensors {
FriendlyNameEntity("sensor.vancouver_forecast", ""),
FriendlyNameEntity("sensor.accuweather_realfeel_temperature", "Temperature"),
FriendlyNameEntity("sensor.washing_machine_state", "Washing Machine"),
FriendlyNameEntity("sensor.soil_sensor_soil_moisture_2", "Plant Moisture"),
FriendlyNameEntity("sensor.particulate_matter_2_5um_concentration", "Kitchen Air")
};
sensorGroup = new SensorGroupComponent();
sensorGroup->setup(sensors);
return {sensorGroup};
id: sensor_group_component