60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
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: DEBUG
|
|
logs:
|
|
gt911: DEBUG
|
|
i2c: DEBUG
|
|
max17043: DEBUG
|
|
|
|
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:
|
|
|
|
external_components:
|
|
- source:
|
|
type: local
|
|
path: ha-remote/components
|
|
components: [max17043]
|
|
|
|
packages:
|
|
base: !include ha-remote/ha-remote-1.base.yaml
|
|
bindings: !include ha-remote/ha-remote-1.bindings.yaml
|
|
ui: !include ha-remote/ha-remote-1.ui.yaml
|