本帖最后由 bugensui 于 2024-9-28 16:48 编辑
就因为小才买的,这2天在刷esphome,有问题,1,一开始board: esp32-c3-devkitm-1,选择这个,烧录会报错,很难成功。2.后面搜论坛,说换board,board: airm2m_core_esp32c3,设置成这个,能烧录成功,但是我接的aht20温湿度传感器,不更新,数值一直是上电后的数值,我另外1个esp32开发板上,一个一模一样的温湿度,60秒更新一次,他这个是精确到小数点后2位,正常情况,是每60秒更新一次。
我怀疑是esphome对这块板子支持度不好。有没有家友有这块板子的。我估计ESP32C3和ESP32C3 Super Mini还有区别的,在刷esphome的时候
esphome:
name: super-mini
friendly_name: super_mini
esp32:
board: airm2m_core_esp32c3
framework:
type: arduino
# Enable logging
#logger:
# Enable Home Assistant API
api:
encryption:
key: "0sYI+5E***********pQ="
ota:
password: "60e***********************d"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Super-Mini Fallback Hotspot"
password: "u*********"
captive_portal:
i2c:
sda: GPIO4
scl: GPIO3
scan: True
sensor:
- platform: uptime
id: uptime_s
update_interval: 5s
- platform: aht10
variant: AHT20
temperature:
name: "Room Temperature"
filters:
- lambda: return x - 1.0;
humidity:
name: "Room Humidity"
filters:
- lambda: return x + 1.0;
update_interval: 60s
text_sensor:
- platform: version
name: version
- platform: wifi_info
ip_address:
name: "super_mini ip"
icon: mdi:ip
ssid:
name: ssid
icon: mdi:wifi
|