Hey Folks,
I also ordered board CH340 TYPE-C version via Ali (https://aliexpress.com/item/32864722159.html) and I have a strage problem my unit only works when it is connected to USB in my PC, and then it can connect to BLE devices… if I connected to another power supply, then It cannot get data from any BT device. Did you have something simillar? Maybe I used wrong PCB setup…
I have this in yaml:
esphome:
name: esphome-web-e5dea0
friendly_name: Ali ESP
time:
- platform: homeassistant
id: ha_time
esp32:
board: esp32dev
#board: esp32-c3-devkitm-1
framework:
type: arduino
# Enable logging
logger:
level: DEBUG #verbose
# Enable Home Assistant API
api:
encryption:
key: "U/5aPm/5TxtjzPTs8PrPcLzazakSgSQwuWuRqKH/gNkHVG4="
ota:
password: "47594ff9884d83zaaaz6b57695a5569a20"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esphome-Web-E5Dea0"
password: "3WFLJy4nfuxxxxnE"
captive_portal:
####
esp32_ble_tracker:
sensor:
- platform: pvvx_mithermometer
mac_address: "A4:C1:38:52:13:10"
temperature:
name: "A1 Temperature"
humidity:
name: "A1 Humidity"
battery_level:
name: "A1 Battery-Level"
battery_voltage:
name: "A1 Battery-Voltage"
signal_strength:
name: "A1 Signal"
Log:
INFO ESPHome 2023.10.6
INFO Reading configuration /config/esphome/esphome-web-e5dea0.yaml...
INFO Detected timezone 'Europe/London'
INFO Starting log output from esphome-web-e5dea0.local using esphome API
INFO Successfully connected to esphome-web-e5dea0.local
[15:50:58][I][app:102]: ESPHome version 2023.10.6 compiled on Nov 5 2023, 12:00:03
[15:50:58][C][wifi:546]: WiFi:
[15:50:58][C][wifi:382]: Local MAC: D8:BC:38:E5:DE:A0
[15:50:58][C][wifi:383]: SSID: [redacted]
[15:50:58][C][wifi:384]: IP Address: 192.168.236.73
[15:50:58][C][wifi:386]: BSSID: [redacted]
[15:50:58][C][wifi:387]: Hostname: 'esphome-web-e5dea0'
[15:50:58][C][wifi:389]: Signal strength: -29 dB ▂▄▆█
[15:50:58][C][wifi:393]: Channel: 6
[15:50:58][C][wifi:394]: Subnet: 255.255.255.0
[15:50:58][C][wifi:395]: Gateway: 192.168.236.1
[15:50:58][C][wifi:396]: DNS1: 192.168.236.2
[15:50:58][C][wifi:397]: DNS2: 0.0.0.0
[15:50:58][C][logger:416]: Logger:
[15:50:58][C][logger:417]: Level: DEBUG
[15:50:58][C][logger:418]: Log Baud Rate: 115200
[15:50:58][C][logger:420]: Hardware UART: UART0
[15:50:58][C][homeassistant.time:010]: Home Assistant Time:
[15:50:58][C][homeassistant.time:011]: Timezone: 'GMT0BST,M3.5.0/1,M10.5.0'
[15:50:58][C][pvvx_mithermometer:012]: PVVX MiThermometer
[15:50:58][C][pvvx_mithermometer:013]: Temperature 'A1 Temperature'
[15:50:58][C][pvvx_mithermometer:013]: Device Class: 'temperature'
[15:50:58][C][pvvx_mithermometer:013]: State Class: 'measurement'
[15:50:58][C][pvvx_mithermometer:013]: Unit of Measurement: '°C'
[15:50:58][C][pvvx_mithermometer:013]: Accuracy Decimals: 2
[15:50:58][C][pvvx_mithermometer:014]: Humidity 'A1 Humidity'
[15:50:58][C][pvvx_mithermometer:014]: Device Class: 'humidity'
[15:50:58][C][pvvx_mithermometer:014]: State Class: 'measurement'
[15:50:58][C][pvvx_mithermometer:014]: Unit of Measurement: '%'
[15:50:58][C][pvvx_mithermometer:014]: Accuracy Decimals: 2
[15:50:58][C][pvvx_mithermometer:015]: Battery Level 'A1 Battery-Level'
[15:50:58][C][pvvx_mithermometer:015]: Device Class: 'battery'
[15:50:58][C][pvvx_mithermometer:015]: State Class: 'measurement'
[15:50:58][C][pvvx_mithermometer:015]: Unit of Measurement: '%'
[15:50:58][C][pvvx_mithermometer:015]: Accuracy Decimals: 0
[15:50:58][C][pvvx_mithermometer:016]: Battery Voltage 'A1 Battery-Voltage'
[15:50:58][C][pvvx_mithermometer:016]: Device Class: 'voltage'
[15:50:58][C][pvvx_mithermometer:016]: State Class: 'measurement'
[15:50:58][C][pvvx_mithermometer:016]: Unit of Measurement: 'V'
[15:50:58][C][pvvx_mithermometer:016]: Accuracy Decimals: 3
[15:50:58][C][esp32_ble:238]: ESP32 BLE:
[15:50:58][C][esp32_ble:240]: MAC address: D8:BC:38:E5:DE:A2
[15:50:58][C][esp32_ble:241]: IO Capability: none
[15:50:58][C][esp32_ble_tracker:617]: BLE Tracker:
[15:50:58][C][esp32_ble_tracker:618]: Scan Duration: 300 s
[15:50:58][C][esp32_ble_tracker:619]: Scan Interval: 320.0 ms
[15:50:58][C][esp32_ble_tracker:620]: Scan Window: 30.0 ms
[15:50:58][C][esp32_ble_tracker:621]: Scan Type: ACTIVE
[15:50:58][C][esp32_ble_tracker:622]: Continuous Scanning: True
[15:50:58][C][captive_portal:088]: Captive Portal:
[15:50:58][C][mdns:115]: mDNS:
[15:50:58][C][mdns:116]: Hostname: esphome-web-e5dea0
[15:50:58][C][ota:097]: Over-The-Air Updates:
[15:50:58][C][ota:098]: Address: esphome-web-e5dea0.local:3232
[15:50:58][C][ota:101]: Using Password.
[15:50:58][C][api:139]: API Server:
[15:50:58][C][api:140]: Address: esphome-web-e5dea0.local:6053
[15:50:58][C][api:142]: Using noise encryption: YES
[15:52:22][D][esp32_ble_tracker:246]: Starting scan...