-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.yaml
More file actions
260 lines (214 loc) · 8.69 KB
/
Copy pathmain.yaml
File metadata and controls
260 lines (214 loc) · 8.69 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
#
# ESPHome HomeAssistant Interface Panel
# https://github.com/f18m/esphome-ha-interface-panel
#
#
# This is the main configuration file for ESPHome.
# It uses the package system to include code from the "esphome-modular-lvgl-buttons" repository.
#
# Substitution variables used through the codebase
substitutions:
# --------------------------------------------------------------------------
# Target platform
# --------------------------------------------------------------------------
target_platform: "esp32"
# --------------------------------------------------------------------------
# Secrets
# --------------------------------------------------------------------------
# these allow the ESPHome device to "talk" to your Wifi and
# your HomeAssistant instance
encryption_key: "your_encryption_key_here"
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: "0"
tab_heating_set_temp_enabled: "1"
tab_heating_details_enabled: "1"
tab_cover_enabled: "1"
tab_scenes_enabled: "1"
tab_info_enabled: "1"
# --------------------------------------------------------------------------
# AC configuration (whole-floor AC control tab)
# --------------------------------------------------------------------------
ac_climate_entity_id: "climate.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"
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------
# Number of rooms to display. Currently only the values '3' and '4' are supported,
# as the UI is designed for a maximum of 4 rooms.
# Note that if you use value "3" the 4th room will still be created but hidden;
# please set room4_id to "hidden" and room4_ha_* entity IDs to non-existing entities.
num_rooms: '4'
# Room 1
room1_id: "room1"
room1_name: "Room 1"
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
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: "Run"
scene1_action_type: "scene.turn_on"
scene1_entity_id: "scene.scene1"
scene1_name: "Scene 1"
scene1_icon: "\U000F05A8"
scene2_action_type: "scene.turn_on"
scene2_entity_id: "" # leave empty to hide the whole button
scene2_name: "Scene 2"
scene2_icon: "\U000F05A8"
scene3_action_type: "scene.turn_on"
scene3_entity_id: "" # leave empty to hide the whole button
scene3_name: "Scene 3"
scene3_icon: "\U000F05A8"
scene4_action_type: "scene.turn_on"
scene4_entity_id: "" # leave empty to hide the whole button
scene4_name: "Scene 4"
scene4_icon: "\U000F05A8"
scene5_action_type: "scene.turn_on"
scene5_entity_id: "" # leave empty to hide the whole button
scene5_name: "Scene 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'
# rotate the screen by 90 degrees as personally I found this screen to be
# better suited for an horizontal installation rather than a vertical
# install. If you plan to install this vertically, just remove the following
# line and the "transform" block in the "touchscreen" section below in this file.
display_rotation: '90'
# ESPHome configuration specific to REAL DEVICE (not SDL)
# Wireless Connectivity:
ota:
- platform: esphome
password: ${ota_password}
wifi:
ssid: ${wifi_ssid}
password: ${wifi_password}
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "InterfacePanel Fallback"
password: ${wifi_ap_password}
captive_portal:
# 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
# Remove Internet dependency
local: true
logger:
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
# 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_waveshare-esp32-s3-touch-lcd-3.5b.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