Moonraker/Klipper Binding

This is a binding to connect a 3D-Printer, which is running Klipper and Moonraker to Openhab.
With the Thing created by the Binding, you can control a 3D-Printer (send G-Codes), and receive data from the 3D-Printer (State, Extruder Temperature, Progress, etc..)

For more details about Klipper, please see the official Klippler site
For more details about Moonraker, please see the official Moonraker site

Changelog

Version 0.1

  • initial release
  • ported to Openhab 4.1.X (should also run with 4.0.X and 4.2.X releases)

Resources

Jar:
https://github.com/zenzmatz/openhab-addons/releases/download/openhab/org.openhab.binding.moonraker-4.2.0-SNAPSHOT.jar

Source-code:
https://github.com/zenzmatz/openhab-addons/tree/moonraker

5 Likes

After the binding was installed (via Marketplace or adding the jar manually), you have to add a new Thing with the Moonraker/Klipper Binding

Then you have to manually add a “Printer 3D” Thing

And finally make the initial configuration of the thing, where normally only the Host/IP-Adress of the Printer/Client has to be configured

In the advanced config part you could also configure a other port, api key (not needed if not configured on moonraker/klipper side), or change the timeouts for the websocket reconnect

*** Placeholder for usecase examples ***

At my setup, i’m automaticly turning off the power-supply of the printer, after the printer is cooled up and finished.

Afterwards, when a switch the power-supply back on, i have to restart the firmware and Home all axes (homing is done via sending the G-Code G28 to the G-Code channel of the 3D Printer Thing)

1 Like

I am not seeing this in the marketplace
I am running 4.1.1

I had to turn on the unpublished stuff

Hi, since I just installed Klipper on my Ender3 and I would be interested in this integration, can you please post an example of configuration via file? my OH system is configured only through files. From the examples above it is not clear to me how to do it… thanks a lot

Hi, I just tried installing the binding. However after connecting the Printer (It shows ONLINE), all channels are NULL and stay like that. What am i missing?

Thank’s

How many printers can be set up with this binding.

I’m on Openhab release 5.0.1 with one printer set up from before upgrading from OH 4.x.x (forget exactly which) but when I try to manually create a thing with a second printer I get the notice “No thing types can be added with this binding.”

I added two printers … one works … other not.

Cummication Error.

Both use same Moonraker.conf and same Moonraker Version.

The host is reachable.

Both moonraker api are reavhable through port 7125. I also run Obico on both printers … and Obico can reach both using same ips and ports.

Moonraker.log on printer shows:

2026-01-28 20:33:47,342 [authorization.py:_check_trusted_connection()] - Trusted Connection Detected, IP: 192.168.178.111
2026-01-28 20:33:47,440 [application.py:log_request()] - 404 GET /printer/objects/query?gcode_move=speed_factor,speed,extrude_factor,gcode_position&toolhead=print_time,estimated_print_time,max_velocity,max_accel,max_accel_to_decel,square_corner_velocity&extruder&heater_bed&fan&idle_timeout&virtual_sdcard&print_stats=total_duration,print_duration,filament_used&display_status&heaters&mcu=last_stats&mcu%20rpi=last_stats&temperature_sensor%20raspberry&temperature_sensor%20TMC5160&temperature_fan%20chamber (192.168.178.111)

192.168.178.111 is openhab.

looks like the dev has moved on to Home Assistant… his github no longer hosts this binding and the only 3 public repositories are for Hone Assistant things.

given that this isnt hosted at github any longer, could you host the jar file somewhere, I’ve lost it off my system somehow.

I uninstalled binding meanwhile.

I also stopped OpenHab Docker meanwhile and moved over to Home Assistant.

Homematic binding also supports some of my sensors anymore. More and more bindings seems to be oudated or buggy in OpenHab.

In Home Assistant all bindings works from first minute. All my printers works, my lawn mower, homematic and so on.

Building Dashboards works very easy there. I think i will keep HA and say good bye to OH.