Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95397

Measure CPU temperature remote RPi's in LAN

$
0
0

@HansHassio wrote:

Would be great to measure the CPU temperature of my remote RPi’s within the LAN home network. As far as I know I need some code like this:

###################################
# Remote CPU Temp
###################################
sensor CPU-Temp:
  - platform: command_line
    name: "CPU-Temp"
    command: ssh root@192.168.2.108 ??????
    unit_of_measurement: "°C"
    value_template: '{{ value | multiply(0.001) | round(2) }}'
    scan_interval: 120

So far I did not succeed finding the right code to replace the question marks. When connected to the remote RPi on 192.168.2.108 the over SSH code “/opt/vc/bin/vcgencmd measure_temp” shows “temp=43.5’C”. No idea how to convert this to useable code for HA so any advice is very welcome!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95397

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>