Could not allocate memory for JSON document!
- Dominant language
- No language data
- Stars
- 313
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
### The problem
Hi, someone could help me for this error?
_[19:04:29][E][json:034]: Could not allocate memory for JSON document! Requested 5120 bytes, largest free heap block: 38872 bytes_
[19:04:29][D][sensor:125]: 'RSSI sensore 12': Sending state -48.00000 dB with 0 decimals of accuracy
_[19:04:29][E][json:034]: Could not allocate memory for JSON document! Requested 5120 bytes, largest free heap block: 38872 bytes_
[19:04:30][D][esp32_ble_tracker:723]: Found device 00:7C:2D:F4:D6:2F RSSI=-92
[19:04:30][D][esp32_ble_tracker:744]: Address Type: PUBLIC
[19:04:31][D][xiaomi_ble:314]: Got Xiaomi HHCCJCY01 (C4:7C:8D:67:38:6B):
[19:04:31][D][xiaomi_ble:326]: Conductivity: 1674µS/cm
[19:04:31][D][sensor:125]: 'Fertilizzazione sensore 5': Sending state 1674.00000 µS/cm with 0 decimals of accuracy
INFO 192.168.0.151: Ping timed out!
INFO Disconnected from ESPHome API for 192.168.0.151
WARNING Disconnected from API
INFO 192.168.0.151: Error while reading incoming messages: Error while reading data: 0 bytes read on a total of 1 expected bytes
WARNING Can't connect to ESPHome API for 192.168.0.151: Error while reading data: 0 bytes read on a total of 1 expected bytes
INFO Trying to reconnect to 192.168.0.151 in the background
INFO 192.168.0.151: Error while reading incoming messages: Error while reading data: [Errno 104] Connection reset by peer
INFO Successfully connected to 192.168.0.151
[19:05:38][D][sensor:125]: 'Segnale WIFI ESP piante': Sending state -81.00000 dBm with 0 decimals of accuracy
[19:06:38][D][sensor:125]: 'Segnale WIFI ESP piante': Sending state -81.00000 dBm with 0 decimals of accuracy
[19:07:38][D][sensor:125]: 'Segnale WIFI ESP piante': Sending state -80.00000 dBm with 0 decimals of accuracy
[19:08:38][D][sensor:125]: 'Segnale WIFI ESP piante': Sending state -82.00000 dBm with 0 decimals of accuracy
[19:08:49][I][ota:105]: Boot seems successful, resetting boot loop counter.
My esp32 mini D1 goes offline and reconnect many times in a day. I'm on the latest update, Wifi signal is strong but rssi goes between -50 to -87. Any ideas to solve? THX
### Which version of ESPHome has the issue?
Current version: 2022.3.1
### What type of installation are you using?
Home Assistant Add-on
### Which version of Home Assistant has the issue?
_No response_
### What platform are you using?
ESP32
### Board
mini d1 with esternal antenna
### Component causing the issue
_No response_
### Example YAML snippet
```_esphome:
name: piante_interno
platform: ESP32
board: wemos_d1_mini32
wifi:
ssid: "xxxxxxxxxxxxxxx"
password: "xxxxxxxxxxxxxxxx"
manual_ip:
static_ip: 192.168.0.124
gateway: 192.168.0.1
subnet: 255.255.255.0
# Enable logging
logger:
web_server:
# Enable Home Assistant API
api:
ota:
binary_sensor:
- platform: status
name: "ESP Piante interno"
switch:
- platform: restart
name: "ESP piante interno Restart"
esp32_ble_tracker:
sensor:
- platform: xiaomi_hhccjcy01
mac_address: C4:7C:8D:6A:BC:62
temperature:
name: "Temperatura sensore 1a"
moisture:
name: "Acqua sensore 1a"
illuminance:
name: "Intensità luminosa sensore 1a"
conductivity:
name: "Fertilizzazione sensore 1a"
- platform: ble_rssi
mac_address: C4:7C:8D:6A:BC:62
name: "RSSI sensore 1a"
- platform: xiaomi_hhccjcy01
mac_address: C4:7C:8D:61:B6:06
temperature:
name: "Temperatura sensore 2a"
moisture:
name: "Acqua sensore 2a"
illuminance:
name: "Intensità luminosa sensore 2a"
conductivity:
name: "Fertilizzazione sensore 2a"
- platform: ble_rssi
mac_address: C4:7C:8D:61:B6:06
name: "RSSI sensore 2a" ```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.