Closed mreditor97 closed 1 year ago
Just trying to figure out why there is a warning message whenever the program is updated within Octoprint. Home Assistant suggests an invalid message:
Invalid state message '{"state": {"text": "Operational", "flags": {"operational": true, "printing": false, "cancelling": false, "pausing": false, "resuming": false, "finishing": false, "closedOrError": false, "error": false, "paused": false, "ready": true, "sdReady": false}, "error": ""}, "job": {"file": {"name": "Bottom_0.2mm_PETG_MK2.5SMMU2S_1d3h18m.gcode", "path": "Bottom_0.2mm_PETG_MK2.5SMMU2S_1d3h18m.gcode", "display": "Bottom_0.2mm_PETG_MK2.5SMMU2S_1d3h18m.gcode", "origin": "local", "size": 27129067, "date": 1687295579}, "estimatedPrintTime": 98560.36033554627, "averagePrintTime": 97371.91878441907, "lastPrintTime": 97371.91878441907, "filament": {"tool0": {"length": 102025.49965176033, "volume": 245.40008514148613}}, "user": "sam", "estimatedPrintTimeFormatted": "1 day, 3:22:40"}, "currentZ": null, "progress": {"completion": null, "filepos": null, "printTime": null, "printTimeLeft": null, "printTimeLeftOrigin": null, "printTimeLeftFormatted": null, "printTimeFormatted": null}, "offsets": {}, "resends": {"count": 0, "transmitted": 8, "ratio": 0}, "_timestamp": 1688575048}' from 'octoprint/hass/printing'
Closing while I work on getting the update working. Will open a new Pull once it is fully working as expected.
Fixes errors created within Home Assistant due to the previous patch. Changed the formatting of the sensors so the
All use graphing. The Approximate Completion Time still gets updated often due to it using a template within Home Assistant. This does display prettily in Home Assistant's UI however.
Sorry the previous update broke the sensors due to it not liking the already formatted times and dates.