Sensor not available with no error

Hi everybody,
newbie on the HA, i try to get a value from a python script.
Script work fine…
in my configuration.yaml i put this :

# Sensors
sensor:
  - platform: command_line
    name: Consigne chauffage eau piscine
    command: /usr/bin/python3 /home/yunohost.app/homeassistant/config/scripts/GetTempChauffageEauPiscine.py
    scan_interval: 60
    value_template: "{{ value_json.Consigne | float }}"
    unit_of_measurement: "°C"

sensor doesn’t appear… i dont know why
please help

How to format code or use the</> key in the post editor.

Thanks for the tips !

Surely not inside HA (unless you still have a deprecated “Core” intallation).
As a first, replace /home/yunohost.app/homeassistant/config by /config

when i made the : /usr/bin/python3 /home/yunohost.app/homeassistant/config/scripts/GetTempChauffageEauPiscine.py on the SSH work fine
When i made the
/usr/bin/python 3 /config/scripts/GetTempChauffageEauPiscine.py
On SSH i get an error message on no such file or directory exist.

No error on the log

SSH on what? What is your installation method? How did you push the script?
If HAOS + SSH addon, they run in different environments (docker containers), so there basically no link between the 2 besides the /config folder.

Home assitant is installed in Yunohost environment Mini PC (Linux)
i use VS Code to acces to the Yaml configuration file
and SSH if needed to test my Python scripts

i also use Shell_Comand to another Python script to set a value and it works fine. I dont think it’s acces problem.

So you installed HA with pip / venv? (That’s a “Core” installation of HA, for future reference)
What is the output of the script?

i finally found it !

# Sensors
command_line:
  - sensor:
      name: Consigne eau Piscine
      command: /usr/bin/python3 /home/yunohost.app/homeassistant/config/scripts/GetTempChauffageEauPiscine.py
      scan_interval: 60
      value_template: "{{ value_json.Consigne | float }}"
      unit_of_measurement: "°C"

note that the full directory is not mandatory in the command line
Thanks for your help