Загрузка...

Using YAML Node Anchors in Home Assistant - Simple Examples

Simple Example of using YAML Node Anchors in Home Assistant

I've seen the repos with all the fancy Node anchors in the YAML scripts and honestly, I could never really figure out how to use them right. I also couldn't really find a good use case in my Smart Home to use this DRY (Don't Repeat Yourself) method. Today, I jumped both those hurdles. I found a great use for the YAML Anchor Nodes and Aliases and actually figured out how to use them!

It's a really simplistic example but perfect for my use case where I don't want to comment what each RGB code translates to. If I need to change the color slightly, I just need to change the one value. All the rest of the aliases will reference that changed value.

All the details and YAML code can be found on my Website with even more Home Automation articles:
https://www.vcloudinfo.com/2020/10/simple-example-of-using-yaml-node-anchors-in-home-assistant.html

Making a Holiday Sensor:
https://www.youtube.com/watch?v=ulBeifhWBxY

Holiday Lighting Tutorial:
https://www.youtube.com/watch?v=ylPzQ0s7zxc

Repo LIST:
CCostan - https://github.com/CCOSTAN/Home-AssistantConfig

CONTACT ME:
https://www.vcloudinfo.com/about-me

SUPPORT:
Please consider supporting this channel by visiting the blog and/or using the Amazon Affiliate links found in the descriptions. They cost nothing extra and really help the channel.
Affiliate Disclosure - https://www.vcloudinfo.com/p/affiliate-disclosure.html

👋 About this channel: My name is Carlo. I've been running Home Assistant for a BUNCH of years. Almost from the very beginning actually. This channel is focused on bringing what I have implemented at my own house to you so that you can bring it to your house. The channel will be a mix of reviews, tutorials, and inspiration. It is a companion to my GitHub site that holds all the code for my Smart Home and my main site where I keep the more in-depth technical writings. I hope you will enjoy the videos and consider subscribing.

CREDITS:
Design by Steve Fatone - IG: @Steve_Fatone

Видео Using YAML Node Anchors in Home Assistant - Simple Examples канала vCloudInfo
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять