System Sensors: RPI CPU and Temperature

My Home Assistant is running on a Raspberry PI4, that is working quite fine for my purposes, but I want to monitory the CPU usage and System Temperature to avoid any hardware failure.

Define new Sensors

  • Copy and paste following come to your Configuration.yaml file sensor section (create it if doesn’t already exists). Full system sensors list, here
  • Reboot the system
  - platform: systemmonitor
      - type: memory_free
      - type: memory_use
      - type: memory_use_percent
      - type: swap_use_percent
      - type: swap_use
      - type: swap_free
      - type: processor_use
      - type: processor_temperature
      - type: disk_use_percent
        arg: /config
      - type: disk_free

Add sensors to your Dashboard

  • Add a new Card
  • Select Glance card
  • Select the sensor entities you want to display
  • Your System monitor is ready