Home Assistant integration: "Only PrusaLink API v2 is supported"
 
Avisos
Vaciar todo

Home Assistant integration: "Only PrusaLink API v2 is supported"  

  RSS
Mathieu
(@mathieu-3)
Eminent Member
Home Assistant integration: "Only PrusaLink API v2 is supported"

Hello,

Home Assistant integration is failing because it only works with API v2 (Mini printers).

Is it possible to align PrusaLink API to v2 so that /api/version can report 2.x.x and then be usable on Home Assistant ?

Last prusalink returns:

{
  "api": "0.9.0-legacy",
  "server": "0.7.0rc3",
  "original": "PrusaLink I3MK3S",
  "text": "PrusaLink 0.7.0rc3",
  "firmware": "3.11.0-4955",
  "sdk": "0.7.0rc3",
  "capabilities": {
    "upload-by-put": true
  },
  "hostname": "PrusaLink"
}

Currently, HA integration is limited to Mini printers because of that, but even if the version were to be updated, it could fail because API Key is deprecated (which is a ongoing PR on HA side)

Refs:

  1. Integration: https://www.home-assistant.io/integrations/prusalink/
  2. Feature Request on HA to support more than v 2.x.x API: https://community.home-assistant.io/t/prusa-3d-printers-support/550070
  3. Issue explaining the problem: https://github.com/home-assistant/core/issues/86230
  4. Related discussion in Prusa forum about the problem: https://forum.prusa3d.com/forum/user-mods-octoprint-enclosures-nozzles/prusalink-and-home-assistant/paged/2/
  5. A PR to change HA prusalink lib to use digest auth besides other changes: https://github.com/home-assistant-libs/pyprusalink/pull/25

IMO it would be far easier if Prusalink could provide a similar API for HA consumption for all printers, even if HA library opens the door for more API/version support, 

Thanks!

Respondido : 20/03/2023 12:57 pm
Compartir: