Current progress in % from state object?
-
I'm pulling some information from the api to Home Assistant but I didn't find any general percentage progress property, only three different time progresses (file, simulation and filament).
Is there a good property I can use directly or what would be the best calculation for this?
I tried this but it didn't give me the same number as the web interface.
(job.duration / job.file.printTime * 100) | round(0)
-
@Reine you could try state.job.filePosition/state.job.file.size.