From ee8dc166e868307d843883f3778ae694fbfe1850 Mon Sep 17 00:00:00 2001 From: grant0013 Date: Sat, 6 Jun 2026 13:19:29 +0000 Subject: [PATCH] harktech: set host_type + printer_agent=crealityprint on K2/K2 Pro/K2 Plus presets The CFS-aware filament sync resolves its agent via switch_printer_agent(), which reads the preset's `printer_agent` field and falls back to "orca" when unset -- so the K-series presets need printer_agent="crealityprint" (the id registered by CrealityPrintAgent) in addition to host_type="crealityprint" (classic PrintHost/LAN-discovery). Without printer_agent the Device-tab sync defaults to the Orca agent and CFS sync doesn't engage. Set both on the F008/F012/F021 models that supports_multi_color_print() covers (not K2 SE). Both keys are in s_PhysicalPrinter_opts, so a new Physical Printer inherits them from the preset. --- .../profiles/Creality/machine/Creality K2 0.2 nozzle.json | 2 ++ .../profiles/Creality/machine/Creality K2 0.4 nozzle.json | 3 ++- .../profiles/Creality/machine/Creality K2 0.6 nozzle.json | 3 ++- .../profiles/Creality/machine/Creality K2 0.8 nozzle.json | 3 ++- .../profiles/Creality/machine/Creality K2 Plus 0.2 nozzle.json | 2 ++ .../profiles/Creality/machine/Creality K2 Plus 0.4 nozzle.json | 2 ++ .../profiles/Creality/machine/Creality K2 Plus 0.6 nozzle.json | 2 ++ .../profiles/Creality/machine/Creality K2 Plus 0.8 nozzle.json | 2 ++ .../profiles/Creality/machine/Creality K2 Pro 0.2 nozzle.json | 2 ++ .../profiles/Creality/machine/Creality K2 Pro 0.4 nozzle.json | 3 ++- .../profiles/Creality/machine/Creality K2 Pro 0.6 nozzle.json | 3 ++- .../profiles/Creality/machine/Creality K2 Pro 0.8 nozzle.json | 3 ++- 12 files changed, 24 insertions(+), 6 deletions(-) diff --git a/resources/profiles/Creality/machine/Creality K2 0.2 nozzle.json b/resources/profiles/Creality/machine/Creality K2 0.2 nozzle.json index b482ad9bfe..6652e9eab0 100644 --- a/resources/profiles/Creality/machine/Creality K2 0.2 nozzle.json +++ b/resources/profiles/Creality/machine/Creality K2 0.2 nozzle.json @@ -22,6 +22,8 @@ "fan_speedup_overhangs": "1", "fan_speedup_time": "0", "gcode_flavor": "klipper", + "host_type": "crealityprint", + "printer_agent": "crealityprint", "high_current_on_filament_swap": "0", "machine_end_gcode": "END_PRINT", "machine_load_filament_time": "0", diff --git a/resources/profiles/Creality/machine/Creality K2 0.4 nozzle.json b/resources/profiles/Creality/machine/Creality K2 0.4 nozzle.json index 84a097d8af..33083cfd29 100644 --- a/resources/profiles/Creality/machine/Creality K2 0.4 nozzle.json +++ b/resources/profiles/Creality/machine/Creality K2 0.4 nozzle.json @@ -188,7 +188,8 @@ "creality_flush_time": "86", "disable_m73": "0", "enable_long_retraction_when_cut": "2", - "host_type": "octoprint", + "host_type": "crealityprint", + "printer_agent": "crealityprint", "machine_LED_light_exist": "1", "machine_min_extruding_rate": "0,0", "machine_min_travel_rate": "0,0", diff --git a/resources/profiles/Creality/machine/Creality K2 0.6 nozzle.json b/resources/profiles/Creality/machine/Creality K2 0.6 nozzle.json index eff01f1c05..da3501a1fd 100644 --- a/resources/profiles/Creality/machine/Creality K2 0.6 nozzle.json +++ b/resources/profiles/Creality/machine/Creality K2 0.6 nozzle.json @@ -189,7 +189,8 @@ "creality_flush_time": "86", "disable_m73": "0", "enable_long_retraction_when_cut": "0", - "host_type": "octoprint", + "host_type": "crealityprint", + "printer_agent": "crealityprint", "machine_LED_light_exist": "1", "machine_min_extruding_rate": "0,0", "machine_min_travel_rate": "0,0", diff --git a/resources/profiles/Creality/machine/Creality K2 0.8 nozzle.json b/resources/profiles/Creality/machine/Creality K2 0.8 nozzle.json index 2579b7e240..cb89d24692 100644 --- a/resources/profiles/Creality/machine/Creality K2 0.8 nozzle.json +++ b/resources/profiles/Creality/machine/Creality K2 0.8 nozzle.json @@ -189,7 +189,8 @@ "creality_flush_time": "86", "disable_m73": "0", "enable_long_retraction_when_cut": "0", - "host_type": "octoprint", + "host_type": "crealityprint", + "printer_agent": "crealityprint", "machine_LED_light_exist": "1", "machine_min_extruding_rate": "0,0", "machine_min_travel_rate": "0,0", diff --git a/resources/profiles/Creality/machine/Creality K2 Plus 0.2 nozzle.json b/resources/profiles/Creality/machine/Creality K2 Plus 0.2 nozzle.json index 11171e9797..8f7d6b1bc6 100644 --- a/resources/profiles/Creality/machine/Creality K2 Plus 0.2 nozzle.json +++ b/resources/profiles/Creality/machine/Creality K2 Plus 0.2 nozzle.json @@ -7,6 +7,8 @@ "instantiation": "true", "printer_model": "Creality K2 Plus", "gcode_flavor": "klipper", + "host_type": "crealityprint", + "printer_agent": "crealityprint", "default_print_profile": "0.14mm Optimal @Creality K2 Plus 0.2 nozzle", "nozzle_diameter": [ "0.2" diff --git a/resources/profiles/Creality/machine/Creality K2 Plus 0.4 nozzle.json b/resources/profiles/Creality/machine/Creality K2 Plus 0.4 nozzle.json index 3c3d99c7d3..848aefa4db 100644 --- a/resources/profiles/Creality/machine/Creality K2 Plus 0.4 nozzle.json +++ b/resources/profiles/Creality/machine/Creality K2 Plus 0.4 nozzle.json @@ -7,6 +7,8 @@ "instantiation": "true", "printer_model": "Creality K2 Plus", "gcode_flavor": "klipper", + "host_type": "crealityprint", + "printer_agent": "crealityprint", "default_print_profile": "0.16mm Optimal @Creality K2 Plus 0.4 nozzle", "nozzle_diameter": [ "0.4" diff --git a/resources/profiles/Creality/machine/Creality K2 Plus 0.6 nozzle.json b/resources/profiles/Creality/machine/Creality K2 Plus 0.6 nozzle.json index 4c277b084a..6592a240eb 100644 --- a/resources/profiles/Creality/machine/Creality K2 Plus 0.6 nozzle.json +++ b/resources/profiles/Creality/machine/Creality K2 Plus 0.6 nozzle.json @@ -7,6 +7,8 @@ "instantiation": "true", "printer_model": "Creality K2 Plus", "gcode_flavor": "klipper", + "host_type": "crealityprint", + "printer_agent": "crealityprint", "default_print_profile": "0.24mm Optimal @Creality K2 Plus 0.6 nozzle", "nozzle_diameter": [ "0.6" diff --git a/resources/profiles/Creality/machine/Creality K2 Plus 0.8 nozzle.json b/resources/profiles/Creality/machine/Creality K2 Plus 0.8 nozzle.json index 74c654db1c..96ed049880 100644 --- a/resources/profiles/Creality/machine/Creality K2 Plus 0.8 nozzle.json +++ b/resources/profiles/Creality/machine/Creality K2 Plus 0.8 nozzle.json @@ -7,6 +7,8 @@ "instantiation": "true", "printer_model": "Creality K2 Plus", "gcode_flavor": "klipper", + "host_type": "crealityprint", + "printer_agent": "crealityprint", "default_print_profile": "0.32mm Optimal @Creality K2 Plus 0.8 nozzle", "nozzle_diameter": [ "0.8" diff --git a/resources/profiles/Creality/machine/Creality K2 Pro 0.2 nozzle.json b/resources/profiles/Creality/machine/Creality K2 Pro 0.2 nozzle.json index 58b82fe26c..2ee489b7fa 100644 --- a/resources/profiles/Creality/machine/Creality K2 Pro 0.2 nozzle.json +++ b/resources/profiles/Creality/machine/Creality K2 Pro 0.2 nozzle.json @@ -7,6 +7,8 @@ "instantiation": "true", "printer_model": "Creality K2 Pro", "gcode_flavor": "klipper", + "host_type": "crealityprint", + "printer_agent": "crealityprint", "default_print_profile": "0.16mm Optimal @Creality K2 Pro 0.2 nozzle", "nozzle_diameter": [ "0.2" diff --git a/resources/profiles/Creality/machine/Creality K2 Pro 0.4 nozzle.json b/resources/profiles/Creality/machine/Creality K2 Pro 0.4 nozzle.json index 7ec1e54616..f3b5a9bedf 100644 --- a/resources/profiles/Creality/machine/Creality K2 Pro 0.4 nozzle.json +++ b/resources/profiles/Creality/machine/Creality K2 Pro 0.4 nozzle.json @@ -162,7 +162,8 @@ "fan_speedup_overhangs": "1", "fan_speedup_time": "0", "high_current_on_filament_swap": "0", - "host_type": "octoprint", + "host_type": "crealityprint", + "printer_agent": "crealityprint", "machine_LED_light_exist": "1", "machine_load_filament_time": "86", "machine_min_extruding_rate": "0,0", diff --git a/resources/profiles/Creality/machine/Creality K2 Pro 0.6 nozzle.json b/resources/profiles/Creality/machine/Creality K2 Pro 0.6 nozzle.json index d2e8df0737..1fce24ea83 100644 --- a/resources/profiles/Creality/machine/Creality K2 Pro 0.6 nozzle.json +++ b/resources/profiles/Creality/machine/Creality K2 Pro 0.6 nozzle.json @@ -162,7 +162,8 @@ "fan_speedup_overhangs": "1", "fan_speedup_time": "0", "high_current_on_filament_swap": "0", - "host_type": "octoprint", + "host_type": "crealityprint", + "printer_agent": "crealityprint", "machine_LED_light_exist": "1", "machine_load_filament_time": "86", "machine_min_extruding_rate": "0,0", diff --git a/resources/profiles/Creality/machine/Creality K2 Pro 0.8 nozzle.json b/resources/profiles/Creality/machine/Creality K2 Pro 0.8 nozzle.json index 0f265182a1..660a32e6aa 100644 --- a/resources/profiles/Creality/machine/Creality K2 Pro 0.8 nozzle.json +++ b/resources/profiles/Creality/machine/Creality K2 Pro 0.8 nozzle.json @@ -162,7 +162,8 @@ "fan_speedup_overhangs": "1", "fan_speedup_time": "0", "high_current_on_filament_swap": "0", - "host_type": "octoprint", + "host_type": "crealityprint", + "printer_agent": "crealityprint", "machine_LED_light_exist": "1", "machine_load_filament_time": "86", "machine_min_extruding_rate": "0,0",