marcolivierarsenault / moonraker-home-assistant

Home Assistant integration for Moonraker, Klipper and Mainsail
https://moonraker-home-assistant.readthedocs.io
MIT License
250 stars 27 forks source link

Add active spool from spoolman (if configured) #342

Open Disane87 opened 6 months ago

Disane87 commented 6 months ago

Is your feature request related to a problem? Please describe.

If spoolman ist configured in Moonraker the active spool should be available as sensor.

I have developed a HA integration for spoolman and it would be cool to have the active spools for n printers in HA.

https://github.com/Disane87/spoolman-homeassistant

With that ID it would be possible to map these ids against my spoolman sensors to get the spool information.

My integration already supports adding the Moonraker url to get that active spool id but IMHO my implementation should only be responsible for handling spoolman stuff and not Moonraker things. So that’s only a workaround to have the active spool in HA.

Additionally it would be possible to have multi printer setups have their own active spool. My integration doesn’t support multi printer situations.

There is also a discussion on my repo about the use case: https://github.com/Disane87/spoolman-homeassistant/discussions/117

marcolivierarsenault commented 4 months ago

For this to work, we need someone with Spoolman to implement.

marcolivierarsenault commented 4 months ago

would need someone to do the change to the integration

Disane87 commented 4 months ago

Which changes do I need to do in the integration? I’m the owner of the Spoolman integration or do you mean the moonraker integration?

marcolivierarsenault commented 4 months ago

I would need someone to add whatever sensors are needed in the moonraker integration.

Roguyt commented 2 months ago

I have been testing this extension and I am using Spoolman, I'll be digging into it.

turulix commented 2 months ago

Would also apreciate a way to change the spool via HA, this would allow one to setup automations where you only scan an NFC Tag / QR Code and have an automation change the spool