Unable to call sensors from command_line

Hi!

Trying to get sensos data.
is the issue beacuse of homeassistant context?
how can i run this ?

2022-12-20 07:30:11.657 ERROR (SyncWorker_11) [homeassistant.components.command_line] Command failed (with return code 127): sensors -j ./config/sensors.txt
2022-12-20 07:30:11.663 ERROR (SyncWorker_2) [homeassistant.components.command_line] Command failed (with return code 1): cat ./config/sensors.txt

works fine from the commandline.
image

  - platform: command_line
    name: sensors_read 
    command: sensors -j ./config/sensors.txt
    scan_interval: 30
    command_timeout: 30
  - platform: command_line
    name: temp_cpu0_core0
    command: cat ./config/sensors.txt
    value_template: '{{ value_json["iwlwifi_1-virtual-0"]["temp1"]["temp1_input"] }}'
    scan_interval: 30
    command_timeout: 30
    unit_of_measurement: "°C"

Yes - the docker container in which “command_line” is running will not have sensors installed. You could install the Glances integration (for example) to get this information (and more) automatically into entities.

Thanks!

Im running on a Intel Nuc NUC8i5BEH
Whats sensors for CPU is the correct one?
Any clue?
image

It depends on what you want to monitor - I graph the CPU temperatures which are sensor.glances_(computer)_core_(core)_temperature where ‘computer’ is whatever you called the integration, and ‘core’ is the CPU core number (as in 1 to 4 for a 4 core CPU). I believe ACPI is the motherboard temperature.

Hmm thats missing then, might need to check the bios version i believe.