![]() HWMonitor is a great tool if you’d like to monitor more than just your CPU. ![]() The program also gives you information like current operating frequency, power draw, and core voltage and it will tell you what processor you have in your system, what socket it uses, and what lithography the CPU is. If you have an Intel processor, Core Temp will show you the individual temperature and load for each of your CPU’s cores. Core Temp provides you with real-time CPU temperature and load monitoring. If the config passes validation, restart HA.As long as you don’t need an extensive hardware monitoring program and you just want a lightweight and straightforward CPU temp monitor, then Core Temp is probably the best option for you. $headersRaw = Get-Content $logFile | Select-Object -First 1 Clean unfriendly characters and whitespace. ![]() $values = value headers here as they appear in the CSV #Set trap to unmount PSDrive if breaking error is encountered $outFile = "HALogging:\config\filesensors\deathknell.txt" $logFile = "$env:ProgramData\Logs\HWInfo\sensors.CSV" New-PSDrive -Name HALogging -PSProvider FileSystem -Credential $credential -Root $sharePath -ErrorAction Stop $credential = Import-Clixml -Path "$PSScriptRoot\Cred_HALogging.xml" Use the names that appear in the CSV.Ĭreate a schedule task to run Powershell on startup with -WindowStyle Hidden -File C:\Scripts\LogTemps.ps1. Plug your values into $sharePath ( '\\\'), $logFile (the log coming from HWInfo) and $outFile (the file to be read by homeassistant).Īdd the attributes you want to extract to $values. If not, you’ll want to remove -Credential $credential. If your share is secured, you’ll want to create your own $credential object to import. If you’re getting value_json.whatever is not defined in your HA log, you probably have some junk data on your final line. A file sensor only reads the last line of a file, so all our values need to be there.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |