emsesp / EMS-ESP32

ESP32 firmware to read and control EMS and Heatronic compatible equipment such as boilers, thermostats, solar modules, and heat pumps
https://emsesp.github.io/docs
GNU Lesser General Public License v3.0
617 stars 104 forks source link

[mqtt] Publish failed: low memory #2164

Closed bvweerd closed 3 hours ago

bvweerd commented 4 hours ago

DESCRIPTION

During startup around 15 messages appear in the log: [mqtt] Publish failed: low memory At random intervals, these messages appear as well at later stages.

{"system":{"version":"3.7.0","uptime":"000+00:20:17.529","uptimeSec":1217,"platform":"ESP32","cpuType":"ESP32-D0WD-V3","arduino":"Tasmota Arduino v2.0.17","sdk":"4.4.8.240628","freeMem":137,"maxAlloc":71,"freeCaps":87,"usedApp":1730,"freeApp":254,"partition":"app0","resetReason":"Software reset CPU / Software reset CPU","psram":false,"model":""},"network":{"network":"WiFi","hostname":"ems-esp","RSSI":-82,"TxPowerSetting":0,"staticIP":true,"lowBandwidth":false,"disableSleep":true,"enableMDNS":true,"enableCORS":false,"APProvisionMode":"always","APSecurity":"wpa2","APSSID":"ems-esp"},"ntp":{"NTPStatus":"disconnected","enabled":false,"server":"time.google.com","tzLabel":"Europe/Amsterdam"},"mqtt":{"MQTTStatus":"connected","MQTTPublishes":524,"MQTTQueued":0,"MQTTPublishFails":34,"MQTTConnects":1,"enabled":true,"clientID":"esp32-432a13d8","keepAlive":60,"cleanSession":false,"entityFormat":0,"base":"ems-esp","discoveryPrefix":"homeassistant","discoveryType":0,"nestedFormat":1,"haEnabled":true,"mqttQos":0,"mqttRetain":false,"publishTimeHeartbeat":60,"publishTimeBoiler":10,"publishTimeThermostat":10,"publishTimeSolar":10,"publishTimeMixer":10,"publishTimeWater":10,"publishTimeOther":60,"publishTimeSensor":10,"publishSingle":false,"publish2command":false,"sendResponse":false},"syslog":{"enabled":false},"sensor":{"temperatureSensors":0,"temperatureSensorReads":0,"temperatureSensorFails":0},"api":{"APICalls":0,"APIFails":0},"bus":{"busStatus":"connected","busProtocol":"HT3","busTelegramsReceived":4146,"busReads":1219,"busWrites":0,"busIncompleteTelegrams":1,"busReadsFailed":0,"busWritesFailed":0,"busRxLineQuality":100,"busTxLineQuality":100},"settings":{"boardProfile":"CUSTOM","locale":"en","txMode":1,"emsBusID":11,"showerTimer":false,"showerMinDuration":180,"showerAlert":false,"phyType":0,"rxGPIO":4,"txGPIO":5,"dallasGPIO":14,"pbuttonGPIO":0,"ledGPIO":2,"hideLed":false,"noTokenApi":false,"readonlyMode":false,"fahrenheit":false,"dallasParasite":false,"boolFormat":1,"boolDashboard":1,"enumFormat":1,"analogEnabled":false,"telnetEnabled":true,"maxWebLogBuffer":25,"webLogBuffer":25,"modbusEnabled":false,"forceHeatingOff":false,"developerMode":false},"devices":[{"type":"boiler","name":"Enviline, Compress 6000AW, Hybrid 3000-7000iAW, SupraEco/Geo 5xx, WLW196i/WSW196i","deviceID":"0x08","productID":172,"brand":"Bosch","version":"01.13","entities":148,"handlersReceived":"0xBF 0xC2 0xD1 0xE3 0xE4 0xE5 0xE9 0x0494 0x0495 0x048F","handlersFetched":"0x14 0xE6 0xEA 0x048D 0x048A 0x04A2 0x0485 0x0486 0x0492 0x0488 0x0484 0x048B 0x0491 0x0499 0x049C 0x049D 0x02CC 0x02D6","handlersPending":"0x10 0x11 0x15 0x1C 0x18 0x19 0x1A 0x35 0x16 0x33 0x34 0x26 0x2A 0x28 0x04AE 0x04AF 0x04A5 0x04AA 0x04A7","handlersIgnored":"0x0240 0x049F 0x04A0 0x04A3 0x0291 0x029B 0x02E0 0x02EA 0x061E"},{"type":"thermostat","name":"RC3*0, Moduline 3000/1010H, CW400, Sense II, HPC410","deviceID":"0x10","productID":158,"brand":"","version":"73.03","entities":58,"handlersReceived":"0x06 0x02BA 0x02BB 0x02BC 0x02BD 0x02BE 0x02BF 0x02C0 0x0267","handlersFetched":"0x02A5 0x02B9 0x02AF 0x029B 0x0471 0x02CC 0x0467 0x0291 0x0292 0x0293 0x0294 0x02F5 0x023A 0x0240 0xBB 0x023E 0x0269","handlersPending":"0xA3 0xA2 0x12 0x13 0x02A6 0x02B0 0x029C 0x0472 0x02A7 0x02B1 0x029D 0x0473 0x02A8 0x02B2 0x029E 0x0474 0x02A9 0x02B3 0x029F 0x0475 0x02AA 0x02B4 0x02A0 0x0476 0x02AB 0x02B5 0x02A1 0x0477 0x02AC 0x02B6 0x02A2 0x0478 0x02CE 0x0468 0x02D0 0x0469 0x02D2 0x046A 0x02F6 0x031B 0x031D 0x031E","handlersIgnored":"0x050A 0x0507 0x0509 0x0508 0x0239 0xBF"},{"type":"thermostat","name":"RC100H, CR10H","deviceID":"0x38","productID":200,"brand":"","version":"40.04","entities":4,"handlersReceived":"0x042B 0x047B","handlersFetched":"0x0273","handlersPending":"0x0A6A","handlersIgnored":"0xBF"}]}

TO REPRODUCE

Power up device. No special behavior

EXPECTED BEHAVIOUR

No errors.

ADDITIONAL CONTEXT

It happens only since version 3.7.0, previously 3.6.5 did not report any errors.

bvweerd commented 3 hours ago

never mind, saw the description in #1979. Although the wiki is not matching the menus in 3.7.0 about the system log (At least I cannot find the system log buffer size).

I'll try and disable unused entities.