本帖最后由 itfangli 于 2024-9-30 18:59 编辑
esphome:
name: solo3
name_add_mac_suffix: false
friendly_name: solo3
packages:
esphome.bluetooth-proxy: github://esphome/firmware/bluetooth-proxy/esp32-generic.yaml@main
#esp32_ble_tracker:
esp32:
board: esp32doit-devkit-v1
framework:
type: esp-idf #如果是单核使用这个配置
#type: arduino #如果是双核,使用这个配置
#############如果是双核,需要把下面的4行注释掉
version: recommended
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
advanced:
ignore_efuse_mac_crc: true
# Example configuration entry
logger:
# Enable Home Assistant API
api:
encryption:
key: "xMx6fR5jEejhJZfUY3tYzrF+E1Nk3oONTUoLMCX8H7I="
ota:
- platform: esphome
password: "88888888"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Solo3 Fallback Hotspot"
password: "88888888"
captive_portal:
esp32_ble_tracker:
sensor:
- platform: atc_mithermometer
mac_address: "A4:C1:38:ED:BF:59" ##小米2温湿度
temperature:
name: "ATC Temperature"
humidity:
name: "ATC Humidity"
battery_level:
name: "ATC Battery-Level"
battery_voltage:
name: "ATC Battery-Voltage"
signal_strength:
name: "ATC Signal"
- platform: atc_mithermometer
mac_address: "a4:c1:38:1f:9a:aa" ##小米2温湿度
temperature:
name: "ATC Temperature2"
humidity:
name: "ATC Humidity2"
battery_level:
name: "ATC Battery-Level2"
battery_voltage:
name: "ATC Battery-Voltage2"
signal_strength:
name: "ATC Signal2"
- platform: xiaomi_miscale
mac_address: '5C:CA:D3:48:12:0C' ##小米体重计
weight:
name: "Xiaomi Mi Scale Weight"
impedance:
name: "Xiaomi Mi Scale Impedance"
我的代理目前是这样写的,注意,我是用单核esp32d。如果双核请注意修改部分。我觉得单核挺好经济实惠2.5一个。 |