Тёмный

Five Best Practices in Home Assistant - Use this now! 

Smart Home Junkie
Подписаться 58 тыс.
Просмотров 29 тыс.
50% 1

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

Хобби

Опубликовано:

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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.
@MihaiKrieger
@MihaiKrieger Год назад
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 Год назад
Great idea!
@TheSkepticSkwerl
@TheSkepticSkwerl 9 месяцев назад
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 9 месяцев назад
Great idea!
@EmiAgriDiY
@EmiAgriDiY 2 года назад
Great video 👏👏👏 Great channel 👍🏻 👍🏻 👍🏻
@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.
@daryllvangeelen1249
@daryllvangeelen1249 2 года назад
Thanks for this video it was really helpful
@vaughanza
@vaughanza Год назад
Great video thanks, love to hear about more practices that help.
@saladinbrandt
@saladinbrandt 2 года назад
Great video! Many thanks ..
@sganvik1291
@sganvik1291 2 года назад
Another helpful video! Thanks and keep them coming😉
@SmartHomeJunkie
@SmartHomeJunkie 2 года назад
I'm glad you think so!
@calgarraway9509
@calgarraway9509 Год назад
Thanks for sharing.
@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
@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
@MarkusBurrer
@MarkusBurrer 11 месяцев назад
I really think about to start from scratch on a new hardware and follow these five best practices
@SmartHomeJunkie
@SmartHomeJunkie 11 месяцев назад
Great idea!
@AGRIMOVIEemi
@AGRIMOVIEemi 2 года назад
Good boy 👏👏👏 great job👏👏👏
@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!
@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!
@kerbalette156
@kerbalette156 Год назад
This is great thankyou. Any tips on making our interface better? Using mushroom?
@SmartHomeJunkie
@SmartHomeJunkie Год назад
Yeah, mushroom is great. It's my go to way to create dashboards nowadays.
@wscottfunk
@wscottfunk 8 месяцев назад
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 8 месяцев назад
I use binary_sensor.garden_door_left
@lukeama82
@lukeama82 Год назад
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 Год назад
If you change an entity ID, you have to change this in your automations manually too.
@lukeama82
@lukeama82 Год назад
@@SmartHomeJunkie Great! Thanks for clearing that up.
@mlvdende
@mlvdende 7 месяцев назад
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 7 месяцев назад
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 7 месяцев назад
@@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 7 месяцев назад
@@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.
@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
@sevakj0b
@sevakj0b 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 RU-vid channel so that members can live chat with me.
@simdevils
@simdevils 9 месяцев назад
Just a question regarding naming conventions, what about something from an integration? Lets say WLED?
@SmartHomeJunkie
@SmartHomeJunkie 9 месяцев назад
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 11 месяцев назад
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
10 Impressive Home Automations from Around the World
10:15
My Smart Home is Stupid - HVAC Update
17:44
Просмотров 3,1 млн
15 Home Assistant Tips You MUST Do
14:28
Просмотров 341 тыс.
Застрявшее Кольцо 🤯
0:26
Просмотров 5 млн
#нетчужихдетей
0:40
Просмотров 5 млн
Ноги После 160км
0:18
Просмотров 839 тыс.