No video

Five Best Practices in Home Assistant - Use this now!

  Рет қаралды 29,198

Smart Home Junkie

Smart Home Junkie

Күн бұрын

These 5 best practices are things that you should follow when working with Home Assistant. Over the years I found that these are really helpful and I think they will help you too.
⭐Links used in this video:⭐
* How to install Google Drive Backup: • The MOST IMPORTANT ADD...
* How to install MariaDB: • No More History Loss I...
* How to use Trigger IDs in Home Assistant: • How to use Trigger IDs...
⭐ Read the blog version of this video on www.smarthomejunkie.net ⭐
⭐⭐⭐
* Join this channel to get access to perks: 📺 / smarthomejunkie
* Please consider becoming my patron 🏅 at / smarthomejunkie
* Or please support me by buying me a ☕ at ko-fi.com/smarthomejunkie/
⭐⭐⭐
My Devices: github.com/smarthomejunkie/My...
Instagram: / smarthomejunkie
Twitter: / smarth0mejunkie
Facebook: / smarthomejunkie
TikTok: / smarthomejunkie
Discord: / discord
If you got enthusiastic about Home Assistant, you can watch many more videos in this playlist: • Home Assistant
Check my channel for more awesome Smart Home tutorials: / smarthomejunkie
00:00 Introduction
01:08 Best practice 1: Backup
01:54 Best practice 2: Use MariaDB
02:27 Best practice 3: Include entities in the recorder
04:02 Best practice 4: Naming Conventions
05:45 Best Practice 5: Trigger IDs
#homeassistant #homeautomation #bestpractice #bestpractices

Пікірлер: 63
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
These are my 5 best practices! Tell me your best practices in the comments. I am really curious about that!
@accordxtc319
@accordxtc319 2 жыл бұрын
I totally missed the one in Trigger ID's, this will clean up my automations section immensely. Thanks for abyohet great video!
@Mout10biker
@Mout10biker 2 жыл бұрын
my best practice is to watch all the videos from this channel. In my opinion, this is the best channel for HA configuration questions. Thank you very much.
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
Oh wow... You make me blush ☺️
@cpepper5702
@cpepper5702 Жыл бұрын
I’m all about naming conventions in my professional career so to see you mention that made me excited lol. Great ideas!
@piuswyss8742
@piuswyss8742 2 жыл бұрын
Another great video. I have implemented three best practices immediately and will do so with the rest soon. I really appreciate the brevity of your videos - no unnecessary stories, no self-congratulation, no sideswipes at others - just great. Thank you.
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
Thank you for these great compliments. 👍🏻👌🏻
@WoottonRivers
@WoottonRivers 2 жыл бұрын
Great video, thanks! Here's one of my best practices: When you're installing an update (once you've read about and prepared for the breaking changes), always do this during daylight hours. Lights are likely to be big part of your smart home. If they stop working other household members will get upset fast.
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
Definately a good one 👍🏻
@ricardoramirez-ue5li
@ricardoramirez-ue5li Жыл бұрын
Indeed, it's stuff for nightmares, lol, "Breaking Home Assistant in the middle of the night"
@JoseBerruezo
@JoseBerruezo 2 жыл бұрын
Great video! I'd like to see more about security.
@saladinbrandt
@saladinbrandt 2 жыл бұрын
Great video! Many thanks ..
@vaughanza
@vaughanza 2 жыл бұрын
Great video thanks, love to hear about more practices that help.
@daryllvangeelen1249
@daryllvangeelen1249 2 жыл бұрын
Thanks for this video it was really helpful
@MihaiKrieger
@MihaiKrieger 2 жыл бұрын
My extra best practice is to have an admin-only dashboard containing the vitals of the host which is running the HA and monitoring it - CPU speed, usage, RAM speed, usage, and I have installed a temp and humidity sensor in the location where the device is physically located. I am using an Intel NUC with HA OS.
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
Great idea!
@calgarraway9509
@calgarraway9509 Жыл бұрын
Thanks for sharing.
@emms-place
@emms-place 2 жыл бұрын
Great video. I like number 5. I am definitely going to change my automations to work like that where applicable. I follow a similar naming convention except i use the room location first and the domain.
@philippebezie1331
@philippebezie1331 2 жыл бұрын
one more great tutorial. thanks
@jaap7374
@jaap7374 2 жыл бұрын
Once again an excellent video. I like 4 and 5 since they are essential to start using early. The naming convention which considers groups is truly excellent. Instead of trigger ID, I check the state as part of the choice. I think this is easier when combining various sensors or conditions. As a bonus best practice: Using helpers or template sensors can help a lot to simplify detecting complex events reacting to those events. Instead of making an automation to turn off the lights when nobody is home, create a template sensor to detect that nobody is home and an automation to turn off the lights when the sensor is triggered. This way, adding a guest mode is much easier. I'm pretty sure I got all of this from this channel as well.
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
Thx. And thx for your best practices. You might be right 😉 I love to create my own sensors as well.
@EmiAgriDiY
@EmiAgriDiY 2 жыл бұрын
Great video 👏👏👏 Great channel 👍🏻 👍🏻 👍🏻
@sganvik1291
@sganvik1291 2 жыл бұрын
Another helpful video! Thanks and keep them coming😉
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
I'm glad you think so!
@asturpar
@asturpar Жыл бұрын
Thanks very much for your hard work. I really enjoy your videos. On Tip #4, would you mind extending it a bit (eg how you name your other sensors, eg motion, temperature and even your Areas/Rooms? I think what you mentioned there is an excellent idea specially as your device database gets bigger... Thanks a lot
@AGRIMOVIEemi
@AGRIMOVIEemi 2 жыл бұрын
Good boy 👏👏👏 great job👏👏👏
@MarkusBurrer
@MarkusBurrer Жыл бұрын
I really think about to start from scratch on a new hardware and follow these five best practices
@SmartHomeJunkie
@SmartHomeJunkie Жыл бұрын
Great idea!
@michaelschumann1572
@michaelschumann1572 Жыл бұрын
Thanks again for that great video. I wish I had watched all of them before I startet with home assistant. I also love your best practices. As I develop software for a living I already implemented naming conventions and backups. But your tipp with maria db I will follow immediately since I had two severe db crashes in the last years. Thanks for the other tipps too. I really love your videos as they really stand out compared to the many videos around where people explain trival things like rocket science. They are extremely helpful.
@SmartHomeJunkie
@SmartHomeJunkie Жыл бұрын
Thank you for your compliments!
@TheSkepticSkwerl
@TheSkepticSkwerl 11 ай бұрын
Oh dammit. Now I have to remake my automations for trigger IDs. Lol. But something I knew right away. Automation naming convention is crucial. I use something like... Light: front door toggle state auto Timer: front door enable timer from motion Timer: front door cancel timer if turned off It's a work in progress. But it's something like "device type actioned on" : "device name" "action" "trigger" This way I can find automations quickly
@SmartHomeJunkie
@SmartHomeJunkie 11 ай бұрын
Great idea!
@RobertAnthonyPitera
@RobertAnthonyPitera 2 жыл бұрын
First time I actually understood the use of Trigger IDs. I've been doing this with Wait Templates but I could never get them right using the UI - I could only set them up in YAML. Now I finally understand how they work! And BTW, I'm no noob; I've been using HA since the zero point days. Well done and thanks!
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
Yeah! They're really powerful to use!
@BELSERVICEMAN
@BELSERVICEMAN 2 жыл бұрын
Thanks Ed, Another great video. I probably need an even more beginners level top 5 so I am wondering what would 6-10 be like. So feedback is more please! A question is do you know of any other backup integrations besides Google? I think the database stuff and the writes to it was super helpful but maybe that could be a video. I am speaking first to eliminating extra writes as I am sure it is probably happening now. I enjoyed and liked the custom sensors and other videos you make and I know I could be doing this smarter. I am absolutely that guy you were in the beginning. Maybe worse as I am still working on taking devices off SmartThings and HUE. So I have devices I probably didn’t remove from the SmartThings integration and then added in ZHA Maybe I should do the Mariadb and start over as I see someone asked!
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
Thanks! If you add the include line to the recorder settings in the configuration.yaml, then HA will only start logging anything that is below the include line. Is really encourage you to do so. But... There are some functionalities that need their entities to be within the include section otherwise they won't work. For instance, the energy integration in HA will only work of the history of some entities is being saved. I can communicate which entities these are later if you want. Currently I am not beat a computer and it's hard to copy them on my phone.
@yngveskog4935
@yngveskog4935 2 жыл бұрын
@@SmartHomeJunkie This is a problem for me with the include/exclude function, simply knowing what are the entities that is nice to have, what do you absolutely not need and what entities are crucial for other things to happen. So a video about the energy integration is nice!
@sevagj.b
@sevagj.b 2 жыл бұрын
Thanks Ed, I use all the 5 in my system, and some other tricks but most what I Learned from you I used in my system, I have a request to open discord server to interact , if that possible of course 👌🏻
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
I do have a Discord server. It's in the description of my channel. I also have a members channel on Discord exclusively for members that joined this KZbin channel so that members can live chat with me.
@kerbalette156
@kerbalette156 2 жыл бұрын
This is great thankyou. Any tips on making our interface better? Using mushroom?
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
Yeah, mushroom is great. It's my go to way to create dashboards nowadays.
@mlvdende
@mlvdende 9 ай бұрын
Hi, Thank you for nice video and clear instructions about how to store history data in MariaDB. You also published a video on InfluxDB. Does this mean you use both databases at the same time? If so, where do you have the data stored as this might be heavy-lifting for a Raspberry Pi. Thanks
@SmartHomeJunkie
@SmartHomeJunkie 9 ай бұрын
I used Influxdb for long term statistics, but I do not use it anymore. I didn't have issues using both at the same time.
@mlvdende
@mlvdende 9 ай бұрын
@@SmartHomeJunkie thanks. what are you currently using for long term statistics? (btw would be great topic to get a better view on how to best organize the data in HA)
@SmartHomeJunkie
@SmartHomeJunkie 9 ай бұрын
@@mlvdende I used Grafana together with Influxdb. Nowadays long term statistics are also stored in my Mariadb. But, the HA native database has gotten some updates, so that should work too.
@wscottfunk
@wscottfunk 9 ай бұрын
Hey Ed, what naming convention would you use to identify door & window sensors? alarm.sensor_ bedroom_window_1 ~or~ window.sensor_bedroom_window_1 ~or~ Something else?
@SmartHomeJunkie
@SmartHomeJunkie 9 ай бұрын
I use binary_sensor.garden_door_left
@lukeama82
@lukeama82 2 жыл бұрын
Thanks for the great video! I'm pretty new at this and I'm curious about something. If I were to adopt a naming convention such as yours for all my entities and rename all the entities I already have, will that break the automations I've already set up? Or will they update with the new entity names?
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
If you change an entity ID, you have to change this in your automations manually too.
@lukeama82
@lukeama82 2 жыл бұрын
@@SmartHomeJunkie Great! Thanks for clearing that up.
@dam0363
@dam0363 2 жыл бұрын
Thanks Ed, can you migrate your existing db to Maria or would you have to start again? Thanks
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
Hi Dam0, I believe you have to start again unfortunately.
@emms-place
@emms-place 2 жыл бұрын
@@SmartHomeJunkie thats right. You will loose all your history. But i think it is a small price to pay for stability and performance
@simdevils
@simdevils 10 ай бұрын
Just a question regarding naming conventions, what about something from an integration? Lets say WLED?
@SmartHomeJunkie
@SmartHomeJunkie 10 ай бұрын
I consider that a light
@emms-place
@emms-place 2 жыл бұрын
There have been significant improvements with the HA database. Do you think even with these changes mariadb is still better?
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
I know that these improvements also have effect on MariaDB. It's a different way of storing things. The default dB is one file and if that gets corrupted, you have to delete it and build it up again.
@marc3793
@marc3793 Жыл бұрын
Great video. I feel it's worth mentioning that I have used MariaDB for a few years now and I have had a couple of DB corruptions even using that. (One a few days ago. I use an nVME drive so not due to SD card wear) So... definitely follow his tip number 1 too :-)
@CrazyAngelfire
@CrazyAngelfire 2 жыл бұрын
Hi smart home junkie.. Is there a easy or less painfull way from moving from ZHA to MQTT?
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
Hi Darren, Not that I know of... If you have two zigbee sticks then you might be able to move to Z2M gradually otherwise you have to do it in one go I'm afraid. This is what held me back for a long time to move from deCONZ to Z2M.
@CrazyAngelfire
@CrazyAngelfire 2 жыл бұрын
@@SmartHomeJunkie ok tbh I have got 2 sonoff zigbee 3.0 sticks. One is running zha on a SSD and the other is MQTT on a SD card. So might have to get another SSD and move slowly
@SmartHomeJunkie
@SmartHomeJunkie 2 жыл бұрын
@@CrazyAngelfire Sounds like a plan 👍🏻
@scotthewitt6047
@scotthewitt6047 Жыл бұрын
Can you change the name of your ID picture mine is like 20 characters long.
How to use Trigger IDs in Home Assistant - Tutorial
13:15
Smart Home Junkie
Рет қаралды 60 М.
Scenes on Steroids in Home Assistant - How To - Tutorial
13:42
Smart Home Junkie
Рет қаралды 35 М.
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
BATEK_OFFICIAL
Рет қаралды 6 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 12 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,6 МЛН
Adaptive Lighting Blew My Mind in Home Assistant - How to set it up
17:00
Smart Home Junkie
Рет қаралды 42 М.
10 Impressive Home Automations from Around the World
10:15
Smart Home Solver
Рет қаралды 697 М.
Device Naming Conventions in Home Assistant
2:54
Home Assistant Podcast
Рет қаралды 2,4 М.
How To Use Timers To Build Reliable Automations in Home Assistant
11:26
Smart Home Junkie
Рет қаралды 40 М.
Should You Pay For Home Assistant Cloud?
8:08
Smart Home Theory
Рет қаралды 13 М.
Home Assistant Scripts Hidden Feature!
9:24
SlackerLabs
Рет қаралды 15 М.
The Seven FREE Wonders that make the Modern Smart Home
15:21
Hands On Katie
Рет қаралды 215 М.
Never Lose Your Home Assistant Server AGAIN
9:49
Everything Smart Home
Рет қаралды 75 М.
How To Use Motion Sensors Correctly In Home Assistant
17:27
Smart Home Junkie
Рет қаралды 62 М.