Disane87 / spoolman-homeassistant

Spoolman home assistant integration 🏠
MIT License
43 stars 4 forks source link

Show active spool on klipper (if used) #86

Closed Disane87 closed 4 months ago

Disane87 commented 4 months ago

Checklist

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

I want to show the current active spool in HA

Describe the solution you'd like

Active spool can be achived by calling the klipper endpoint https://[klipper url]/server/spoolman/spool_id with a sample result:

{
    "result": {
        "spool_id": 28
    }
}

Describe alternatives you've considered

n/a

Additional context

n/a

Disane87 commented 4 months ago

:tada: This issue has been resolved in version 0.4.0-dev.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

Disane87 commented 4 months ago

:tada: This issue has been resolved in version 0.4.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

PeteCondliffe commented 2 months ago

I'm probably missing something here but how would I make this work form multiple instances? I can see if i go to https://[klipper url]:port/server/spoolman/spool_id on each instance i get the correct spool ID's but there appears to be no way of pulling more than one instance into HA Thanks

Disane87 commented 2 months ago

Multiple instances are totally untested. Please open up a discussion for that. Thank you!