I have a Tasmota that sends the grid counter values of current grid power (W) and grid total energy consumption (kWh) via MQTT to HA.
The former I get every single second, but the latter only every 300 s (5 min).
See attached screenshot from grafana.
I did not customize anything with that, I guess it comes from automatic MQTT integration.
But every 5 min I think is a little too long, I would like to change it to maybe every 60 s.
How could I do that? Or do I not want that?
Why is it per default 5 min, but power every single second? Thatâs a huge difference.
P.S. The grid total energy consumption value on the Tasmota Web UI (see screenshot) changes every 20 s or so (when the last digit increases), so the Tasmota itself updates the value more often than 5 min.
The kWh is the correct precise value, no need for complicated ugly workaround.
I would just like to have Tasmota push it more often. This should be easily possible, but I just do not know how. There is a parameter in Tasmota: TelePeriod which defaults to 300 s. Maybe this needs to be overwritten like this would then have be done for the power value already.
OK I could achieve that the energy total sum is now being submitted every 60 s by adjusting the Telemtry persiod in Tasmota (âConfigure Loggingâ) from 300 to 60 (s).
But I wonder where it comes from that the power value is sent every single second.
Are you aware of the <precision> parameter which defines the number of decimals but can be used also to either send the readings according to TelePeriod or immediately.
Letâs say 20.000 is the reading. 3 decimals so you would use 3 as the last parameter in the definition line. This send the data with TelePeriod. If it is 3 + 16 = 19 the reading is send immediately.
The following example sends the values as soon as they are read.