5 WAYS To Send Notifications (Using Home Assistant)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ก.ค. 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-assistant.io/integra...
    Home Assistant Notification
    www.home-assistant.io/integra...
    Home Assistant SMTP
    www.home-assistant.io/integra...
    Create Google Account (For SMTP)
    accounts.google.com/signup/v2...
    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-assistant.io/integra...
    Download Telegram
    telegram.org/
    Telegram API (Info on Bots)
    core.telegram.org/api
    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.buymeacoffee.com/MarkWatt...
    ------------------------------
    🎵 Track Info:
    Title: All That
    Royalty free from : www.bensound.com/royalty-free​​
    ------------------------------
    #markwatttech​​ #homeassistant​​ #sendingNotifications
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 114

  • @rogeriocamargo1984
    @rogeriocamargo1984 3 ปีที่แล้ว

    Man, I'm still thinking about it. It's simply fantastic! Congratulations.

  • @MaxGoddur
    @MaxGoddur 3 ปีที่แล้ว +2

    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.

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      Not sure if it’s noticeable but I also scaled up the cursor size based on feedback :) thanks for the feedback Rudy.

  • @sygad1
    @sygad1 2 ปีที่แล้ว +4

    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.

    • @MarkWattTech
      @MarkWattTech  2 ปีที่แล้ว

      Thanks Darren. Really appreciate that feedback 😁. Plenty more to come!

  • @shanesteinfeld8733
    @shanesteinfeld8733 3 ปีที่แล้ว

    Great job on this. Thanks for the information!!

  • @garysam4528
    @garysam4528 2 ปีที่แล้ว +1

    Dude...you are a legend..thank you so much for this....this has changed notifications for me completely

  • @kerashinnaidoo3013
    @kerashinnaidoo3013 2 ปีที่แล้ว

    Thanks dude, your videos helped configure the SMTP stuff with ease!

  • @---nw9qu
    @---nw9qu 2 ปีที่แล้ว

    The best video on the various notification types in HA I've seen.

  • @Bega89
    @Bega89 3 ปีที่แล้ว +1

    i love your simple amazing videos.. really appreciate it lad :).

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      Thanks for the feedback 👍

  • @Intimidator443
    @Intimidator443 3 ปีที่แล้ว

    I was having issues setting up a service call and the instructions were perfect! thank you!

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      Glad you got it sorted Michael 😁

  • @robpadilha
    @robpadilha 3 ปีที่แล้ว

    Excelent quality videos! Tks!

  • @bowentz
    @bowentz 3 ปีที่แล้ว +1

    Wow.. Really cool stuff in every video. Learning quite a bit. Thanks and keep them coming.

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      Thanks for your continued support Bo! 😁

  • @miltonleopoldo
    @miltonleopoldo 2 ปีที่แล้ว

    Greetings from Portugal! It's been a great adventure with Home Assistant and you've been helping a lot!

    • @MarkWattTech
      @MarkWattTech  2 ปีที่แล้ว

      Glad you have found the content useful! :)

  • @drreality1
    @drreality1 3 ปีที่แล้ว +1

    Love your tutorials, thank you

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      Thanks for the feedback, it means a lot! Plenty more to come.

  • @grahamwillsher1
    @grahamwillsher1 ปีที่แล้ว

    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.

  • @dsdlonyer
    @dsdlonyer 3 ปีที่แล้ว

    Very simple but informative. thanks :)

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      Thank you for the feedback, and for taking time out of your day 😁👍🏻

  • @mithrilerbravorl991
    @mithrilerbravorl991 3 ปีที่แล้ว

    Amazing content, ... at least for a newbie like me.
    Thx a lot.

  • @clairerovic
    @clairerovic 2 ปีที่แล้ว

    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.

  • @hillebrandstreet1882
    @hillebrandstreet1882 2 ปีที่แล้ว

    another awesome video love your work brova from anova mova :)

  • @davidheron1505
    @davidheron1505 2 ปีที่แล้ว

    Mark, I've just used the guidance for the Gmail notifications. It's spot on! Very impressive. Liked the change in outfits.

    • @MarkWattTech
      @MarkWattTech  2 ปีที่แล้ว

      Thanks Dave. This was one of my earlier videos so hopefully I have improved since :D

    • @davidheron1505
      @davidheron1505 2 ปีที่แล้ว

      @@MarkWattTech It's all fine Mark. You've nothing to be concerned about.

  • @Chris173972
    @Chris173972 3 ปีที่แล้ว

    Nice feature with the special notifications ;-)

  • @tonydarby9096
    @tonydarby9096 3 ปีที่แล้ว +1

    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.

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      With the mobile one you can create lots of cool and detailed notifications. Including buttons, pictures etc :)

  • @unlock-er
    @unlock-er 2 ปีที่แล้ว

    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

    • @MarkWattTech
      @MarkWattTech  2 ปีที่แล้ว

      I’ve been looking at a few of the newer push notification services. It’s on the list :)

  • @miguelgarcia-vg1fh
    @miguelgarcia-vg1fh 3 ปีที่แล้ว +1

    Good content

  • @JasonRasmussen
    @JasonRasmussen 3 ปีที่แล้ว

    I don't know if intentional or accidental, but having your overlay actually looking at what you are clicking onscreen is a nice touch.

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      Hey Jason. Which part do you mean sorry? :P I can then confirm if it is intentional 😂

    • @JasonRasmussen
      @JasonRasmussen 3 ปีที่แล้ว +1

      @@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.

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว +1

      @@JasonRasmussen yeah this is intentional 😄. To give it that “guided” feel

  • @ChupoCro
    @ChupoCro 3 ปีที่แล้ว

    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.

  • @benilev7328
    @benilev7328 3 ปีที่แล้ว +2

    great great videolike allways

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      Thanks Beni 🙏🏻😊

  • @gumshoe-tech
    @gumshoe-tech 9 หลายเดือนก่อน +1

    For the Alexa, is it possible to send the message to a group of Alexa devices?

  • @robertespindola1255
    @robertespindola1255 2 ปีที่แล้ว

    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.

  • @johnbrumfield6212
    @johnbrumfield6212 2 ปีที่แล้ว

    THis is great!!! Can this be used for just a regular iphone notification??

  • @timamy10
    @timamy10 2 ปีที่แล้ว

    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.

  • @Joseph-ko2kl
    @Joseph-ko2kl 2 ปีที่แล้ว

    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.

    • @MarkWattTech
      @MarkWattTech  2 ปีที่แล้ว +1

      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 :)

    • @Joseph-ko2kl
      @Joseph-ko2kl ปีที่แล้ว

      @@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

  • @okanerdem
    @okanerdem 2 ปีที่แล้ว

    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?

  • @bobh8565
    @bobh8565 3 ปีที่แล้ว +1

    Cool video! Any insights into when to use which notification type?

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      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 :)

    • @robert.wigley
      @robert.wigley 3 ปีที่แล้ว

      @@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.

  • @xXDeadJesterXx
    @xXDeadJesterXx 6 หลายเดือนก่อน

    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?

  • @raymondsiew1696
    @raymondsiew1696 ปีที่แล้ว

    Thanks for the video. Is there away to add two or more telegram users into the yaml?

  • @SmartHomeMakers
    @SmartHomeMakers 3 ปีที่แล้ว

    Sorry to hear you lost some footage, good news you managed to get it up and running !

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      Thanks man. Yeah it’s a nightmare!

    • @SmartHomeMakers
      @SmartHomeMakers 3 ปีที่แล้ว +1

      @@MarkWattTech keep going and push ahead !

  • @shaneh8495
    @shaneh8495 3 ปีที่แล้ว

    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?

  • @jasonhirsh6278
    @jasonhirsh6278 2 ปีที่แล้ว

    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.

  • @miguelgarcia-vg1fh
    @miguelgarcia-vg1fh 3 ปีที่แล้ว +1

    Can you set up a google nest mini and use it in helpful automations

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว +1

      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.

    • @miguelgarcia-vg1fh
      @miguelgarcia-vg1fh 3 ปีที่แล้ว

      @@MarkWattTech good idea!

  • @moodyelnigoumi2057
    @moodyelnigoumi2057 3 ปีที่แล้ว

    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

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว +1

      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.

    • @moodyelnigoumi2057
      @moodyelnigoumi2057 3 ปีที่แล้ว +1

      @@MarkWattTech Thanks a lot!

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      @@moodyelnigoumi2057 Let us know how you get on!

    • @moodyelnigoumi2057
      @moodyelnigoumi2057 3 ปีที่แล้ว

      @@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

    • @robert.wigley
      @robert.wigley 3 ปีที่แล้ว

      @@moodyelnigoumi2057 Are you still having problems with the file notification? If so, let me know.

  • @davidheron1505
    @davidheron1505 2 ปีที่แล้ว

    Mark, did you ever do the video on Telegram and the use of Bots linked to Home Assistant?

    • @MarkWattTech
      @MarkWattTech  2 ปีที่แล้ว +1

      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.

    • @davidheron1505
      @davidheron1505 2 ปีที่แล้ว

      @@MarkWattTech Thanks for letting me know, Mark. I hope you get the opportunity to have a close look.

  • @MaxGoddur
    @MaxGoddur 3 ปีที่แล้ว

    How do you use persistent notifications? I created one but could not use it in Node-Red can it be used in NR?

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      Hey Rudy. You can yes. Drop me a message via my Facebook Group and I will further assist :) (link in description)

    • @MaxGoddur
      @MaxGoddur 3 ปีที่แล้ว

      @@MarkWattTech how do you find the persistent notification in Node-Red?

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      @@MaxGoddur it will appear in the HA side bar the same as the default persistent notification.

  • @avabarbiesquad
    @avabarbiesquad 2 ปีที่แล้ว

    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

    • @MarkWattTech
      @MarkWattTech  2 ปีที่แล้ว +1

      Glad you have found the content useful. Welcome to the rabbit hole of HA! :D

    • @avabarbiesquad
      @avabarbiesquad 2 ปีที่แล้ว

      @@MarkWattTech Thank you. Rabbit hole indeed 😅

  • @EmilePolka
    @EmilePolka 3 หลายเดือนก่อน

    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.

  • @mixza81
    @mixza81 3 ปีที่แล้ว +1

    How about Pushover?

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      Pushover is also a good notification type too :)
      Also a very simple HA integration to use.

  • @kmtsvetanov
    @kmtsvetanov 7 หลายเดือนก่อน

    Why I'm not getting any PUSH notifications when my phone is locked?

  • @Kim-zb9zp
    @Kim-zb9zp ปีที่แล้ว

    I am about to use AndroidTV notification

  • @heresjhonny702
    @heresjhonny702 3 ปีที่แล้ว

    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

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว +1

      Have a look at my Alexa TTS tutorial :)

    • @heresjhonny702
      @heresjhonny702 3 ปีที่แล้ว

      @@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..

    • @heresjhonny702
      @heresjhonny702 3 ปีที่แล้ว

      ​@@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!

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      Glad you sorted it!

  • @mattadamsnet
    @mattadamsnet 3 ปีที่แล้ว

    I sure did just use the chapters to click on BONUS! lol

  • @JasonRasmussen
    @JasonRasmussen 3 ปีที่แล้ว

    19:39 oops.

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว +1

      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 TH-cam premier with this video. Still learning :)

  • @teeque5320
    @teeque5320 4 หลายเดือนก่อน

    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 :)

  • @aliciaschlingmann7816
    @aliciaschlingmann7816 3 ปีที่แล้ว +1

    I really hope the cleartext mailpasswords and api-keys are fake!
    You blurred them first, but then they are perfectly readable...

    • @MarkWattTech
      @MarkWattTech  3 ปีที่แล้ว

      They are just examples 👍🏻😁. Also the stuff under the blurring is also just example stuff. I just wanted to have a go with the TH-cam blur feature ☺️.

  • @dpn1604
    @dpn1604 2 ปีที่แล้ว

    Relax, the people watching these won't care about your clothing 😂

  • @thbe51
    @thbe51 2 ปีที่แล้ว

    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.

    • @MarkWattTech
      @MarkWattTech  2 ปีที่แล้ว

      Hey Thomas. Thanks for the feedback. Hopefully you will see I have improved on this with the following videos from this 😊

  • @jifchosehismother
    @jifchosehismother 9 หลายเดือนก่อน

    confusing