Trigger MQTT update?

Hi,

in case of this thread: Function question
i have the problem, that my energy plug update his "sensor" very slowly. While in the webgui i can see live changed of volt and watt, i dont see it in mqtt. sometimes over 8 Minutes, while the watt changes 50 to 1. So the Solution is very delayed.

grafik

Can i trigger a Sensor update?
Its a Tasmota flashed Plug.

Best Regards

If I remember rightly, you can set Tasmota to update as often as you like.

umm where?

The first entry in a Google search of "tasmota mqtt interval" showed me.

1 Like

I found it! -.- Logging settings are not only for console on webgui. the config is for mqtt to.

Thank you for your hint

...you can also keep logging-events and mqtt sensor-events separated by using a rule: https://tasmota.github.io/docs/Rules/

Each change in sensor value can trigger a rule, that can be used to publish to mgtt separately from the log event: https://tasmota.github.io/docs/Rules/#rule-trigger

...and here are some examples you can build on: https://tasmota.github.io/docs/Rules/#transmit-sensor-value-only-when-a-delta-is-reached or https://tasmota.github.io/docs/Rules/#adjust-a-value-and-send-it-over-mqtt

Note that the "tele-"<sensor-.name> trigger is equal to the Sensor logging event to console.
A change of sensor value itself can be a trigger, so omit the "tele-" from the trigger name and use the Sensor name only (see docs regarding rules trigger, mentioned above

1 Like

Myself using a Tasmota rule to send me every minute the energy consumption
on Time#Minute|1 do publish /vm/cmnd/Vriezer/STATUS 8 endon

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.