How to monitor the system resources

How to monitor the system resources

Hi and welcome to a new episode of my daily newsletter?Tips & Tricks on HomeAssistant.

If you get a new e-mail about the availability of this article, please open it, read it, react and comment. It will be appreciated and will give me a much better idea of who is actually reading all this stuff.

Thank you so much!

Are you interested in monitoring the resources of the system on which Home Assistant is running ?

This is the right article to see how doing it.

Let's get started!

Software configuration

  1. Home Assistant. I'm currently running version?2022.12.5.

Home Assistant code (yaml) / procedure

  • This is the sensor's platform (SystemMonitor) you have to configure in order to monitor the system resources (it is currently available via code only):

- platform: systemmonitor
? ? resources:
? ? ? - type: disk_use_percent
? ? ? ? arg: /config
? ? ? - type: disk_use
? ? ? - type: disk_free
? ? ? - type: memory_use_percent
? ? ? - type: memory_use
? ? ? - type: memory_free
? ? ? - type: network_in
? ? ? ? arg: eth0
? ? ? - type: network_out
? ? ? ? arg: eth0
      - type: network_in
? ? ? ? arg: eth1
? ? ? - type: network_out
? ? ? ? arg: eth1
? ? ? - type: processor_use
? ? ? - type: processor_temperature        

Of course you can add other types of resources to monitor according to the SystemMonitor integration or remove those you don't need to monitor.

  • As soon as the new sensor's platform has been configured and Home Assistant restarted, the systemmonitor entities will become available:

No alt text provided for this image

  • Developer Tools -> States in order to get the value of one entity:

No alt text provided for this image

Thank you for reading. ?? I hope you have enjoyed this article.

I'm available for any feedback so, feel free to contact me or share your thoughts in the comments section below.

Your feedbacks will be very appreciated!

要查看或添加评论,请登录

社区洞察

其他会员也浏览了