I’m trying to get the CPU Temperature of my VM Host in Home Assistant.
This command I came up with works perfectly when executing within the HA Terminal: ssh -o LogLevel=QUIET [email protected] -i /config/.ssh/id_rsa -t "sensors | grep -i package | grep -o 'Package id 0: +[^;][^;]' | grep -o '[0-9][0-9]'"
however when I add it to the config like this it’s not working anymore:
Would you consider using something like Glances on the host, and then using the integration to get the values? This will give you CPU temps plus much more. Alternatively, if your host is running Proxmox, there’s a HACS integration that provides this plus more.
Thanks for your script. When I add that to my “/homeassistant/configuration.yaml” and restart nothing happens, I don’t get any messages in “System/Logs” but also no sensor