Closed elax46 closed 5 months ago
And there's no error output being flagged by home assistant when it attempts to load the integration? You might need to enable debug logging to help me work out what the problem is.
I think I see what might be causing the reload error although the error text doesn't match directly to existing code. I'll make a fix and post that shortly.
Hmm, that fix wouldn't hit during reload.
That code doesn't exist any more - I think I had a bug along those lines in an earlier 2.0.11-alpha release as I was working on adding total usage hours but not in the 2.0.13 build you're running. Can you turn on debug logging and repro the error please and provide the debug logs as that'll give a callstack to the point it's failing.
The log is too long home-assistant_bambu_lab_2024-01-21T21-56-00.917Z.log
Was your printer turned off? Looks like, separately from this issue, I need to not spam the log with errors for an expected case like that:
2024-01-21 22:55:40.692 ERROR (Thread-965) [custom_components.bambu_lab.pybambu] A1MINI: A Chamber Image thread outer exception occurred: 2024-01-21 22:55:40.692 ERROR (Thread-965) [custom_components.bambu_lab.pybambu] A1MINI: Exception. Type: <class 'OSError'> Args: [Errno 113] Host is unreachable
yes sorry you are right home-assistant_bambu_lab_2024-01-21T22-14-36.985Z.log
That's still seeing your A1 Mini as unreachable via the 192.168.1.75 IP address. And still doesn't have the usage_hours error anywhere in the log.
Did your DHCP assign a different IP address to the printer?
That's still seeing your A1 Mini as unreachable via the 192.168.1.75 IP address. And still doesn't have the usage_hours error anywhere in the log.
a1 mini is right now running the card function by the way
Hmm, I see you're connected via local mqtt which uses the same IP address so I'm not sure why the camera thread is getting a host is unreachable error if the local mqtt connection is working - it should be both succeeding or neither.
I'll push a fix shortly to avoid that case spamming the log but it's unrelated to the original issue. And surprising in its own right.
I honestly don't know if the printer's IP has changed because I restarted the ISP router both cameras can't be seen but I also use the mqtt for other services and it works
Please upgrade to https://github.com/greghesp/ha-bambulab/releases/tag/v2.0.14 to fix the nuisance logging. Maybe something will then stand out in the debug logs.
"data": {
"device_type": "P1S",
Per your logs, you have an A1 Mini - did you set this up before the A1/A1 mini was properly supported as a choice? If so, you'll want to delete and re-add your integration to get into a fully supported state.
Or do you have both? In which case the logs you've provided don't include anything about the P1S. A reload of the integration instance for the P1S should include references to the P1S, which the ones you provided didn't. The logs only cover interaction with the A1 Mini. Can you grab logs with a reload of the P1S instance of the integration?
I have both a1 mini and p1s but when I collected the log the p1s looked like it didn't exist at all
I completely reinstalled the integration now it works
Great! Closing this issue then as there's nothing more to investigate.
Describe the bug
After the latest updates, the integration suddenly started to stop working. Also if I try to reload I get the following error:
![Screenshot 2024-01-21 164334](https://github.com/greghesp/ha-bambulab/assets/55278049/c84db5fa-4000-41af-af8b-30f05aaef1a8)
To Reproduce
There is no way to reproduce the problem it just doesn't work. The strange thing is that with the a1 mini everything works
Expected Behaviour
May the integration work as before
What device are you using?
P1S
Diagnostic Output
Log Extracts
No response
Other Information
No response