2024年11月21日星期四 下午4:31:06

ESPHome esp32 38pin

2 周 前
#47710 引用
32

ESP-WROOM-32 ESP-32S开发板

ESP32-D0WDQ6 芯片
ESP-WROOM-32 通用型 Wi-Fi+BT+BLE MCU 模组
板载CP2102

Nodemcu-32s

source:taobao

我的芯片有ESP32-WROOM-32,但电路板背面写着ESP32S

型号:ESP-WROOM-32-32S
品牌:LINXIN
产地:中国大陆

Hardware components
 ESP-32S USB Type-C 
HLK-LD2450

0
2 周 前
#47711 引用
Where to buy
1.
ESP32开发板WROOM-32模块无线WiFi+蓝牙 双核CPU物联网TYPE-C接口

19
taobao

2.ESP32S 38P通用扩展电源板模块 DevKitC NODEMCU ESP32开发板底板
6元
taobao
0
2 周 前
#47712 引用
step 1.Installing ESPHome Manually via using ESPHome Web
https://web.esphome.io/
0
2 周 前
#47713 引用
step 2. configure wifi
0
2 周 前
#47714 引用
step 3.add to ha via esphome integration
0
2 周 前
#47715 引用
step 4. esphome addon

rename: esphome-web-3305b8



output
INFO ESPHome 2024.10.0
INFO Reading configuration /config/esphome/esphome-web-3305b8.yaml...
WARNING GPIO2 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing esphome-web-3305b8 (board: esp32dev; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 2.1.4
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- ArduinoJson @ 6.18.5
|-- Improv @ 1.2.4
RAM:   [==        ]  16.2% (used 53056 bytes from 327680 bytes)
Flash: [========= ]  88.3% (used 1620285 bytes from 1835008 bytes)
========================= [SUCCESS] Took 3.57 seconds =========================
INFO Successfully compiled program.
0
1 周 前
#47759 引用

binary_sensor:
  # SR602 PIR Sensor
  - platform: gpio
    name: "SR602 PIR Sensor"
    pin: GPIO14
    device_class: motion  


P14  ,38pin扩展版
0
1 周 前
#48759 引用
backup



# https://github.com/DIYSmartHome8/Asrpro-ESP8266/blob/main/esp8266/asrpro_public.yaml
substitutions:
  devicename: esp32s
  friendly_name: $devicename
  hw_version: v1.0

esphome:
  name: esp32s


  friendly_name: $devicename
  comment: $devicename
  area: Living Room  

esp32:
  board: nodemcu-32s

# Enable logging
# Enable logging
logger:
  level: DEBUG
  baud_rate: 0


# Enable Home Assistant API
api:
  

ota:
  - platform: esphome
    password: "0d2bdf9bf0bc188e8154c8d455dcd474"

# you can upload and update fireware via visit http://test1.local/ in your brower
web_server:  
  port: 80    

# ESPHome WiFi Component https://esphome.io/components/wifi.html
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "esp32s"
    password: ""

captive_portal:

# Example configuration entry for ESP32
# https://esphome.io/components/i2c#i2c
i2c:
  sda: GPIO21
  scl: GPIO22
  scan: true
  id: bus_a  



# Example configuration entry
mdns:
  disabled: false

  services:
    - service: "_custom_service"
      protocol: "_tcp"
      port: 8080
      txt:
        txt_key_1: txt_value_1    



sensor:
# https://esphome.io/components/sensor/vl53l0x.html
  - platform: vl53l0x
    name: "VL53L0x Distance"
  
    update_interval: 60s
    long_range: true    
  - platform: wifi_signal
    name: ESP RSSI
    update_interval: 60s
  - platform: template
    name: ESP Free Memory Byte
    id: id_esp_free_memory_byte
    lambda: |-
      return ESP.getFreeHeap();
    filters:
      - multiply: 0.001
    unit_of_measurement: "KB"
    update_interval: 30s
  # https://esphome.io/components/sensor/uptime  
  - platform: uptime
    type: seconds
    name: Uptime Sensor  

#
binary_sensor:
  # SR602 PIR Sensor
  - platform: gpio
    name: "SR602 PIR Sensor"
    pin: GPIO14
    device_class: motion      



# come from:https://github.com/DIYSmartHome8/Asrpro-ESP8266/blob/main/esp8266/asrpro_public.yaml
button:
  - platform: restart  
    name: ESP Restart
    entity_category: config
  - platform: factory_reset
    disabled_by_default: True
    name: ESP Factory Reset
    id: factory_reset_all  


  

# 增加一个text_sensor 负责处理uart收到的消息
text_sensor:
# https://community.home-assistant.io/t/esp-12f-ds18b20-not-working-on-gpio13/636264/3?u=msly
- platform: version
  name: ESPHome Version
  disabled_by_default: false
  icon: mdi:new-box
  entity_category: diagnostic
  hide_timestamp: false    

# https://esphome.io/components/text_sensor/wifi_info.html
- platform: wifi_info
  ip_address:
    name: IP
    disabled_by_default: false
    entity_category: diagnostic
    update_interval: 1s
  ssid:
    name: ESP Connected SSID
  bssid:
    name: ESP Connected BSSID
  mac_address:
    name: ESP Mac Wifi Address
  scan_results:
    name: ESP Latest Scan Results
  dns_address:
    name: ESP DNS Address



  


0
1 周 前
#49763 引用
How to identify the correct ESP platform and board

nodemcu-32s
https://docs.platformio.org/en/latest/boards/espressif32/nodemcu-32s.html



https://docs.platformio.org/en/latest/boards/espressif32/nodemcu-32s.html
0