You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be fantastic if there was a way to adjust how frequently the ESP publishes to MQTT from the device itself. It's quite fast right now, and that is definitely desirable but I would love to adjust it down for applications that have less bandwidth available.
The text was updated successfully, but these errors were encountered:
Adding an actual delay would block other functions from running. A better way to do it would be to compare a publish delay (or publish every x seconds) against millis.
Also, the MQTT library has been changed in the latest version to add one that uses async (so it doesn't block other things from running).
If you are using ESPhome it's simple to include this near the top of the YAML in the substitutions section
update_time: 10s
Then add the following for each sensor under each "- platform:" section update_interval: ${update_time}
Then all you have to do is change the reporting time to how often you want it to happen. Shouldn't matter if you are using MQTT or the HomeAssistant/ESPhome API's You can also hard set the "update_interval:" on each section individually and disregard the "update_time" setting altogether.
It would be fantastic if there was a way to adjust how frequently the ESP publishes to MQTT from the device itself. It's quite fast right now, and that is definitely desirable but I would love to adjust it down for applications that have less bandwidth available.
The text was updated successfully, but these errors were encountered: