Notifications
Clear all

PrusaLink 0.7.0 rc3 with Home Assistant  

  RSS
Mathieu
(@mathieu-3)
Eminent Member
PrusaLink 0.7.0 rc3 with Home Assistant

I have upgraded from 0.7.0 rc1 to 0.7.0 rc3:

prusalink stop

sudo apt-get update
sudo apt-get upgrade
sudo apt install git python3-pip pigpio libcap-dev libmagic1 libturbojpeg0 libatlas-base-dev

pip3 install -U   https://[email protected]/prusa3d/Prusa-Connect-SDK-Printer/archive/refs/tags/0.7.0rc3.tar.gz  
pip3 install -U   https://[email protected]/prusa3d/Prusa-Link/archive/refs/tags/0.7.0rc3.tar.gz  

prusalink start

But now, I would like to put in place the Home Assistant integration from https://www.home-assistant.io/integrations/prusalink/. So I have followed the steps but I get an error saying that only PrusaLink v2 API is supported.

I've checked my prusalink and i see:

API 0.9.0-legacy
Hostname PrusaLink
Firmware 3.11.0-4955
Server0.7.0rc3
Text PrusaLink 0.7.0rc3
SDK 0.7.0rc3
Frontend 3.12.0

Is there a way to upgrade the API

Thanks!

Posted : 18/03/2023 8:50 pm
Tojik
(@tojik)
Member Moderator
RE: PrusaLink 0.7.0 rc3 with Home Assistant

Hi, the API was always like this and it's going to get changed in the near future, we are building a common API for the MINI and PrusaLink on MK3. It's simpler having the web running against the same API. I know it as the V1 API, but the mini would then need to call it V3? IDK, but there shall be one API for both. We will change the version to 1 in the readout once we release the 0.7.0 non RC. At least that's what I was told.

Posted : 21/03/2023 10:10 am
Mathieu and liked
Cicicok
(@cicicok)
Active Member
RE: PrusaLink 0.7.0 rc3 with Home Assistant

Sorry, but I need to revive this because, I'm very confused by the api versioning.

I looked into repos and I'm convinced that all Buddy FW printers like Mini/Mk4/Mk3.5/XL returns value 2.0.0. because this string is hardcoded.

https://github.com/prusa3d/Prusa-Firmware-Buddy/blob/bfb0ffc745ee6546e7efdba618d0e7c0f4c909cd/lib/WUI/link_content/basic_gets.h#L5-L14

Did this 2.0.0 version string have anything to do with API V1 and legacy API? If yes, why is PrusaLink for Raspberry Pi reporting 0.9.0-legacy when in the code base you can see implemented v1 endpoints?

BTW here is another thread opened by me: https://forum.prusa3d.com/forum/bugs-errors/confusing-api-versionig

Posted : 09/11/2023 11:34 am
Tojik
(@tojik)
Member Moderator
RE: PrusaLink 0.7.0 rc3 with Home Assistant

I will ask what's going on with the API version. I assume it should be saying 2.0.0 or more

Posted : 13/11/2023 10:46 am
Share: