Lost temperature in Home Assistant

Hi,

I replaced the hard drive in my Proxmox server, and now the CPU temperature is no longer being displayed in Home Assistant.

I used the code below to integrate a sensor in HA

# CPU Temperartur
command_line:
  - sensor:
      name: 'CPU Temperatur'
      command: "ssh -i /config/id_ed25519 -o StrictHostKeyChecking=no [email protected] -t 'cat /sys/class/thermal/thermal_zone2/temp'"
      icon: mdi:cpu-64-bit
      unit_of_measurement: '°C'
      scan_interval: 300
      value_template: '{{ (value | multiply(0.001)) | round(0) }}'
      state_class: measurement

During my checks, I noticed that the path is no longer existing. In the directory /sys/class/thermal, I only found two links named cooling_device0/1, but no thermal_zone.

With the system monitor I don´t get information for my CPU but I can see the temps wih lm-sensors:

But I have no idea how to get this figures on the HA dashboard. Can someone help me out?

Thanks, and regards
Spaddel

Hi, I found a solution

regards