Created
October 15, 2025 02:08
-
-
Save meee1/a971e73bb4dc529921c205ad5cd2affc to your computer and use it in GitHub Desktop.
HA entity counts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT m.entity_id, COUNT(*) as count FROM states AS S | |
| INNER JOIN states_meta AS M ON M.metadata_id = s.metadata_id | |
| GROUP BY m.entity_id ORDER BY count DESC LIMIT 20; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment