Monitor system resources¶
shell:
type: powershell
sensor:
- platform: shell
name: "RAM Usage"
id: ram_usage
icon: mdi:memory
state_class: "measurement"
unit_of_measurement: "%"
update_interval: 30s
command: |-
Get-WmiObject Win32_OperatingSystem -Property * | % {([math]::Round(($_.FreePhysicalMemory)/$_.totalvisiblememorysize,2))}