How to add pip to supervised HA

Hi, I have my HA instance running on proxmox. I wanted to add Haier integration, but for that to work right now I need to install some python modules (described here: hOn Authentication Error while trying to add a newly created account · Issue #230 · Andre0512/hon · GitHub)

I have terminal&ssh addon installed and there in the console I have
image

question: how can I install python modules for them to be used in Haier integration? Is there any option to install pip and have it working?

some versions:

  • Core2024.7.3
  • Supervisor2024.06.2
  • Operating System12.3
  • Frontend20240710.0

HA runs in a different Docker container to core-ssh.

You’d need the other SSH add-on, that has the option to disable protection mode so that you can run docker commands.

Keep in mind that you risk breaking HA, and any changes you make will be lost when the HA container is rebuilt - such as when you restart the host, upgrade HA, and sometimes even just restart HA.

The correct solution is for the dev to fix the custom integration.

The proper way is to add the dependencies/requirements to the manifest.json of the integration, though. That way, HA will pull the packages automatically.

Using pip means you’ll have to redo it each time HA is upgraded.

2 Likes