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
  • НаукаНаука

Комментарии • 114

  • @garysam4528
    @garysam4528 2 года назад +1

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

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

  • @---nw9qu
    @---nw9qu 2 года назад

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

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

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

  • @kerashinnaidoo3013
    @kerashinnaidoo3013 2 года назад

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

  • @rogeriocamargo1984
    @rogeriocamargo1984 3 года назад

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

  • @miltonleopoldo
    @miltonleopoldo 3 года назад

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

    • @MarkWattTech
      @MarkWattTech  3 года назад

      Glad you have found the content useful! :)

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

  • @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! 😁

  • @gumshoe-tech
    @gumshoe-tech 10 месяцев назад +1

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

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

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

  • @xXDeadJesterXx
    @xXDeadJesterXx 7 месяцев назад

    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?

  • @drreality1
    @drreality1 3 года назад +1

    Love your tutorials, thank you

    • @MarkWattTech
      @MarkWattTech  3 года назад

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

  • @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 ;-)

  • @Bega89
    @Bega89 3 года назад +1

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

  • @shanesteinfeld8733
    @shanesteinfeld8733 3 года назад

    Great job on this. Thanks for the information!!

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

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

  • @EmilePolka
    @EmilePolka 4 месяца назад

    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.

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

  • @hillebrandstreet1882
    @hillebrandstreet1882 2 года назад

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

  • @raymondsiew1696
    @raymondsiew1696 Год назад

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

  • @robpadilha
    @robpadilha 3 года назад

    Excelent quality videos! Tks!

  • @timamy10
    @timamy10 3 года назад

    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.

  • @mithrilerbravorl991
    @mithrilerbravorl991 3 года назад

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

  • @dsdlonyer
    @dsdlonyer 3 года назад

    Very simple but informative. thanks :)

    • @MarkWattTech
      @MarkWattTech  3 года назад

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

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

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

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

  • @johnbrumfield6212
    @johnbrumfield6212 2 года назад

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

  • @miguelgarcia-vg1fh
    @miguelgarcia-vg1fh 3 года назад +1

    Good content

  • @benilev7328
    @benilev7328 3 года назад +2

    great great videolike allways

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

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

  • @teeque5320
    @teeque5320 5 месяцев назад

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

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

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

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

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

  • @kmtsvetanov
    @kmtsvetanov 8 месяцев назад

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

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

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

  • @Kim-zb9zp
    @Kim-zb9zp Год назад

    I am about to use AndroidTV notification

  • @avabarbiesquad
    @avabarbiesquad 3 года назад

    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  3 года назад +1

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

    • @avabarbiesquad
      @avabarbiesquad 3 года назад

      @@MarkWattTech Thank you. Rabbit hole indeed 😅

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

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

  • @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 RUclips blur feature ☺️.

  • @mattadamsnet
    @mattadamsnet 3 года назад

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

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

  • @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 RUclips premier with this video. Still learning :)

  • @jifchosehismother
    @jifchosehismother 10 месяцев назад

    confusing