Hi Guys,
I'm looking for some help or a pointer in a direction where to find a guide how the MQTT driver in the Tasmota source is working.
What I'm trying to do is to mod the code (tasmota V8.3.1) to include "Month" and "Last month" as counters for power measurements to be used on PZEMs and PowR2. Which is working so far.
The idea is then to send a MQTT message with the energy usage for the month automatically from the sensor at midnight last/first day of the month.
So to do this I'm looking for a way to programmatically send a MQTT msg. something like a TELE but uniquely identifiable.
I was hoping there could be something straight forward such as sendMQTT(topic,data); but no success yet.
Reason I don't want to keep track of the monthly usage on the sensor management side (rednode) is due to up time and reliability.
Is there any documentation on the source side of Tasmota explaining how things are put together and working?
Any help will be gladly appreciated!