EverythingSmartHome / everything-presence-one

Official Repo for the Everything Presence One sensor!
399 stars 71 forks source link

Crashes running on ESPHome 2023.12.6 #138

Closed alexolivier closed 7 months ago

alexolivier commented 7 months ago

Firsly have to say i love these sensors and the YouTube channel - very happy to support you however possible.

This is likely an ESPHome issue rather than EP1 specific, but since upgrading to ESPHome 2023.12.6 the PIR + mmWave sensors fail to register and ESP32 crashes:

[12:54:16][C][improv_serial:032]: Improv Serial:
[12:54:16][D][uart_debug:158]: >>> "sensorStartsensorStart"
[12:54:16][D][uart_debug:158]: <<< "sensorStart\r\n"
[12:54:16][D][uart_debug:158]: <<< "Done\r\n"
[12:54:16][D][switch:012]: 'mmWave sensor' Turning ON.
[12:54:16][D][uart_debug:158]: <<< "leapMMW:/>"
[12:54:16][D][uart_debug:158]: >>> "sensorStart"
[12:54:16][D][uart_debug:158]: <<< "sensorStart\r\n"
[12:54:16][D][uart_debug:158]: <<< "sensor started already\r\n"
[12:54:16][D][uart_debug:158]: <<< "Error\r\n"
[12:54:16][W][component:214]: Component uart took a long time for an operation (0.05 s).
[12:54:16][W][component:215]: Components should block for at most 20-30ms.
[12:54:16][D][uart_debug:158]: <<< "leapMMW:/>"
WARNING ep1-office @ 192.168.30.21: Connection error occurred: [Errno 104] Connection reset by peer
INFO Processing unexpected disconnect from ESPHome API for ep1-office @ 192.168.30.21
WARNING Disconnected from API
INFO Successfully connected to ep1-office @ 192.168.30.21 in 0.008s
INFO Successful handshake with ep1-office @ 192.168.30.21 in 0.186s
[12:55:04][D][uart_debug:158]: <<< "sensorStart\r\n"
[12:55:04][D][uart_debug:158]: <<< "Done\r\n"
[12:55:04][D][uart_debug:158]: <<< "leapMMW:/>"
[12:55:05][D][binary_sensor:034]: 'PIR': Sending initial state OFF

Full log

INFO ESPHome 2023.12.6
INFO Reading configuration /config/esphome/ep1-office.yaml...
WARNING GPIO15 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 ep1-office (board: esp32dev; framework: arduino; platform: platformio/espressif32@5.4.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 2.0.1
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.4
|-- Wire @ 2.0.0
|-- Improv @ 1.2.3
Compiling .pioenvs/ep1-office/src/main.cpp.o
Linking .pioenvs/ep1-office/firmware.elf
RAM:   [==        ]  16.5% (used 53944 bytes from 327680 bytes)
Flash: [==========]  95.6% (used 1754853 bytes from 1835008 bytes)
Building .pioenvs/ep1-office/firmware.bin
Creating esp32 image...
Successfully created esp32 image.
esp32_create_combined_bin([".pioenvs/ep1-office/firmware.bin"], [".pioenvs/ep1-office/firmware.elf"])
Wrote 0x1bdd70 bytes to file /data/build/ep1-office/.pioenvs/ep1-office/firmware-factory.bin, ready to flash to offset 0x0
========================= [SUCCESS] Took 24.37 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 192.168.30.21
INFO Uploading /data/build/ep1-office/.pioenvs/ep1-office/firmware.bin (1760624 bytes)
Uploading: [============================================================] 100% Done...

INFO Upload took 14.82 seconds, waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from 192.168.30.21 using esphome API
INFO Successfully connected to ep1-office @ 192.168.30.21 in 7.130s
INFO Successful handshake with ep1-office @ 192.168.30.21 in 0.213s
[12:53:32][I][app:102]: ESPHome version 2023.12.6 compiled on Jan 16 2024, 12:52:45
[12:53:32][I][app:104]: Project Everything_Smart_Technology.Everything_Presence_One version 1.1.8
[12:53:32][C][status_led:065]: Status Led Light:
[12:53:32][C][status_led:066]:   Pin: GPIO32
[12:53:32][D][switch:012]: 'mmWave sensor' Turning ON.
[12:53:32][D][uart_debug:158]: <<< "leapMMW:/>"
[12:53:32][C][wifi:573]: WiFi:
[12:53:32][C][wifi:405]:   Local MAC: C0:49:EF:6E:AB:4C
[12:53:32][C][wifi:410]:   SSID: [redacted]
[12:53:32][C][wifi:411]:   IP Address: 192.168.30.21
[12:53:32][C][wifi:413]:   BSSID: [redacted]
[12:53:32][C][wifi:414]:   Hostname: 'ep1-office'
[12:53:32][C][wifi:416]:   Signal strength: -40 dB ▂▄▆█
[12:53:32][C][wifi:420]:   Channel: 1
[12:53:32][C][wifi:421]:   Subnet: 255.255.255.0
[12:53:32][C][wifi:422]:   Gateway: 192.168.30.1
[12:53:32][C][wifi:423]:   DNS1: 192.168.20.5
[12:53:32][C][wifi:424]:   DNS2: 192.168.20.6
[12:53:32][D][uart_debug:158]: >>> "sensorStart"
[12:53:32][D][uart_debug:158]: <<< "sensorStart\r\n"
[12:53:32][D][uart_debug:158]: <<< "sensor started already\r\n"
[12:53:32][D][uart_debug:158]: <<< "Error\r\n"
[12:53:32][W][component:214]: Component uart took a long time for an operation (0.06 s).
[12:53:32][W][component:215]: Components should block for at most 20-30ms.
[12:53:32][C][logger:439]: Logger:
[12:53:32][C][logger:440]:   Level: DEBUG
[12:53:32][C][logger:441]:   Log Baud Rate: 115200
[12:53:32][C][logger:443]:   Hardware UART: UART0
[12:53:32][C][i2c.arduino:053]: I2C Bus:
[12:53:32][C][i2c.arduino:054]:   SDA Pin: GPIO26
[12:53:32][C][i2c.arduino:055]:   SCL Pin: GPIO25
[12:53:32][C][i2c.arduino:056]:   Frequency: 50000 Hz
[12:53:32][C][i2c.arduino:059]:   Recovery: bus successfully recovered
[12:53:32][I][i2c.arduino:069]: Results from i2c bus scan:
[12:53:32][I][i2c.arduino:075]: Found i2c device at address 0x23
[12:53:32][I][i2c.arduino:075]: Found i2c device at address 0x70
[12:53:32][C][uart.arduino_esp32:137]: UART Bus 1:
[12:53:32][C][uart.arduino_esp32:138]:   TX Pin: GPIO13
[12:53:33][C][template.number:050]: Template Number 'mmWave distance'
[12:53:33][C][template.number:050]:   Icon: 'mdi:arrow-left-right'
[12:53:33][C][template.number:050]:   Unit of Measurement: 'cm'
[12:53:33][C][template.number:051]:   Optimistic: YES
[12:53:33][C][template.number:052]:   Update Interval: 60.0s
[12:53:33][C][template.number:050]: Template Number 'mmWave off latency'
[12:53:33][C][template.number:050]:   Icon: 'mdi:clock-end'
[12:53:33][C][template.number:050]:   Unit of Measurement: 'seconds'
[12:53:33][C][template.number:051]:   Optimistic: YES
[12:53:33][C][template.number:052]:   Update Interval: 60.0s
[12:53:33][C][template.number:050]: Template Number 'mmWave on latency'
[12:53:33][C][template.number:050]:   Icon: 'mdi:clock-start'
[12:53:33][C][template.number:050]:   Unit of Measurement: 'seconds'
[12:53:33][C][template.number:051]:   Optimistic: YES
[12:53:33][C][template.number:052]:   Update Interval: 60.0s
[12:53:33][C][template.number:050]: Template Number 'mmWave sensitivity'
[12:53:33][C][template.number:050]:   Icon: 'mdi:target-variant'
[12:53:33][C][template.number:051]:   Optimistic: YES
[12:53:33][C][template.number:052]:   Update Interval: 60.0s
[12:53:33][C][template.number:050]: Template Number 'Occupancy off latency'
[12:53:33][C][template.number:050]:   Icon: 'mdi:clock-end'
[12:53:33][C][template.number:050]:   Unit of Measurement: 'seconds'
[12:53:33][C][template.number:051]:   Optimistic: YES
[12:53:33][C][template.number:052]:   Update Interval: 60.0s
[12:53:33][C][template.number:050]: Template Number 'PIR off latency'
[12:53:33][C][template.number:050]:   Icon: 'mdi:clock-end'
[12:53:33][C][template.number:050]:   Unit of Measurement: 'seconds'
[12:53:33][C][template.number:051]:   Optimistic: YES
[12:53:33][C][template.number:052]:   Update Interval: 60.0s
[12:53:33][C][template.number:050]: Template Number 'Temperature Offset'
[12:53:33][C][template.number:050]:   Icon: 'mdi:thermometer'
[12:53:33][C][template.number:050]:   Unit of Measurement: '°C'
[12:53:33][C][template.number:051]:   Optimistic: YES
[12:53:33][C][template.number:052]:   Update Interval: never
[12:53:33][C][template.number:050]: Template Number 'Humidity Offset'
[12:53:33][C][template.number:050]:   Icon: 'mdi:water-percent'
[12:53:33][C][template.number:050]:   Unit of Measurement: '%'
[12:53:33][C][template.number:051]:   Optimistic: YES
[12:53:33][C][template.number:052]:   Update Interval: never
[12:53:33][C][template.number:050]: Template Number 'Illuminance Offset'
[12:53:33][C][template.number:050]:   Icon: 'mdi:brightness-5'
[12:53:33][C][template.number:050]:   Unit of Measurement: 'lx'
[12:53:33][C][template.number:051]:   Optimistic: YES
[12:53:33][C][template.number:052]:   Update Interval: never
[12:53:33][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'PIR'
[12:53:33][C][gpio.binary_sensor:015]:   Device Class: 'motion'
[12:53:33][C][gpio.binary_sensor:016]:   Pin: GPIO33
[12:53:33][C][template.binary_sensor:028]: Template Binary Sensor 'Occupancy'
[12:53:33][C][template.binary_sensor:028]:   Device Class: 'occupancy'
[12:53:33][C][light:103]: Light 'ESP32 status LED'
[12:53:33][C][light:103]: Light 'mmWave LED'
[12:53:33][D][binary_sensor:036]: 'PIR': Sending state ON
[12:53:33][C][template.switch:068]: Template Switch 'mmWave sensor'
[12:53:33][C][template.switch:091]:   Restore Mode: restore defaults to ON
[12:53:33][C][template.switch:057]:   Optimistic: YES
[12:53:33][C][template.switch:068]: Template Switch 'UART presence output'
[12:53:33][C][template.switch:091]:   Restore Mode: always OFF
[12:53:33][C][template.switch:057]:   Optimistic: YES
[12:53:33][C][template.switch:068]: Template Switch 'UART target output'
[12:53:33][C][template.switch:091]:   Restore Mode: always OFF
[12:53:33][C][template.switch:057]:   Optimistic: YES
[12:53:33][C][shtcx:059]: SHTCx:
[12:53:33][C][shtcx:060]:   Model: SHTC3 (0887)
[12:53:33][C][shtcx:061]:   Address: 0x70
[12:53:33][C][shtcx:065]:   Update Interval: 60.0s
[12:53:33][C][shtcx:067]:   Temperature 'Temperature'
[12:53:33][C][shtcx:067]:     Device Class: 'temperature'
[12:53:33][C][shtcx:067]:     State Class: 'measurement'
[12:53:33][C][shtcx:067]:     Unit of Measurement: '°C'
[12:53:33][C][shtcx:067]:     Accuracy Decimals: 1
[12:53:33][C][shtcx:068]:   Humidity 'Humidity'
[12:53:33][C][shtcx:068]:     Device Class: 'humidity'
[12:53:33][C][shtcx:068]:     State Class: 'measurement'
[12:53:33][C][shtcx:068]:     Unit of Measurement: '%'
[12:53:33][C][shtcx:068]:     Accuracy Decimals: 1
[12:53:33][C][restart.button:017]: Restart Button 'restart_internal'
[12:53:33][C][safe_mode.button:022]: Safe Mode Button 'Safe mode'
[12:53:33][C][safe_mode.button:022]:   Icon: 'mdi:restart-alert'
[12:53:34][C][bluetooth_proxy:088]: Bluetooth Proxy:
[12:53:34][C][bluetooth_proxy:089]:   Active: YES
[12:53:34][C][bh1750.sensor:118]: BH1750 'Illuminance'
[12:53:34][C][bh1750.sensor:118]:   Device Class: 'illuminance'
[12:53:34][C][bh1750.sensor:118]:   State Class: 'measurement'
[12:53:34][C][bh1750.sensor:118]:   Unit of Measurement: 'lx'
[12:53:34][C][bh1750.sensor:118]:   Accuracy Decimals: 1
[12:53:34][C][bh1750.sensor:119]:   Address: 0x23
[12:53:34][C][bh1750.sensor:124]:   Update Interval: 30.0s
[12:53:34][C][esp32_ble:374]: ESP32 BLE:
[12:53:34][C][esp32_ble:376]:   MAC address: C0:49:EF:6E:AB:4E
[12:53:34][C][esp32_ble:377]:   IO Capability: none
[12:53:34][C][esp32_ble_server:200]: ESP32 BLE Server:
[12:53:34][C][esp32_improv.component:257]: ESP32 Improv:
[12:53:34][C][esp32_improv.component:262]:   Status Indicator: 'NO'
[12:53:34][C][esp32_ble_tracker:645]: BLE Tracker:
[12:53:34][C][esp32_ble_tracker:646]:   Scan Duration: 300 s
[12:53:34][C][esp32_ble_tracker:647]:   Scan Interval: 320.0 ms
[12:53:34][C][esp32_ble_tracker:648]:   Scan Window: 30.0 ms
[12:53:34][C][esp32_ble_tracker:649]:   Scan Type: ACTIVE
[12:53:34][C][esp32_ble_tracker:650]:   Continuous Scanning: True
[12:53:34][C][captive_portal:088]: Captive Portal:
[12:53:34][C][mdns:115]: mDNS:
[12:53:34][C][mdns:116]:   Hostname: ep1-office
[12:53:34][C][ota:097]: Over-The-Air Updates:
[12:53:34][C][ota:098]:   Address: ep1-office.local:3232
[12:53:34][C][api:139]: API Server:
[12:53:34][C][api:140]:   Address: ep1-office.local:6053
[12:53:34][C][api:142]:   Using noise encryption: YES
[12:53:34][C][improv_serial:032]: Improv Serial:
[12:53:34][D][esp32_ble:255]: Disabling BLE...
WARNING ep1-office @ 192.168.30.21: Connection error occurred: [Errno 104] Connection reset by peer
INFO Processing unexpected disconnect from ESPHome API for ep1-office @ 192.168.30.21
WARNING Disconnected from API
INFO Successfully connected to ep1-office @ 192.168.30.21 in 0.004s
INFO Successful handshake with ep1-office @ 192.168.30.21 in 0.313s
[12:54:14][D][api:102]: Accepted 192.168.20.20
[12:54:14][D][api.connection:1121]: Home Assistant 2024.1.3 (192.168.20.20): Connected successfully
[12:54:14][C][template.number:050]: Template Number 'mmWave distance'
[12:54:14][C][template.number:050]:   Icon: 'mdi:arrow-left-right'
[12:54:14][C][template.number:050]:   Unit of Measurement: 'cm'
[12:54:14][C][template.number:051]:   Optimistic: YES
[12:54:14][C][template.number:052]:   Update Interval: 60.0s
[12:54:14][C][template.number:050]: Template Number 'mmWave off latency'
[12:54:14][C][template.number:050]:   Icon: 'mdi:clock-end'
[12:54:14][C][template.number:050]:   Unit of Measurement: 'seconds'
[12:54:14][C][template.number:051]:   Optimistic: YES
[12:54:14][C][template.number:052]:   Update Interval: 60.0s
[12:54:15][C][template.number:050]: Template Number 'mmWave on latency'
[12:54:15][C][template.number:050]:   Icon: 'mdi:clock-start'
[12:54:15][C][template.number:050]:   Unit of Measurement: 'seconds'
[12:54:15][C][template.number:051]:   Optimistic: YES
[12:54:15][C][template.number:052]:   Update Interval: 60.0s
[12:54:15][C][template.number:050]: Template Number 'mmWave sensitivity'
[12:54:15][C][template.number:050]:   Icon: 'mdi:target-variant'
[12:54:15][C][template.number:051]:   Optimistic: YES
[12:54:15][C][template.number:052]:   Update Interval: 60.0s
[12:54:15][C][template.number:050]: Template Number 'Occupancy off latency'
[12:54:15][C][template.number:050]:   Icon: 'mdi:clock-end'
[12:54:15][C][template.number:050]:   Unit of Measurement: 'seconds'
[12:54:15][C][template.number:051]:   Optimistic: YES
[12:54:15][C][template.number:052]:   Update Interval: 60.0s
[12:54:15][C][template.number:050]: Template Number 'PIR off latency'
[12:54:15][C][template.number:050]:   Icon: 'mdi:clock-end'
[12:54:15][C][template.number:050]:   Unit of Measurement: 'seconds'
[12:54:15][C][template.number:051]:   Optimistic: YES
[12:54:15][C][template.number:052]:   Update Interval: 60.0s
[12:54:15][C][template.number:050]: Template Number 'Temperature Offset'
[12:54:15][C][template.number:050]:   Icon: 'mdi:thermometer'
[12:54:15][C][template.number:050]:   Unit of Measurement: '°C'
[12:54:15][C][template.number:051]:   Optimistic: YES
[12:54:15][C][template.number:052]:   Update Interval: never
[12:54:15][C][template.number:050]: Template Number 'Humidity Offset'
[12:54:15][C][template.number:050]:   Icon: 'mdi:water-percent'
[12:54:15][C][template.number:050]:   Unit of Measurement: '%'
[12:54:15][C][template.number:051]:   Optimistic: YES
[12:54:15][C][template.number:052]:   Update Interval: never
[12:54:15][C][template.number:050]: Template Number 'Illuminance Offset'
[12:54:15][C][template.number:050]:   Icon: 'mdi:brightness-5'
[12:54:15][C][template.number:050]:   Unit of Measurement: 'lx'
[12:54:15][C][template.number:051]:   Optimistic: YES
[12:54:15][C][template.number:052]:   Update Interval: never
[12:54:15][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'PIR'
[12:54:15][C][gpio.binary_sensor:015]:   Device Class: 'motion'
[12:54:15][C][gpio.binary_sensor:016]:   Pin: GPIO33
[12:54:15][C][template.binary_sensor:028]: Template Binary Sensor 'Occupancy'
[12:54:15][C][template.binary_sensor:028]:   Device Class: 'occupancy'
[12:54:15][C][light:103]: Light 'ESP32 status LED'
[12:54:15][C][light:103]: Light 'mmWave LED'
[12:54:15][C][template.switch:068]: Template Switch 'mmWave sensor'
[12:54:15][C][template.switch:091]:   Restore Mode: restore defaults to ON
[12:54:15][C][template.switch:057]:   Optimistic: YES
[12:54:15][C][template.switch:068]: Template Switch 'UART presence output'
[12:54:15][C][template.switch:091]:   Restore Mode: always OFF
[12:54:15][C][template.switch:057]:   Optimistic: YES
[12:54:15][C][template.switch:068]: Template Switch 'UART target output'
[12:54:15][C][template.switch:091]:   Restore Mode: always OFF
[12:54:15][C][template.switch:057]:   Optimistic: YES
[12:54:15][C][shtcx:059]: SHTCx:
[12:54:15][C][shtcx:060]:   Model: SHTC3 (0887)
[12:54:15][C][shtcx:061]:   Address: 0x70
[12:54:15][C][shtcx:065]:   Update Interval: 60.0s
[12:54:15][C][shtcx:067]:   Temperature 'Temperature'
[12:54:15][C][shtcx:067]:     Device Class: 'temperature'
[12:54:15][C][shtcx:067]:     State Class: 'measurement'
[12:54:15][C][shtcx:067]:     Unit of Measurement: '°C'
[12:54:15][C][shtcx:067]:     Accuracy Decimals: 1
[12:54:15][C][shtcx:068]:   Humidity 'Humidity'
[12:54:15][C][shtcx:068]:     Device Class: 'humidity'
[12:54:15][C][shtcx:068]:     State Class: 'measurement'
[12:54:15][C][shtcx:068]:     Unit of Measurement: '%'
[12:54:15][C][shtcx:068]:     Accuracy Decimals: 1
[12:54:15][C][restart.button:017]: Restart Button 'restart_internal'
[12:54:15][C][safe_mode.button:022]: Safe Mode Button 'Safe mode'
[12:54:15][C][safe_mode.button:022]:   Icon: 'mdi:restart-alert'
[12:54:15][C][bluetooth_proxy:088]: Bluetooth Proxy:
[12:54:15][C][bluetooth_proxy:089]:   Active: YES
[12:54:16][C][bh1750.sensor:118]: BH1750 'Illuminance'
[12:54:16][C][bh1750.sensor:118]:   Device Class: 'illuminance'
[12:54:16][C][bh1750.sensor:118]:   State Class: 'measurement'
[12:54:16][C][bh1750.sensor:118]:   Unit of Measurement: 'lx'
[12:54:16][C][bh1750.sensor:118]:   Accuracy Decimals: 1
[12:54:16][C][bh1750.sensor:119]:   Address: 0x23
[12:54:16][C][bh1750.sensor:124]:   Update Interval: 30.0s
[12:54:16][C][esp32_ble:374]: ESP32 BLE:
[12:54:16][C][esp32_ble:376]:   MAC address: C0:49:EF:6E:AB:4E
[12:54:16][C][esp32_ble:377]:   IO Capability: none
[12:54:16][C][esp32_ble_server:200]: ESP32 BLE Server:
[12:54:16][C][esp32_improv.component:257]: ESP32 Improv:
[12:54:16][C][esp32_improv.component:262]:   Status Indicator: 'NO'
[12:54:16][C][esp32_ble_tracker:645]: BLE Tracker:
[12:54:16][C][esp32_ble_tracker:646]:   Scan Duration: 300 s
[12:54:16][C][esp32_ble_tracker:647]:   Scan Interval: 320.0 ms
[12:54:16][C][esp32_ble_tracker:648]:   Scan Window: 30.0 ms
[12:54:16][C][esp32_ble_tracker:649]:   Scan Type: ACTIVE
[12:54:16][C][esp32_ble_tracker:650]:   Continuous Scanning: True
[12:54:16][C][captive_portal:088]: Captive Portal:
[12:54:16][C][mdns:115]: mDNS:
[12:54:16][C][mdns:116]:   Hostname: ep1-office
[12:54:16][D][switch:012]: 'mmWave sensor' Turning ON.
[12:54:16][D][switch:055]: 'mmWave sensor': Sending state ON
[12:54:16][D][switch:012]: 'mmWave sensor' Turning ON.
[12:54:16][C][ota:097]: Over-The-Air Updates:
[12:54:16][C][ota:098]:   Address: ep1-office.local:3232
[12:54:16][W][ota:107]: Last Boot was an unhandled reset, will proceed to safe mode in 6 restarts
[12:54:16][C][api:139]: API Server:
[12:54:16][C][api:140]:   Address: ep1-office.local:6053
[12:54:16][C][api:142]:   Using noise encryption: YES
[12:54:16][C][improv_serial:032]: Improv Serial:
[12:54:16][D][uart_debug:158]: >>> "sensorStartsensorStart"
[12:54:16][D][uart_debug:158]: <<< "sensorStart\r\n"
[12:54:16][D][uart_debug:158]: <<< "Done\r\n"
[12:54:16][D][switch:012]: 'mmWave sensor' Turning ON.
[12:54:16][D][uart_debug:158]: <<< "leapMMW:/>"
[12:54:16][D][uart_debug:158]: >>> "sensorStart"
[12:54:16][D][uart_debug:158]: <<< "sensorStart\r\n"
[12:54:16][D][uart_debug:158]: <<< "sensor started already\r\n"
[12:54:16][D][uart_debug:158]: <<< "Error\r\n"
[12:54:16][W][component:214]: Component uart took a long time for an operation (0.05 s).
[12:54:16][W][component:215]: Components should block for at most 20-30ms.
[12:54:16][D][uart_debug:158]: <<< "leapMMW:/>"
WARNING ep1-office @ 192.168.30.21: Connection error occurred: [Errno 104] Connection reset by peer
INFO Processing unexpected disconnect from ESPHome API for ep1-office @ 192.168.30.21
WARNING Disconnected from API
INFO Successfully connected to ep1-office @ 192.168.30.21 in 0.008s
INFO Successful handshake with ep1-office @ 192.168.30.21 in 0.186s
[12:55:04][D][uart_debug:158]: <<< "sensorStart\r\n"
[12:55:04][D][uart_debug:158]: <<< "Done\r\n"
[12:55:04][D][uart_debug:158]: <<< "leapMMW:/>"
[12:55:05][D][binary_sensor:034]: 'PIR': Sending initial state OFF
EverythingSmartHome commented 7 months ago

Hello! Can you attach your config? It looks like you have Bluetooth proxy and/or ble tracking enabled which can cause disconnects, I would try removing if you have those enabled.

alexolivier commented 7 months ago

Ah yeah it looks like it was the bluetooth proxy - disabling that solved it. Bit annoying though as I'm using the BT proxy to control my Switchbot curtains and its been working up till this firmware version - not an issue for you it seems though.

  name: "ep1-office"
  friendly_name: Office
packages:
  Everything_Smart_Technology.Everything_Presence_One: github://everythingsmarthome/presence-one/everything-presence-one.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}
api:
  encryption:
    key: .....
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

# bluetooth_proxy:
#   active: true 
EverythingSmartHome commented 7 months ago

You can try switching the framework to esp-idf which is the recommended for anything Bluetooth which may help - it's not usually recommended to use Arduino for Bluetooth

alexolivier commented 7 months ago

Thanks will give that a go - and thanks for the prompt replies. All working as expected without BT so will close. Keep up the great work!