Skip to content

The KM271 component should only start to work, when there is a network connection established #83

Description

@the78mole

It seems, that Improv and Fallback Hotspot have some issues when the component tries to connect to the buderus, fails if not connected, throws errors and aborts. The WiFi connection can be faulty under these circumstances on some devices (sometimes many trials needed to succeed).

[...]
[21:01:39][E][km271:219]: Adding sensor with type param 0 to parameter 0x883B
[21:01:39][E][km271:219]: Adding sensor with type param 0 to parameter 0x893E
[21:01:39][E][km271:219]: Adding sensor with type param 1 to parameter 0x893F
[21:01:39][I][app:029]: Running through setup()...
[21:01:39][C][uart.arduino_esp32:077]: Setting up UART...
[21:01:39][D][binary_sensor:034]: 'USER 2': Sending initial state OFF
[21:01:39][C][switch.gpio:011]: Setting up GPIO Switch 'LED2_Green'...
[21:01:39][D][switch:016]: 'LED2_Green' Turning OFF.
[21:01:39][D][switch:055]: 'LED2_Green': Sending state OFF
[21:01:39][D][switch:016]: 'LED2_Green' Turning OFF.
[21:01:39][C][km271:142]: Setup was called
[21:01:39][D][KM271:029]: Sending Telegram [3]: 0xEE 00 00 
[21:01:39][C][adc.esp32:025]: Setting up ADC 'KM217 5V Supply'...
[21:01:39][C][esp32_ble:035]: Setting up BLE...
[21:01:39][C][wifi:048]: Setting up WiFi...
[21:01:39][C][wifi:061]: Starting WiFi...
[21:01:39][C][wifi:062]:   Local MAC: 90:15:06:4F:74:B0
[21:01:39][C][wifi:263]: Setting up AP...
[21:01:39][C][wifi:265]:   AP SSID: 'Fallback Hotspot'
[21:01:39][C][wifi:266]:   AP Password: 'Z8zfajgxVvNw'
[21:01:40][C][wifi:275]:   IP Address: 192.168.4.1
[21:01:40][D][wifi:482]: Starting scan...
[21:01:40][D][esp32_improv.component:252]: Setting Improv to start
[21:01:40][C][api:026]: Setting up Home Assistant API server...
[21:01:40][D][wifi:482]: Starting scan...
[21:01:40][I][app:062]: setup() finished successfully!
[21:01:40][D][sensor:094]: 'KM217 WiFi Signal Sensor': Sending state 0.00000 dBm with 0 decimals of accuracy
[21:01:40][D][esp32_ble:295]: Enabling BLE...
[21:01:43][W][component:237]: Component esp32_ble took a long time for an operation (2598 ms).
[21:01:43][W][component:238]: Components should block for at most 30 ms.
[21:01:43]
[21:01:43]abort() was called at PC 0x401ec8a7 on core 1
[21:01:43]
[21:01:43]
[21:01:43]Backtrace:0x40083829:0x3ffcd8900x4009320d:0x3ffcd8b0 0x400987d1:0x3ffcd8d0 0x401ec8a7:0x3ffcd950 0x401ec8ee:0x3ffcd970 0x401ec9e7:0x3ffcd990 0x401ec946:0x3ffcd9b0 0x401eca51:0x3ffcd9d0 0x401f0733:0x3ffcd9f0 0x400f6039:0x3ffcda40 0x400d9def:0x3ffcda80 0x400d9dfa:0x3ffcdaa0 0x40206199:0x3ffcdac0 0x40206235:0x3ffcdae0 0x400e7a44:0x3ffcdb00 0x400ea1fe:0x3ffcdb30 0x400f8ad1:0x3ffcdb50 
[21:01:43]
[21:01:43]
[21:01:43]
[21:01:43]
[21:01:43]ELF file SHA256: 0000000000000000
[21:01:43]
[21:01:43]Rebooting...
[21:01:43]ets Jun  8 2016 00:22:57
[21:01:43]
[21:01:43]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[21:01:43]configsip: 0, SPIWP:0xee
[21:01:43]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[21:01:43]mode:DIO, clock div:2
[21:01:43]load:0x3fff0030,len:1184
[21:01:43]load:0x40078000,len:13132
[21:01:43]load:0x40080400,len:3036
[21:01:43]entry 0x400805e4
[21:01:43][I][logger:171]: Log initialized
[...and so forth...]

This behaviour should not apply to units placed in the buderus control unit, because adding the sensors succeed. But for testing in a standalone configuration, this is problematic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions