esphome:
name: test1
platform: ESP32
board: nodemcu-32s
wifi:
ssid: "xxxxxx" //这里填写的是想让esp32接入的wifi
password: "xxxxxxxx"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Test1 Fallback Hotspot" //这里是如果第一个设置的wifi连接失败启用热点连接。
password: "xxxxxxxx"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "hass" //homeassistant的密码
ota:
password: "11111111"
output:
- platform: ledc
pin: GPIO2 //这里是esp32控制灯的GPIO
id: gpio_2
# Example usage in a light
light:
- platform: monochromatic
output: gpio_2
name: "Kitchen Light"
web_server:
port: 80 //此处开启esp32的网页调试模式
来源:CSDN
作者:gis-cc
链接:https://blog.csdn.net/chenchen2360060/article/details/103493556