

Afterwards, to test to make sure the discovered sensors are working, run the command: watch -n 1 sensorsĭepending on what sensors were found, the output of that command should look something like this:Īfter testing hddtemp, we need to edit its configuration file to allow us to connect it to Telegraf. The sensors-detect command will walk you through detecting the sensors in your system (usually you should be okay to saying yes to all steps during this identification). To install and setup lm-sensors, run these commands: apt-get install lm-sensors This will get us the CPU temperatures and, depending on your system, other sensor data such as voltages and fan rotation speeds. We’re first going to need to install a plugin that can extract the computer temperature sensors, called lm-sensors. I haven’t had any issues, but you should do this at your own risk! Proxmox Node’s Shell running the Home Assistant VM (in a Ubuntu 18-LTS server)Ģ. Also as a disclaimer : When working in this shell, you are running as root, and you are directly editing the Proxmox Hypervisor. Make sure you are opening the Node’s shell and not the VM console. Here’s how I did it: Step-by-Step Guideġ. It also is a great way to gather our computer temperatures and send them to Home Assistant with MQTT. Telegraf an incredibly powerful tool for data collection from the creators of InfluxDB.

Telegraf is a plugin-driven server agent for collecting and sending metrics and events from databases, systems, and IoT sensors I needed another solution which is where I discovered Telegraf ( ) However, this method does not work when running Home Assistant in a virtual machine (VM) on Proxmox, as the VM does not have access to the integrated temperature sensors. This is great if you’re running something like Hass.io on a Raspberry Pi. Most tutorials and suggestions I’ve seen to add temperature monitoring involve implementing the command_line platform in Home Assistant and using the command: cat /sys/class/thermal/thermal_zone0/temp, with the full HA platform looking something like this: - platform: command_lineĬommand: "cat /sys/class/thermal/thermal_zone0/temp" After moving the computer I use for Home Assistant (HA) into a closed cabinet, I felt it was a good time to add computer temperature monitoring & recording to my Home Assistant server.
