-
Notifications
You must be signed in to change notification settings - Fork 0
/
oplilygos3.yaml
410 lines (385 loc) · 10.5 KB
/
oplilygos3.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
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
esphome:
name: "oplilygos3"
platformio_options:
board_build.f_flash: 80000000L
board_build.partitions: default_16MB.csv
board_build.arduino.memory_type: qio_opi
on_boot:
then:
- light.turn_on:
id: backlight
brightness: 10%
- delay: 0.5s
- light.turn_on:
id: backlight
brightness: 100%
transition_length: 0.5s
esp32:
board: esp32-s3-devkitc-1
variant: esp32s3
framework:
type: arduino
flash_size: 16MB
# framework:
# type: esp-idf
# version: recommended
# Enable Home Assistant API
api:
ota:
web_server:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "S3 Fallback Hotspot"
password: "zQ9tuPKIfFMu"
external_components:
- source:
type: git
url: https://github.com/landonr/homeThing
ref: main
# type: local
# path: ../homething/components
components: [homeThing, homeThingDisplayState, homeThingApp, homeThingAppNowPlaying, homeThingAppSnake, homeThingAppCatToy, homeThingAppBreakout, homeThingAppWeather]
refresh: 0s
- source:
type: git
url: https://github.com/landonr/esphome-components
ref: main
# type: local
# path: ../local_components/components
components: [
homeassistant_component,
homeassistant_media_player,
media_player_source,
media_player_source_sonos,
media_player_source_spotify,
media_player_source_custom
]
refresh: 0s
- source:
type: git
url: https://github.com/landonr/lilygo-tdisplays3-esphome/
ref: v0.1
refresh: 0s
components: [tdisplays3]
- source: github://pr#4710
components: [ online_image ]
packages:
# common
device_base: github://landonr/homeThing/common/device_base.yaml
fonts: github://landonr/homeThing/common/fonts.yaml
icon_fonts: github://landonr/homeThing/common/icon_fonts.yaml
settings: github://landonr/homeThing/common/settings.yaml
images: github://landonr/homeThing/common/images.yaml
nowPlayingImage: github://landonr/homeThing/common/nowPlayingImage.yaml
voice_assistant: github://landonr/homeThing/common/voice_assistant.yaml
# ipod
battery: github://landonr/homeThing/common/ipod/lilygo_tdisplay_ipod_battery.yaml
sleep: github://landonr/homeThing/common/ipod/lilygo_tdisplay_ipod_sleep.yaml
rotary: github://landonr/homeThing/common/ipod/lilygo_tdisplay_ipod_rotary.yaml
#tdisplay s3
backlight: github://landonr/homeThing/common/tdisplay-s3/backlight.yaml
binary_sensors: github://landonr/homeThing/common/tdisplay-s3/lilygo_tdisplay_ipod_binary_sensor_pcf.yaml
# home
home_media_player: !include homeConfig/media_player.yaml
home_switch: !include homeConfig/switch.yaml
plant_text_sensors: !include homeConfig/text_sensor_plants.yaml
weather: !include homeConfig/weather.yaml
substitutions:
friendly_name: "s3 proto"
rotary_pin_a: "10"
rotary_pin_b: "11"
medium_font_size: "16"
# sda_pin: "18"
# scl_pin: "17"
# screen_left_pin: "GPIO0"
# screen_right_pin: "GPIO14"
battery_pin: "4"
# log_level: "DEBUG"
launch_image_size: 100x100
launch_image_file: "https://freight.cargo.site/w/750/i/7a68102cb75b1ad474df99f67b00a211e22968d385bba6f0709b469787db051d/homething-logo-white.png"
launch_image_type: "RGBA"
remote_transmitter:
pin: GPIO13
carrier_duty_percent: 50%
id: infrared
light:
- platform: homeassistant_component
id: light_desk_lamp
entity_id: light.desk_lamp
name: Desk Lamp
- platform: homeassistant_component
id: light_all_lights
entity_id: light.all_lights
name: All Lights
- platform: homeassistant_component
id: light_rgb_lights
entity_id: light.rgb_lights
name: Color Lights
- platform: homeassistant_component
id: light_track
entity_id: light.kitchen_track_lights
name: Track Lights
- platform: homeassistant_component
id: light_strip_light
entity_id: light.homethingm5stickplus_strip_light
name: Monitor Backlight
- platform: homeassistant_component
id: light_fire_strip
entity_id: light.homethingfireremote_strip_light
name: Fire Light
- platform: esp32_rmt_led_strip
chipset: WS2812
rgb_order: RGB
pin: GPIO43
num_leds: 42
rmt_channel: 2
name: "${friendly_name} Strip Light"
restore_mode: RESTORE_DEFAULT_OFF
id: strip_light
default_transition_length: 0s
effects:
- addressable_rainbow:
name: Rainbow Effect
speed: 10
width: 50
display:
- platform: tdisplays3
id: my_display
rotation: 180
update_interval: 60s
lambda: |-
id(homeThingMenu)->draw_menu_screen();
return;
switch:
- platform: homeassistant_component
entity_id: "switch.oven_fan"
name: "Oven Fan"
id: oven_fan
- platform: template
id: dark_mode
name: "Dark Mode"
optimistic: true
restore_mode: RESTORE_DEFAULT_ON
internal: true
- platform: template
id: voice_assistant_switch
name: ${friendly_name} Voice Assistant
restore_mode: ALWAYS_OFF
optimistic: true
turn_on_action:
then:
- voice_assistant.start:
turn_off_action:
then:
voice_assistant.stop:
- platform: template
name: "Infared Light"
id: switch_ir_light
optimistic: true
internal: True
turn_on_action:
- remote_transmitter.transmit_nec:
address: 0xEF00
command: 0xFC03
command_repeats: 1
turn_off_action:
- remote_transmitter.transmit_nec:
address: 0xEF00
command: 0xFD02
command_repeats: 1
homeThingDisplayState:
id: display_state_id
draw_battery_level: true
font_small: small_font
font_medium: medium_font
font_large: large_font
font_large_heavy: large_heavy_font
font_material_large: material_font_large
font_material_small: material_font_small
dark_mode: dark_mode
colors:
accent_primary: my_primary_accent
homeThingAppNowPlaying:
id: now_playing
media_player_group: media_group_component
display: my_display
display_state: display_state_id
now_playing_image: media_player_image
homeThingAppSnake:
id: snake
display: my_display
display_state: display_state_id
homeThingAppCatToy:
id: cat_toy
remote_transmitter: infrared
display: my_display
display_state: display_state_id
homeThingAppBreakout:
id: breakout
display: my_display
display_state: display_state_id
color:
- id: my_primary_accent
red_int: 106
green_int: 43
blue_int: 138
homeThingAppWeather:
id: weather
display: my_display
display_state: display_state_id
temperature_sensor: weather_temperature
humidity_sensor: weather_humidity
condition_sensor: weather_state
images:
cloudy: weather_cloudy
fog: weather_fog
snow: weather_snow
sunny: weather_sunny
rainy: weather_rainy
night: weather_night
homeThing:
id: homeThingMenu
apps:
- now_playing
- breakout
- snake
- cat_toy
- weather
settings:
sleep_after: 3600
display_timeout_while_charging: 30
idle_app: now_playing
backlight: backlight
header:
time_id: esptime
sleep_switch: sleep_toggle
battery:
battery_percent: battery_percent
charging: charging
display: my_display
on_redraw:
then:
component.update: my_display
display_state: display_state_id
boot:
api_connected: api_connected
media_players_loaded: media_players_loaded_sensor
launch_image: launch_image
home_screen:
name: homeThing
entities:
- id: strip_light
type: light
- id: light_rgb_lights
type: light
- type: command
name: "feed lil freak"
command:
- homeassistant.service:
service: button.press
data:
entity_id: "button.catfeeder_node_feed_single"
- type: switch
id: oven_fan
screens:
- name: Desk Screen
entities:
- id: light_desk_lamp
type: light
- type: command
name: "TV Power"
command:
- remote_transmitter.transmit_nec:
address: 0xEAC7
command: 0x9768
command_repeats: 1
- name: Lights Screen
entities:
- id: light_all_lights
type: light
- id: light_rgb_lights
type: light
- id: light_track
type: light
- id: light_strip_light
type: light
- id: strip_light
type: light
- id: switch_ir_light
type: switch
- type: command
name: "color scene"
command:
- homeassistant.service:
service: script.colors
- type: command
name: "auto scene"
command:
- homeassistant.service:
service: script.warm
- type: command
name: "bright scene"
command:
- homeassistant.service:
service: script.bright
- type: command
name: "hell scene"
command:
- homeassistant.service:
service: scene.turn_on
data:
entity_id: "scene.hell"
- type: command
name: "lights off"
command:
- homeassistant.service:
service: script.off_script
- name: Plants
entities:
- type: text_sensor
id: sensor_plant_temp
- type: text_sensor
id: sensor_plant_humidity
- type: text_sensor
id: sensor_plant_fan
- name: Desk Speaker
entities:
- type: command
name: "Reset Speaker"
command:
- remote_transmitter.transmit_nec:
address: 0xB683
command: 0xE31C
command_repeats: 1
- type: command
name: "Surround"
command:
- remote_transmitter.transmit_nec:
address: 0xB683
command: 0xE718
command_repeats: 1
- type: command
name: "Dialogue"
command:
- remote_transmitter.transmit_nec:
address: 0xB683
command: 0xE817
command_repeats: 1
- name: Settings Screen
show_version: True
entities:
- id: dark_mode
type: switch
- id: backlight
type: light
- id: restart_switch
type: switch
- id: wifi_ssid
type: text_sensor
- id: wifi_signal_percent
type: sensor
- id: wifi_ip
type: text_sensor