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.
1 Like