Node-RED Notification flow for Home Assistant Companion (IOS) users #940
Replies: 19 comments 28 replies
-
Nice, thanks for sharing. I think I'll refactor my notifications this weekend using this! |
Beta Was this translation helpful? Give feedback.
-
Any possible to modify this (helping me and others) to work with android HA app? |
Beta Was this translation helpful? Give feedback.
-
I wish we could get a MQTT events when a new clip is ready to view. That would simplify your second flow quite a bit. Something I really want. |
Beta Was this translation helpful? Give feedback.
-
Extremely useful thank you. Saved me hours writing one up myself and testing it. Just need to sort out the Android TV notifications and I’m set. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Please excuse my inexperience here.. trying to get up to speed on this flow. On the "Clip HTTP check" node I'm pretty sure I need to configure a tls service? Can you provide a little more info around this node please? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi, I've borrowed this flow for my own Home Assistant/Frigate/Node-Red set up and it's working great. Thanks for sharing! One thing I'm trying to add now is a check for whether my home alarm is armed or disarmed and only sending a notification when it's armed. I've tried to simply drop a 'current state' node into the flow just before the notification is sent at the end but it doesn't work. I assume the current state node is replacing the msg.payload with the alarm entity's state rather than passing the payload along un-modified. Can you help me implement such a check in another way? |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm new to node-RED and thought I'd give your flow a try. On importing I get an unknown item error and looking at the flow at the bottom it says unknown counter on one of the nodes? Where do I get or how do I fix this. |
Beta Was this translation helpful? Give feedback.
-
Many thanks to OP for this post, it was a huge help. Just posting the same response from the reddit thread: The companion app no longer requires defining categories, so I was having trouble with the above advanced node red flow working. I changed line 44 of the "Format Notification" node with the code below and it was fixed.
|
Beta Was this translation helpful? Give feedback.
-
I didn’t get it to work, I thought it might have been to do with frigate integration and error browsing clips but fixed that and made no difference to this flow, it just doesn’t connect!
|
Beta Was this translation helpful? Give feedback.
-
This is a great automation. I was positive I got the code to is from some site, but I cannot find it any longer. By any chance would it be possible to paste the node red code here? The other sources (reddit and ubuntu) require log ins and at the moment I have so many that I am losing track of what is where..Trying to limit the number sites I register to as it just gets unmanageable. |
Beta Was this translation helpful? Give feedback.
-
Hi @walthowd and @lomanneh61, Thanks! |
Beta Was this translation helpful? Give feedback.
-
Two parts:
|
Beta Was this translation helpful? Give feedback.
-
@walthowd Thank you, I just logged in to say that. Great tutorial, simple to set up and works like a charm. Let me know if I can buy you a beer ;-). |
Beta Was this translation helpful? Give feedback.
-
I know this is old, but I have been starting to use/modify for my own use. What exactly does the relative time field do? I see it get set, but I don't see it used anywhere. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi! What will this code look like now that the push will be deprecated from HA?
|
Beta Was this translation helpful? Give feedback.
-
I was wondering the same thing. |
Beta Was this translation helpful? Give feedback.
-
Hi @mek72 ,
You can find more details here |
Beta Was this translation helpful? Give feedback.
-
What is the purpose of the 2 paths? Does the mqtt path get you an alert faster but without the clip? |
Beta Was this translation helpful? Give feedback.
-
sorry if the question is very silly, but can we limit the (iOS) notification to person only? I'm not very good with node red, tried to look through it but didn't find a way to do it (and also can we limited to a specific camera or have different time notification for specific camera , e.g garage, only at night time?) |
Beta Was this translation helpful? Give feedback.
-
Node-RED notification flow for IOS Users - Send notification when an object is detected, 3D/force touch into notification for live view of camera, use actionable notification to send the clip (intelligently waits for clip to be ready)
Example:
https://imgur.com/YB6hCT7
NodeRED Flow:
![Screenshot from 2021-03-26 12-19-51](https://user-images.githubusercontent.com/864569/112670945-8facb680-8e2f-11eb-8784-bfc888d05a95.png)
Requirements:
Installation:
Copy the flow to NodeRED (Hamburger Menu => Import):
https://paste.ubuntu.com/p/XD62VwNj7s/
Edit the first "Format notification" function node and add your external URL. Optionally, edit case statement to customize your camera to location mapping. (For example, I customize the camera.doorbell location to be "front door")
Add following to your home assistant configuration for actionable notifications.
Restart HA and sync push categories to your phone (HA App => App Configuration => Notifications => Categories)
That's it, you're all done!
For my personal setup, I also add in history checking of my external doors and current state of doors to limit alerts. For example, don't notify if someone is at the front door if the front door opened in the last five minutes. I also use a input_boolean.person_notification to control if alerts are enabled, and add a actionable notifcation above called "SNOOZEPERSON" that temporarily disables notifications for four hours (useful when the kids are playing in the yard).
I also push all Frigate clips to my Roku TV (if it's idle) as well and announce alerts on Google Homes / Amazon Dots.
That full flow, for advanced users, is here:
https://paste.ubuntu.com/p/bPjDwDC9ms/
Beta Was this translation helpful? Give feedback.
All reactions