HOW TO - Use Secrets in Home Assistant

  Рет қаралды 15,772

Mark Watt Tech

Mark Watt Tech

Күн бұрын

In this video we are having a look at how to use Secrets in Home Assistant. You may have heard me or others talk about them in Home Assistant. Well here is a classic Janky MarkWattTech description for them!
Again to reiterate. The syntax is :
!secret yourSecret name (I accidentally put this the wrong way round in the video)
A secret has a name that is used to reference it. And the value is the information it holds (e.g. password).
Hope it makes sense!
▬ Video Chapters ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
0:00​ - Intro
0:21 - What are Secrets?
3:00 - Secrets Demo
6:30 - What Secrets aren't
7:44 - Secrets Summary
8:14 - Outro
------------------------------
🙏Support my Channel - Become a PATRON🙏
Consider supporting the channel by becoming a Patron. Any and all funds go into creating new content and bigger projects.
► / markwatttech
------------------------------------------------------------------------------------------------
📣FOLLOW ME ON SOCIAL MEDIA📣
Follow me on all of the places for exclusive insights and updates;
👤 Facebook: / markwatttech​​​
👤 FB Group: / 2963936147172102
📸 Instagram: / markwatttech​​​
🐦 Twitter: / markwatttech​​​
► MarkWattTech Sub Reddit : / markwatttech
▬ Buy Me a Coffee ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
☕ Found my content helpful?
Any and all funds will go towards helping improve future content.
Plus there are an extra few perks to becoming a member.
☕ If your interested check it out :
► Buy Me a Coffee: www.buymeacoffee.com/MarkWatt...
------------------------------
🎵 Track Info:
Title: All That
Royalty free from : www.bensound.com/royalty-free​​
------------------------------
#markwatttech​​ #homeassistant​​ #localtuya

Пікірлер: 26
@kerashinnaidoo3013
@kerashinnaidoo3013 2 жыл бұрын
Perfect! Now I am using the secrets.yaml. great easy instructions dude. Keep it up!
@LucaMannella
@LucaMannella 2 жыл бұрын
So, if Home Assistant does not encrypt the secrets, what is the correct approach for protecting them?
@bowentz
@bowentz 3 жыл бұрын
Another great and informative video!!
@MarkWattTech
@MarkWattTech 3 жыл бұрын
Thank you for the support as always :)
@ohepay7343
@ohepay7343 3 жыл бұрын
i have a quick question. In samba share addon, there is a need for username and password in it's configuration file. I tried to put the password in the HA secret file and reference to it but it wont work. Can that be done if its not in the HA configuration file?
@blloveless
@blloveless 3 жыл бұрын
I have the same issue in any config file. "Invalid YAML"
@robertdalga128
@robertdalga128 3 ай бұрын
So, don't you need to put the line of code in your configuration.yaml file 'secret: ! include secrets.yaml'? (I did not see that line in your configuration.yaml file)
@JasonRasmussen
@JasonRasmussen 3 жыл бұрын
!brilliant Does this work for any bit of information like a Zwave network key?
@MarkWattTech
@MarkWattTech 3 жыл бұрын
Hey Jason. This should work anywhere in any config file :)
@jontesart7213
@jontesart7213 3 жыл бұрын
Thanks for timestamps on all videos
@MarkWattTech
@MarkWattTech 3 жыл бұрын
No worries 😊 👍🏻
@stives466
@stives466 Жыл бұрын
What I don't understand in this video is that the password that was added in the secret.yaml file is not the one that was initially in the configuration.yaml ?????
@EngineerK
@EngineerK 2 жыл бұрын
does the password need to be in quotes or does it matter?
@frogeye22
@frogeye22 3 жыл бұрын
Probably a dumb question... but does the file have to be called 'secrets.yaml' , or could you make up any file name like say.. 'potato.yaml' and then use !potato.... etc?
@MarkWattTech
@MarkWattTech 3 жыл бұрын
Haha I love this. I can't say I have ever tried using potato.yaml. It does need to be called secrets.yaml but you can split up your config into sections and have different parts referenced.
@LucaMannella
@LucaMannella 2 жыл бұрын
@@MarkWattTech if the approach suggested by @frogeye works probably is much better to use a different name instead of "secrets.yaml". In this way will be slightly difficult for an attacker to understand where the secrets are (even if not so difficult in the end).
@mrxmry3264
@mrxmry3264 2 жыл бұрын
i have created a couple of input booleans, but i can't find their info in any yaml file. where are they stored?
@MarkWattTech
@MarkWattTech 2 жыл бұрын
How have you created them? They may be under your helpers :)
@sto9308
@sto9308 2 жыл бұрын
Is it possible to change a secret-value afterwards? Like in an automation?
@MarkWattTech
@MarkWattTech 2 жыл бұрын
Do you mean to update a secret using an automation, or change the secret after its set? :)
@LucaMannella
@LucaMannella 2 жыл бұрын
​@@MarkWattTech I'm curious about changing it through automation, do you think it is possible?
@latyn4ik667
@latyn4ik667 Жыл бұрын
Is it possible to use secrets in addon configs?
@MarkWattTech
@MarkWattTech Жыл бұрын
It is yes :)
@PriyankBolia
@PriyankBolia 3 жыл бұрын
How to use secret file for something like: input: rtsp://user:password@192.168.1.2/stream1
@WillBelden
@WillBelden Жыл бұрын
I would (almost) assume (since I haven't researched), that you could create a .... variables.yaml and do something like "variables! thatAPIBaseURL" ??
Mastering Home Assistant Templates: We got Errors
19:45
SlackerLabs
Рет қаралды 7 М.
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 10 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
HOW TO - Setup Local Tuya in Home Assistant
19:49
Mark Watt Tech
Рет қаралды 234 М.
5 Home Assistant Add-ons For Beginners
30:31
Mark Watt Tech
Рет қаралды 74 М.
It's THAT easy! Building a new Home Assistant integration in Python
11:47
Hacking Modern Life
Рет қаралды 41 М.
Home Assistant Automation Intro
13:53
SlackerLabs
Рет қаралды 26 М.
ALEXA ACTIONABLE NOTIFICATIONS (Home Assistant + Alexa Skill)
26:32
Mark Watt Tech
Рет қаралды 52 М.
Mastering Home Assistant Templates: Intro to Date and Time
36:16
SlackerLabs
Рет қаралды 18 М.
15 Home Assistant Tips You MUST Do
14:28
Everything Smart Home
Рет қаралды 350 М.
The Ultimate Guide to Personalized Dashboards in Home Assistant
16:27
Smart Home Junkie
Рет қаралды 35 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2 МЛН
СТРАШНЫЙ ВИРУС НА МАКБУК
0:39
Кринжовый чел
Рет қаралды 1,4 МЛН
Отдых для геймера? 😮‍💨 Hiper Engine B50
1:00
Вэйми
Рет қаралды 1,2 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 3,6 МЛН