This is fantastic. I had something similar in HA automations but I much prefer Node Red as it's easier to visualize. I' followed it all and it worked first time. I'll be using this for a lot of things now.
Great post. Used it to send a notification to my phone if someone leave and my garage door is open, giving me the option to close it from the notification. One thing I would find more useful than the way presented is in the link to the blog post, the code is just all smooshed. If it was tabbed out and maybe commented I would have felt more comfortable using it.
This is really good. Is there a way of using a similar node red flow to send a pop-up notification to your phone with a snapshot from the video doorbell when someone rings the bell?
Thanks for the code and video, I don't know if something has changed but I do not get the actionable part and clicking the notification just opens the companion app. I've been trying everything to get the actions but nothing.
Love this video, great work! I do have a question. How to add the option critical and how do you add destructive/true and volume level to the message text to json In HA automation I can add heses and it works perfect. I can not figure out how to in nodered though. Thank you
Excellent video, and good explanation. Thank you for sharing. The demo helped me work out my own example. Do you have some examples of how you use this in your own setup?
Amigo lo habia logrado hace unas semanas atrás, y hoy no se puede. Es debido a una actualización? Yo uso android y logro llegar al punto en que me llega la notificación con los dos botones, pero al presionar cualquier botón, no hace nada. Intenté incluso copiando tu código y cambié las entitades y nada. A ti te funciona aún?
If I have multiple flows that use the "events-all" node, how do you differentiate from the different flows? I have a flow that sends me a notification and I have the yes and no buttons working. If i create another flow using the same process, with yes and no buttons, how does the events-all node know the difference? When I select yes or no, both flows activate for yes. for instance, is the trash taken out "yes/no" is one flow the other, did you clean the pool filter "yes/no" If I click the yes, then both flows for yes get run.
Figured out that if I create a unique action name then after the events-all node I use a switch node and use those unique names it will work. Thank you for the videos, they help ALOT!
Hi Gio! been enjoying all your smart home tutorials, especially on node red. This one has been very useful to point me in the right direction for actionable notifications for all kinds of ha events. One thing I noticed recently though in my v3.1.0 instance... I'm getting a "deprecated API warning" and subsequent error in the debug console. It appears to happen with all event types for the "event:all" node type (not just mobile_app_notification_actions). Do we need to enter something into the event data field or return done in the $outputData for the topic to prevent this?
Thanks would love more NR info! Question- Maybe I missed it but the way this is set up is to notify you if you are not home correct? Did you just leave that part out? Assuming I understand what you did there is no way in the current flow for that part to happen unless you either added something to the current flow or connect the flow with a HA automation some how. I am correct? The way the example is set up the only way to currently make it work is to click the inject node?
Thanks a lot! This helpt me a lot. But "unfortunately" it didn't work for me the way you showed the json. I had to format it like this to make it work (Without the "{{}}" ) { "message": message, "title": title, "data": { "actions": [ { "action": action, "title": actionTitle } ] } }
In addition to what Roland said, you could just type it out all in one line and then hit the "format json" button that is in the upper right corner and have the editor "pretty format" it for you.
This is wiked ! I'm just wondering if this would work with Alex .. so for example if the light in a room goes under a certain lux value for Alexa to ask if you want to turn on lights for a certain brighter lux value ..
Great, a lot of detailed explanations. But, I cannot get it to work. I got the connection with my iPhone for message and Hello World, but entering the code I received a message « object Object ». I must have error in the text. Could you export your NodeRed flow so that I can import it. Thanks
Yes, however icons are not supported, nor are images (for example sending a security cam still frame along with the message). Those are currently only supported on iOS.
Link to blog post for code! leonardosmarthomemakers.com/control-your-smart-home-with-actionable-notifications/
This is fantastic. I had something similar in HA automations but I much prefer Node Red as it's easier to visualize. I' followed it all and it worked first time. I'll be using this for a lot of things now.
Great info! thanks for posting - new to Node Red - this really helps
Glad it was useful!
Great post. Used it to send a notification to my phone if someone leave and my garage door is open, giving me the option to close it from the notification. One thing I would find more useful than the way presented is in the link to the blog post, the code is just all smooshed. If it was tabbed out and maybe commented I would have felt more comfortable using it.
This is really good. Is there a way of using a similar node red flow to send a pop-up notification to your phone with a snapshot from the video doorbell when someone rings the bell?
Hi great post , but is any fix "On Device Activity" or still not ,because many ppl complained it's not working any more . If is matter I am in UK
I appreciate that you break things down and explain everything
Appreciate you taking the time to watch!
Thanks I have learned a lot....
Appreciate you tuning in!
Thanks for the code and video, I don't know if something has changed but I do not get the actionable part and clicking the notification just opens the companion app. I've been trying everything to get the actions but nothing.
Hey @SmartHomeMarkers, how would you go about extending this to support multiple devices for the notification?
Just go the action / call service again for the second device
You can also create notification groups in Home Assitant :)
Love this video, great work! I do have a question. How to add the option critical and how do you add destructive/true and volume level to the message text to json In HA automation I can add heses and it works perfect. I can not figure out how to in nodered though. Thank you
Can't remember on the fly! It should be part of the payload that you send over to node red! similar to how the data: section works in YAML
@@SmartHomeMakers Yea I ahve tried to put it everywhere and to avail. lol
Excellent video, and good explanation. Thank you for sharing. The demo helped me work out my own example. Do you have some examples of how you use this in your own setup?
Good idea for the next video!
Amigo lo habia logrado hace unas semanas atrás, y hoy no se puede. Es debido a una actualización? Yo uso android y logro llegar al punto en que me llega la notificación con los dos botones, pero al presionar cualquier botón, no hace nada. Intenté incluso copiando tu código y cambié las entitades y nada. A ti te funciona aún?
If I have multiple flows that use the "events-all" node, how do you differentiate from the different flows? I have a flow that sends me a notification and I have the yes and no buttons working. If i create another flow using the same process, with yes and no buttons, how does the events-all node know the difference? When I select yes or no, both flows activate for yes.
for instance, is the trash taken out "yes/no" is one flow
the other, did you clean the pool filter "yes/no"
If I click the yes, then both flows for yes get run.
Figured out that if I create a unique action name then after the events-all node I use a switch node and use those unique names it will work.
Thank you for the videos, they help ALOT!
Hi Gio! been enjoying all your smart home tutorials, especially on node red. This one has been very useful to point me in the right direction for actionable notifications for all kinds of ha events. One thing I noticed recently though in my v3.1.0 instance... I'm getting a "deprecated API warning" and subsequent error in the debug console. It appears to happen with all event types for the "event:all" node type (not just mobile_app_notification_actions). Do we need to enter something into the event data field or return done in the $outputData for the topic to prevent this?
It looks like the tutorial might be out of date, what does the message tell you? Does it point to some documentation? Thanks Eric for the info
Thanks would love more NR info! Question- Maybe I missed it but the way this is set up is to notify you if you are not home correct? Did you just leave that part out? Assuming I understand what you did there is no way in the current flow for that part to happen unless you either added something to the current flow or connect the flow with a HA automation some how. I am correct? The way the example is set up the only way to currently make it work is to click the inject node?
Hi Joseph! You are correct! The video demonstrates a template or logic that you can then expand into whatever you want!
@@SmartHomeMakers Thanks good to know I am not as dense as I thought I was! LOL.
Thanks a lot! This helpt me a lot. But "unfortunately" it didn't work for me the way you showed the json. I had to format it like this to make it work (Without the "{{}}" )
{
"message": message,
"title": title,
"data": {
"actions": [
{
"action": action,
"title": actionTitle
}
]
}
}
Thanks pupupuia for your contribution!
Thank you! I thought I was going crazy trying to get the variables to work with the curly brackets!
Great, I've been looking for something like this for a long time, can you share the automation code
Hi Yuval! The code is in the blog! thanks for watching!
You don't need to format json. All can be in one line. It's just easier to read when formatted.
Thanks Roland for the tip!
In addition to what Roland said, you could just type it out all in one line and then hit the "format json" button that is in the upper right corner and have the editor "pretty format" it for you.
Awesome ....thanks al ot.......but (there is always a but :) The options on my phone both says "null" (norwegian for zero?)
This is wiked ! I'm just wondering if this would work with Alex .. so for example if the light in a room goes under a certain lux value for Alexa to ask if you want to turn on lights for a certain brighter lux value ..
Interesting use case! I think I have seen something like this around on the web
Don’t think it would be trivial but worth a try
in case you cannot change the {{message}}: in the Data field switch from JASONata to JSON editor
Great, a lot of detailed explanations. But, I cannot get it to work. I got the connection with my iPhone for message and Hello World, but entering the code I received a message « object Object ». I must have error in the text. Could you export your NodeRed flow so that I can import it. Thanks
Hi Gaston! That code should be in the blog post!
here is the link: leonardosmarthomemakers.com/control-your-smart-home-with-actionable-notifications/
@@SmartHomeMakers Gre
Great, It works
Great idea
Thanks Daniel! Are you thinking of creating one ?
Is it possible to have notifications and actions on different devices?
Sure you can pick setup a choose block and decide based on some logic who to alert!
tired to import your code but it say is not a JSON array
Will this work for an Android phone as well
Yes, however icons are not supported, nor are images (for example sending a security cam still frame along with the message). Those are currently only supported on iOS.
Replying to my previous comment: However, I think you can still send icon info to the phone. It's just ignored and not shown....
Thanks Bryan for the reply!
❤
First!
Nice one Ben!