Virtual python in docker container for HA component

Hi all,

I am running HA in a Docker container on a Synology nas.
I want to add a Nefit component to my HA config. This requires a virtual phython environment.

I am not familiar with this. How can I easily accomplish this? Do I need to run a different Python container or can I add this in the HA command line directly?

Source: https://github.com/marconfus/ha-nefit

Enter in SSH on the Synology…
login with user and password.
Then sudo -i and input password again, then:

sudo docker exec -it home-assistant bash

and then execute your command.

I don’t understand what the link is with Python? I have installed Python locally on my synology.
But I think I need a virtual Python container in docker to be able to work with this component in HA?

Try to do this…
create a folder named custom_components then enter this fodlder and create another folder climate.
download the file netfit.py and copy it in the folder climate.

then in your configuration.yaml put this:

climate:
  platform: nefit
  name: Heating
  serial: XXXXXXXXX
  accesskey: xxxxxxxxx
  password: xxxxxxxxx

and it should work.
if don’t work… you need to install the nefit-client with the step I already described in the #2 post

1 Like

Thx Ciquattro will try!

let me know if it will work