j5lien / esphome-idasen-desk-controller

ESPHome component for Ikea Idasen desk control
MIT License
187 stars 36 forks source link

ESP32 keeps crashing on ESPHome 2022.11.2 #60

Closed spyfly closed 1 year ago

spyfly commented 1 year ago

Hi,

my ESP32 keeps crashing with this component enabled on ESPHome 2022.11.2.

I have disabled all services other than this integration.

Here is the log of the ESP32 before the crash:

[I][logger:258]: Log initialized
[C][ota:469]: There have been 9 suspected unsuccessful boot attempts.
[D][esp32.preferences:113]: Saving 1 preferences to flash...
[D][esp32.preferences:142]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[D][esp32_ble_tracker:264]: Starting scan...
[C][wifi:037]: Setting up WiFi...
[C][wifi:038]:   Local MAC: 30:AE:A4:96:88:C8
[I][wifi:257]: WiFi Connecting to 'Heiden.Funk.IoT'...
[D][binary_sensor:036]: 'Sebastians Desk Connection': Sending state OFF
[D][binary_sensor:036]: 'Sebastians Desk Moving': Sending state OFF
[D][esp32_ble_tracker:812]: Found device A0:2C:36:66:0A:9C RSSI=-42
[D][esp32_ble_tracker:833]:   Address Type: PUBLIC
[D][esp32_ble_tracker:835]:   Name: 'LM1420'
[D][esp32_ble_tracker:837]:   TX Power: 2
[D][esp32_ble_tracker:812]: Found device D5:21:97:A1:DB:C1 RSSI=-64
[D][esp32_ble_tracker:833]:   Address Type: RANDOM
[D][esp32_ble_tracker:835]:   Name: 'LHB-3C334B54'
[D][esp32_ble_tracker:812]: Found device DD:A0:52:CB:FB:D7 RSSI=-63
[D][esp32_ble_tracker:833]:   Address Type: RANDOM
[D][esp32_ble_tracker:835]:   Name: 'LHB-2234193E'
[D][esp32_ble_tracker:812]: Found device 77:F3:51:E0:7E:88 RSSI=-61
[D][esp32_ble_tracker:833]:   Address Type: RANDOM
[D][esp32_ble_tracker:812]: Found device 28:17:0F:D1:7C:67 RSSI=-45
[D][esp32_ble_tracker:833]:   Address Type: RANDOM
[D][esp32_ble_tracker:812]: Found device 46:FB:20:99:0B:5E RSSI=-64
[D][esp32_ble_tracker:833]:   Address Type: RANDOM
[D][esp32_ble_tracker:835]:   Name: 'LE-spyflys Revolve SoundLi'
[D][esp32_ble_tracker:837]:   TX Power: 2
[D][esp-idf:000]: E (5840) wifi:
[D][esp-idf:000]: Set status to INIT
[D][esp-idf:000]: 

[D][esp32_ble_tracker:812]: Found device 56:12:75:EA:43:FF RSSI=-86
[D][esp32_ble_tracker:833]:   Address Type: RANDOM
[D][esp32_ble_tracker:837]:   TX Power: 2
[I][wifi:518]: WiFi Connected!
[C][wifi:362]:   Local MAC: 30:AE:A4:96:88:C8
[C][wifi:363]:   SSID: [redacted]
[C][wifi:364]:   IP Address: 192.168.40.201
[C][wifi:366]:   BSSID: [redacted]
[C][wifi:367]:   Hostname: 'sebastians-esp32'
[C][wifi:369]:   Signal strength: -57 dB ▂▄▆█
[C][wifi:373]:   Channel: 2
[C][wifi:374]:   Subnet: 255.255.255.0
[C][wifi:375]:   Gateway: 192.168.40.1
[C][wifi:376]:   DNS1: 192.168.40.1
[C][wifi:377]:   DNS2: 0.0.0.0
[D][wifi:527]: Disabling AP...
[C][ota:093]: Over-The-Air Updates:
[C][ota:094]:   Address: sebastians-esp32.heiden.io:3232
[C][ota:097]:   Using Password.
[W][ota:103]: Last Boot was an unhandled reset, will proceed to safe mode in 1 restarts
[C][api:025]: Setting up Home Assistant API server...
[C][idasen_desk_controller:019]: Setting up Idasen Desk Controller...
[I][app:062]: setup() finished successfully!
[I][app:102]: ESPHome version 2022.11.2 compiled on Nov 24 2022, 00:10:48
[C][wifi:504]: WiFi:
[C][wifi:362]:   Local MAC: 30:AE:A4:96:88:C8
[C][wifi:363]:   SSID: [redacted]
[C][wifi:364]:   IP Address: 192.168.40.201
[C][wifi:366]:   BSSID: [redacted]
[C][wifi:367]:   Hostname: 'sebastians-esp32'
[C][wifi:369]:   Signal strength: -57 dB ▂▄▆█
[C][wifi:373]:   Channel: 2
[C][wifi:374]:   Subnet: 255.255.255.0
[C][wifi:375]:   Gateway: 192.168.40.1
[C][wifi:376]:   DNS1: 192.168.40.1
[C][wifi:377]:   DNS2: 0.0.0.0
[C][logger:293]: Logger:
[C][logger:294]:   Level: DEBUG
[C][logger:295]:   Log Baud Rate: 115200
[C][logger:296]:   Hardware UART: UART0
[C][template.binary_sensor:018]: Template Binary Sensor 'Sebastians Desk Connection'
[C][template.binary_sensor:018]: Template Binary Sensor 'Sebastians Desk Moving'
[C][ble_sensor:017]: BLE Sensor 'Sebastians Desk Height'
[C][ble_sensor:017]:   State Class: ''
[C][ble_sensor:017]:   Unit of Measurement: 'cm'
[C][ble_sensor:017]:   Accuracy Decimals: 1
[C][ble_sensor:017]:   Icon: 'mdi:arrow-up-down'
[C][ble_sensor:018]:   MAC address        : ed:43:c8:e2:df:4b
[C][ble_sensor:019]:   Service UUID       : 99FA0020-338A-1024-8A49-009C0215F78A
[C][ble_sensor:020]:   Characteristic UUID: 99FA0021-338A-1024-8A49-009C0215F78A
[C][ble_sensor:021]:   Descriptor UUID    : 00000000-0000-0000-0000-000000000000
[C][ble_sensor:022]:   Notifications      : YES
[C][ble_sensor:023]:   Update Interval: never
[C][ble_sensor:017]: BLE Sensor 'Sebastians Desk Speed'
[C][ble_sensor:017]:   State Class: ''
[C][ble_sensor:017]:   Unit of Measurement: 'cm/min'
[C][ble_sensor:017]:   Accuracy Decimals: 0
[C][ble_sensor:017]:   Icon: 'mdi:speedometer'
[C][ble_sensor:018]:   MAC address        : ed:43:c8:e2:df:4b
[C][ble_sensor:019]:   Service UUID       : 99FA0020-338A-1024-8A49-009C0215F78A
[C][ble_sensor:020]:   Characteristic UUID: 99FA0021-338A-1024-8A49-009C0215F78A
[C][ble_sensor:021]:   Descriptor UUID    : 00000000-0000-0000-0000-000000000000
[C][ble_sensor:022]:   Notifications      : YES
[C][ble_sensor:023]:   Update Interval: never
[C][esp32_ble_tracker:796]: BLE Tracker:
[C][esp32_ble_tracker:797]:   Scan Duration: 300 s
[C][esp32_ble_tracker:798]:   Scan Interval: 320.0 ms
[C][esp32_ble_tracker:799]:   Scan Window: 30.0 ms
[C][esp32_ble_tracker:800]:   Scan Type: ACTIVE
[C][esp32_ble_tracker:801]:   Continuous Scanning: True
[C][ble_client:027]: BLE Client:
[C][ble_client:028]:   Address: ed:43:c8:e2:df:4b
[C][captive_portal:088]: Captive Portal:
[C][mdns:103]: mDNS:
[C][mdns:104]:   Hostname: sebastians-esp32
[C][ota:093]: Over-The-Air Updates:
[C][ota:094]:   Address: sebastians-esp32.heiden.io:3232
[C][ota:097]:   Using Password.
[W][ota:103]: Last Boot was an unhandled reset, will proceed to safe mode in 1 restarts
[C][api:138]: API Server:
[C][api:139]:   Address: sebastians-esp32.heiden.io:6053
[C][api:143]:   Using noise encryption: NO
[C][idasen_desk_controller:024]: Idasen Desk Controller:
[C][idasen_desk_controller:025]:   MAC address        : ed:43:c8:e2:df:4b
[C][idasen_desk_controller:026]:   Notifications      : disable
[C][idasen_desk_controller:027]:   Desk 'Sebastians Desk'
[D][esp32_ble_client:039]: [0] [ed:43:c8:e2:df:4b] Found device
[I][esp32_ble_client:054]: [0] [ed:43:c8:e2:df:4b] Attempting BLE connection
[I][idasen_desk_controller:042]: [Sebastians Desk] Connected successfully!
[I][ble_sensor:031]: [Sebastians Desk Height] Connected successfully!
[I][ble_sensor:031]: [Sebastians Desk Speed] Connected successfully!
[D][api:102]: Accepted ::FFFF:C0A8:142F
[W][api.connection:083]: Home Assistant 2022.11.4 (::FFFF:C0A8:142F): Connection closed
[I][esp32_ble_client:154]: [0] [ed:43:c8:e2:df:4b] Service UUID: 0x1800
[I][esp32_ble_client:156]: [0] [ed:43:c8:e2:df:4b]  start_handle: 0x1  end_handle: 0x9
[I][esp32_ble_client:059]: [0] [ed:43:c8:e2:df:4b]  characteristic 0x2A00, handle 0x3, properties 0xa
[I][esp32_ble_client:059]: [0] [ed:43:c8:e2:df:4b]  characteristic 0x2A01, handle 0x5, properties 0x2
[I][esp32_ble_client:059]: [0] [ed:43:c8:e2:df:4b]  characteristic 0x2A04, handle 0x7, properties 0x2
[I][esp32_ble_client:059]: [0] [ed:43:c8:e2:df:4b]  characteristic 0x2AA6, handle 0x9, properties 0x2
[I][esp32_ble_client:154]: [0] [ed:43:c8:e2:df:4b] Service UUID: 0x1801
[I][esp32_ble_client:156]: [0] [ed:43:c8:e2:df:4b]  start_handle: 0xa  end_handle: 0xd
[I][esp32_ble_client:059]: [0] [ed:43:c8:e2:df:4b]  characteristic 0x2A05, handle 0xc, properties 0x20
[I][esp32_ble_client:154]: [0] [ed:43:c8:e2:df:4b] Service UUID: 99FA0001-338A-1024-8A49-009C0215F78A
[I][esp32_ble_client:156]: [0] [ed:43:c8:e2:df:4b]  start_handle: 0xe  end_handle: 0x13
[I][esp32_ble_client:059]: [0] [ed:43:c8:e2:df:4b]  characteristic 99FA0002-338A-1024-8A49-009C0215F78A, handle 0x10, properties 0xc
[I][esp32_ble_client:059]: [0] [ed:43:c8:e2:df:4b]  characteristic 99FA0003-338A-1024-8A49-009C0215F78A, handle 0x12, properties 0x12
[I][esp32_ble_client:154]: [0] [ed:43:c8:e2:df:4b] Service UUID: 99FA0010-338A-1024-8A49-009C0215F78A
[I][esp32_ble_client:156]: [0] [ed:43:c8:e2:df:4b]  start_handle: 0x14  end_handle: 0x17
[I][esp32_ble_client:059]: [0] [ed:43:c8:e2:df:4b]  characteristic 99FA0011-338A-1024-8A49-009C0215F78A, handle 0x16, properties 0x1e
[I][esp32_ble_client:154]: [0] [ed:43:c8:e2:df:4b] Service UUID: 99FA0020-338A-1024-8A49-009C0215F78A
[I][esp32_ble_client:156]: [0] [ed:43:c8:e2:df:4b]  start_handle: 0x18  end_handle: 0x1f
[I][esp32_ble_client:059]: [0] [ed:43:c8:e2:df:4b]  characteristic 99FA0021-338A-1024-8A49-009C0215F78A, handle 0x1a, properties 0x12
[I][esp32_ble_client:059]: [0] [ed:43:c8:e2:df:4b]  characteristic 99FA0029-338A-1024-8A49-009C0215F78A, handle 0x1d, properties 0x2
[I][esp32_ble_client:059]: [0] [ed:43:c8:e2:df:4b]  characteristic 99FA002A-338A-1024-8A49-009C0215F78A, handle 0x1f, properties 0x2
[I][esp32_ble_client:154]: [0] [ed:43:c8:e2:df:4b] Service UUID: 99FA0030-338A-1024-8A49-009C0215F78A
[I][esp32_ble_client:156]: [0] [ed:43:c8:e2:df:4b]  start_handle: 0x20  end_handle: 0xffff
[I][esp32_ble_client:059]: [0] [ed:43:c8:e2:df:4b]  characteristic 99FA0031-338A-1024-8A49-009C0215F78A, handle 0x22, properties 0xc
[D][esp32_ble_tracker:264]: Starting scan...
[D][binary_sensor:036]: 'Sebastians Desk Connection': Sending state ON
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x4000c2e0  PS      : 0x00060230  A0      : 0x800d9a94  A1      : 0x3ffccb70  
A2      : 0x3ffccc04  A3      : 0x00000000  A4      : 0x00000012  A5      : 0x3ffccc04  
A6      : 0x00060223  A7      : 0x00000001  A8      : 0x00000000  A9      : 0x0000abab  
A10     : 0x3fff49d8  A11     : 0x3fff4db5  A12     : 0x3fff49fc  A13     : 0x3fff4c04  
A14     : 0x3fff4b75  A15     : 0x3fff4c05  SAR     : 0x00000010  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000  

ELF file SHA256: 0000000000000000

Backtrace: 0x4000c2e0:0x3ffccb70 0x400d9a91:0x3ffccb80 0x400d8e86:0x3ffccba0 0x400d63ad:0x3ffccc40 0x401e917d:0x3ffccc70 0x400da7bd:0x3ffccc90 0x401e956d:0x3ffccd90 0x401e9649:0x3ffccdb0 0x400e10c2:0x3ffccdd0 0x400e3b1a:0x3ffcce00 0x400eecb4:0x3ffcce20 0x400909d6:0x3ffcce40

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac
spyfly commented 1 year ago

Seems like this issue has been resolved, by flashing the latest ESPHome Firmware locally.