Get Notified And Respond Immediately Using Actionable Notifications in Home Assistant

Sdílet
Vložit
  • čas přidán 1. 07. 2024
  • Did you know that you can create actionable notifications in Home Assistant? This way you can get a message on your phone and choose some actions within that message. Home Assistant will perform your chosen action after you've chosen a specific action. In this video, I'll show you how you will get a message on your phone when your printer ink cartridges are almost empty and what actions you can perform within that message.
    Actionable notifications are messages that you receive on your phone and that present a couple of actions that you can perform within that message. We will create the following use case in this tutorial. When your printer ink cartridges are almost empty, you will get a message on your phone. Within that message you get three options:
    * Order new cartridges
    * Remind me later
    * and Ignore
    ⭐ You can download the code that I created for this video at: ko-fi.com/s/3eddbfc348 ⭐
    Links referred to in this video:
    * How to use Trigger ID's: • How to use Trigger IDs...
    * Actionable Notifications manual: companion.home-assistant.io/d...
    * Icons for iPhone usage: sfsymbols.com/
    Blog version: www.smarthomejunkie.net/how-t...
    ⭐⭐⭐
    * Join this channel to get access to perks: 📺 / smarthomejunkie
    * Please consider becoming my patron 🏅 at / smarthomejunkie
    * Or please support me by buying me a ☕ at ko-fi.com/smarthomejunkie/
    ⭐⭐⭐
    My Devices: github.com/smarthomejunkie/My...
    Instagram: / smarthomejunkie
    Twitter: / smarth0mejunkie
    Facebook: / smarthomejunkie
    TikTok: / smarthomejunkie
    Discord: / discord
    Music by:
    * 2TECH-AUDIO: 2tech-audio.bandcamp.com/
    00:00:00 Introduction
    00:00:48 The Use Case
    00:01:46 Create the script
    00:04:44 Testing the script
    00:04:53 Create a Helper
    00:05:23 Create the automations
    00:05:26 Create automation that checks if the ink cartridges are below a certain value
    00:06:49 Create automation that handles the printer ink notification actions
    00:10:37 Explain how Events work in Home Assistant
    00:11:24 Create automation that reminds us that the printer ink cartridges are empty
    00:12:27 Download the code that I crteated for this video
    #homeassistant #notify #actionable #actionablenotifications r #smarthome #homeautomation
  • Jak na to + styl

Komentáře • 56

  • @SmartHomeJunkie
    @SmartHomeJunkie  Před rokem

    Do you know other use-cases for actionable notificatioons? Let me know in the comments!

  • @tapere7277
    @tapere7277 Před 4 dny

    just seen this, excellent thanks very much. Have it working on my phone, slightly modified as I don't order the cartridges online.

  • @user-vk9in7qg4b
    @user-vk9in7qg4b Před rokem +4

    I love your calm and precise way of teaching. For me as a beginner i have found a way to get the most out of your tutorials:
    1. Open "Show more" and buy the example codes
    2. Download code file and open it and every related link in side by side windows (i have three 32 inch monitors)
    3. read the timeline list for the video just to prepare my mind for "whats to come"
    4. grabb a coffee and just lean back and view the video at least one time and not if but rather when i get insecure on any part i pause the video and look at specific parts just so i know how to handle them when i'm ready to start working
    5 now the fun begins. As i now have quite good knowledge of what this is all about i start working and i can honestly say that the functions of every tutorial has been working flawlessly.
    Thanks again Ed

    • @SmartHomeJunkie
      @SmartHomeJunkie  Před rokem

      I am super happy to hear this! Thank you for your support!

  • @ScottSchramm
    @ScottSchramm Před 9 měsíci +2

    I watched many other videos trying to get actionable notifications to work, but you way was the only one that made sense to me and I got my project working! Thanks for putting this together!

  • @BELSERVICEMAN
    @BELSERVICEMAN Před rokem +1

    Thanks Ed! I will pause this and put it in my favorites as I will come back to this like a few others.
    I didn’t know about the actionable part!
    What usually happens for me is I see your video and then later find a use case or seem to create one!
    This also is great as every example of helpers is useful as I feel those are underutilized by me. So that is worth making it a favorite!

    • @SmartHomeJunkie
      @SmartHomeJunkie  Před rokem

      Thx! Yeah, I usually pick one use case as example, but there are many more use cases to consider!

  • @TheLawIX
    @TheLawIX Před rokem +1

    I purchased these to help out the code to help out the channel, love you videos. I combined everything into one automation.

  • @paulatkinson9010
    @paulatkinson9010 Před rokem +3

    Another great video thankyou! 👍🙂
    I have a couple of variations to this that I would love to know how to do 🙂
    Create a type of counter so that HA knows if your have spare cartridges in the cupboard and reduces that number after your change the cartridge.
    I work away from home and other family members use the printer. If I get a notification while I am away, I would love a option to "remind me when I return home" 😎😎

  • @BeardedTinker
    @BeardedTinker Před rokem +2

    Great video Ed!

  • @karlmee1234
    @karlmee1234 Před rokem

    Great video. I done this in a different way though for when my garage door has been left open for a certain period of time. I just used an automation by itself instead of using helpers and scripts and it seems to work fine, I just have to swipe down on the notification on my android device to get more actions to show. But it's always good knowing there's a backup option incase my automation ever stops working

  • @sevagjb
    @sevagjb Před rokem

    Very need it subject, I use this on one thing in my HA notifications but after this new video and trick,
    I will add more to my notifications
    always thanks Ed

  • @robmiller3246
    @robmiller3246 Před rokem +2

    This is a great video Thank you so much!! Could you do one with a garage door that has been open for like say 15 min with a reminder?

  • @epedja
    @epedja Před rokem +1

    Nice tutorial. RElly shows the power of Home Assistant.
    Here is an idea for improvement: once user changes ink cartridge he needs to reset reminder flag if it is turned off, so next cycle would work. It may be good idea to add automation that resets reminder flag if cartridge is above threshold of 20.

  • @rickz6006
    @rickz6006 Před rokem +2

    Thanks for this! I did the ink notifications in node-red , always interesting and instructional to see a different way to do the same task. I might use the link to the order site idea to take me to the Amazon list where the particular inks for each of our printers is. pretty sure I will revisit what I did in time as I learn more. 👍

  • @mikegodin23
    @mikegodin23 Před rokem +1

    Muito interessante.
    Bem hajas.

  • @christophhulsmann7430
    @christophhulsmann7430 Před 8 měsíci +1

    Thank you! I really like your video "Get Notified And Respond..." I learned, I will definitely watch other videos from you. I think musicians are just better on the computer...
    greeting

  • @KubedPixel
    @KubedPixel Před 11 měsíci

    Hey, Thank you so much for this. I've been fighting to make something like this for a while but could never work it out. I got so frustrated with it, I ended up giving up. Shame that HA has made seemingly simple automations to require so many steps to achieve simple tasks!
    I've used this to notify me if someone has left a door open. The only thing different I'd like it to do is 'ring' my phone or make it vibrate until I tap an action on my phone.

  • @msalih
    @msalih Před rokem

    Thank you for this awesome tutorial! Just one question,
    can we set an action to direct tap the notification? In this case, it just opens the app.

  • @johnhubbard3879
    @johnhubbard3879 Před 2 měsíci

    Thanks again Ed for another great video! I adapted this automation to use a timer because of it being a much shorter time for the reminder. Is there a way within the actionable notification or otherwise to get input from the user notified to use in the timer setting? For example, if I am working in the garage for a while and know I may walk away leaving the garage door open, sometimes I will want to be reminded in 10 minutes, and sometimes in 30 minutes etc. I want to be able to give that number as feedback in a notification. I have seen many examples but none of them are based on feedback from a notification. I don't want to add more choices in the actionable like "remind in 5", "remind in 15", "remind in 30" etc. I would definitely buy you more Ko-Fi for an answer to this one🙂.

  • @sbarmen
    @sbarmen Před 6 měsíci

    Thanks for this video, I also use actionable notifications to alert myself that it is cold outside when I get up in the morning and motion is detected in the kitchen. I get an alert " it is cold outside, should we start the preheat for the car?". This works well, but I want this to run everyday, and repeat every 10 minutes until you made a selection. To simplify the reset for next day I use a timer helper that runs for 12 hours. My automation kicks in only between 5:30 and 12:00 noon on weekdays, so the 12 hour timer works well. And then I do not have to reset the helper. In your example I wonder if the helper needs to be reset? Once you order or dismiss the notification you toggle the helper, but will it ever be reset? So after you order once, will you ever get notified again?
    Thanks again :)

  • @PetervanHofwegen
    @PetervanHofwegen Před rokem +3

    minor correction, notifications on android can actually use MDI icons. see "notification status bar icon" in "notifications basic" in the home assistant companion app documentation. granted it is not very clear but it is there.

  • @dougbuchan2727
    @dougbuchan2727 Před 7 měsíci +1

    Another great tutorial!!
    How would you change the script to force the notification through when your iPhone is in Do Not Disturb mode? I've tried many things but can't get it to work? Any ideas?

    • @SmartHomeJunkie
      @SmartHomeJunkie  Před 7 měsíci

      I'm not sure, but I don't think you can force through dnd mode.

  • @Kiloptero
    @Kiloptero Před 14 dny

    there is a way to use animation icons in osx with the notification.?

  • @patrickheerschop8601
    @patrickheerschop8601 Před rokem +1

    Brilliant video and crystal clear explanation. Is there a possibility to send a new notification if there is no response to the notification? I have now implemented the waste management and the different washing machines but I miss an even more aggressive follow-up with no feedback on the notification. Do you happen to have a suggestion for that?

    • @SmartHomeJunkie
      @SmartHomeJunkie  Před rokem +1

      Maybe set a toggle helper when you responded. As long as the toggle helper is not set, repeat the notification every hour or so.

  • @JohnMacGuy
    @JohnMacGuy Před 11 měsíci +1

    Nice video! I am using this to notify me in the car when I am 30 miles out to cool the house down. I originally tried to do this with and larger zone around the home, but 3 zones seems to get HA confused and users frustrated. Your example changes to my use case works great....BUT....the notification on my android phone only stays up 5 seconds then disappears. I can always pull it back up, but too much to do when driving.
    Is there a way to keep the notification up until I hit one of the options? I'm looking into Persistent Notifications but there seems to be some issues using them with actionable notifications. Maybe someone has figured it out.

    • @SmartHomeJunkie
      @SmartHomeJunkie  Před 11 měsíci

      I guess this it's something that you have to set up in your phone. I do not use Android, but ios. In ios you can configure for each app if notifications should stay on the screen, or should disappear after a couple of seconds.

  • @ramzie1987
    @ramzie1987 Před rokem

    Hello Ed,
    Thanks for the video.
    Quick question, I'm unable to get a message with a button on the screen and as soon as I put the >- after URI: in the script, the code disappears after I close it and open it again.
    I'm trying to find a way to get a url containing an google drive link to my phone when I scan an NFC tag.
    Any idea how to solve this?

    • @SmartHomeJunkie
      @SmartHomeJunkie  Před rokem +1

      Maybe you can try to type it immediately after the URI: and do not use the >-

  • @louisviciedo
    @louisviciedo Před rokem +1

    The first thing you need to know, and this is important, is that Actionable Notification choices are not shown by default on an iPhone. You need to LONG PRESS on the notification to see them. Apple has no indicator showing an actionable notification is any different from a regular notification, so you either have to write text indicating this, or remember this fact.

  • @davecl35
    @davecl35 Před rokem

    Hi Ed
    I've used this to send a notification to my wife's phone. However if she doesn't respond and I try to run the script again, it says it's run but she doesn't get the notification.
    Is there something I could add to the script for a no response?

  • @MrDavegeo
    @MrDavegeo Před rokem

    Is it possible to have an input from an Android notification? For example if Home Assistant detects I'm away from home, it turns off the heating and sends me a notification asking what date/time I think I'll be back so it can switch the heating back on ready for that time.

  • @tripac2007
    @tripac2007 Před 7 měsíci

    Can you please make a tutorial on how to make alexa speaker read out the daily events in the google calendar? please :(

    • @SmartHomeJunkie
      @SmartHomeJunkie  Před 7 měsíci

      I do not own any Alexa devices, so I cannot create a video about this.

  • @Gbriel1234567890
    @Gbriel1234567890 Před rokem +1

    I don't have that specific service. I only have "send notification with notify". What am I missing?

    • @SmartHomeJunkie
      @SmartHomeJunkie  Před rokem

      If you use the Home Assistant Companion app there should be a service somewhere to send a message to your phone.

  • @bartverwijst1
    @bartverwijst1 Před rokem

    One thing I find annoying and why I switched to Telegram is that you have to hold the message to see the actions and that you can’t ever see the history so if you miss it, it’s gone. Is there a way to keep the messages persistent unless you take action on iOS?

    • @SmartHomeJunkie
      @SmartHomeJunkie  Před rokem +2

      On iOS you can set messages that they do not disappear before you take action. It's an iPhone feature that you can set for each application. So, in this case you have to set it for the companion app in your iPhone settings - notifications - Home Assistant. Set the banner style to persistent.

  • @jagadeeshv2763
    @jagadeeshv2763 Před rokem

    i can't able to find the code in the given link

  • @Jcarlier50
    @Jcarlier50 Před rokem

    i have the epson 2710 printer and i don't see notify:printer cartridge..... ?????

    • @SmartHomeJunkie
      @SmartHomeJunkie  Před rokem

      Might be that your printer is not recognized. Do you have the ipp integration running?

    • @riesmoos
      @riesmoos Před rokem

      Do you mean the Epson Ecotank ET-2710 ? If so, does your printer run it's own little webserver that host a webpage on your local network?
      The HA integration for Epson workforce/ecotank printers only supports Epson printers that host their own webpage showing ink levels.
      Nearly all of the Workforce series have such a function but only a few models of the Ecotank series have that function.
      Find your printers local IP address, access that via a web browser and see what comes up.
      If your model printer does not have it's own (HTTP) webpage, then the HA Epson integration won't be of much use to you and your HA won't have a "notify:printer cartridge......".

  • @jdb6284
    @jdb6284 Před 9 měsíci

    Any way to not have to long press? This is so annoying...

    • @SmartHomeJunkie
      @SmartHomeJunkie  Před 9 měsíci

      🤷🏼‍♂️

    • @jdb6284
      @jdb6284 Před 9 měsíci

      @@SmartHomeJunkie Apparently the only solution I found it just look at such a notification on an apple watch. There you instantly are prompted the several options. I know this is not a solution for someone who doesn't have it, but it's a small work around for me at least.