ESP32 publishing mqtt monitoring ressources
Posted: 17 Jul 2023, 10:18
Context
ESP32 custom_ESP32_4M316k
Devices
Analog input - ADS1115 Interval: 300 Sec
Environment - 1-Wire Temperature Interval: 120 Sec
Environment - Atlas EZO pH ORP EC DO Interval: 60 Sec
Position - HC-SR04, RCW-0001, etc. Interval: 300 Sec (x2)
Generic - Pulse counter Interval: 1 Sec
Home Assistant (openHAB) MQTT Enable
=====================================================
I'd like to be able to publish the operating environment values in the MQTT broker.
For example, CPU load, RAM usage, etc...
I've got the ESP32 running under load and eventually reaching Load 100%.
At that point, it becomes difficult to contact it and it has a lot of trouble publishing the sensors.
I'd like to be able to publish the operation, without using Rules, using MQTT publication directly.
For the moment, the only thing that's published is
Piscine_32/status/LWT
LWT = Connected
The question is, is it possible to publish system values in MQTT when a controller is active?
Regards
ESP32 custom_ESP32_4M316k
Devices
Analog input - ADS1115 Interval: 300 Sec
Environment - 1-Wire Temperature Interval: 120 Sec
Environment - Atlas EZO pH ORP EC DO Interval: 60 Sec
Position - HC-SR04, RCW-0001, etc. Interval: 300 Sec (x2)
Generic - Pulse counter Interval: 1 Sec
Home Assistant (openHAB) MQTT Enable
=====================================================
I'd like to be able to publish the operating environment values in the MQTT broker.
For example, CPU load, RAM usage, etc...
I've got the ESP32 running under load and eventually reaching Load 100%.
At that point, it becomes difficult to contact it and it has a lot of trouble publishing the sensors.
I'd like to be able to publish the operation, without using Rules, using MQTT publication directly.
For the moment, the only thing that's published is
Piscine_32/status/LWT
LWT = Connected
The question is, is it possible to publish system values in MQTT when a controller is active?
Regards