Files
fresh-home/esphome/common/wifi.yaml
T
2025-12-03 20:23:33 -05:00

28 lines
662 B
YAML

esphome:
captive_portal:
wifi:
# Enable fast connect
fast_connect: true
min_auth_mode: WPA2
use_address: ${devicename}.local
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
hidden: true
manual_ip:
static_ip: ${static_ip}
gateway: !secret iot_default_gateway
subnet: !secret iot_subnet_mask
dns1: !secret iot_default_dns1
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "${friendly_name}"
password: !secret fallback_ap_password
packages:
sensor: !include sensor/rssi_sensor.config.yaml
text_sensor: !include text_sensor/wifi_sensor.config.yaml