Это видео недоступно.
Сожалеем об этом.
Get Notified And Respond Immediately Using Actionable Notifications in Home Assistant
HTML-код
- Опубликовано: 18 авг 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/3e... ⭐
Links referred to in this video:
* How to use Trigger ID's: • How to use Trigger IDs...
* Actionable Notifications manual: companion.home...
* Icons for iPhone usage: sfsymbols.com/
Blog version: www.smarthomej...
⭐⭐⭐
* 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/smar...
⭐⭐⭐
My Devices: github.com/sma...
Instagram: / smarthomejunkie
Twitter: / smarth0mejunkie
Facebook: / smarthomejunkie
TikTok: / smarthomejunkie
Discord: / discord
Music by:
* 2TECH-AUDIO: 2tech-audio.ba...
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
Do you know other use-cases for actionable notificatioons? Let me know in the comments!
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
I am super happy to hear this! Thank you for your support!
just seen this, excellent thanks very much. Have it working on my phone, slightly modified as I don't order the cartridges online.
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!
That's awesome to hear! Thank you.
Used this one for my blinds. Quick explanation: I have this automation that will activate a profile where i have set my blinds to 70% closed when i m away from home. When I or my wife get back, the notification will pop asking if i want to open the blinds, open home assistant app or ignore. Open blinds will activate another profile where all blinds are open (100%), open home assistant will open the app in the dashboard where i have all my shutter controls/profiles and ignore does nothing :)
I purchased these to help out the code to help out the channel, love you videos. I combined everything into one automation.
Thank you for your support! 🙏🏻
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" 😎😎
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!
Thx! Yeah, I usually pick one use case as example, but there are many more use cases to consider!
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?
Thank you
Thank you for your videos. I watch them all. My idea is that if my alarms (ring & home alarm) go off I want to create a iOS dialog box that asks me if I want them all off. Rather than fumble around in a dashboard. Is this the best approach for something like that? Thanks again,
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. 👍
I'm glad you like it!
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
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.
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
Thank you Christoph!
Great video Ed!
Thanks Andrej!
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.
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🙂.
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?
I'm not sure, but I don't think you can force through dnd mode.
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
Great that you can use this Sevag!
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 :)
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.
Thanks for this addition! I was not aware of that.
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?
Maybe set a toggle helper when you responded. As long as the toggle helper is not set, repeat the notification every hour or so.
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.
Muito interessante.
Bem hajas.
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.
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.
there is a way to use animation icons in osx with the notification.?
Can you please make a tutorial on how to make alexa speaker read out the daily events in the google calendar? please :(
I do not own any Alexa devices, so I cannot create a video about this.
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?
Maybe you can try to type it immediately after the URI: and do not use the >-
I'm on IOS and the notification shows up but no action items? Any thoughts? thank you.
Im on iOS also and it worked for me, two things off top of my head. I had to long press the notification for the options to show up...if thats not the issue double check your intents in the data actions code...using iphone 14 pro and ios 17.6
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.
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?
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.
Correct. I mention that in the video as a comment.
I don't have that specific service. I only have "send notification with notify". What am I missing?
If you use the Home Assistant Companion app there should be a service somewhere to send a message to your phone.
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?
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.
i can't able to find the code in the given link
It is there though 🤷🏼
i have the epson 2710 printer and i don't see notify:printer cartridge..... ?????
Might be that your printer is not recognized. Do you have the ipp integration running?
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......".
Any way to not have to long press? This is so annoying...
🤷🏼♂️
@@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.