Dingin
(LEB)
August 14, 2019, 10:37am
1
Hi
So this is my first time trying to do this sensor and i am having a bit of a problem in receiving the results. i get the results fine in the command line but not on the sensor it self. maybe some can pint me in the right direction?
here is the sensor (in sensor.yaml), it trying to retrieve the hard drive temperature from freenas.
platform: command_line
name: ‘FreeNAS ada0’
scan_interval: 300
command: >-
ssh -i /config/.ssh/id_rsa -o StrictHostKeyChecking=no -q [email protected] smartctl -A /dev/ada0 | grep -i Temperature_Celsius | awk ‘{print $10}’
and here is the results of the command line from hassio
core-ssh:~# ssh -i /config/.ssh/id_rsa -o StrictHostKeyChecking=no -q [email protected] smartctl -A /dev/ada0 | grep -i Temperature_Celsius | awk ‘{print $10}’
37
core-ssh:~#
Dingin
(LEB)
August 16, 2019, 2:29am
2
well got it working, was just sintax.
platform: command_line
name: 'Archive Disk 0'
scan_interval: 300
command: ssh -i /config/.ssh/id_rsa -o StrictHostKeyChecking=no -q [email protected] smartctl -A /dev/ada0 | grep -i Temperature_Celsius | awk '{print $10}'
unit_of_measurement: '°C'
myca5a
(Myca5a)
May 27, 2020, 1:47pm
3
Hello @Dingin ,
Can you help me ?
I will wish to obtain the temperature from another raspberry.
- platform: command_line
name: Température_Raspberry
scan_interval: 300
command: ssh -i /config/.ssh/id_rsa -o StrictHostKeyChecking=no -q [email protected] sensors
unit_of_measurement: '°C'
Not working
However in the terminal on my HA :
ssh -i /config/.ssh/id_rsa -o StrictHostKeyChecking=no -q [email protected] sensors
works !
Best regards