- Update moonraker to the last version
- Activate mqtt in moonraker.conf file (in klipper_conf folder) by adding this section:
https://github.com/bax137/voron-stuff/blob/master/homeassistant/klipper_sensors/moonraker.conf
- in home assistant configuration (configuration.yaml), add these sensors.
Don’t forget to replace <instance_name> by the instance name you put in moonraker mqtt configuration, and <printer_ip> by the ip of your printer in the gcode_preview sensor.
https://github.com/bax137/voron-stuff/blob/master/homeassistant/klipper_sensors/sensors.yaml
- add this automation (home assistant is waiting for a raw data for the payload availability, this automation publish the information from the initial json payload in a new topic):
Replace <instance_name> by the instance name you put in moonraker mqtt configuration.
https://github.com/bax137/voron-stuff/blob/master/homeassistant/klipper_sensors/automation.yaml
- add the cameras
https://github.com/bax137/voron-stuff/blob/master/homeassistant/klipper_sensors/cameras.yaml
- Create the config/www directory and upload the following files in it. Change the no_preview.png file with the image you want to show if no preview is available.
https://github.com/bax137/voron-stuff/blob/master/homeassistant/klipper_sensors/www/no_preview.json
https://github.com/bax137/voron-stuff/blob/master/homeassistant/klipper_sensors/www/no_preview.png