Тёмный

When to Use Home Assistant Automations, Scripts, and Scenes 

SlackerLabs
Подписаться 26 тыс.
Просмотров 36 тыс.
50% 1

This week I wanted to talk about Automations, Scripts, and Scenes because the reality is they all do similar things. And knowing which one to use may not always be clear.
So in this video, we talk about how they compare, breakdown the pieces of each one, and I walk you through when I use each of them.
So if you find yourself questioning which one to use in Home Assistant, stick around because we are about to automate some boring stuff.
Here are the video chapters:
00:00 - When to Use Home Assistant Automations, Scripts, and Scenes - Intro
00:54 - Home Assistant Automations
03:19 - Home Assistant Scripts
05:27 - Home Assistant Scenes
06:40 - Wrapping it Up
Who am I?
My Name is Jeff. I am an Automator of boring things and a huge Home Assistant fan. I also live in a house that tweets.
Follow Me:
Github - github.com/thejeffreystone
Twitter - / thejeffreystone / / slackerlabs
On the Web - slacker-labs.com/
And if you like this video you could always fuel my coffee/automation habit - www.buymeacoffee.com/icE6DeBut,
or use my Amazon affiliate link ( www.amazon.com/s/ref=as_li_ss...) which helps support this content. The affiliate link provides a small commission on things you buy without additional cost to you.
If you want to follow my house on Twitter, you can at / anchoragehouse2 but be warned....it can be snarky.

Наука

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

 

9 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@SlackerLabs
@SlackerLabs 3 года назад
Over on twitter, Andrea Donno slapped me around for missing an awesome use case for scenes! Ok, it was more nudge than a slap, but anyway. I forgot to include that with scenes you can create them on a fly. For example, You can use an automation to create a scene based on the current state of your entities, then apply that scene later. This could be useful if you wanted to record the current brightness of a light when door opens, and then increase the brightness while the door is open, and then restore the previous brightness when the door is closed. I'll do a future video on how you can use this since it is an useful tool. But if you want to learn more right now check out the HA docs -> www.home-assistant.io/integrations/scene/#creating-scenes-on-the-fly
@bgable7707
@bgable7707 2 года назад
First video, of all the ones I've watched, that's broken this down clearly the way you do. I've read through most of the HA docs and thought they give some insight to the particular item, the docs leave a far cry for explaining how everything "integrates" together into the BIG picture. THANKS !!!
@KaidoKurrikoff
@KaidoKurrikoff 3 года назад
Great breakdown of the usecases! Keep it up, that was very well explained.
@MisteurMarchand
@MisteurMarchand 3 года назад
I use scenes to make automation more simple to manage. As an exemple, I have create a blackout scene per room, that contain every devices that i want to be off set in that state, and an automation link to a button that i press when going to bed. That automation calls every blackout scene. I find it easier to manage. If i add a new device or move one, i just make the change in the scene corresponding to the room.
@SlackerLabs
@SlackerLabs 3 года назад
I have a big all lights out scene that I use when we leave. And I have an all lights on that fires when security alarm goes off, but I like the room approach.
@Danielo515
@Danielo515 3 года назад
How is it different from turning off a group? Honest question
@MisteurMarchand
@MisteurMarchand 3 года назад
@@Danielo515 never played with groups. Probably another (maybe better?) way to do it. I'll try that.
@SlackerLabs
@SlackerLabs 3 года назад
Not really all that different. They both can allow you to turn them all off or on. And I have used groups in the place of scenes. I think the only difference is groups are only defined by a service or in the yaml. Scenes you can define in the UI.
@chrisrosenkreuz23
@chrisrosenkreuz23 2 года назад
thank you for your work
@rationaleatheist8769
@rationaleatheist8769 2 года назад
Solid explanation
@burner37
@burner37 Год назад
Nice video! I would like to create custom light effects for my hue lights in front of my house (candle, Christmas theme,...) but I still struggle to know what I should use.
@tomaszgasecki
@tomaszgasecki 6 месяцев назад
Sometimes one may encounter some unexpected lights behavior when using scenes. There is a number of devices which cannot accept change of brightness and color at the same time. As a result or your brightness is changing with color remaining from previous scene or opposite. When calling scene second time it adjusts the rest. In such cases scripts ate better option. Alternatively one may set to separate scenes for controlling light color and brightness.
@SlackerLabs
@SlackerLabs 6 месяцев назад
Interesting. I haven't encountered that.
@PersonXes
@PersonXes 3 года назад
Thanks for the video. So far I've not used scripts or scenes. I've only used node red automations where I can also avoid repeating things which I'm doing in multiple automations (for example by creating a subflow for the repetitive part). Have not seen the need for anything else so far :-)
@Danielo515
@Danielo515 3 года назад
And you will never see. Yaml is a terrible choice for automations. It's verbose, hard to write and hard to follow
@WPGinfo
@WPGinfo 2 года назад
Interesting, however I am not quite sure if I understand it yet? I am struggling to 'translate' common situations into HomeAssistant-settings be they automations, scripts or scenes. I have successfully set up a few simple things, but struggle with the slightly more complicated stuff. I hope watching this video a few more times will help me create / fix a few settings and get the results I want. Somehow I feel I utilize only a small percentage of the potential of HA-systems.
@RNMSC
@RNMSC 2 года назад
Not sure if 'scene's are supposed to be used this way, but as far as I can tell, the most I can really do with them is put together ad-hoc collections of devices, that an action or script can turn on. I like this over groups in that there are times when I'd like to control several individual bulbs or outlets in different rooms. (dawn and dusk routines to turn on lights at or near entries to the house, a midnight to dawn night light taking one of the living room bulbs, and a bulb in the kitchen, and perhaps a bulb at the top of the basement stairs (I live in MN, basements are a useful thing here.) are just a couple of examples.) Scenes so far appear to give me the ability to collect those devices for automations to run against, though I'm running into 'fine tuning' issues like being able to set the brightness of bulbs in a scene. (Perhaps because I'm using them wrong?) I have no problem with the idea that all of this can be scripted, with automation triggering scripts based on events/notifications/schedules just haven't gotten to the point where I can do that editing in the .yaml files. (Hoping to avoid the 'there's entirely too much to work on here, and I've got a life...' level of abandoning the concept. For now, small steps, mostly in automation, which makes this not quite as clean to update as I'd like. (changing bulbs or sensors affecting multiple automations, so have to update multiple places.)
@FedericoGranata
@FedericoGranata 3 года назад
I prefer to use node red for my automations (I'm a JS developer and I used node red long before home assistant) and I wondered about the difference between trigger and condition but I never really try to learn more. Thank you
@SlackerLabs
@SlackerLabs 3 года назад
I still haven’t played with node red.
@FedericoGranata
@FedericoGranata 3 года назад
@@SlackerLabs I'd suggest you to check on some tutorial or some cookbook like this one zachowj.github.io/node-red-contrib-home-assistant-websocket/cookbook/ to get an idea of what can be done
@CogitoBcn
@CogitoBcn 2 года назад
I'm also a developer with no experience from HA, but to me, it seems that the "trigger" is similar to events, and the condition and action is self-explicative. In short, you can look at them just as: some events TRIGGER the checking of a CONDITION that will call an ACTION.
Год назад
I'm missing templates in your list automations, scripts and scenes. When to use templates? Are templates different compared to automations. Sorry for this newbie quesiton.
@SlackerLabs
@SlackerLabs Год назад
Think of templates more like diy sensors. They are used when you need to take existing info and transform it to make it more usable. You would use a template in an automation or script as context as a trigger or condition or as info you use in a notification.
@Shaq2k
@Shaq2k 2 года назад
Interesting video. But you are mentioning something that I'm trying to figure out; You mention that scripts can be published to my voice assistant (Google Assistant in my case) and used there. I have a Nabu Casa subscription, so there is no manual setup. I have also published a script to Google Assistant via Configuration -> Home Assistant Cloud -> Manage entities. But I don't know how to use it in Google Assistant with voice commands. For example; Hey Google, TV Time, or Open garage. Do you have a video on that?' Thanks.
@SlackerLabs
@SlackerLabs 2 года назад
I can't remember if I did a video showing the exact steps. But I have a Google home video I want to do so I will make sure to cover it. But in you add a routine, set your voice trigger, then add an action. For action choose "Adjust Home Devices" and then choose "Adjust scenes". there you should be able to pick the script you created. Then when you trigger that routine it should execute a script.
@SterileStreaming
@SterileStreaming 2 года назад
Do you just create a random GUID or do you get it from somewhere in HA?
@SlackerLabs
@SlackerLabs 2 года назад
I grabbed a bunch from www.uuidgenerator.net/guid and just saved the file I downloaded to my HA instance. Then I just cut one from the file everytime i need one.
@rolandlefranc9087
@rolandlefranc9087 2 года назад
You create random GUIDs. By design, you won't have GUID collisions in any system if you use multiple of them.
@JeeWee
@JeeWee 2 года назад
I like the way you explain things but unfortunately I cannot listen to your videos to long because I cannot filter out the 'music' and it is not what I want if I want to learn something. If I want music I listen to music of my own choice. To bad people make great videos but exclude a part of the audience by adding 'music'. I hope you wil continue to make great tutorials without music, in the meantime I'm looking for other tutorials.
@SlackerLabs
@SlackerLabs 2 года назад
Most of my videos no longer have music over the tutorial parts. But thanks for the feedback! I wish luck in your RU-vid journey!
@JeeWee
@JeeWee 2 года назад
@@SlackerLabs Thank you! Good to know. I was now looking for info on scripts and scenes. I will definitely check out your other videos now I know this!
@RookieRay
@RookieRay 3 года назад
What can a script do that an automation cannot?
@SlackerLabs
@SlackerLabs 3 года назад
A script can be triggered by a voice command in either the echo or google home. It can also be included in multiple automations without having to duplicate actions. Those are probably the biggest differences
@TomLigman
@TomLigman 2 года назад
the less vanilla your setup is, the more you need the extra things. I just added a couple of Broadlink IR devices for some old TVs that don't do CEC (one in the garage, one in my office), and that integration uses scripts to copy your IR from the remote button presses and then uses scripts to trigger those remote button presses. Scripts run when you call them, and may or may not include a condition. So if you have a thing you want to do over and over, calling a script is easier than writing that code in multiple automations.
@rebe7800
@rebe7800 2 года назад
Advice: Look at professionals, Slow down in speaking.
Далее
Build One Script to Rule Them All in home Assistant
11:21
Home Assistant Automation Intro
13:53
Просмотров 26 тыс.
Cabeças erguidas, galera! 🙌 Vamos pegá-la!
00:10
когда мучает жажда // EVA mash
00:58
Просмотров 819 тыс.
СКАМ НА TWITCH
14:07
Просмотров 260 тыс.
I guess this is it.....for 2023
12:15
Просмотров 5 тыс.
15 Home Assistant Tips You MUST Do
14:28
Просмотров 344 тыс.
YAML Basics // Level Up Your Home Assistant Skills
22:58
AWS SQS vs SNS vs EventBridge - When to Use What?
22:37
5 Home Assistant Automations For Better Smart Lights!
15:58
Сложная распаковка iPhone 15
1:01
Просмотров 15 тыс.