[AI Router] Connect Home Assistant to Your PC: Get CPU/GPU/Memory Usage

In this chapter, we'll use HASS.Agent to let Home Assistant retrieve usage data from your PC. HASS.Agent is an application installed on your Windows computer that acts as a bridge between Home Assistant and your PC. With HASS.Agent, you can send various PC status information—such as CPU/GPU temperature, memory usage, disk space, and more—as sensors to Home Assistant.

 

 

 

Prerequisites

 

 

 

Configure HASS Agent

1. Get a Long-Lived Access Token from Home Assistant

  • Log in to Home Assistant, click your username in the lower left, and go to the [Profile] page.
  • Scroll to the bottom, find [Long-Lived Access Tokens], click "Create Token", give it a name (e.g., hass-agent), and copy the generated token.

 

2. Launch HASS.Agent and click [Configuration] on the main screen. 

 

3. MQTT Settings:

  • Broker: Enter the IP address of your Home Assistant.
  • Port: 1883。
  • Username/Password: Enter the account and password you set for Mosquitto.

 

4. Home Assistant API Settings:

  • Host: Enter the URL of your Home Assistant.
  • API Token: Paste the long-lived access token you just copied from Home Assistant.
  • Click [Test Connection] to check if the connection is successful.

 

5. Add Sensor:

  • In the HASS.Agent main screen, select [Sensors] and click [Add New] to add the data you want to monitor.
  • GPU temperature: Usually you can find it directly under the GPU temperature type.

 

6. CPU temperature: This requires using a WmiQuery. You can refer to the HASS.Agent WMI Examples to find the required Scope and Query parameters.

 

7. On the HASS.Agent [Add New] page, select WmiQuery, fill in the parameters you found, and click [Test WMI Query] to check if the value can be retrieved successfully.

 

 

 

Configure Home Assistant

1. Log in to Home Assistant, go to [Settings] > [Devices & Services], and click the MQTT integration.

2. If everything is set up correctly, you should see the devices and sensors (entities) published by HASS.Agent here.

 

 

 

How to get the (Utility / Firmware)?

You can download the latest drivers, software, firmware and user manuals in the ASUS Download Center.

If you need more information about the ASUS Download Center, please refer this link.