greghesp / ha-bambulab

A Home Assistant Integration for Bambu Lab Printers
698 stars 59 forks source link

[Bug] Usage hours for canceled prints don't appear to be counted by the printer #475

Open AdrianGarside opened 4 months ago

AdrianGarside commented 4 months ago

Describe the bug

The integration correctly added ~2.4 hours for the canceled print. The ~2.4 canceled print is showing in my print history. The printer/integration were previously in sync ~706 hours. Now the integration in 2.35 hours ahead - the printer appears to have not added the time cost of the canceled print to it's running tally.

To Reproduce

  1. Confirm printer and integration agree on usage hours.
  2. Start a print
  3. Cancel it before completion.

TBC: Printer doesn't add usage hours as it should.

Expected Behaviour

Printer should add the usage hours of canceled prints.

What device are you using?

P1S

Diagnostic Output

.

Log Extracts

2024-02-25 06:11:47.888 NEW USAGE HOURS: P1S 7.76
2024-02-25 06:11:47.890 OVERWRITING USAGE_HOURS WITH : 706.13
2024-02-25 13:15:53.469 NEW USAGE HOURS: P1S 2.35
2024-02-25 13:15:53.482 OVERWRITING USAGE_HOURS WITH : 708.48 // THIS IS WHERE WE GOT OUT OF SYNC
2024-02-25 17:02:47.582 NEW USAGE HOURS: P1S 3.51
2024-02-25 17:02:47.595 OVERWRITING USAGE_HOURS WITH : 711.99

Other Information

No response

AdrianGarside commented 4 months ago

https://github.com/bambulab/BambuStudio/issues/3666

github-actions[bot] commented 2 months ago

Stale issue message