Ssh command fails

I try to read the temperature of a remote Raspberry PI Zero using this command:

sudo ssh [email protected] sudo cat /sys/class/thermal/thermal_zone0/temp

It works in the terminal of home assistant but it gives an error in the log when I use it in the configuration.yaml:

  • platform: command_line
    name: HB CPU Temp
    command: ‘sudo ssh [email protected] sudo cat /sys/class/thermal/thermal_zone0/temp’
    unit_of_measurement: “°C”
    scan_interval: 60
    value_template: ‘{{ value | multiply(0.001) | round(1) }}’

What might be the problem here?

Thanks

And this, especially point #11. :slightly_smiling_face:

AND show us the actual error you get :wink: