Closed boehser-enkel closed 10 months ago
Please try this beta version and see if it fixes it: https://github.com/greghesp/ha-bambulab/releases/tag/v2.0.8-dev1
And to double check, you're not seeing it here under the top 'Controls' section?
Please try this beta version and see if it fixes it: https://github.com/greghesp/ha-bambulab/releases/tag/v2.0.8-dev1
And to double check, you're not seeing it here under the top 'Controls' section?
Yes exactly that's the case. 2.08. worked for me. Camera entity (with image) is now there
But start time seems to be gone..:
And the camera entity does not update:
Is there anything in the debug log for the camera not working?
I did just make some changes to how start time is handled and they’re nuanced so I may have introduced a bug there. Is the cover image and print weight/length sensors working for you? Was your printer mid print when you restarted the integration/home assistant?
No error in log. When i reload the integration while the printer is online everything is working again. When the printer goes offline and online again. Everything updates but the camera image is not (until i reload again)
Cover image works. Weight and length also
Odd, there should be logs (and errors) if the integration cannot successfully reconnect to the printer for the chamber image when the printer comes back online. I'll test that tonight with my P1P/S.
Can you enable debug logs and see if anything stands out during the repro. I'm not able to reproduce this turning my P1P/S off and then later back on.
No not at all:
2024-01-10 09:15:50.308 WARNING (MainThread) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2024-01-10 09:15:50.730 WARNING (Thread-1155 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2024-01-10 09:16:02.363 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:02.367 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:03.289 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:03.370 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:04.375 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:04.379 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:05.301 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:05.382 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:05.386 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:06.389 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:07.314 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:07.393 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:07.396 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:08.398 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:09.328 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:09.402 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:09.406 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:10.409 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:11.341 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:11.414 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:11.418 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:12.421 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:22.202 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities button.d0fa903fa623_firmware_restart are missing or not currently available
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Client connected event received.
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Now subscribing...
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Subscribing: device/0309DA3A2000673/report
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Connect: Getting version info
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Sent {'info': {'sequence_id': '0', 'command': 'get_version'}} to topic device/0309DA3A2000673/request
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Connect: Request push all
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Sent {'pushing': {'sequence_id': '0', 'command': 'pushall'}} to topic device/0309DA3A2000673/request
2024-01-10 09:16:38.234 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:38.234 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Got Version Data
2024-01-10 09:16:38.234 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Device is A1 Mini
2024-01-10 09:16:38.234 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Device is A1 Mini
2024-01-10 09:16:39.215 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:39.215 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:41.741 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:43.756 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:43.756 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:45.767 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:47.781 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:47.781 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:49.792 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:51.802 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:53.815 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:55.825 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:56.141 DEBUG (SyncWorker_6) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:56.143 DEBUG (SyncWorker_6) [custom_components.bambu_lab.pybambu] Sent {'system': {'sequence_id': '0', 'command': 'ledctrl', 'led_node': 'chamber_light', 'led_mode': 'on', 'led_on_time': 500, 'led_off_time': 500, 'loop_times': 0, 'interval_time': 0}} to topic device/0309DA3A2000673/request
2024-01-10 09:16:57.838 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:57.838 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:59.852 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:59.852 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:17:01.863 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
Ah, I think this bug is specific to when getting the data from bambu cloud mqtt. I bet if you go through the reconfigure flow to set the integration to connect directly to the printer, you'll stop seeing the bug.
Yep, that's when the bug reproes. I have the chamber image thread tied to the act of connecting to the mqtt server but in the cloud connected case we don't ever disconnect/reconnect to the cloud mqtt - we just re-subscribe for the printer data on the existing cloud mqtt connection so the reconnect to the printer for the chamber images never happens.
So better go with direct connection only? (am i missing something then?) Or are you able to change this?
I can fix it. But direct to printer mqtt is generally better since it's more reliable than bambu cloud. And we can detect the offline printer far faster when connected directly to it's local mqtt server than the multiple minutes it takes bambu cloud mqtt to notify us the printer is offline.
Now the same again. Camera offline..
Anything in the debug logs? The new logic to reconnect only tries for a minute before giving up.
Anything in the debug logs? The new logic to reconnect only tries for a minute before giving up.
Okay that makes sense because i turn of the printer for the rest of the night when the print finishes. But the rest updates again after repower. Could you just restart the stream when the printer goes to online again?
No, I mean it does now reconnect when the printer comes online but it only tries for a minute. Is there anything in the debug logs when it failed to connect?
AH i got that. No no errors while reproducing. Turned on the printer but the camera did not go online:
2024-01-12 08:42:07.686 WARNING (MainThread) [custom_components.alarmo.alarm_control_panel] Cannot go to state disarmed from state disarmed.
2024-01-12 08:42:08.485 WARNING (MainThread) [custom_components.alarmo.alarm_control_panel] Cannot go to state disarmed from state disarmed.
2024-01-12 08:43:12.001 WARNING (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
2024-01-12 08:43:12.002 WARNING (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
2024-01-12 08:44:09.995 INFO (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Connect: Connected to Broker
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Now subscribing...
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Subscribing: device/0309DA3A2000673/report
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Connect: Getting version info
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Sent {'info': {'sequence_id': '0', 'command': 'get_version'}} to topic device/0309DA3A2000673/request
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Connect: Request push all
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Sent {'pushing': {'sequence_id': '0', 'command': 'pushall'}} to topic device/0309DA3A2000673/request
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Starting watchdog thread
2024-01-12 08:44:09.996 INFO (Thread-4398) [custom_components.bambu_lab.pybambu] Watchdog thread started.
2024-01-12 08:44:10.014 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:10.014 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:10.016 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Got Version Data
2024-01-12 08:44:10.016 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Device is A1 Mini
2024-01-12 08:44:10.016 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Device is A1 Mini
2024-01-12 08:44:10.780 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:10.781 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:21.181 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:32.574 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:32.575 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:34.588 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:34.589 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:36.602 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:36.603 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:44.653 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:44.654 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:46.668 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:48.680 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:48.680 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:50.696 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:50.696 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:52.709 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:06.797 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:06.798 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:08.831 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:10.822 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:10.822 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:14.849 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:14.849 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:16.862 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:16.863 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:17.226 WARNING (MainThread) [custom_components.alarmo.alarm_control_panel] Cannot go to state disarmed from state disarmed.
2024-01-12 08:45:18.877 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:18.877 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:20.156 WARNING (MainThread) [custom_components.alarmo.alarm_control_panel] Cannot go to state disarmed from state disarmed.
2024-01-12 08:45:20.890 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:20.891 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:24.916 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:26.932 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:28.944 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:28.944 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:30.960 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:30.960 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:35.783 WARNING (MainThread) [custom_components.alarmo.alarm_control_panel] Cannot go to state disarmed from state disarmed.
2024-01-12 08:45:38.333 WARNING (MainThread) [custom_components.alarmo.alarm_control_panel] Cannot go to state disarmed from state disarmed.
2024-01-12 08:45:39.011 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:39.011 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:45.049 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:49.081 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:49.082 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:55.111 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:5
```5.112 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
Can you double check what version you are running? This suggests you've lost the original fix I made: Received data from: A1Mini With the fix it should read: Received data from: A1MINI
And the one-line fix is definitely still there.
Oh wait. I see a second bug where I overwrite the fixed string. Fixed release coming.
Will test
Looks better now. Camera comes back after being offline :)
Is the A1 mini camera supposed to work in the LAN mode? I don't get the entity on a fresh install, just got my printer so it could also be I am missing a setting?
Describe the bug
A1 mini no camera entity. Connected via Cloud + local
To Reproduce
Connect
Expected Behaviour
Camera
What device are you using?
A1 Mini
Diagnostic Output
Log Extracts
Other Information
No response