Page 1 of 1

ESP32 publishing mqtt monitoring ressources

Posted: 17 Jul 2023, 10:18
by PandCall
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

Re: ESP32 publishing mqtt monitoring ressources

Posted: 17 Jul 2023, 10:46
by Ath
You can add a task with the "System Info" plugin (P026) that can be configured to use a MQTT controller, just like any other task. It allows to select the desired system parameters (max. 4) to be published.

Re: ESP32 publishing mqtt monitoring ressources

Posted: 17 Jul 2023, 11:25
by PandCall
Thank you, as always, a quick and perfect response.
I tested it and it works exactly as I want it to.
watchdog.png
watchdog.png (65.44 KiB) Viewed 1161 times