目前的配置为:
esphome:
name: esp32c3
friendly_name: esp32c3
platformio_options:
board_build.flash_mode: dio
board_build.mcu: esp32c3
esp32:
board: esp32-c3-devkitm-1
variant: ESP32C3
framework:
type: arduino
version: 'recommended'
platform_version: '6.0.0'
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "xxxxxxx"
ota:
password: "xxxxxx"
wifi:
ssid: xxxxx
password: xxxxxx
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32C3 Fallback Hotspot"
password: "mh6ZeDuoELC4"
captive_portal:
esp32_ble_tracker:
sensor:
# WiFi signals strength sensor
- platform: wifi_signal
name: "WiFi Signal Sensor"
update_interval: 60s
text_sensor:
- platform: wifi_info
ssid:
name: Connected SSID
icon: "mdi:signal-variant"
ip_address:
name: IP Address
icon: "mdi:ip-network"
mac_address:
name: Mac Address
icon: "mdi:wifi-marker"
|