esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

Restarts and unstable connection 2023.3 update #4310

Open radek-kafka opened 1 year ago

radek-kafka commented 1 year ago

The problem

Hi,

my M5Atom is restarting after the update to new version 2023.3 today.. I have tried multiple reboots but still same.. Lot of disconnects from WiFi, crashes etc..

See the logs .. Many thanks Radek

Which version of ESPHome has the issue?

2023.3

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2023.2

What platform are you using?

ESP32

Board

M5AtomLite

Component causing the issue

No response

Example YAML snippet

esphome:
  name: "atom-bluetooth-proxy"

dashboard_import:
    package_import_url: github://esphome/bluetooth-proxies/m5stack-atom-lite.yaml@main

esp32:
  board: m5stack-atom
  framework:
    type: arduino

substitutions:
  devicename: m5atom_ir
  upper_devicename: M5Atom IR
  mqtt_broker: 192.168.88.21

bluetooth_proxy:
  active: false

# Enable logging

logger:
  logs:
    homeassistant.components.bluetooth: debug

# Enable Home Assistant API
api:
  encryption:
    key: "removed here ="

ota:
  password: "removed"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Proxy2 Fallback Hotspot"
    password: "0WpeXzyNPrUc"

captive_portal:

improv_serial:

esp32_ble_tracker:
  scan_parameters:
    interval: 1100ms
    window: 1100ms
    active: true  

sensor:
  - platform: xiaomi_miscale
    mac_address: '5C:CA:D3:C7:E3:AE'
    clear_impedance: true 
    weight:
      name: "Xiaomi Mi Scale Weight"
      id: weight_miscale
      on_value:
        then:
          - lambda: |-
              if (id(weight_miscale).state >= 75 && id(weight_miscale).state <= 90) {
                return id(weight_user1).publish_state(x);}
              else if (id(weight_miscale).state >= 55 && id(weight_miscale).state <= 64) {
                return id(weight_user2).publish_state(x);}
              else if (id(weight_miscale).state >= 35 && id(weight_miscale).state <= 54) {
                return id(weight_user3).publish_state(x);}

    impedance:
      name: "Xiaomi Mi Scale Impedance"
      id: impedance_miscale
      on_value:
        then:
          - lambda: |-
              if (id(weight_miscale).state >= 75 && id(weight_miscale).state <= 90) {
                return id(impedance_user1).publish_state(x);}
              else if (id(weight_miscale).state >= 55 && id(weight_miscale).state <= 64) {
                return id(impedance_user2).publish_state(x);}
              else if (id(weight_miscale).state >= 35 && id(weight_miscale).state <= 54) {
                return id(impedance_user3).publish_state(x);}

  - platform: template
    name: Váha Radek
    id: weight_user1
    unit_of_measurement: 'kg'
    icon: mdi:weight-kilogram
    accuracy_decimals: 2
  - platform: template
    name: Impedance Radek
    id: impedance_user1
    unit_of_measurement: 'Ω'
    icon: mdi:omega
    accuracy_decimals: 0
  - platform: template
    name: Váha Renka
    id: weight_user2
    unit_of_measurement: 'kg'
    icon: mdi:weight-kilogram
    accuracy_decimals: 2
  - platform: template
    name: Impedance Renka
    id: impedance_user2
    unit_of_measurement: 'Ω'
    icon: mdi:omega
    accuracy_decimals: 0
  - platform: template
    name: Váha Štěpánka
    id: weight_user3
    unit_of_measurement: 'kg'
    icon: mdi:weight-kilogram
    accuracy_decimals: 2
  - platform: template
    name: Impedance Štěpánka
    id: impedance_user3
    unit_of_measurement: 'Ω'
    icon: mdi:omega
    accuracy_decimals: 0

  - platform: template
    name: "BLE Sensor"
    id: ble_sensor     

  - platform: wifi_signal
    name: ${upper_devicename} WiFi Signal
  - platform: uptime
    name: ${upper_devicename} Uptime

# MI Band 6
binary_sensor:
  - platform: ble_presence
    mac_address: F9:DD:DC:96:BF:25
    name: "miBand6"
  - platform: gpio
    pin:
      number: GPIO39
      inverted: true
    name: ${upper_devicename} Button
    on_press:
      then:
        - switch.toggle: ir1

# Grove IR Transmitter
remote_transmitter:
  - pin:
      number: GPIO26
    carrier_duty_percent: 50%
    id: grove
# M5Atom internal IR Transmitter
  - pin:
      number: GPIO12
    carrier_duty_percent: 50%
    id: internal_ir

remote_receiver:
  pin: 
    number: GPIO32
    inverted: true
  dump: all

mqtt:
  broker: ${mqtt_broker}
  username: !secret mqtt_username
  password: !secret mqtt_password
  on_json_message:
    topic: ${devicename}/transmit_lg        # Examples of json payload : { "data": 551494620, "nbits": 32 }
    then:                                   #                            { "data": 551494620 }
      - remote_transmitter.transmit_lg:
          transmitter_id: grove
          data: !lambda |-
            uint32_t data = 0;
            if (x.containsKey("data"))
              data = x["data"];
            return data;
          nbits: !lambda |-
            uint8_t nbits = 32;
            if (x.containsKey("nbits"))
              nbits = x["nbits"];
            return nbits;

switch:
  - platform: restart
    name: ${upper_devicename} Restart
  - platform: template
    name: ${upper_devicename} LG TV Power On
    id: ir1
    turn_on_action:
      - remote_transmitter.transmit_lg:
          data: 0x20DF23DC              # = 551494620 found by scan from lg remote = 0x20DF10EF, nbits=32
          nbits: 32
          transmitter_id: grove

#text_sensor:
#  - platform: ble_scanner
#    name: "BLE Devices Scanner"

Anything in the logs that might be useful for us?

Logs atom-bluetooth-proxy.yaml
INFO Reading configuration /config/esphome/atom-bluetooth-proxy.yaml...
WARNING GPIO12 is a Strapping PIN and should be avoided.
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 Starting log output from /dev/ttyUSB0 with baud rate 115200
[09:34:52][D][wifi:401]: Found networks:
[09:34:52][I][wifi:445]: - 'jumbas' [redacted]▂▄▆█
[09:34:52][D][wifi:446]:     Channel: 1
[09:34:52][D][wifi:447]:     RSSI: -74 dB
[09:34:52][D][wifi:450]: - [redacted] [redacted]▂▄▆█
[09:34:52][D][wifi:450]: - [redacted] [redacted]▂▄▆█
[09:34:52][D][wifi:450]: - [redacted] [redacted]▂▄▆█
[09:34:52][I][wifi:257]: WiFi Connecting to 'jumbas'...
[09:34:53][W][wifi_esp32:494]: Event: Disconnected ssid='jumbas' bssid=[redacted] reason='Authentication Failed'
[09:34:53][W][wifi:570]: WiFi Unknown connection status 0
[09:34:53][I][wifi:257]: WiFi Connecting to 'jumbas'...
[09:34:53][W][wifi_esp32:494]: Event: Disconnected ssid='jumbas' bssid=[redacted] reason='Association Failed'
[09:34:53][W][wifi:585]: Restarting WiFi adapter...
[09:34:53][D][esp-idf:000]: E (11047) wifi:
[09:34:53][D][esp-idf:000]: timeout when WiFi un-init, type=4
[09:34:53][D][esp-idf:000]: 
[09:34:53]
[09:34:58][D][wifi:386]: Starting scan...
[09:35:02][D][wifi:401]: Found networks:
[09:35:02][I][wifi:445]: - 'jumbas' [redacted]▂▄▆█
[09:35:02][D][wifi:446]:     Channel: 1
[09:35:02][D][wifi:447]:     RSSI: -70 dB
[09:35:02][D][wifi:450]: - [redacted] [redacted]▂▄▆█
[09:35:02][D][wifi:450]: - [redacted] [redacted]▂▄▆█
[09:35:02][I][wifi:257]: WiFi Connecting to 'jumbas'...
[09:35:03][I][wifi:518]: WiFi Connected!
[09:35:03][C][wifi:362]:   Local MAC: 4C:75:25:BF:B4:CC
[09:35:03][C][wifi:363]:   SSID: [redacted]
[09:35:03][C][wifi:364]:   IP Address: 192.168.88.28
[09:35:03][C][wifi:366]:   BSSID: [redacted]
[09:35:03][C][wifi:367]:   Hostname: 'atom-bluetooth-proxy'
[09:35:03][C][wifi:369]:   Signal strength: -70 dB ▂▄▆█
[09:35:03][C][wifi:373]:   Channel: 1
[09:35:03][C][wifi:374]:   Subnet: 255.255.255.0
[09:35:03][C][wifi:375]:   Gateway: 192.168.88.1
[09:35:03][C][wifi:376]:   DNS1: 192.168.88.1
[09:35:03][C][wifi:377]:   DNS2: 0.0.0.0
[09:35:03][D][wifi:527]: Disabling AP...
[09:35:03][C][ota:093]: Over-The-Air Updates:
[09:35:03][C][ota:094]:   Address: atom-bluetooth-proxy.local:3232
[09:35:03][C][ota:097]:   Using Password.
[09:35:03][W][ota:103]: Last Boot was an unhandled reset, will proceed to safe mode in 8 restarts
[09:35:03][C][api:025]: Setting up Home Assistant API server...
[09:35:03][C][mqtt:029]: Setting up MQTT...
[09:35:03][I][mqtt:176]: Connecting to MQTT...
[09:35:03][I][mqtt:216]: MQTT Connected!
[09:35:03][I][app:062]: setup() finished successfully!
[09:35:03][D][sensor:127]: 'M5Atom IR WiFi Signal': Sending state -71.00000 dBm with 0 decimals of accuracy
[09:35:04][I][app:102]: ESPHome version 2023.3.0 compiled on Mar 16 2023, 08:24:21
[09:35:04][C][wifi:504]: WiFi:
[09:35:04][C][wifi:362]:   Local MAC: 4C:75:25:BF:B4:CC
[09:35:04][C][wifi:363]:   SSID: [redacted]
[09:35:04][C][wifi:364]:   IP Address: 192.168.88.28
[09:35:04][C][wifi:366]:   BSSID: [redacted]
[09:35:04][C][wifi:367]:   Hostname: 'atom-bluetooth-proxy'
[09:35:04][C][wifi:369]:   Signal strength: -71 dB ▂▄▆█
[09:35:04][C][wifi:373]:   Channel: 1
[09:35:04][C][wifi:374]:   Subnet: 255.255.255.0
[09:35:04][C][wifi:375]:   Gateway: 192.168.88.1
[09:35:04][C][wifi:376]:   DNS1: 192.168.88.1
[09:35:04][C][wifi:377]:   DNS2: 0.0.0.0
[09:35:04][C][logger:293]: Logger:
[09:35:04][C][logger:294]:   Level: DEBUG
[09:35:04][C][logger:295]:   Log Baud Rate: 115200
[09:35:04][C][logger:296]:   Hardware UART: UART0
[09:35:04][C][logger:298]:   Level for 'homeassistant.components.bluetooth': DEBUG
[09:35:04][C][template.sensor:023]: Template Sensor 'Váha Radek'
[09:35:04][C][template.sensor:023]:   State Class: ''
[09:35:04][C][template.sensor:023]:   Unit of Measurement: 'kg'
[09:35:04][C][template.sensor:023]:   Accuracy Decimals: 2
[09:35:04][C][template.sensor:023]:   Icon: 'mdi:weight-kilogram'
[09:35:04][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:04][C][template.sensor:023]: Template Sensor 'Impedance Radek'
[09:35:04][C][template.sensor:023]:   State Class: ''
[09:35:04][C][template.sensor:023]:   Unit of Measurement: 'Ω'
[09:35:04][C][template.sensor:023]:   Accuracy Decimals: 0
[09:35:04][C][template.sensor:023]:   Icon: 'mdi:omega'
[09:35:04][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:04][C][template.sensor:023]: Template Sensor 'Váha Renka'
[09:35:04][C][template.sensor:023]:   State Class: ''
[09:35:04][C][template.sensor:023]:   Unit of Measurement: 'kg'
[09:35:04][C][template.sensor:023]:   Accuracy Decimals: 2
[09:35:04][C][template.sensor:023]:   Icon: 'mdi:weight-kilogram'
[09:35:04][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:04][C][template.sensor:023]: Template Sensor 'Impedance Renka'
[09:35:04][C][template.sensor:023]:   State Class: ''
[09:35:04][C][template.sensor:023]:   Unit of Measurement: 'Ω'
[09:35:04][C][template.sensor:023]:   Accuracy Decimals: 0
[09:35:04][C][template.sensor:023]:   Icon: 'mdi:omega'
[09:35:04][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:04][C][template.sensor:023]: Template Sensor 'Váha Štěpánka'
[09:35:04][C][template.sensor:023]:   State Class: ''
[09:35:04][C][template.sensor:023]:   Unit of Measurement: 'kg'
[09:35:04][C][template.sensor:023]:   Accuracy Decimals: 2
[09:35:04][C][template.sensor:023]:   Icon: 'mdi:weight-kilogram'
[09:35:04][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:04][C][template.sensor:023]: Template Sensor 'Impedance Štěpánka'
[09:35:04][C][template.sensor:023]:   State Class: ''
[09:35:04][C][template.sensor:023]:   Unit of Measurement: 'Ω'
[09:35:04][C][template.sensor:023]:   Accuracy Decimals: 0
[09:35:04][C][template.sensor:023]:   Icon: 'mdi:omega'
[09:35:04][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:04][C][template.sensor:023]: Template Sensor 'BLE Sensor'
[09:35:04][C][template.sensor:023]:   State Class: ''
[09:35:04][C][template.sensor:023]:   Unit of Measurement: ''
[09:35:04][C][template.sensor:023]:   Accuracy Decimals: 1
[09:35:04][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:04][C][uptime.sensor:031]: Uptime Sensor 'M5Atom IR Uptime'
[09:35:04][C][uptime.sensor:031]:   Device Class: 'duration'
[09:35:04][C][uptime.sensor:031]:   State Class: 'total_increasing'
[09:35:04][C][uptime.sensor:031]:   Unit of Measurement: 's'
[09:35:04][C][uptime.sensor:031]:   Accuracy Decimals: 0
[09:35:04][C][uptime.sensor:031]:   Icon: 'mdi:timer-outline'
[09:35:04][C][template.switch:076]: Template Switch 'M5Atom IR LG TV Power On'
[09:35:04][C][template.switch:099]:   Restore Mode: restore defaults to OFF
[09:35:04][C][template.switch:060]:   Restore State: NO
[09:35:04][C][template.switch:061]:   Optimistic: NO
[09:35:04][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'M5Atom IR Button'
[09:35:04][C][gpio.binary_sensor:016]:   Pin: GPIO39
[09:35:04][C][bluetooth_proxy:065]: Bluetooth Proxy:
[09:35:04][C][bluetooth_proxy:066]:   Active: NO
[09:35:04][C][xiaomi_miscale:012]: Xiaomi Miscale
[09:35:04][C][xiaomi_miscale:013]:   Weight 'Xiaomi Mi Scale Weight'
[09:35:04][C][xiaomi_miscale:013]:     State Class: 'measurement'
[09:35:04][C][xiaomi_miscale:013]:     Unit of Measurement: 'kg'
[09:35:04][C][xiaomi_miscale:013]:     Accuracy Decimals: 2
[09:35:04][C][xiaomi_miscale:013]:     Icon: 'mdi:scale-bathroom'
[09:35:04][C][xiaomi_miscale:014]:   Impedance 'Xiaomi Mi Scale Impedance'
[09:35:04][C][xiaomi_miscale:014]:     State Class: 'measurement'
[09:35:04][C][xiaomi_miscale:014]:     Unit of Measurement: 'Ω'
[09:35:04][C][xiaomi_miscale:014]:     Accuracy Decimals: 0
[09:35:04][C][xiaomi_miscale:014]:     Icon: 'mdi:omega'
[09:35:04][C][ble_presence:011]: BLE Presence 'miBand6'
[09:35:04][C][remote_transmitter:015]: Remote Transmitter...
[09:35:04][C][remote_transmitter:016]:   Channel: 0
[09:35:04][C][remote_transmitter:017]:   RMT memory blocks: 1
[09:35:04][C][remote_transmitter:018]:   Clock divider: 80
[09:35:04][C][remote_transmitter:019]:   Pin: GPIO26
[09:35:04][C][remote_transmitter:022]:     Carrier Duty: 50%
[09:35:04][C][remote_transmitter:015]: Remote Transmitter...
[09:35:04][C][remote_transmitter:016]:   Channel: 1
[09:35:04][C][remote_transmitter:017]:   RMT memory blocks: 1
[09:35:04][C][remote_transmitter:018]:   Clock divider: 80
[09:35:04][C][remote_transmitter:019]:   Pin: GPIO12
[09:35:04][C][remote_transmitter:022]:     Carrier Duty: 50%
[09:35:04][D][api:102]: Accepted 192.168.88.21
[09:35:04][C][restart:076]: Restart Switch 'M5Atom IR Restart'
[09:35:04][C][restart:078]:   Icon: 'mdi:restart'
[09:35:04][C][restart:099]:   Restore Mode: restore defaults to OFF
[09:35:04][C][remote_receiver.esp32:054]: Remote Receiver:
[09:35:04][C][remote_receiver.esp32:055]:   Pin: GPIO32
[09:35:04][C][remote_receiver.esp32:060]:   Channel: 2
[09:35:05][C][remote_receiver.esp32:061]:   RMT memory blocks: 3
[09:35:05][C][remote_receiver.esp32:062]:   Clock divider: 80
[09:35:05][C][remote_receiver.esp32:063]:   Tolerance: 25%
[09:35:05][C][remote_receiver.esp32:064]:   Filter out pulses shorter than: 50 us
[09:35:05][C][remote_receiver.esp32:065]:   Signal is done after 10000 us of no changes
[09:35:05][C][esp32_ble:214]: ESP32 BLE:
[09:35:05][D][api.connection:920]: Home Assistant 2023.2.5 (192.168.88.21): Connected successfully
[09:35:05][C][esp32_ble_tracker:591]: BLE Tracker:
[09:35:05][C][esp32_ble_tracker:592]:   Scan Duration: 300 s
[09:35:05][C][esp32_ble_tracker:593]:   Scan Interval: 1100.0 ms
[09:35:05][C][esp32_ble_tracker:594]:   Scan Window: 1100.0 ms
[09:35:05][C][esp32_ble_tracker:595]:   Scan Type: ACTIVE
[09:35:05][C][esp32_ble_tracker:596]:   Continuous Scanning: True
[09:35:05][C][captive_portal:088]: Captive Portal:
[09:35:05][C][mdns:108]: mDNS:
[09:35:05][C][mdns:109]:   Hostname: atom-bluetooth-proxy
[09:35:05][C][ota:093]: Over-The-Air Updates:
[09:35:05][C][ota:094]:   Address: atom-bluetooth-proxy.local:3232
[09:35:05][C][ota:097]:   Using Password.
[09:35:05][W][ota:103]: Last Boot was an unhandled reset, will proceed to safe mode in 8 restarts
[09:35:05][C][api:138]: API Server:
[09:35:05][C][api:139]:   Address: atom-bluetooth-proxy.local:6053
[09:35:05][C][api:141]:   Using noise encryption: YES
[09:35:05][C][mqtt:065]: MQTT:
[09:35:05][C][mqtt:067]:   Server Address: 192.168.88.21:1883 (192.168.88.21)
[09:35:05][C][mqtt:068]:   Username: [redacted]
[09:35:05][C][mqtt:069]:   Client ID: [redacted]
[09:35:05][C][mqtt:071]:   Discovery prefix: 'homeassistant'
[09:35:05][C][mqtt:072]:   Discovery retain: YES
[09:35:05][C][mqtt:074]:   Topic Prefix: 'atom-bluetooth-proxy'
[09:35:05][C][mqtt:076]:   Log Topic: 'atom-bluetooth-proxy/debug'
[09:35:05][C][mqtt:079]:   Availability: 'atom-bluetooth-proxy/status'
[09:35:05][C][improv_serial:032]: Improv Serial:
[09:35:05][C][wifi_signal.sensor:009]: WiFi Signal 'M5Atom IR WiFi Signal'
[09:35:05][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[09:35:05][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[09:35:05][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[09:35:05][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[09:35:05][C][mqtt.sensor:027]: MQTT Sensor 'Váha Radek':
[09:35:05][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/vha_radek/state'
[09:35:05][C][mqtt.sensor:027]: MQTT Sensor 'Impedance Radek':
[09:35:05][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/impedance_radek/state'
[09:35:05][C][mqtt.sensor:027]: MQTT Sensor 'Váha Renka':
[09:35:05][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/vha_renka/state'
[09:35:05][C][mqtt.sensor:027]: MQTT Sensor 'Impedance Renka':
[09:35:05][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/impedance_renka/state'
[09:35:05][C][mqtt.sensor:027]: MQTT Sensor 'Váha Štěpánka':
[09:35:05][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/vha_tpnka/state'
[09:35:05][C][mqtt.sensor:027]: MQTT Sensor 'Impedance Štěpánka':
[09:35:05][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/impedance_tpnka/state'
[09:35:05][C][mqtt.sensor:027]: MQTT Sensor 'BLE Sensor':
[09:35:05][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/ble_sensor/state'
[09:35:05][C][mqtt.sensor:027]: MQTT Sensor 'M5Atom IR WiFi Signal':
[09:35:05][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/m5atom_ir_wifi_signal/state'
[09:35:05][C][mqtt.sensor:027]: MQTT Sensor 'M5Atom IR Uptime':
[09:35:05][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/m5atom_ir_uptime/state'
[09:35:05][C][mqtt.binary_sensor:022]: MQTT Binary Sensor 'miBand6':
[09:35:05][C][mqtt.binary_sensor:023]:   State Topic: 'atom-bluetooth-proxy/binary_sensor/miband6/state'
[09:35:05][C][mqtt.switch:041]: MQTT Switch 'M5Atom IR Restart': 
[09:35:05][C][mqtt.switch:042]:   State Topic: 'atom-bluetooth-proxy/switch/m5atom_ir_restart/state'
[09:35:05][C][mqtt.switch:042]:   Command Topic: 'atom-bluetooth-proxy/switch/m5atom_ir_restart/command'
[09:35:05][C][mqtt.switch:041]: MQTT Switch 'M5Atom IR LG TV Power On': 
[09:35:06][C][mqtt.switch:042]:   State Topic: 'atom-bluetooth-proxy/switch/m5atom_ir_lg_tv_power_on/state'
[09:35:06][C][mqtt.switch:042]:   Command Topic: 'atom-bluetooth-proxy/switch/m5atom_ir_lg_tv_power_on/command'
[09:35:06][C][mqtt.sensor:027]: MQTT Sensor 'Xiaomi Mi Scale Weight':
[09:35:06][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/xiaomi_mi_scale_weight/state'
[09:35:06][C][mqtt.sensor:027]: MQTT Sensor 'Xiaomi Mi Scale Impedance':
[09:35:06][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/xiaomi_mi_scale_impedance/state'
[09:35:06][C][mqtt.binary_sensor:022]: MQTT Binary Sensor 'M5Atom IR Button':
[09:35:06][C][mqtt.binary_sensor:023]:   State Topic: 'atom-bluetooth-proxy/binary_sensor/m5atom_ir_button/state'
[09:35:06]
[09:35:06]abort() was called at PC 0x401faa3f on core 1
[09:35:06]
[09:35:06]
[09:35:06]Backtrace:0x40083d81:0x3ffcd8800x40093765:0x3ffcd8a0 0x40098d29:0x3ffcd8c0 0x401faa3f:0x3ffcd940 0x401faa86:0x3ffcd960 0x401f9f07:0x3ffcd980 0x401f9a2e:0x3ffcd9a0 0x401f9fdd:0x3ffcd9c0 0x401fa15c:0x3ffcd9e0 0x401fa2d9:0x3ffcda20 0x400df1b3:0x3ffcda40 0x400df1f3:0x3ffcda60 0x400df436:0x3ffcda80 0x400df412:0x3ffcdaa0 0x400df567:0x3ffcdac0 0x400e1947:0x3ffcdb40 0x400e2483:0x3ffcdb80 0x400e251a:0x3ffcdbd0 0x40214405:0x3ffcdbf0 0x400ec78c:0x3ffcdc10 0x400ef20e:0x3ffcdc40 0x400ff449:0x3ffcdc60 
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x40083d81: panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:402
WARNING Decoded 0x40093765: esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:128
WARNING Decoded 0x40098d29: abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/abort.c:46
WARNING Decoded 0x401faa3f: __cxxabiv1::__terminate(void (*)()) at /builds/idf/crosstool-NG/.build/HOST-aarch64-linux-gnu/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:47
WARNING Decoded 0x401faa86: std::terminate() at /builds/idf/crosstool-NG/.build/HOST-aarch64-linux-gnu/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:57
WARNING Decoded 0x401f9f07: __cxa_throw at /builds/idf/crosstool-NG/.build/HOST-aarch64-linux-gnu/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_throw.cc:95
WARNING Decoded 0x401f9a2e: operator new(unsigned int) at /builds/idf/crosstool-NG/.build/HOST-aarch64-linux-gnu/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/new_op.cc:54
WARNING Decoded 0x401f9fdd: __gnu_cxx::new_allocator<char>::allocate(unsigned int, void const*) at /builds/idf/crosstool-NG/.build/HOST-aarch64-linux-gnu/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/no-rtti/libstdc++-v3/include/ext/new_allocator.h:111
 (inlined by) std::allocator_traits<std::allocator<char> >::allocate(std::allocator<char>&, unsigned int) at /builds/idf/crosstool-NG/.build/HOST-aarch64-linux-gnu/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/no-rtti/libstdc++-v3/include/bits/alloc_traits.h:436
 (inlined by) std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned int&, unsigned int) at /builds/idf/crosstool-NG/.build/HOST-aarch64-linux-gnu/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/no-rtti/libstdc++-v3/include/bits/basic_string.tcc:153
WARNING Decoded 0x401fa15c: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned int, unsigned int, char const*, unsigned int) at /builds/idf/crosstool-NG/.build/HOST-aarch64-linux-gnu/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/no-rtti/libstdc++-v3/include/bits/basic_string.tcc:317
WARNING Decoded 0x401fa2d9: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::push_back(char) at /builds/idf/crosstool-NG/.build/HOST-aarch64-linux-gnu/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/no-rtti/libstdc++-v3/include/bits/basic_string.h:1353
WARNING Decoded 0x400df1b3: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator+=(char) at /data/cache/platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/include/c++/8.4.0/bits/basic_string.h:1188
 (inlined by) ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void>::write(unsigned char) at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Serialization/Writers/StdStringWriter.hpp:28
 (inlined by) ArduinoJson6185_D1::CountingDecorator<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >::write(unsigned char) at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Serialization/CountingDecorator.hpp:17
WARNING Decoded 0x400df1f3: ArduinoJson6185_D1::TextFormatter<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >::writeRaw(char) at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Json/TextFormatter.hpp:153
 (inlined by) ArduinoJson6185_D1::TextFormatter<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >::writeChar(char) at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Json/TextFormatter.hpp:50
 (inlined by) ArduinoJson6185_D1::TextFormatter<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >::writeString(char const*) at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Json/TextFormatter.hpp:40
WARNING Decoded 0x400df436: ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >::visitString(char const*) at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Json/JsonSerializer.hpp:67
 (inlined by) ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >::result_type ArduinoJson6185_D1::VariantData::accept<ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> > >(ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >&) const at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Variant/VariantData.hpp:53
WARNING Decoded 0x400df412: ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >::visitObject(ArduinoJson6185_D1::CollectionData const&) at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Json/JsonSerializer.hpp:48
 (inlined by) ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >::result_type ArduinoJson6185_D1::VariantData::accept<ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> > >(ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >&) const at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Variant/VariantData.hpp:49
WARNING Decoded 0x400df567: ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >::result_type ArduinoJson6185_D1::variantAccept<ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> > >(ArduinoJson6185_D1::VariantData const*, ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >&) at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Variant/VariantFunctions.hpp:16
 (inlined by) ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >::result_type ArduinoJson6185_D1::VariantConstRef::accept<ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> > >(ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >&) const at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Variant/VariantRef.hpp:245
 (inlined by) ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >::result_type ArduinoJson6185_D1::JsonDocument::accept<ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> > >(ArduinoJson6185_D1::JsonSerializer<ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >&) const at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Document/JsonDocument.hpp:20
 (inlined by) unsigned int ArduinoJson6185_D1::doSerialize<ArduinoJson6185_D1::JsonSerializer, ArduinoJson6185_D1::BasicJsonDocument<ArduinoJson6185_D1::DefaultAllocator>, ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >(ArduinoJson6185_D1::BasicJsonDocument<ArduinoJson6185_D1::DefaultAllocator> const&, ArduinoJson6185_D1::Writer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void>) at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Serialization/serialize.hpp:15
 (inlined by) unsigned int ArduinoJson6185_D1::serialize<ArduinoJson6185_D1::JsonSerializer, ArduinoJson6185_D1::BasicJsonDocument<ArduinoJson6185_D1::DefaultAllocator>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(ArduinoJson6185_D1::BasicJsonDocument<ArduinoJson6185_D1::DefaultAllocator> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Serialization/serialize.hpp:22
 (inlined by) unsigned int ArduinoJson6185_D1::serializeJson<ArduinoJson6185_D1::BasicJsonDocument<ArduinoJson6185_D1::DefaultAllocator>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(ArduinoJson6185_D1::BasicJsonDocument<ArduinoJson6185_D1::DefaultAllocator> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) at /data/atom-bluetooth-proxy/.piolibdeps/atom-bluetooth-proxy/ArduinoJson/src/ArduinoJson/Json/JsonSerializer.hpp:115
 (inlined by) esphome::json::build_json[abi:cxx11](std::function<void (ArduinoJson6185_D1::ObjectRef)> const&) at /config/esphome/.esphome/build/atom-bluetooth-proxy/src/esphome/components/json/json_util.cpp:58
WARNING Decoded 0x400e1947: esphome::mqtt::MQTTClientComponent::publish_json(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void (ArduinoJson6185_D1::ObjectRef)> const&, unsigned char, bool) at /config/esphome/.esphome/build/atom-bluetooth-proxy/src/esphome/components/mqtt/mqtt_client.cpp:426
WARNING Decoded 0x400e2483: esphome::mqtt::MQTTComponent::send_discovery_() at /config/esphome/.esphome/build/atom-bluetooth-proxy/src/esphome/components/mqtt/mqtt_component.cpp:64
WARNING Decoded 0x400e251a: esphome::mqtt::MQTTComponent::call_loop() at /config/esphome/.esphome/build/atom-bluetooth-proxy/src/esphome/components/mqtt/mqtt_component.cpp:216
 (inlined by) esphome::mqtt::MQTTComponent::call_loop() at /config/esphome/.esphome/build/atom-bluetooth-proxy/src/esphome/components/mqtt/mqtt_component.cpp:204
WARNING Decoded 0x40214405: esphome::Component::call() at /config/esphome/.esphome/build/atom-bluetooth-proxy/src/esphome/core/component.cpp:98
WARNING Decoded 0x400ec78c: esphome::Application::loop() at /config/esphome/.esphome/build/atom-bluetooth-proxy/src/esphome/core/application.cpp:74 (discriminator 2)
WARNING Decoded 0x400ef20e: loop() at /config/esphome/atom-bluetooth-proxy.yaml:158
WARNING Decoded 0x400ff449: loopTask(void*) at /data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:50
[09:35:09]
[09:35:09]
[09:35:09]
[09:35:09]
[09:35:09]ELF file SHA256: 0000000000000000
[09:35:09]
[09:35:09]Rebooting...
[09:35:09]ets Jun  8 2016 00:22:57
[09:35:09]
[09:35:09]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[09:35:09]configsip: 188777542, SPIWP:0xee
[09:35:09]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[09:35:09]mode:DIO, clock div:2
[09:35:09]load:0x3fff0030,len:1184
[09:35:09]load:0x40078000,len:13132
[09:35:09]load:0x40080400,len:3036
[09:35:09]entry 0x400805e4
[09:35:09][I][logger:258]: Log initialized
[09:35:09][C][ota:469]: There have been 3 suspected unsuccessful boot attempts.
[09:35:09][D][esp32.preferences:113]: Saving 1 preferences to flash...
[09:35:09][D][esp32.preferences:142]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[09:35:09][I][app:029]: Running through setup()...
[09:35:09][D][binary_sensor:034]: 'M5Atom IR Button': Sending initial state OFF
[09:35:09][C][remote_receiver.esp32:013]: Setting up Remote Receiver...
[09:35:09][C][esp32_ble:026]: Setting up BLE...
[09:35:09][D][esp32_ble:042]: BLE setup complete
[09:35:09][D][esp32_ble_tracker:246]: Starting scan...
[09:35:09][C][wifi:037]: Setting up WiFi...
[09:35:09][C][wifi:038]:   Local MAC: 4C:75:25:BF:B4:CC
[09:35:09][D][wifi:386]: Starting scan...
[09:35:09][D][sensor:127]: 'M5Atom IR Uptime': Sending state 0.86000 s with 0 decimals of accuracy
[09:35:11][D][wifi:401]: Found networks:
[09:35:11][I][wifi:445]: - 'jumbas' [redacted]▂▄▆█
[09:35:11][D][wifi:446]:     Channel: 1
[09:35:11][D][wifi:447]:     RSSI: -73 dB
[09:35:11][D][wifi:450]: - [redacted] [redacted]▂▄▆█
[09:35:11][D][wifi:450]: - [redacted] [redacted]▂▄▆█
[09:35:11][D][wifi:450]: - [redacted] [redacted]▂▄▆█
[09:35:11][I][wifi:257]: WiFi Connecting to 'jumbas'...
[09:35:12][W][wifi_esp32:494]: Event: Disconnected ssid='jumbas' bssid=[redacted] reason='Authentication Failed'
[09:35:12][W][wifi:570]: WiFi Unknown connection status 0
[09:35:12][I][wifi:257]: WiFi Connecting to 'jumbas'...
[09:35:12][W][wifi_esp32:494]: Event: Disconnected ssid='jumbas' bssid=[redacted] reason='Association Failed'
[09:35:17][D][wifi:386]: Starting scan...
[09:35:20][D][wifi:401]: Found networks:
[09:35:20][I][wifi:445]: - 'jumbas' [redacted]▂▄▆█
[09:35:20][D][wifi:446]:     Channel: 1
[09:35:20][D][wifi:447]:     RSSI: -74 dB
[09:35:20][D][wifi:450]: - [redacted] [redacted]▂▄▆█
[09:35:20][D][wifi:450]: - [redacted] [redacted]▂▄▆█
[09:35:20][D][wifi:450]: - [redacted] [redacted]▂▄▆█
[09:35:20][I][wifi:257]: WiFi Connecting to 'jumbas'...
[09:35:20][W][wifi:549]: Error while connecting to network.
[09:35:20][W][wifi:585]: Restarting WiFi adapter...
[09:35:21][D][esp-idf:000]: E (27922) wifi:
[09:35:21][D][esp-idf:000]: timeout when WiFi un-init, type=4
[09:35:21][D][esp-idf:000]: 
[09:35:21]
[09:35:22][I][wifi:518]: WiFi Connected!
[09:35:22][C][wifi:362]:   Local MAC: 4C:75:25:BF:B4:CC
[09:35:22][C][wifi:363]:   SSID: [redacted]
[09:35:22][C][wifi:364]:   IP Address: 192.168.88.28
[09:35:22][C][wifi:366]:   BSSID: [redacted]
[09:35:22][C][wifi:367]:   Hostname: 'atom-bluetooth-proxy'
[09:35:22][C][wifi:369]:   Signal strength: -72 dB ▂▄▆█
[09:35:22][C][wifi:373]:   Channel: 1
[09:35:22][C][wifi:374]:   Subnet: 255.255.255.0
[09:35:22][C][wifi:375]:   Gateway: 192.168.88.1
[09:35:22][C][wifi:376]:   DNS1: 192.168.88.1
[09:35:23][C][wifi:377]:   DNS2: 0.0.0.0
[09:35:23][D][wifi:527]: Disabling AP...
[09:35:23][C][ota:093]: Over-The-Air Updates:
[09:35:23][C][ota:094]:   Address: atom-bluetooth-proxy.local:3232
[09:35:23][C][ota:097]:   Using Password.
[09:35:23][W][ota:103]: Last Boot was an unhandled reset, will proceed to safe mode in 7 restarts
[09:35:23][C][api:025]: Setting up Home Assistant API server...
[09:35:23][C][mqtt:029]: Setting up MQTT...
[09:35:23][I][mqtt:176]: Connecting to MQTT...
[09:35:23][I][mqtt:216]: MQTT Connected!
[09:35:23][I][app:062]: setup() finished successfully!
[09:35:23][D][sensor:127]: 'M5Atom IR WiFi Signal': Sending state -72.00000 dBm with 0 decimals of accuracy
[09:35:23][I][app:102]: ESPHome version 2023.3.0 compiled on Mar 16 2023, 08:24:21
[09:35:23][C][wifi:504]: WiFi:
[09:35:23][C][wifi:362]:   Local MAC: 4C:75:25:BF:B4:CC
[09:35:23][C][wifi:363]:   SSID: [redacted]
[09:35:23][C][wifi:364]:   IP Address: 192.168.88.28
[09:35:23][C][wifi:366]:   BSSID: [redacted]
[09:35:23][C][wifi:367]:   Hostname: 'atom-bluetooth-proxy'
[09:35:23][C][wifi:369]:   Signal strength: -72 dB ▂▄▆█
[09:35:23][C][wifi:373]:   Channel: 1
[09:35:23][C][wifi:374]:   Subnet: 255.255.255.0
[09:35:23][C][wifi:375]:   Gateway: 192.168.88.1
[09:35:23][C][wifi:376]:   DNS1: 192.168.88.1
[09:35:23][C][wifi:377]:   DNS2: 0.0.0.0
[09:35:23][C][logger:293]: Logger:
[09:35:23][C][logger:294]:   Level: DEBUG
[09:35:23][C][logger:295]:   Log Baud Rate: 115200
[09:35:23][C][logger:296]:   Hardware UART: UART0
[09:35:23][C][logger:298]:   Level for 'homeassistant.components.bluetooth': DEBUG
[09:35:23][C][template.sensor:023]: Template Sensor 'Váha Radek'
[09:35:23][C][template.sensor:023]:   State Class: ''
[09:35:23][C][template.sensor:023]:   Unit of Measurement: 'kg'
[09:35:23][C][template.sensor:023]:   Accuracy Decimals: 2
[09:35:23][C][template.sensor:023]:   Icon: 'mdi:weight-kilogram'
[09:35:23][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:23][C][template.sensor:023]: Template Sensor 'Impedance Radek'
[09:35:23][C][template.sensor:023]:   State Class: ''
[09:35:23][C][template.sensor:023]:   Unit of Measurement: 'Ω'
[09:35:23][C][template.sensor:023]:   Accuracy Decimals: 0
[09:35:23][C][template.sensor:023]:   Icon: 'mdi:omega'
[09:35:23][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:23][C][template.sensor:023]: Template Sensor 'Váha Renka'
[09:35:23][C][template.sensor:023]:   State Class: ''
[09:35:23][C][template.sensor:023]:   Unit of Measurement: 'kg'
[09:35:23][C][template.sensor:023]:   Accuracy Decimals: 2
[09:35:23][C][template.sensor:023]:   Icon: 'mdi:weight-kilogram'
[09:35:23][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:23][C][template.sensor:023]: Template Sensor 'Impedance Renka'
[09:35:23][C][template.sensor:023]:   State Class: ''
[09:35:23][C][template.sensor:023]:   Unit of Measurement: 'Ω'
[09:35:23][C][template.sensor:023]:   Accuracy Decimals: 0
[09:35:23][C][template.sensor:023]:   Icon: 'mdi:omega'
[09:35:23][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:23][C][template.sensor:023]: Template Sensor 'Váha Štěpánka'
[09:35:23][C][template.sensor:023]:   State Class: ''
[09:35:23][C][template.sensor:023]:   Unit of Measurement: 'kg'
[09:35:23][C][template.sensor:023]:   Accuracy Decimals: 2
[09:35:23][C][template.sensor:023]:   Icon: 'mdi:weight-kilogram'
[09:35:23][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:23][C][template.sensor:023]: Template Sensor 'Impedance Štěpánka'
[09:35:23][C][template.sensor:023]:   State Class: ''
[09:35:23][C][template.sensor:023]:   Unit of Measurement: 'Ω'
[09:35:23][C][template.sensor:023]:   Accuracy Decimals: 0
[09:35:23][C][template.sensor:023]:   Icon: 'mdi:omega'
[09:35:23][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:23][C][template.sensor:023]: Template Sensor 'BLE Sensor'
[09:35:23][C][template.sensor:023]:   State Class: ''
[09:35:23][C][template.sensor:023]:   Unit of Measurement: ''
[09:35:23][C][template.sensor:023]:   Accuracy Decimals: 1
[09:35:23][C][template.sensor:024]:   Update Interval: 60.0s
[09:35:23][C][uptime.sensor:031]: Uptime Sensor 'M5Atom IR Uptime'
[09:35:23][C][uptime.sensor:031]:   Device Class: 'duration'
[09:35:23][C][uptime.sensor:031]:   State Class: 'total_increasing'
[09:35:23][C][uptime.sensor:031]:   Unit of Measurement: 's'
[09:35:23][C][uptime.sensor:031]:   Accuracy Decimals: 0
[09:35:23][C][uptime.sensor:031]:   Icon: 'mdi:timer-outline'
[09:35:23][C][template.switch:076]: Template Switch 'M5Atom IR LG TV Power On'
[09:35:23][C][template.switch:099]:   Restore Mode: restore defaults to OFF
[09:35:23][C][template.switch:060]:   Restore State: NO
[09:35:23][C][template.switch:061]:   Optimistic: NO
[09:35:23][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'M5Atom IR Button'
[09:35:23][C][gpio.binary_sensor:016]:   Pin: GPIO39
[09:35:23][D][api:102]: Accepted 192.168.88.21
[09:35:23][C][bluetooth_proxy:065]: Bluetooth Proxy:
[09:35:23][C][bluetooth_proxy:066]:   Active: NO
[09:35:23][C][xiaomi_miscale:012]: Xiaomi Miscale
[09:35:23][C][xiaomi_miscale:013]:   Weight 'Xiaomi Mi Scale Weight'
[09:35:23][C][xiaomi_miscale:013]:     State Class: 'measurement'
[09:35:23][C][xiaomi_miscale:013]:     Unit of Measurement: 'kg'
[09:35:23][C][xiaomi_miscale:013]:     Accuracy Decimals: 2
[09:35:23][C][xiaomi_miscale:013]:     Icon: 'mdi:scale-bathroom'
[09:35:23][C][xiaomi_miscale:014]:   Impedance 'Xiaomi Mi Scale Impedance'
[09:35:23][C][xiaomi_miscale:014]:     State Class: 'measurement'
[09:35:23][C][xiaomi_miscale:014]:     Unit of Measurement: 'Ω'
[09:35:23][C][xiaomi_miscale:014]:     Accuracy Decimals: 0
[09:35:23][C][xiaomi_miscale:014]:     Icon: 'mdi:omega'
[09:35:24][C][ble_presence:011]: BLE Presence 'miBand6'
[09:35:24][C][remote_transmitter:015]: Remote Transmitter...
[09:35:24][C][remote_transmitter:016]:   Channel: 0
[09:35:24][C][remote_transmitter:017]:   RMT memory blocks: 1
[09:35:24][C][remote_transmitter:018]:   Clock divider: 80
[09:35:24][C][remote_transmitter:019]:   Pin: GPIO26
[09:35:24][C][remote_transmitter:022]:     Carrier Duty: 50%
[09:35:24][C][remote_transmitter:015]: Remote Transmitter...
[09:35:24][C][remote_transmitter:016]:   Channel: 1
[09:35:24][C][remote_transmitter:017]:   RMT memory blocks: 1
[09:35:24][C][remote_transmitter:018]:   Clock divider: 80
[09:35:24][C][remote_transmitter:019]:   Pin: GPIO12
[09:35:24][C][remote_transmitter:022]:     Carrier Duty: 50%
[09:35:24][C][restart:076]: Restart Switch 'M5Atom IR Restart'
[09:35:24][C][restart:078]:   Icon: 'mdi:restart'
[09:35:24][C][restart:099]:   Restore Mode: restore defaults to OFF
[09:35:24][C][remote_receiver.esp32:054]: Remote Receiver:
[09:35:24][C][remote_receiver.esp32:055]:   Pin: GPIO32
[09:35:24][C][remote_receiver.esp32:060]:   Channel: 2
[09:35:24][C][remote_receiver.esp32:061]:   RMT memory blocks: 3
[09:35:24][C][remote_receiver.esp32:062]:   Clock divider: 80
[09:35:24][C][remote_receiver.esp32:063]:   Tolerance: 25%
[09:35:24][C][remote_receiver.esp32:064]:   Filter out pulses shorter than: 50 us
[09:35:24][C][remote_receiver.esp32:065]:   Signal is done after 10000 us of no changes
[09:35:24][C][esp32_ble:214]: ESP32 BLE:
[09:35:24][C][esp32_ble_tracker:591]: BLE Tracker:
[09:35:24][C][esp32_ble_tracker:592]:   Scan Duration: 300 s
[09:35:24][C][esp32_ble_tracker:593]:   Scan Interval: 1100.0 ms
[09:35:24][C][esp32_ble_tracker:594]:   Scan Window: 1100.0 ms
[09:35:24][C][esp32_ble_tracker:595]:   Scan Type: ACTIVE
[09:35:24][C][esp32_ble_tracker:596]:   Continuous Scanning: True
[09:35:24][C][captive_portal:088]: Captive Portal:
[09:35:24][C][mdns:108]: mDNS:
[09:35:24][C][mdns:109]:   Hostname: atom-bluetooth-proxy
[09:35:24][C][ota:093]: Over-The-Air Updates:
[09:35:24][C][ota:094]:   Address: atom-bluetooth-proxy.local:3232
[09:35:24][C][ota:097]:   Using Password.
[09:35:24][W][ota:103]: Last Boot was an unhandled reset, will proceed to safe mode in 7 restarts
[09:35:24][C][api:138]: API Server:
[09:35:24][C][api:139]:   Address: atom-bluetooth-proxy.local:6053
[09:35:24][C][api:141]:   Using noise encryption: YES
[09:35:24][C][mqtt:065]: MQTT:
[09:35:24][C][mqtt:067]:   Server Address: 192.168.88.21:1883 (192.168.88.21)
[09:35:24][C][mqtt:068]:   Username: [redacted]
[09:35:24][C][mqtt:069]:   Client ID: [redacted]
[09:35:24][C][mqtt:071]:   Discovery prefix: 'homeassistant'
[09:35:24][C][mqtt:072]:   Discovery retain: YES
[09:35:24][C][mqtt:074]:   Topic Prefix: 'atom-bluetooth-proxy'
[09:35:24][C][mqtt:076]:   Log Topic: 'atom-bluetooth-proxy/debug'
[09:35:24][C][mqtt:079]:   Availability: 'atom-bluetooth-proxy/status'
[09:35:24][C][improv_serial:032]: Improv Serial:
[09:35:24][C][wifi_signal.sensor:009]: WiFi Signal 'M5Atom IR WiFi Signal'
[09:35:24][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[09:35:24][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[09:35:24][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[09:35:24][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[09:35:24][C][mqtt.sensor:027]: MQTT Sensor 'Váha Radek':
[09:35:24][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/vha_radek/state'
[09:35:24][C][mqtt.sensor:027]: MQTT Sensor 'Impedance Radek':
[09:35:24][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/impedance_radek/state'
[09:35:24][C][mqtt.sensor:027]: MQTT Sensor 'Váha Renka':
[09:35:24][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/vha_renka/state'
[09:35:24][C][mqtt.sensor:027]: MQTT Sensor 'Impedance Renka':
[09:35:24][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/impedance_renka/state'
[09:35:24][C][mqtt.sensor:027]: MQTT Sensor 'Váha Štěpánka':
[09:35:24][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/vha_tpnka/state'
[09:35:24][C][mqtt.sensor:027]: MQTT Sensor 'Impedance Štěpánka':
[09:35:24][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/impedance_tpnka/state'
[09:35:24][C][mqtt.sensor:027]: MQTT Sensor 'BLE Sensor':
[09:35:24][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/ble_sensor/state'
[09:35:24][C][mqtt.sensor:027]: MQTT Sensor 'M5Atom IR WiFi Signal':
[09:35:24][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/m5atom_ir_wifi_signal/state'
[09:35:24][C][mqtt.sensor:027]: MQTT Sensor 'M5Atom IR Uptime':
[09:35:24][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/m5atom_ir_uptime/state'
[09:35:24][C][mqtt.binary_sensor:022]: MQTT Binary Sensor 'miBand6':
[09:35:24][C][mqtt.binary_sensor:023]:   State Topic: 'atom-bluetooth-proxy/binary_sensor/miband6/state'
[09:35:24][C][mqtt.switch:041]: MQTT Switch 'M5Atom IR Restart': 
[09:35:24][C][mqtt.switch:042]:   State Topic: 'atom-bluetooth-proxy/switch/m5atom_ir_restart/state'
[09:35:24][C][mqtt.switch:042]:   Command Topic: 'atom-bluetooth-proxy/switch/m5atom_ir_restart/command'
[09:35:24][C][mqtt.switch:041]: MQTT Switch 'M5Atom IR LG TV Power On': 
[09:35:24][C][mqtt.switch:042]:   State Topic: 'atom-bluetooth-proxy/switch/m5atom_ir_lg_tv_power_on/state'
[09:35:24][C][mqtt.switch:042]:   Command Topic: 'atom-bluetooth-proxy/switch/m5atom_ir_lg_tv_power_on/command'
[09:35:24][C][mqtt.sensor:027]: MQTT Sensor 'Xiaomi Mi Scale Weight':
[09:35:24][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/xiaomi_mi_scale_weight/state'
[09:35:24][C][mqtt.sensor:027]: MQTT Sensor 'Xiaomi Mi Scale Impedance':
[09:35:24][C][mqtt.sensor:031]:   State Topic: 'atom-bluetooth-proxy/sensor/xiaomi_mi_scale_impedance/state'
[09:35:24][C][mqtt.binary_sensor:022]: MQTT Binary Sensor 'M5Atom IR Button':
[09:35:24][C][mqtt.binary_sensor:023]:   State Topic: 'atom-bluetooth-proxy/binary_sensor/m5atom_ir_button/state'
[09:35:32][W][wifi_esp32:494]: Event: Disconnected ssid='jumbas' bssid=[redacted] reason='Beacon Timeout'
[09:35:32][W][wifi:125]: WiFi Connection lost... Reconnecting...
[09:35:32][W][wifi:585]: Restarting WiFi adapter...
[09:35:32][I][wifi:257]: WiFi Connecting to 'jumbas'...
[09:35:32][W][api.connection:058]: 192.168.88.21: Network unavailable, disconnecting
[09:35:32][W][mqtt:264]: MQTT Disconnected: WiFi disconnected.
[09:35:34][I][wifi:518]: WiFi Connected!
[09:35:34][C][wifi:362]:   Local MAC: 4C:75:25:BF:B4:CC
[09:35:34][C][wifi:363]:   SSID: [redacted]
[09:35:34][C][wifi:364]:   IP Address: 192.168.88.28
[09:35:34][C][wifi:366]:   BSSID: [redacted]
[09:35:34][C][wifi:367]:   Hostname: 'atom-bluetooth-proxy'
[09:35:34][C][wifi:369]:   Signal strength: -73 dB ▂▄▆█
[09:35:34][C][wifi:373]:   Channel: 1
[09:35:34][C][wifi:374]:   Subnet: 255.255.255.0
[09:35:34][C][wifi:375]:   Gateway: 192.168.88.1
[09:35:34][C][wifi:376]:   DNS1: 192.168.88.1
[09:35:34][C][wifi:377]:   DNS2: 0.0.0.0
[09:35:34][D][wifi:527]: Disabling AP...
[09:35:34][I][mqtt:176]: Connecting to MQTT...
[09:35:34][I][mqtt:216]: MQTT Connected!
[09:36:02][W][mqtt:264]: MQTT Disconnected: TCP disconnected.
[09:36:02][I][mqtt:176]: Connecting to MQTT...
[09:36:03][D][sensor:127]: 'M5Atom IR Uptime': Sending state 55.94300 s with 0 decimals of accuracy
[09:36:21][W][mqtt:264]: MQTT Disconnected: TCP disconnected.
[09:36:21][I][mqtt:176]: Connecting to MQTT...
[09:36:21][D][sensor:127]: 'M5Atom IR WiFi Signal': Sending state -73.00000 dBm with 0 decimals of accuracy
[09:36:39][W][mqtt:264]: MQTT Disconnected: TCP disconnected.
[09:36:39][I][mqtt:176]: Connecting to MQTT...
[09:36:58][W][mqtt:264]: MQTT Disconnected: TCP disconnected.
[09:36:58][I][mqtt:176]: Connecting to MQTT...
[09:37:03][D][sensor:127]: 'M5Atom IR Uptime': Sending state 115.94300 s with 0 decimals of accuracy
[09:37:16][W][mqtt:264]: MQTT Disconnected: TCP disconnected.
[09:37:16][I][mqtt:176]: Connecting to MQTT...
[

Additional information

No response

kev300 commented 1 year ago

I can confirm the unstable connection since 2023.3 and HA 2023.3.5

ESP32:

[15:26:10][D][homeassistant.sensor:024]: 'sensor.power_consumption': Got state 83.00
[15:26:10][D][api.connection:159]: Home Assistant 2023.3.5 (192.168.1.25) requested disconnected
[15:26:10][D][api:102]: Accepted 192.168.1.25
[15:26:11][D][api.connection:920]: Home Assistant 2023.3.5 (192.168.1.25): Connected successfully
[15:26:12][D][api:102]: Accepted 192.168.1.25
[15:26:12][D][api.connection:920]: Home Assistant 2023.3.5 (192.168.1.25): Connected successfully
[15:26:13][D][homeassistant.sensor:024]: 'sensor.power_consumption': Got state 86.00
[15:26:14][D][homeassistant.sensor:024]: 'sensor.power_consumption': Got state 84.00

after that, there seem to be 2 parallel connections! I get the sensor reading duplicated each second.

[15:26:17][D][homeassistant.sensor:024]: 'sensor.power_consumption': Got state 86.00
[15:26:17][D][homeassistant.sensor:024]: 'sensor.power_consumption': Got state 86.00
[15:26:18][D][homeassistant.sensor:024]: 'sensor.power_consumption': Got state 88.00
[15:26:18][D][homeassistant.sensor:024]: 'sensor.power_consumption': Got state 88.00
[15:26:19][D][homeassistant.sensor:024]: 'sensor.power_consumption': Got state 84.00
[15:26:19][D][homeassistant.sensor:024]: 'sensor.power_consumption': Got state 84.00

HA log message:

2023-03-21 15:26:10.836 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for garage-controller @ 192.168.1.20: Connection cancelled

10 min later the ESP device is offline and does not reconnect!

kev300 commented 1 year ago

The duplicate connection seems to be unrelated.

But now I can't downgrade the ESP anymore. Clean re-compile with 2023.2.4 and reflash does not fix the instabillity. The ESP32 keeps crashing after random time frames. Sometimes 10 minutes, sometimes a few seconds. 😞

radek-kafka commented 1 year ago

Mine is after last updates stable. I do not see messages like before. 2023.3.1 looks to me better .

kev300 commented 1 year ago

Does not look from the changelog like it could fix it... I will try 2023.3.2 then again.

After several clean ups and reflashes my ESP seems to be stable again with 2023.2.4

ptahbe commented 1 year ago

I'm having a similar issue. Since a certain update (don't remember which). In ESPHome it shows online, but nothing works. I can't ping it, I get no data in HA and the web interface doesn't work.

In the logs I get this ----- start ----- [I][mqtt:216]: MQTT Connected!

abort() was called at PC 0x401e53d7 on core 1

Backtrace:0x40083725:0x3fff56f00x400930e5:0x3fff5710 0x400986a9:0x3fff5730 0x401e53d7:0x3fff57b0 0x401e541e:0x3fff57d0 0x401e6501:0x3fff57f0 0x401e4e10:0x3fff5810 0x401e57ad:0x3fff5830 0x401e5e12:0x3fff5850 0x401e5e45:0x3fff5880 0x400dafef:0x3fff58a0 0x400db09e:0x3fff5910 0x400da7f2:0x3fff5960 0x400eea25:0x3fff59a0 0x401ff42e:0x3fff5a10 0x400ef7c6:0x3fff5a40 0x400ee7a6:0x3fff5a90 0x400ee7be:0x3fff5b00 0x401e8581:0x3fff5b20 0x401e85fd:0x3fff5b50 0x401e8de6:0x3fff5b70

ELF file SHA256: 0000000000000000

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:0x3fff0030,len:1184 load:0x40078000,len:13132 load:0x40080400,len:3036 entry 0x400805e4 [I][logger:258]: Log initialized [C][ota:469]: There have been 1 suspected unsuccessful boot attempts. ----- end -----

After 10 unsuccessful boot attempts I get nothing more in the logs. But sometime I get this after the 10th boot attempt :

----- start ----- [C][ota:469]: There have been 10 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 [E][ota:476]: Boot loop detected. Proceeding to safe mode. ----- end -----

Then I can ping it, but nothing else works.

ESPHome is currently on 2023.3.2. I have tried it with previous versions also. I hoped it would have been fixed. I just did a clean build again, but still the same problem.

I'm using an ESP-WROOM-32 board and this is the config : esphome: name: bureau platform: ESP32 board: esp32dev

Is that still correct? It has worked before, but maybe something changed. I read in a post somewhere that the person changed it to edp-idf and that fixed it, but I like to be certain before I change anything.

kev300 commented 1 year ago

My ESP-WROOM-32 is now stable with 2023.3.2. I guess there was something not re-compiled correctly. I'm using esphome in a docker container, so I removed the container, all related images and cleaned cached stuff multiple times. Including the config directory (only left the device yaml files there). Then rebuilt and reflashed multiple times with 2023.2.4 until it was stable again. Then did the same with 2023.3.2 and it works now.

ptahbe commented 1 year ago

I'm running ESPHome under Home Assistant. I already did "Clean build files" several times. Do you know how I can clean up ESPHome to re-compile everything?

kev300 commented 1 year ago

Mh no experiance with that. You could try to delete all files below config/esphome/ (except your yaml config files) the command pio system prune was also helpfull in the docker version. But I don't know if the HA integrated version has a command line interface? As a last resort you could try to remove /reinstall the add-on

ptahbe commented 1 year ago

I removed everything from config/esphome, except for yaml files. Re-installed, but still the same problem.

RenierM26 commented 1 year ago

Hi There,

The interval and window length does not play well with Wi-Fi. Current recommendation is to leave the interval and window on the defaults for Wifi ESP controllers.

esp32_ble_tracker:
  scan_parameters:
    interval: 1100ms
    window: 1100ms
    active: true  

Change to these defaults:

esp32_ble_tracker:
  scan_parameters:
    interval: 320ms
    window: 30ms
    active: true

Hope it helps.

THX2112 commented 1 year ago

I'm having the exact problem. Several ESP32 devices, all identical, and one stopped working after updating to latest ESPHome. No error messages. Data shows up on terminal monitor but HA can't get any data. A clean install to a new device does nothing.

I also noticed that ESPHome no longer cleans up unused devices. When changing the name to debug, the previous ESPHome device is still in the HA logs even after deleting the ESPHome device.

zibous commented 12 months ago

Same problem here:

2022.12.8 Feb 10 2023 is working

2023.9.0b2, 2023.10.0-dev, 2023.8.3 has problems - not working.

16:22:26][W][system:171]: Synchronized sntp clock
[16:22:26][I][mqtt:279]: MQTT Connected!
[16:22:28]
[16:22:28]abort() was called at PC 0x401fccbf on core 0
[16:22:28]
[16:22:28]
[16:22:28]Backtrace:0x40083829:0x3ffd7dc00x4009491d:0x3ffd7de0 0x40099ee1:0x3ffd7e00 0x401fccbf:0x3ffd7e80 0x401fcd06:0x3ffd7ea0 0x401fcc67:0x3ffd7ec0 0x401fb95e:0x3ffd7ee0 0x400d4c19:0x3ffd7f00 0x4011ed59:0x3ffd7f20 0x40145d1d:0x3ffd7f40 0x40147b77:0x3ffd7f60
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x40083829: panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:402
WARNING Decoded 0x4009491d: esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:128
WARNING Decoded 0x40099ee1: abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/abort.c:46
WARNING Decoded 0x401fccbf: __cxxabiv1::__terminate(void (*)()) at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:47
WARNING Decoded 0x401fcd06: std::terminate() at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:57
WARNING Decoded 0x401fcc67: __cxa_throw at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_throw.cc:95
WARNING Decoded 0x401fb95e: operator new(unsigned int) at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/new_op.cc:54
WARNING Decoded 0x400d4c19: esphome::esp32_ble::ESP32BLE::gap_event_handler(esp_gap_ble_cb_event_t, esp_ble_gap_cb_param_t*) at /Users/petsie1612/ips_apps/esphome-lab/.esphome/build/mqtt-test/src/esphome/components/esp32_ble/ble.cpp:173
WARNING Decoded 0x4011ed59: btc_gap_ble_cb_to_app at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_ble.c:55
 (inlined by) btc_gap_ble_cb_handler at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_ble.c:1156
WARNING Decoded 0x40145d1d: btc_thread_handler at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/bt/common/btc/core/btc_task.c:196
WARNING Decoded 0x40147b77: osi_thread_run at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/bt/common/osi/thread.c:68
[16:22:29]
[16:22:29]
[16:22:29]
[16:22:29]
[16:22:29]ELF file SHA256: 0000000000000000
[16:22:29]
[16:22:29]Rebooting...
[16:22:29]ets Jun  8 2016 00:22:57
[16:22:29]
[16:22:29]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[16:22:29]configsip: 0, SPIWP:0xee
[16:22:29]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[16:22:29]mode:DIO, clock div:2
[16:22:29]load:0x3fff0030,len:1184
[16:22:29]load:0x40078000,len:13132
[16:22:29]load:0x40080400,len:3036
....
[16:22:34][W][system:171]: Synchronized sntp clock
[16:22:34][I][mqtt:279]: MQTT Connected!
[16:22:36]
[16:22:36]abort() was called at PC 0x401fccbf on core 0
[16:22:36]
[16:22:36]
[16:22:36]Backtrace:0x40083829:0x3ffd7e500x4009491d:0x3ffd7e70 0x40099ee1:0x3ffd7e90 0x401fccbf:0x3ffd7f10 0x401fcd06:0x3ffd7f30 0x401fcfe1:0x3ffd7f50 0x401fb950:0x3ffd7f70 0x400d4c19:0x3ffd7f90 0x4011ed59:0x3ffd7fb0 0x40145d1d:0x3ffd7fd0 0x40147b77:0x3ffd7ff0
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x40083829: panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:402
WARNING Decoded 0x4009491d: esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:128
WARNING Decoded 0x40099ee1: abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/abort.c:46
WARNING Decoded 0x401fccbf: __cxxabiv1::__terminate(void (*)()) at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:47
WARNING Decoded 0x401fcd06: std::terminate() at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:57
WARNING Decoded 0x401fcfe1: __cxa_allocate_exception at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_alloc.cc:300
WARNING Decoded 0x401fb950: operator new(unsigned int) at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/new_op.cc:54
WARNING Decoded 0x400d4c19: esphome::esp32_ble::ESP32BLE::gap_event_handler(esp_gap_ble_cb_event_t, esp_ble_gap_cb_param_t*) at /Users/petsie1612/ips_apps/esphome-lab/.esphome/build/mqtt-test/src/esphome/components/esp32_ble/ble.cpp:173
WARNING Decoded 0x4011ed59: btc_gap_ble_cb_to_app at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_ble.c:55
 (inlined by) btc_gap_ble_cb_handler at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_ble.c:1156
WARNING Decoded 0x40145d1d: btc_thread_handler at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/bt/common/btc/core/btc_task.c:196
WARNING Decoded 0x40147b77: osi_thread_run at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/bt/common/osi/thread.c:68
[16:22:37]
[16:22:37]
[16:22:37]
[16:22:37]
[16:22:37]ELF file SHA256: 0000000000000000
[16:22:37]
[16:22:37]Rebooting...
[16:22:37]ets Jun  8 2016 00:22:57
[16:22:37]
[16:22:37]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[16:22:37]configsip: 0, SPIWP:0xee
[16:22:37]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[16:22:37]mode:DIO, clock div:2
[16:22:37]load:0x3fff0030,len:1184
[16:22:37]load:0x40078000,len:13132
[16:22:37]load:0x40080400,len:3036
[16:22:37]entry 0x400805e4
[16:22:37][I][logger:268]: Log initialized
[16:22:37][C][ota:473]: There have been 3 suspected unsuccessful boot attempts.
[16:22:37][D][esp32.preferences:114]: Saving 1 preferences to flash...
[16:22:37][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[16:22:37][I][app:029]: Running through setup()...
[16:22:37][D][template.switch:046]:   Restored state OFF
[16:22:37][D][switch:016]: 'Boot Counter reset' Turning OFF.