New Health Score for Home Assistant: HAGHS v2.2 is out!

I’m thrilled to announce that HAGHS v2.2 is officially live! A massive amount of architectural work went into this release, and I want to extend a huge thank you to everyone in the community who shared their ideas and feedback. You guys are awesome.

Here are the biggest changes you will care about:

Zero-YAML & Auto-Detection: HAGHS now automatically detects your SQLite database size and disk space.

Linux PSI Integration: We now read Pressure Stall Information directly from the Linux kernel for high-precision measurements. It tracks true hardware bottlenecks (CPU, Memory, and I/O) rather than just simple utilization.

Dynamic Database Limits: The database penalty threshold now automatically scales with your total entity count, making it much fairer for large setups.

Runtime Options Flow: You can easily change your storage type (SD-Card vs. SSD), update intervals, and fallback sensors directly via the UI’s configure button, no reinstall required.

Smarter Hygiene: We implemented a 15-minute grace period for offline entities to prevent false alarms during network drops, and disk penalties now adapt based on whether you use an SD-Card or an SSD.

The update is waiting for you in HACS. Be sure to check out the updated README for the new and improved Lovelace dashboard cards!

2 Likes

Sweet, thank you! Do we no longer need the template sensor added to templates.yaml?

exactly, you can safely delete the old haghs template sensors from your templates.yaml, and you can also rip out any old filesize or sql sensors you had in your configuration.yaml for this. the new v2.2 architecture handles all the math, storage tracking and attributes natively in the background now. enjoy :slight_smile:

1 Like

Successfully updated, but it looks like many of the sensors I’ve labelled with the ignore label are still being considered zombies. Have you come across this issue?

Edit: nevermind! User error

1 Like

im glad it works now for you :+1:

1 Like

Just in case anyone else bumps into this same issue, I had needed to set up a 2nd label when I first configured HAGHS, which resulted in the label ID having _2 appended while the lable name did not. I forgot to update the label ID in the configuration workflow when I upgraded.

1 Like

This is nice. I’ve installed it and got my number. Pretty nice to see. Similar to systems I have at work. I’ll be talking about this on this weeks podcast for sure. Thank you.

1 Like

im glad you like it. and i will for sure be listening to the podcast this week, thanks in advance for mentionig the tool.

whats it do?

1 Like

the short version: it monitors your instance health, gives you a single score from 0 to 100, and tells you exactly whats wrong and how to fix it, so problems dont go unnoticed until something breaks.
the long version: visit the repo and read the README for full context.

It’s boring it doesn’t support monitoring of Mysql db when you don’t use the flat sql file by default :confused: I have seen in documentation that I should use the sensors of the addon concerned but the Mysql addon doesn’t return any sensor :frowning:

Totally understand the frustration, the MariaDB addon does not expose a size sensor natively, but you can create one yourself using the built-in SQL integration. Add this to your configuration.yaml :

sensor:
  - platform: sql
    db_url: mysql://user:password@core-mariadb/homeassistant?charset=utf8mb4
    queries:
      - name: MariaDB Size
        query: >
          SELECT ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) AS size_mb
          FROM information_schema.tables
          WHERE table_schema = 'homeassistant';
        column: size_mb
        unit_of_measurement: MB

Then go to Settings > Integrations > HAGHS > Configure and select that sensor in the “Database size sensor” field.

I agree the documentation could make this more explicit.

@denzo Thanks for your message and confirmation there is a way to get size of db although your syntax for it is quite wrong :wink:
Here it is and working with current release of ha :slight_smile:

sql:
  - name: MariaDB Size
    query: >
      SELECT ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) AS size_mb
      FROM information_schema.tables
      WHERE table_schema = 'homeassistant';
    column: size_mb
    unit_of_measurement: MB

and now db size shows up properly in the card :wink:

1 Like