5 WAYS To Send Notifications (Using Home Assistant)
HTML-код
- Опубликовано: 17 авг 2024
- In this video I will be showing you 5 different ways to send notifications from Home Assistant.
The 5 Methods we will look at are :
- Persistent Notifications
- Push Notifications (I know it's just a mobile Notification)
- Email (SMTP Notifications)
- Alexa TTS (Have Alexa speak your notification)
- Telegram (Send a message to Telegram via Bot)
I will be showing you the setup steps for each of these and a quick Dev tools demo of the notification working. It doesn't require to much effort to transfer the Dev Tools demos into an Automation, and if you stick around to the end I will show you a super simple automation using 3 of the notifications in a service call.
===================================================
This video was recorded a few weeks ago but was part of my corrupted videos (same as the previous 5 addons video). I salvaged about 15 minutes of the footage as I didn't want to waste it and loose some of the time I had put into it. As a result expect a helping of Janky-ness! The next lot of videos will be refined and hopefully all the cuts throughout this video don't extract from your learning something.
Let me know how you found the video!
▬ Video Chapters ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
0:00 - Intro
00:41 - Mark from the Future video issue explanation
02:02 - Persistent Notifications (What are they?)
03:30 - Persistent Notifications (Dev Tools Demo)
07:22 - Push Notifications (What are they?)
09:14 - Push Notifications(Dev Tools Demo IOS)
10:28 - SPECIAL BONUS NOTIFICATION
10:48 - Email Notifications
11:00 - SMTP Setup
15:40 - Alexa TTS Notification (Brief Explanation and Setup)
20:37 - Alexa Media Player (Dev Tools Demo)
22:05 - Telegram (What is it?)
23:27 - Telegram Setup
27:46 - Telegram (Dev Tools Demo)
31:29 - BONUS SEGMENT -Simple Automation to use notifications we have learned in a service call
33:26 - Summary and info about MarkWattTech
35:29 - Planned Video Schedule
35:46 - Outro
35:56 - Bloopers
------------------------------
▬ Helpful Video Links and Resources ▬▬▬▬▬▬▬▬▬▬▬▬
Home Assistant Persistent Notification
www.home-assis...
Home Assistant Notification
www.home-assis...
Home Assistant SMTP
www.home-assis...
Create Google Account (For SMTP)
accounts.googl...
SMTP YAML
notify:
- name: gmail
platform: smtp
server: smtp.gmail.com
port: 587
timeout: 15
sender: youremail@gmail.com
encryption: starttls
username: youremail@gmail.com
password: YOUR_PASSWORD
recipient:
- youremail@gmail.com
sender_name: Your Home Assistant
NEED HACS? (Install and Setup HACS)
• 5 Home Assistant Add-o...
Telegram (HA Integration)
www.home-assis...
Download Telegram
telegram.org/
Telegram API (Info on Bots)
core.telegram....
TELEGRAM YAML (Check your indentation when copying and pasting)
telegram_bot:
- platform: polling
api_key: YOUR_API_KEY
allowed_chat_ids:
- YOUR_CHAT_ID
What's Watt Episode 1 (What is NFC)
• Video
------------------------------
Any issues? Head over to my Facebook page and start up or join an existing post : / markwatttech
Hopefully we can all work together to resolve any common problems.
Looking for 5 addons to assist you as a beginner? I've got you covered :
• 5 Home Assistant Add-o...
If this video has helped you out, drop me a like rating and subscribe for more.
Subscribe To See More ! ● Click here ► / markwatttech
🙏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.buymeacoff...
------------------------------
🎵 Track Info:
Title: All That
Royalty free from : www.bensound.c...
------------------------------
#markwatttech #homeassistant #sendingNotifications Наука
Dude...you are a legend..thank you so much for this....this has changed notifications for me completely
Was trying to create a push notification and your older video popped up. Could not be happier as I know it will be clear and precise.
Got caught with saying to Google, 'kitchen off' ..... fridge stopped on 35c day ..... bad Claire.
The best video on the various notification types in HA I've seen.
Hi Mark, fairly new to HA. Found your youttube video re Notifications and managed to setup mine up in 5 minutes. Thanks for the great video.
Another great informative video and thank you for zooming in it really makes it easy to see where you want our attention focused. And it helps when I sit back and relax while watching videos in the livingroom.
Not sure if it’s noticeable but I also scaled up the cursor size based on feedback :) thanks for the feedback Rudy.
Thanks dude, your videos helped configure the SMTP stuff with ease!
Man, I'm still thinking about it. It's simply fantastic! Congratulations.
Greetings from Portugal! It's been a great adventure with Home Assistant and you've been helping a lot!
Glad you have found the content useful! :)
First video i've seen from you and immediately sub'd. Concise, informative, VERY clearly explained. I wish all tech tutorial videos where this good. I'll be looking through your back catologue and look forward to your new videos.
Thanks Darren. Really appreciate that feedback 😁. Plenty more to come!
Wow.. Really cool stuff in every video. Learning quite a bit. Thanks and keep them coming.
Thanks for your continued support Bo! 😁
For the Alexa, is it possible to send the message to a group of Alexa devices?
I was having issues setting up a service call and the instructions were perfect! thank you!
Glad you got it sorted Michael 😁
Thanks, I did not know about the notify.mobile push type, I have been using pushover.
But pushover seems to often have long delays, so I will try your alternative.
With the mobile one you can create lots of cool and detailed notifications. Including buttons, pictures etc :)
Thank you for this video. I am trying to set up an email notification. I have done everything in the video, but when the automation triggers I get an error saying the service is unknown (I called my service Greek_Mom) and it says notify.greek_mom is unknown. Any thoughts?
Love your tutorials, thank you
Thanks for the feedback, it means a lot! Plenty more to come.
Mark, I've just used the guidance for the Gmail notifications. It's spot on! Very impressive. Liked the change in outfits.
Thanks Dave. This was one of my earlier videos so hopefully I have improved since :D
@@MarkWattTech It's all fine Mark. You've nothing to be concerned about.
Nice feature with the special notifications ;-)
i love your simple amazing videos.. really appreciate it lad :).
Thanks for the feedback 👍
Great job on this. Thanks for the information!!
Thansk for the video I’ve a small question. I’ve an automation. if x person left from home and if window/door is open, sent a notification. But looks like if i’m not connected with vpn or nabu case, it’s not working I mean Even though I am away from home, I seem to be at home. Does not update location. If i connected vpn, it’s working. But very strange, other notifcations are working without vpn. I can get notifcations I can receive mobile notifications without access to HA server. What’s wrong? I mean if it can work without vpn/nabu casa account, why location base automation is not working? How can I receive other notifications when I’m not connected with VPN and I don’t have HA access?
I don't know if intentional or accidental, but having your overlay actually looking at what you are clicking onscreen is a nice touch.
Hey Jason. Which part do you mean sorry? :P I can then confirm if it is intentional 😂
@@MarkWattTech Such as with 5:11 on and with most of the video. It's as if your eyeline is looking at the desktop screen capture, looking at the mouse movement and where you are typing.
@@JasonRasmussen yeah this is intentional 😄. To give it that “guided” feel
One thing that always fails this notification on HA. And that is your home network switch to backup internet since the primary one have some sort of outage.
For some reason HA struggles to use the backup internet for some period of time (eg 30mins) and if for some reason that period of time you have no internet and there are some notifications needs to be send, well suck to you those notification will never get resend.
Because HA is too dumb to handle that, I basically just add a automation based on sensors from my pfsense router primary wan status, if the sensor for WAN interface goes to down state for 1minute, it basically restart HA Core so it can use the backup internet.
I am looking for a way to see some notifications/event history from the remote location (outside of local network) by using *only* a browser pointed to some URL. That way even some TV set with a browser where it is not possible to install any additional software could be used to check the state of the home devices and alarms. Maybe ThingSpeak or something similar where you can access and monitor the data even without logging in.
another awesome video love your work brova from anova mova :)
Thanks for the video. Is there away to add two or more telegram users into the yaml?
Excelent quality videos! Tks!
I done everything the exact way that you did in the video and the configuration was verified but when I reset my server it didn't come back. So I can no longer access home assistant in my browser. I have the home assistant OS so I'm assuming that I can restore a snapshot but I haven't tried yet but I'm still unsure what went wrong.
Amazing content, ... at least for a newbie like me.
Thx a lot.
Very simple but informative. thanks :)
Thank you for the feedback, and for taking time out of your day 😁👍🏻
Very good...but even after going through two times. I keep getting a message in developer when i try to call the service established (kasdivi) I get the error that notifykasdivi cant be found and it is not shown under service.
Sorry to hear you lost some footage, good news you managed to get it up and running !
Thanks man. Yeah it’s a nightmare!
@@MarkWattTech keep going and push ahead !
Well done Mark as always. been watching your videos one by one for the last few days :). Just wondering if you're able to do a tutorial on setting up pushover by any chance? cheers
I’ve been looking at a few of the newer push notification services. It’s on the list :)
THis is great!!! Can this be used for just a regular iphone notification??
......a payload from a function.
Good content
great great videolike allways
Thanks Beni 🙏🏻😊
Cool video! Any insights into when to use which notification type?
Hey Bob, thanks!
It’s down to personal preference really, and what/if you want to do anything with that notification after. I use mobile notifications for general info and more recently I have been using telegram to report issues such as device disconnection etc. I also use email notifications to log things. I have a console application that then parses info from the email and sticks it in a database which can then be used for pretty graphs etc 😂 .
Plenty of weird and wonderful things you can do. Have a play around and see what works best in your use case :)
@@MarkWattTech You can also use the notify file service to log output to file e.g. CSV instead of using email. I find it very useful.
Is the push notification only for local server when you are at home or you can still receive push notification when you are away from home through internet?
Both 👍🏻
Great video but please take it easy on the "subscribe reminders". We got it, no need to be so pushy and annoying about it. Thank you :)
Great video. I tried to setup multiple emails on the actual automation using smtp but could not make it happen only at the configuration_yaml. I also use Microsoft Teams to communicate.
Mark thanks so much! I do have a question since I am new to all this. I understand I can go to Dev. tools, services, telegram bot- fill the info out (the YAML) and then call the service. but if I want to use this in something ( a automation?) would I just put that YAML from the Dev Tools page into my config file? Then if I wanted to use telegram in a different automation I would just adjust that YAML and paste it in? I am sure this is a super basic question ( I'm pretty slow..) but thank for any guidance here.
Hey Joesph. Hope you are well :)
Essentially you re write those parts in the automation. If you change your automation view to the yaml view you can actually just copy and paste the code over.
Hope that helps. Feel free to ping me a message if you need any further help. I’ll do my best to get back to you :)
@@MarkWattTech I know you did this a year ago but I would love to see a more deep dive showing more things you can do w/ telegram. for instance I get photos from my security cameras sent to telegram, I would like to see how you could send those from telegram to HA and have the latest photo pop up in a card on the dashboard. Thanks
Can you set up a google nest mini and use it in helpful automations
Hey Miguel. It’s on my todo list. Just a case of finding the time. I may share some of my planned video topics in a post for people to vote and pick an order.
@@MarkWattTech good idea!
Mark, did you ever do the video on Telegram and the use of Bots linked to Home Assistant?
Hey Dave. I worked on it but never ended up releasing it. Im currently not using it in my ew setup but I was asked about it in a live stream the other day. So it may be something I have another look into in the future.
@@MarkWattTech Thanks for letting me know, Mark. I hope you get the opportunity to have a close look.
Why I'm not getting any PUSH notifications when my phone is locked?
Hello. Love the video. I have a small enquiry, what if i wanted to send notifications from home assistant as a file (.csv or .txt) how would i be able to do that?
Thanks
Heya. It’s not something I have personally tried (its an interesting concept though) i think the “File” integration might be what you want yo start with.
@@MarkWattTech Thanks a lot!
@@moodyelnigoumi2057 Let us know how you get on!
@@MarkWattTech Hello Mark. Hope you're doing good. I have already used the file notification and even created a file in the config folder to view the CSV files. However, whenever i open the file i created, i dont see anything, its completely blank and im pretty sure i wrote the configuration correctly. Do you know how else can i check if the files are transferred to CSV?
Thanks
@@moodyelnigoumi2057 Are you still having problems with the file notification? If so, let me know.
How do you use persistent notifications? I created one but could not use it in Node-Red can it be used in NR?
Hey Rudy. You can yes. Drop me a message via my Facebook Group and I will further assist :) (link in description)
@@MarkWattTech how do you find the persistent notification in Node-Red?
@@MaxGoddur it will appear in the HA side bar the same as the default persistent notification.
I am about to use AndroidTV notification
Your subliminal subscribe hints won't work on me, as I'm already subscribed 🤣. One week I to HA and have loads setup. Thank you, much appreciated
Glad you have found the content useful. Welcome to the rabbit hole of HA! :D
@@MarkWattTech Thank you. Rabbit hole indeed 😅
I want to send notifications to alexa so when something changes like if i turn off a lamp, alexa says that i turned off the lamp. Just a silly example. But what i wat is that home assistant send a TTS to alexa when i switch my leds from ambilight mode to simple light mode. I already put on node-red the function to when i tell alexa to turn off the leds the ambilight mode engages and vice versa. I just cant find a tutorial on how to make alexa say that this happened... T_T
Have a look at my Alexa TTS tutorial :)
@@MarkWattTech i just did that, i went to developer tools to test it but i get "unknown error" =/ The tts on the media player is working fine though..
@@MarkWattTech Nevermind, i didn't know i was supposed to press enter so it creates a 2 line on "data" field. It's good to go now! Thank you!
Glad you sorted it!
How about Pushover?
Pushover is also a good notification type too :)
Also a very simple HA integration to use.
I really hope the cleartext mailpasswords and api-keys are fake!
You blurred them first, but then they are perfectly readable...
They are just examples 👍🏻😁. Also the stuff under the blurring is also just example stuff. I just wanted to have a go with the RUclips blur feature ☺️.
I sure did just use the chapters to click on BONUS! lol
😂👍🏻
Relax, the people watching these won't care about your clothing 😂
😂👍🏻
The instructions are OK but you need to fix the audio on the video. You are very low . and your soundeffects are way to high. Try to level this out, please.
Hey Thomas. Thanks for the feedback. Hopefully you will see I have improved on this with the following videos from this 😊
19:39 oops.
Don’t worry this is nothing confidential 😄. I was actually just testing youtubes built in blur tool to see how it works. I also tried using RUclips premier with this video. Still learning :)
confusing