Files
ESPHome/Home-Assistant-Remotes/ha-remote-1.yml

52 lines
998 B
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: 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