ESP32 publishing mqtt monitoring ressources

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
PandCall
Normal user
Posts: 44
Joined: 22 Sep 2022, 20:04

ESP32 publishing mqtt monitoring ressources

#1 Post by PandCall » 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

User avatar
Ath
Normal user
Posts: 3520
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ESP32 publishing mqtt monitoring ressources

#2 Post by Ath » 17 Jul 2023, 10:46

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.
/Ton (PayPal.me)

PandCall
Normal user
Posts: 44
Joined: 22 Sep 2022, 20:04

Re: ESP32 publishing mqtt monitoring ressources

#3 Post by PandCall » 17 Jul 2023, 11:25

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 562 times

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 48 guests