Closed Limych closed 3 years ago
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Docker image
ESP (ESP32/ESP8266, Board/Sonoff):
NodeMCU ESP32
Affected component:
Sensor HDC1080
Description of problem:
Firmware crashes then (and only then) I try to add HDC1080 sensor config.
Problem-relevant YAML-configuration entries:
substitutions: device_name: "Kitchen" <<: !include secrets.yaml esphome: name: kitchen platform: ESP32 board: nodemcu-32s status_led: pin: GPIO2 wifi: ssid: $wifi_ssid password: !secret wifi_password domain: ".lan" manual_ip: static_ip: 192.168.1.65 gateway: 192.168.1.1 subnet: 255.255.255.0 # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Kitchen Fallback Hotspot" password: !secret ota_password captive_portal: # Enable logging logger: # Enable Home Assistant API api: password: !secret ota_password ota: password: !secret ota_password web_server: port: 80 auth: username: admin password: !secret web_server_password i2c: - id: bus_indoor sda: 21 scl: 22 scan: False - id: bus_outdoor sda: 19 scl: 23 scan: False binary_sensor: - platform: gpio pin: 18 name: "${device_name} Motion" device_class: motion sensor: # Indoor sensors #################################################### - platform: bmp280 i2c_id: bus_indoor address: 0x76 update_interval: 60s temperature: name: "${device_name} Temperature" oversampling: 16x id: indoor_temp pressure: name: "${device_name} Pressure" - platform: hdc1080 i2c_id: bus_indoor address: 0x40 update_interval: 60s humidity: name: "${device_name} Humidity" id: indoor_humi - platform: ccs811 i2c_id: bus_indoor address: 0x5A update_interval: 60s temperature: indoor_temp # humidity: indoor_humi # baseline: eco2: name: "${device_name} eCO2" tvoc: name: "${device_name} tVOC" # Outdoor sensors #################################################### - platform: htu21d i2c_id: bus_outdoor # address: 0x40 update_interval: 60s temperature: name: "Outdoor Temperature" humidity: name: "Outdoor Humidity" # - platform: bmp085 # i2c_id: bus_outdoor # address: 0x77 # update_interval: 60s # temperature: # name: "Outdoor Temperature" # pressure: # name: "Outdoor Pressure" - platform: bh1750 i2c_id: bus_outdoor address: 0x23 update_interval: 60s name: "Outdoor Illuminance"
Logs (if applicable):
Wrote 943344 bytes (527271 compressed) at 0x00010000 in 13.0 seconds (effective 579.0 kbit/s)... Hash of data verified. Leaving... Hard resetting via RTS pin... ========================= [SUCCESS] Took 22.67 seconds ========================= INFO Successfully uploaded program. INFO Starting log output from /dev/ttyUSB0 with baud rate 115200 [21:47:46][I][logger:156]: Log initialized [21:47:46][C][status_led:014]: Setting up Status LED... [21:47:46][C][ota:364]: There have been 1 suspected unsuccessful boot attempts. [21:47:46][I][app:028]: Running through setup()... [21:47:46][D][binary_sensor:034]: 'Kitchen Motion': Sending initial state ON [21:47:46][C][bmp280.sensor:056]: Setting up BMP280... [21:47:46][C][hdc1080:015]: Setting up HDC1080... [21:47:46][C][htu21d:016]: Setting up HTU21D... [21:47:46][C][bh1750.sensor:012]: Setting up BH1750 'Outdoor Illuminance'... [21:47:46][C][wifi:033]: Setting up WiFi... [21:47:46][D][wifi:304]: Starting scan... [21:47:46][D][htu21d:052]: Got Temperature=24.3°C Humidity=30.6% [21:47:46][D][sensor:092]: 'Outdoor Temperature': Sending state 24.27885 °C with 1 decimals of accuracy [21:47:46][D][sensor:092]: 'Outdoor Humidity': Sending state 30.58295 % with 1 decimals of accuracy [21:47:46]Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled. [21:47:46]Core 1 register dump: [21:47:46]PC : 0x400db16e PS : 0x00060c30 A0 : 0x800d8bde A1 : 0x3ffb1a10 INFO Need to fetch platformio IDE-data, please stand by INFO Running: platformio run -d kitchen -t idedata WARNING Decoded 0x400db16e: esphome::sensor::Sensor::publish_state(float) at /config/kitchen/src/esphome/components/sensor/sensor.cpp:85 [21:47:49]A2 : 0x00000000 A3 : 0x41c84c3d A4 : 0x3ffb1a6c A5 : 0x00000009 [21:47:49]A6 : 0x400e107c A7 : 0x00000000 A8 : 0x800d93f1 A9 : 0x3ffb1a00 [21:47:49]A10 : 0x00000001 A11 : 0x00000040 A12 : 0x00000000 A13 : 0x3ffb1a6c [21:47:49]A14 : 0x00000009 A15 : 0x3ffb19dc SAR : 0x0000001b EXCCAUSE: 0x0000001d [21:47:49]EXCVADDR: 0x00000040 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000 [21:47:49] [21:47:49]Backtrace: 0x400db16e:0x3ffb1a10 0x400d8bdb:0x3ffb1a40 0x40167741:0x3ffb1a90 0x400810fb:0x3ffb1ab0 0x400e031f:0x3ffb1ae0 0x400e2b5d:0x3ffb1b30 0x400effa3:0x3ffb1fb0 0x400895c9:0x3ffb1fd0 WARNING Found stack trace! Trying to decode it WARNING Decoded 0x400db16e: esphome::sensor::Sensor::publish_state(float) at /config/kitchen/src/esphome/components/sensor/sensor.cpp:85 WARNING Decoded 0x400d8bdb: esphome::hdc1080::HDC1080Component::update() at /config/kitchen/src/esphome/components/hdc1080/hdc1080.cpp:44 WARNING Decoded 0x40167741: std::_Function_handler<void (), esphome::PollingComponent::call_setup()::{lambda()#1}>::_M_invoke(std::_Any_data const&) at /config/kitchen/src/esphome/core/component.cpp:149 (inlined by) _M_invoke at /root/.platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/functional:1871 WARNING Decoded 0x400810fb: std::function<void ()>::operator()() const at /root/.platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_vector.h:932 (inlined by) esphome::Scheduler::call() at /config/kitchen/src/esphome/core/scheduler.cpp:137 WARNING Decoded 0x400e031f: esphome::Application::setup() at /config/kitchen/src/esphome/core/application.cpp:47 WARNING Decoded 0x400e2b5d: setup() at /config/kitchen/src/main.cpp:397 WARNING Decoded 0x400effa3: loopTask(void*) at /root/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:14 WARNING Decoded 0x400895c9: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1) [21:47:49] [21:47:49]Rebooting...
Additional information and things you've tried:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Docker image
ESP (ESP32/ESP8266, Board/Sonoff):
NodeMCU ESP32
Affected component:
Sensor HDC1080
Description of problem:
Firmware crashes then (and only then) I try to add HDC1080 sensor config.
Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried: