Refactor code structure for improved readability and maintainability
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -18,6 +18,7 @@
|
|||||||
!scripts/
|
!scripts/
|
||||||
!blueprints/
|
!blueprints/
|
||||||
!esphome/
|
!esphome/
|
||||||
|
!esphome/ha-remote/
|
||||||
!custom_components/
|
!custom_components/
|
||||||
# !packages/
|
# !packages/
|
||||||
# !themes/
|
# !themes/
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -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
|
|
||||||
Reference in New Issue
Block a user