I was looking to some integration with moonraker api, to integrate my 3d printer with klipper firmware.
At the moment I have some sensors using rest, but would be great to have a specific integration with sensors and services to control 3d printers with klipper.
Moonraker API has rest endpoints and also webhook to be subscribed.
I started reading some documentation to prepare a dev environment to start developing something for this, but I never developed anything like this in python and I don’t have much time at the moment.
Moonraker can be configured as a MQTT client, publishing messages when the state of selected objects change to a configurable topic. And with RPC commands through request and response topics. So the existing MQTT integration can be used. The only trouble is defining all the sensors manually in automation.yml.
Another solution would be to write a gcode marco to send a MQTT messages for sensors discovery and have it automatically run at startup. A bit more complex, but it would be easier to share and re-use for those more comfortable with klipper/moonraker than HA’s configuration.yml.
Has anyone tried to install moonraker integration manually on hassio following the developer comment in the thread mentioned in the above comment?
I managed to correctly get all files under custom_components but no entry “Moonraker” is shown in my Integration menu.
This is the link provided by the developer until official support in HA Moonraker Component Integration
Sure thing! I made a few changes to make it a bit more “generic” and uploaded the YAML as a gist (link below). Feel free to use whatever parts you’d like. This YAML assumes you name your printer “moonraker” when setting up your moonraker-home-assistant integration.