Computer temperatures while running hass on raspberry

hello everybody
I run Hass.io on Raspberry and I would like to see in the frontend my PC temperatures (cpu/hdd)
any idea? :slight_smile:

Search and you’ll find;

hi @sjee, thanks for the reply.

I did the research and came up with the same result. possibly I misunderstood it, but it looks like it refers to the raspberry cpu. am I wrong?

what I am after, is to show data coming from a PC in the network.

I use this:

For windows I use https://www.home-assistant.io/components/sensor.openhardwaremonitor/

If your PC is Linux (i have a proxmox host) install mosquito on it, and set a cron job to publish the temperature every 10 minutes.

I made a script and then use cron to run the script.

t=$(cat /sys/class/thermal/thermal_zone2/temp)
t=$(($t/1000))
mosquitto_pub -h 192.168.1.113 -u username -P password -t HostServer/temperature -m “$t”

thanks guys! I see I have many alternatives. I will try and let you know how it goes.

cheers!

My option for raspberry cpu temp in F. Sensors.yaml

  - platform: command_line
    name: Raspberry CPU Temp
    command: "cat /sys/class/thermal/thermal_zone0/temp | awk '{print ((($1*.001) * 9 / 5))+32}'"
    unit_of_measurement: "°F"
    value_template: '{{ value | round(0) }}'