When I open a console and go python --version or python3 --version or python3.10 --version it is acting like Python is NOT installed?
Some of the add ons i want to use say they need Python so how should i install it?
There is no need. Add-ons include all dependencies they need.
I am trying to install this⊠GitHub - claudegel/sinope-gt125: Sinope custom component for Home Assistant to manage Sinopé devices directly via the GT125 gateway
And one of the steps âExecute the command: âpython3 device.pyâ in console (for python3.10: âpython3.10 device.pyâ)â so I guess this needs it.
Most forums I am reading make it sound like it is installed on all HA by default. So I am confused.
That is not an add-on. It is a Custom integration.
This applies to you:
In Hass.io you donât need sudo. Make sure you are in the config/custom_components/sinope directory when you run device.py or it wonât run.
Even though HAOS has not been called hassio for many years.
Thatâs the core-ssh addon.
I think you might need to read up on how add-ons and home assistant in general works.
Every add-on is a docker container. The core-ssh add-on only has installed the things it needs to run.
Neither the core-ssh container, nor the Home Assistant OS appears to have python installed, since it is not necessary for either the container nor the OS to actually have python installed.
try to use the add-on , studio-code-server
I have add on code studio installed already.
I am not sure how this would allow me to tun this python script to see the output.
open the terminal in vscode (menu in top left ), type python, but make sure you are in the folder, where your suppose to be
I do understand the dockers. But i need to locally run this script. I also donât see that this add-on docker has python.
You only need to run python once to get some sort of key out of it apparently. So there are 2 options for you, 1 is simple and is potentially less complicated.
- Install python on your computer, download the package as a zip file and extract it and then run it.
and the other more complicated way of doing it is to connect a keyboard and monitor to the Green.
at the prompt on the screen that says âha>â type login
you now have a linux shell
docker exec -it homeassistant /bin/bash
now you are in the docker container that runs homeassistant.
python3 /config/custom_components/sinope/device.py
When done remember type exit
and then exit
again
Some good options⊠thanks
Thanks⊠that looks like it is worth a try
The darn script has to run on the HA because it uses HA folders to get some information and files. I will have to reach out to the developer and see why the instructions they provided are not working. The way they wrote the instructions makes it sound like Python should be accessible.
Install ssh & web terminal is the instruction. Not core ssh. The addon you want is now called advanced ssh & web terminal. Try that.
If you absolutely need to âDebugâ Python, you could just try to click âfind python extensionâ
Or click in the left Menu, the last menu item (building blocks), and look there for what ever extension you r interested in" ( just type python, in the search there, simple as that )
Out of the box SCS have Python, an you can execute Python ( Well atleast i can )
PS: Read what i wrote ( And look at my Pic ) ⊠Open the Terminal in SCS and execute your python script there
Or just follow the instructions, like I already said.
If he had read the instructions and are familiar with HA, he might have âhesitatedâ to install an integration build upon/needing Python3.10