Refactor code structure for improved readability and maintainability

This commit is contained in:
Joshua King
2026-02-13 21:34:54 -05:00
parent 262450d48f
commit 86bc59e7ff
6 changed files with 5 additions and 2597 deletions

1
.gitignore vendored
View File

@@ -18,6 +18,7 @@
!scripts/
!blueprints/
!esphome/
!esphome/ha-remote/
!custom_components/
# !packages/
# !themes/

File diff suppressed because it is too large Load Diff

View File

@@ -1,51 +0,0 @@
substitutions:
device_name: ha-family-room-remote
friendly_name: "Family Room HA Remote"
esphome:
name: ${device_name}
friendly_name: ${friendly_name}
on_boot:
priority: -10
then:
- light.turn_on: ha_remote_backlight
- lvgl.page.show: home
- lambda: |-
id(last_activity_ms) = millis();
esp32:
board: esp32-s3-devkitc-1
framework:
type: esp-idf
logger:
level: WARN
api:
encryption:
key: !secret api_encryption_key
# Enable over-the-air updates
ota:
- platform: esphome
password: !secret ota_password
wifi:
ssid: !secret wifi_iot_ssid
password: !secret wifi_password
power_save_mode: NONE
fast_connect: true
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "${friendly_name} Fallback"
password: !secret fallback_password
captive_portal:
packages:
base: !include ha-remote-1.base.yml
bindings: !include ha-remote-1.bindings.yml
ui: !include ha-remote-1.ui.yml