### Describe the bug
Recently bought an P1S - works generally great.
My imp…ression was that this integration was working solidly, until I upgraded the firmware.
Sometimes the information gets updated, sometimes not. If I reload the integration it works sometimes. Intermittently it works, generally. Note though, if I push a change through the integration (turn on the light), that specific command always works.
I use LAN mode, but tried enabling the communication over the network completely, (both within LAN and online), no difference.
I had version "P1P OTA version01.03.00.00(20230608)" previously.
It is now "P1 series OTA version01.04.00.00(20230807)". A hunch might be that this bug fix is causing this:
"Fixed the printer restart problem caused by continuous reconnection of MQTT using third-party tools." - see https://wiki.bambulab.com/en/p1/manual/p1p-firmware-release-history .
### To Reproduce
Install latest firmware, try to use the integration. It usually picks up some info. If I reload it it works sometimes.
### Expected Behaviour
To be able to rely on the information.
The Device tab inside Bambu Studio works fine.
FTP works too.
### What device are you using?
P1S
(P1S is not an option in the drop down for bug reports, please add!)
### Firmware Version
01.04.00.00
### Home Assistant Version
2023.7.3
### Component Version
v1.4.8
### Log Extracts
Turned on DEBUG logging for a while, then turned it off. Made 5 prints during the day (2023-08-17):
0715-1000, 1400-1600, 1630-1730, 1830-1915, 2045-2120.
Watchdog fired is sent completely intermittently, sometimes after 15 minutes, sometimes 1-2 hours.
2023-08-15 23:16:32.090 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration bambu_lab which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-16 17:13:22.616 WARNING (MainThread) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2023-08-16 17:13:22.625 WARNING (Thread-11 (listen_thread)) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2023-08-16 17:15:08.888 WARNING (MainThread) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2023-08-16 17:16:44.956 WARNING (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
2023-08-16 17:16:44.962 WARNING (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
2023-08-16 17:24:27.495 WARNING (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
<<DEBUG ENABLED>>
2023-08-16 23:08:14.545 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"bed_temper":25.625,"command":"push_status","msg":1,"sequence_id":"42065"}}'
2023-08-16 23:08:14.546 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-16 23:08:16.560 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"wifi_signal":"-56dBm","command":"push_status","msg":1,"sequence_id":"42066"}}'
2023-08-16 23:08:16.560 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-16 23:08:20.583 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"nozzle_temper":28,"command":"push_status","msg":1,"sequence_id":"42067"}}'
2023-08-16 23:08:20.584 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-16 23:08:40.584 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Watchdog fired. No data received for 20.000356674194336 seconds.
2023-08-16 23:08:40.584 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Watch dog fired
2023-08-16 23:08:40.585 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Sent {'pushing': {'sequence_id': '0', 'command': 'start'}} to topic device/<<MY_P1S_NO>>/request
2023-08-16 23:08:40.626 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"upload":{"status":"idle","progress":0,"message":""},"nozzle_temper":28,"nozzle_target_temper":0,"bed_temper":25.625,"bed_target_temper":0,"chamber_temper":5,"mc_print_stage":"1","heatbreak_fan_speed":"0","cooling_fan_speed":"0","big_fan1_speed":"0","big_fan2_speed":"0","mc_percent":100,"mc_remaining_time":0,"ams_status":0,"ams_rfid_status":0,"hw_switch_state":0,"spd_mag":100,"spd_lvl":2,"print_error":0,"lifecycle":"product","wifi_signal":"-56dBm","gcode_state":"FINISH","gcode_file_prepare_percent":"0","queue_number":0,"queue_total":0,"queue_est":0,"queue_sts":0,"project_id":"0","profile_id":"0","task_id":"0","subtask_id":"0","subtask_name":"Tobera bambu x1 v3","gcode_file":"Tobera bambu x1 v3.gcode.3mf","stg":[],"stg_cur":255,"print_type":"idle","home_flag":16664,"mc_print_line_number":"8641","mc_print_sub_stage":0,"sdcard":true,"force_upgrade":false,"mess_production_state":"active","layer_num":25,"total_layer_num":25,"hms":[],"online":{"ahb":false,"rfid":false,"version":1126223550},"ams":{"ams":[{"id":"0","humidity":"1","temp":"0.0","tray":[{"id":"0","remain":-1,"k":0.035000000149011612,"n":1.3999999761581421,"tag_uid":"0000000000000000","tray_id_name":"","tray_info_idx":"GFG99","tray_type":"PETG","tray_sub_brands":"","tray_color":"FFFFFFFF","tray_weight":"0","tray_diameter":"0.00","tray_temp":"0","tray_time":"0","bed_temp_type":"0","bed_temp":"0","nozzle_temp_max":"270","nozzle_temp_min":"220","xcam_info":"000000000000000000000000","tray_uuid":"00000000000000000000000000000000"},{"id":"1","remain":-1,"k":0.035000000149011612,"n":1.3999999761581421,"tag_uid":"0000000000000000","tray_id_name":"","tray_info_idx":"GFG99","tray_type":"PETG","tray_sub_brands":"","tray_color":"161616FF","tray_weight":"0","tray_diameter":"0.00","tray_temp":"0","tray_time":"0","bed_temp_type":"0","bed_temp":"0","nozzle_temp_max":"270","nozzle_temp_min":"220","xcam_info":"00000 ...
2023-08-16 23:08:40.627 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-16 23:08:40.634 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] UNKNOWN FILAMENT IDX:
2023-08-16 23:08:40.634 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-16 23:08:40.638 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-16 23:08:42.631 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"bed_temper":25.59375,"command":"push_status","msg":1,"sequence_id":"42069"}}'
2023-08-16 23:08:42.632 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-16 23:08:52.674 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"bed_temper":25.625,"command":"push_status","msg":1,"sequence_id":"42070"}}'
2023-08-16 23:08:52.675 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-16 23:09:12.675 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Watchdog fired. No data received for 20.000270128250122 seconds.
2023-08-16 23:09:12.675 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Watch dog fired
2023-08-16 23:09:12.676 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Sent {'pushing': {'sequence_id': '0', 'command': 'start'}} to topic device/<<MY_P1S_NO>>/request
2023-08-16 23:09:12.712 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"upload":{"status":"idle","progress":0,"message":""},"nozzle_temper":28,"nozzle_target_temper":0,"bed_temper":25.625,"bed_target_temper":0,"chamber_temper":5,"mc_print_stage":"1","heatbreak_fan_speed":"0","cooling_fan_speed":"0","big_fan1_speed":"0","big_fan2_speed":"0","mc_percent":100,"mc_remaining_time":0,"ams_status":0,"ams_rfid_status":0,"hw_switch_state":0,"spd_mag":100,"spd_lvl":2,"print_error":0,"lifecycle":"product","wifi_signal":"-56dBm","gcode_state":"FINISH","gcode_file_prepare_percent":"0","queue_number":0,"queue_total":0,"queue_est":0,"queue_sts":0,"project_id":"0","profile_id":"0","task_id":"0","subtask_id":"0","subtask_name":"Tobera bambu x1 v3","gcode_file":"Tobera bambu x1 v3.gcode.3mf","stg":[],"stg_cur":255,"print_type":"idle","home_flag":16664,"mc_print_line_number":"8641","mc_print_sub_stage":0,"sdcard":true,"force_upgrade":false,"mess_production_state":"active","layer_num":25,"total_layer_num":25,"hms":[],"online":{"ahb":false,"rfid":false,"version":1126223550},"ams":{"ams":[{"id":"0","humidity":"1","temp":"0.0","tray":[{"id":"0","remain":-1,"k":0.035000000149011612,"n":1.3999999761581421,"tag_uid":"0000000000000000","tray_id_name":"","tray_info_idx":"GFG99","tray_type":"PETG","tray_sub_brands":"","tray_color":"FFFFFFFF","tray_weight":"0","tray_diameter":"0.00","tray_temp":"0","tray_time":"0","bed_temp_type":"0","bed_temp":"0","nozzle_temp_max":"270","nozzle_temp_min":"220","xcam_info":"000000000000000000000000","tray_uuid":"00000000000000000000000000000000"},{"id":"1","remain":-1,"k":0.035000000149011612,"n":1.3999999761581421,"tag_uid":"0000000000000000","tray_id_name":"","tray_info_idx":"GFG99","tray_type":"PETG","tray_sub_brands":"","tray_color":"161616FF","tray_weight":"0","tray_diameter":"0.00","tray_temp":"0","tray_time":"0","bed_temp_type":"0","bed_temp":"0","nozzle_temp_max":"270","nozzle_temp_min":"220","xcam_info":"00000 ...
2023-08-16 23:09:12.713 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-16 23:09:12.717 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] UNKNOWN FILAMENT IDX:
2023-08-16 23:09:12.717 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-16 23:09:12.722 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-16 23:09:14.723 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"wifi_signal":"-55dBm","command":"push_status","msg":1,"sequence_id":"42072"}}'
2023-08-16 23:09:14.724 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-16 23:09:16.736 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"wifi_signal":"-56dBm","command":"push_status","msg":1,"sequence_id":"42073"}}'
2023-08-16 23:09:16.737 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-16 23:09:20.749 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"wifi_signal":"-55dBm","command":"push_status","msg":1,"sequence_id":"42074"}}'
2023-08-16 23:09:20.750 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
<<LOG REDACTED, Manually updated bambu_lab data + On Message: Received Message: every 4 seconds or so>>
2023-08-17 07:01:05.430 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-17 07:01:25.430 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Watchdog fired. No data received for 20.000174283981323 seconds.
2023-08-17 07:01:25.430 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Watch dog fired
2023-08-17 07:01:25.432 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Sent {'pushing': {'sequence_id': '0', 'command': 'start'}} to topic device/<<MY_P1S_NO>>/request
2023-08-17 07:01:25.467 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"upload":{"status":"idle","progress":0,"message":""},"nozzle_temper":25.53125,"nozzle_target_temper":0,"bed_temper":23.375,"bed_target_temper":0,"chamber_temper":5,"mc_print_stage":"1","heatbreak_fan_speed":"0","cooling_fan_speed":"0","big_fan1_speed":"0","big_fan2_speed":"0","mc_percent":100,"mc_remaining_time":0,"ams_status":0,"ams_rfid_status":0,"hw_switch_state":0,"spd_mag":100,"spd_lvl":2,"print_error":0,"lifecycle":"product","wifi_signal":"-56dBm","gcode_state":"FINISH","gcode_file_prepare_percent":"0","queue_number":0,"queue_total":0,"queue_est":0,"queue_sts":0,"project_id":"0","profile_id":"0","task_id":"0","subtask_id":"0","subtask_name":"Tobera bambu x1 v3","gcode_file":"Tobera bambu x1 v3.gcode.3mf","stg":[],"stg_cur":255,"print_type":"idle","home_flag":16664,"mc_print_line_number":"8641","mc_print_sub_stage":0,"sdcard":true,"force_upgrade":false,"mess_production_state":"active","layer_num":25,"total_layer_num":25,"hms":[],"online":{"ahb":false,"rfid":false,"version":1126223550},"ams":{"ams":[{"id":"0","humidity":"1","temp":"0.0","tray":[{"id":"0","remain":-1,"k":0.035000000149011612,"n":1.3999999761581421,"tag_uid":"0000000000000000","tray_id_name":"","tray_info_idx":"GFG99","tray_type":"PETG","tray_sub_brands":"","tray_color":"FFFFFFFF","tray_weight":"0","tray_diameter":"0.00","tray_temp":"0","tray_time":"0","bed_temp_type":"0","bed_temp":"0","nozzle_temp_max":"270","nozzle_temp_min":"220","xcam_info":"000000000000000000000000","tray_uuid":"00000000000000000000000000000000"},{"id":"1","remain":-1,"k":0.035000000149011612,"n":1.3999999761581421,"tag_uid":"0000000000000000","tray_id_name":"","tray_info_idx":"GFG99","tray_type":"PETG","tray_sub_brands":"","tray_color":"161616FF","tray_weight":"0","tray_diameter":"0.00","tray_temp":"0","tray_time":"0","bed_temp_type":"0","bed_temp":"0","nozzle_temp_max":"270","nozzle_temp_min":"220","xcam_info": ...
2023-08-17 07:01:25.468 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-17 07:01:25.472 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] UNKNOWN FILAMENT IDX:
2023-08-17 07:01:25.472 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-17 07:01:25.476 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
<<LOG REDACTED, Manually updated bambu_lab data + On Message: Received Message: every 4 seconds or so>>
2023-08-17 12:30:49.205 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-17 12:30:51.219 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"nozzle_temper":28.78125,"command":"push_status","msg":1,"sequence_id":"53856"}}'
2023-08-17 12:30:51.219 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-17 12:31:11.219 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Watchdog fired. No data received for 20.000194549560547 seconds.
2023-08-17 12:31:11.219 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Watch dog fired
2023-08-17 12:31:11.220 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Sent {'pushing': {'sequence_id': '0', 'command': 'start'}} to topic device/<<MY_P1S_NO>>/request
2023-08-17 12:31:11.274 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"upload":{"status":"idle","progress":0,"message":""},"nozzle_temper":28.78125,"nozzle_target_temper":0,"bed_temper":26.46875,"bed_target_temper":0,"chamber_temper":5,"mc_print_stage":"1","heatbreak_fan_speed":"0","cooling_fan_speed":"0","big_fan1_speed":"0","big_fan2_speed":"0","mc_percent":100,"mc_remaining_time":0,"ams_status":0,"ams_rfid_status":0,"hw_switch_state":0,"spd_mag":100,"spd_lvl":2,"print_error":0,"lifecycle":"product","wifi_signal":"-58dBm","gcode_state":"FINISH","gcode_file_prepare_percent":"0","queue_number":0,"queue_total":0,"queue_est":0,"queue_sts":0,"project_id":"0","profile_id":"0","task_id":"0","subtask_id":"0","subtask_name":"Tobera bambu x1 v3","gcode_file":"Tobera bambu x1 v3.gcode.3mf","stg":[],"stg_cur":255,"print_type":"idle","home_flag":16696,"mc_print_line_number":"470460","mc_print_sub_stage":0,"sdcard":true,"force_upgrade":false,"mess_production_state":"active","layer_num":917,"total_layer_num":917,"hms":[],"online":{"ahb":false,"rfid":false,"version":1126223550},"ams":{"ams":[{"id":"0","humidity":"1","temp":"0.0","tray":[{"id":"0","remain":-1,"k":0.035000000149011612,"n":1.3999999761581421,"tag_uid":"0000000000000000","tray_id_name":"","tray_info_idx":"GFG99","tray_type":"PETG","tray_sub_brands":"","tray_color":"FFFFFFFF","tray_weight":"0","tray_diameter":"0.00","tray_temp":"0","tray_time":"0","bed_temp_type":"0","bed_temp":"0","nozzle_temp_max":"270","nozzle_temp_min":"220","xcam_info":"000000000000000000000000","tray_uuid":"00000000000000000000000000000000"},{"id":"1","remain":-1,"k":0.035000000149011612,"n":1.3999999761581421,"tag_uid":"0000000000000000","tray_id_name":"","tray_info_idx":"GFG99","tray_type":"PETG","tray_sub_brands":"","tray_color":"161616FF","tray_weight":"0","tray_diameter":"0.00","tray_temp":"0","tray_time":"0","bed_temp_type":"0","bed_temp":"0","nozzle_temp_max":"270","nozzle_temp_min":"220","xcam_ ...
2023-08-17 12:31:11.275 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-17 12:31:11.279 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] UNKNOWN FILAMENT IDX:
2023-08-17 12:31:11.279 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-17 12:31:11.283 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-17 12:31:17.288 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"bed_temper":26.4375,"wifi_signal":"-60dBm","command":"push_status","msg":1,"sequence_id":"53858"}}'
2023-08-17 12:31:17.289 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-17 12:31:19.301 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"wifi_signal":"-58dBm","command":"push_status","msg":1,"sequence_id":"53859"}}'
<<LOG REDACTED, Manually updated bambu_lab data + On Message: Received Message: every 4 seconds or so>>
2023-08-17 13:01:11.439 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-17 13:01:13.451 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab.pybambu] On Message: Received Message: b'{"print":{"bed_temper":25.53125,"command":"push_status","msg":1,"sequence_id":"54301"}}'
2023-08-17 13:01:13.451 DEBUG (Thread-404241 (listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2023-08-17 13:01:33.451 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Watchdog fired. No data received for 20.000341176986694 seconds.
2023-08-17 13:01:33.452 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Watch dog fired
2023-08-17 13:01:33.453 DEBUG (Thread-404978) [custom_components.bambu_lab.pybambu] Sent {'pushing': {'sequence_id': '0', 'command': 'start'}} to topic device/<<MY_P1S_NO>>/request
<<DEBUG DISABLED>>
2023-08-17 13:52:48.869 WARNING (MainThread) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2023-08-17 18:56:14.105 WARNING (Thread-667606 (listen_thread)) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
2023-08-17 18:56:14.112 WARNING (Thread-667606 (listen_thread)) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
### Other Information
_No response_