cmroche / OctoPrint-HomeAssistant

Home Assistant plugin for OctoPrint, enabling MQTT discovery of you device and sensors
112 stars 18 forks source link

MQTT reported progress is lagging behind actual progress #67

Closed narfel closed 3 years ago

narfel commented 3 years ago

I don't really know how that is possible but the MQTT plugin reports around 10% less progress than the actual printer progress as visible in OctoPrint. I inspected the MQTT topics and it is as if there is a 10% delta to the actual value. Any idea how that happens or what i can to do fix that? I restarted both OctoPrint and Home Assistant multiple times. They sync up perfect, just with this lag. I can tell because the status printing and e.g. filenames work correctly. When the actual print finishes the hass sensors jump ahead to 100%.

edit: Added a screenshot showing that the reported times are in sync, just not the percentage. Above is octoprint webinterface, below sensor data as they appear in dev tools in hass.

Untitled

narfel commented 3 years ago

Hm, i can't reliably reproduce this anymore. Restarting the broker, hass and the octopi host seems to have almost fixed that. I did restart everything as a test, but not the docker instance running the broker. I now get differences that are negligible around +/- 1% that could be anything.