Hello,
surely i am doing s.th. wrong but i’m stucled to what it is?
I want to run some ssh commands on remote machines (not able/want to install Glances or similar there).
Setup is:
sensor:
- platform: command_line
name: "idefix_cpu_temp"
command: "ssh [email protected] cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}'
scan_interval: 60
- platform: command_line
name: "idefix_disk_boot"
command: "ssh [email protected] df | grep boot | awk '{ print $5 }' "
unit_of_measurement: "%"
value_template: '{{ value }}'
scan_interval: 300
The entities show up but no values. SSH is configured to work with pub/priv key pairs, tested on the command line.
Thanks for any hints!
/ Ralf