本帖最后由 cookiesliy 于 2024-10-21 22:25 编辑
前段时间还能验证通过,现在直接大红叉子. (PS: 是不是OTA的时候需要开着魔法?因为我没开)代码我只放了一部分.key等删除掉了. 后面sensor部分没问题,就没放出来.
esphome:
name: esp32
friendly_name: esp32
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: ""
ota:
- platform: esphome
password: ""
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: ""
password: ""
captive_portal:
esp32_ble_tracker:
sensor:
- platform: xiaomi_lywsd03mmc
id: mi1
|