Skip to main content

Posts

Showing posts from April, 2020

How to use the Home Assistant config add-on for VSCode

I've resisted moving from Atom as a yaml editor as I was so used to its ease of use and its shortcuts. Every now and then I'd dable with VSCode but it was pretty overwhelming. Well, after several months of use, I'm pleased to announce that it's freak'n awesome, especially when you install a couple of add-ons that make Home Assistant yaml edits a breeze. Contents of the video: 1. Home Assistant Config add-on 01:50   2. Atom Keymap add-on 04:00   3. Indent Rainbow add-on 05:20   4. Rainbow Brackets add-on 06:15   5. Home Assistant Tools 07:10   6. Home Assistant config in action 08:20   7. Global Search 11:30   8. File Search 14:05   9. Managing Tabs 15:10 P.S For those wanting mdi icon auto-complete like the VSCode Home Assistant add-on, simply search the extension library for materialdesignicons-intellisense and install that. Wait about 2 minutes for it to update and now when you type icon mdi: it will start searching the MDI icon l...

How to check what entities are filling up your Home Assistant database

If you use the Home Assistant MariaDB add-on, this tip will show you how to query the database so see what Home Assistant entity states are triggering the most, filling up your database. What were going to do: Install the phMyAdmin add-on for MariaDB. Query the MariaDB database. See what entity state changes have the most action. Paste the code below into the SQL query box:  select entity_id,count( * ) from states group by entity_id order by count ( * ) desc; And if you're using the internal home-assistant_v2.db instead, you can use the SQLite Web add-on to achieve the same thing.