-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdev-sdl.yaml
More file actions
269 lines (219 loc) · 8.84 KB
/
Copy pathdev-sdl.yaml
File metadata and controls
269 lines (219 loc) · 8.84 KB
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
#
# ESPHome HomeAssistant Interface Panel
# https://github.com/f18m/esphome-ha-interface-panel
#
#
# This is the DEVELOPMENT configuration file for ESPHome.
# It uses the package system to include code from the "esphome-modular-lvgl-buttons" repository.
# It uses a local SDL hardware configuration to test on a regular computer all UI changes before
# deploying to the real device. This allows for much faster development and iteration.
# Substitution variables used through the codebase
substitutions:
# --------------------------------------------------------------------------
# Target platform
# --------------------------------------------------------------------------
target_platform: "sdl"
# --------------------------------------------------------------------------
# Secrets
# --------------------------------------------------------------------------
# these allow the ESPHome device to "talk" to your Wifi and
# your HomeAssistant instance
encryption_key: "I445Nv3wkiOT85A1hLs1PZZB3orL15TB9W6K6Jc9tmE="
ota_password: "your_ota_password_here"
wifi_ssid: "your_wifi_ssid_here"
wifi_password: "your_wifi_password_here"
wifi_ap_password: "your_wifi_ap_password_here"
# --------------------------------------------------------------------------
# Features
# --------------------------------------------------------------------------
tab_rooms_enabled: "1"
tab_ac_enabled: "1"
tab_heating_set_temp_enabled: "1"
tab_heating_details_enabled: "0"
tab_cover_enabled: "1"
tab_scenes_enabled: "1"
tab_info_enabled: "1"
# --------------------------------------------------------------------------
# AC configuration (whole-floor AC control tab)
# --------------------------------------------------------------------------
ac_climate_entity_id: "climate.my_floor_ac"
ac_turn_on_action_type: "climate.turn_on"
ac_turn_off_action_type: "climate.turn_off"
ac_set_fan_mode_action_type: "climate.set_fan_mode"
ac_fan_mode_low: "low"
ac_fan_mode_medium: "medium"
ac_fan_mode_high: "high"
ac_speed_text: "Current speed:"
ac_floor_initial_status: "Unknown"
ac_script_entity_id: "script.ac_set_speed"
# --------------------------------------------------------------------------
# Room configuration
# Each room needs an internal ID (used as widget ID prefix), a display name,
# and Home Assistant entity IDs for its sensors/actuators.
# --------------------------------------------------------------------------
num_rooms: '3'
# Room 1
room1_id: "room1"
room1_name: "Room 1 with Long Name"
room1_ha_temperature_sensor: "sensor.room1_temperature"
room1_ha_humidity_sensor: "sensor.room1_humidity"
room1_ha_window_contact_sensor: "binary_sensor.room1_window_contact"
room1_ha_floor_heating_switch: "switch.room1_floor_heating"
room1_ha_cover: "cover.room1_cover"
# Room 2
room2_id: "room2"
room2_name: "Room 2"
room2_ha_temperature_sensor: "sensor.room2_temperature"
room2_ha_humidity_sensor: "sensor.room2_humidity"
room2_ha_window_contact_sensor: "binary_sensor.room2_window_contact"
room2_ha_floor_heating_switch: "switch.room2_floor_heating"
room2_ha_cover: "cover.room2_cover"
# Room 3
room3_id: "room3"
room3_name: "Room 3"
room3_ha_temperature_sensor: "sensor.room3_temperature"
room3_ha_humidity_sensor: "sensor.room3_humidity"
room3_ha_window_contact_sensor: "binary_sensor.room3_window_contact"
room3_ha_floor_heating_switch: "switch.room3_floor_heating"
room3_ha_cover: "cover.room3_cover"
# Room 4 -- HIDDEN
room4_id: "room4"
room4_name: "Room 4"
room4_ha_temperature_sensor: "sensor.room4_temperature"
room4_ha_humidity_sensor: "sensor.room4_humidity"
room4_ha_window_contact_sensor: "binary_sensor.room4_window_contact"
room4_ha_floor_heating_switch: "switch.room4_floor_heating"
room4_ha_cover: "cover.room4_cover"
# --------------------------------------------------------------------------
# Temperature setting helpers (e.g. daytime / nighttime setpoints)
# --------------------------------------------------------------------------
# Temperature setting 1
temp_setting_daytime_id: "temp_setting_daytime"
temp_setting_daytime_label: "Setting 1"
temp_setting_daytime_ha_sensor: "input_number.temp_setting_daytime"
# Temperature setting 2
temp_setting_nighttime_id: "temp_setting_nighttime"
temp_setting_nighttime_label: "Setting 2"
temp_setting_nighttime_ha_sensor: "input_number.temp_setting_nighttime"
# Current target temperature sensor
ha_temperature_target_sensor: "sensor.temperature_target"
temp_current_target_label: "Target Temperature"
# --------------------------------------------------------------------------
# Scene/Script configuration
# --------------------------------------------------------------------------
# Shared confirmation popup title used by all scene/script buttons
popup_confirm_title: "Confirm action"
popup_confirm_body: "Activate"
scene1_action_type: "script.turn_on"
scene1_entity_id: "script.my_custom_script1"
scene1_name: "Custom Script 1"
scene1_icon: "\U000F05A8"
scene2_action_type: "scene.turn_on"
scene2_entity_id: "scene.my_custom_scene_kitchen"
scene2_name: "Kitchen Scene"
scene2_icon: "\U000F05A8"
scene3_action_type: "scene.turn_on"
scene3_entity_id: "script.my_custom_script3" # leave empty to hide the whole button
scene3_name: "Custom Script 3"
scene3_icon: "\U000F05A8"
scene4_action_type: "scene.turn_on"
scene4_entity_id: "script.my_custom_script4" # leave empty to hide the whole button
scene4_name: "Custom Script 4"
scene4_icon: "\U000F05A8"
scene5_action_type: "scene.turn_on"
scene5_entity_id: "script.my_custom_script5" # leave empty to hide the whole button
scene5_name: "Last Script 5"
scene5_icon: "\U000F05A8"
scene6_action_type: "scene.turn_on"
scene6_entity_id: "" # leave empty to hide the whole button
scene6_name: "Scene 6"
scene6_icon: "\U000F05A8"
scene7_action_type: "scene.turn_on"
scene7_entity_id: "" # leave empty to hide the whole button
scene7_name: "Scene 7"
scene7_icon: "\U000F05A8"
scene8_action_type: "scene.turn_on"
scene8_entity_id: "" # leave empty to hide the whole button
scene8_name: "Scene 8"
scene8_icon: "\U000F05A8"
# --------------------------------------------------------------------------
# Everything below this line is not really meant to be overridden by the user, but you can if you want to
# --------------------------------------------------------------------------
# FONTS
icon_font: mdi_icons_40
icon_font_small: mdi_icons_20
text_font: nunito_20
# COLOURS
# We use standard CSS colour names where possible,
# see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/named-color
icon_on_color: mediumseagreen
icon_off_color: tomato
icon_temp_color: orange
icon_temp_target_color: red
icon_humidity_color: dodgerblue
bg_color: 0x1E293B
border_color: 0x334155
label_title_color: ghostwhite
label_on_color: ghostwhite
label_description_color: lightgray
label_spinbtn_color: black
label_tabs_color: gray
# Set touchscreen idle timeout
touchscreen_idle_timeout: "60s"
# Screen Size
screen_height: '320'
screen_width: '480'
display_rotation: '0'
# SDL does not support OTA
# ota:
# - platform: esphome
# password: !secret ota_password
# SDL does not support wifi
# wifi:
# ssid: !secret wifi_ssid
# password: !secret wifi_password
# # Enable fallback hotspot (captive portal) in case wifi connection fails
# ap:
# ssid: "Waveshare-ESP32-S3-3.5B Fallback"
# password: !secret wifi_ap_password
# SDL does hot support captive portal
#captive_portal:
esphome:
name: sdl-480px-test
friendly_name: SDL 480px-test
comment: "ESPHome HomeAssistant General Purpose Interface Panel"
on_boot:
then:
- script.execute: on_boot_scripts
# Webserver is exposed under regular use
#web_server:
# version: 3
# port: 80
# Disable OTA updates for web_server only
# Captive portal will still have OTA access since it auto-loads the web server OTA platform
# ota: false
logger:
level: debug
packages:
# Packages edited from the great
# https://github.com/agillis/esphome-modular-lvgl-buttons
# project:
# 1000s of glyphs
glyphs: !include include/mdi_glyph_substitutions.yaml
# Get the time from HA
#time: !include esphome-modular-lvgl-buttons/common/time_homeassistant.yaml
# Styles + Themes
theme_style: !include include/theme_style.yaml
# Backlight control with screen saver
backlight: !include include/backlight.yaml
# Hardware description file
hardware: !include include/hw_sdl.yaml
# MAIN UI DESIGN
# The core part of this project:
font: !include include/font.yaml
images: !include include/images.yaml
scripts: !include include/scripts.yaml
ui_design: !include include/lvgl_page_main.yaml
sensors: !include include/sensors.yaml
api: !include include/api.yaml
time: !include include/time.yaml