Node-RED Pt.3: Trigger and Events: All nodes. Motion Lighting and Actionable Notifications.
HTML-код
- Опубликовано: 6 июл 2024
- Actionable Notification Flow: github.com/thehookup/Node-RED...
Actionable Notifcation Response Flow: github.com/thehookup/Node-RED...
Motion Triggered Lighting: github.com/thehookup/Node-RED...
Light Scheduler Node: www.npmjs.com/package/node-re...
Hold Node: flows.nodered.org/node/node-r...
Support my channel:
Patreon: / thehookup
Tesla Refferal Code: www.tesla.com/referral/robert...
Visit my website: www.TheSmartHomeHookUp.com
Follow me on Twitter: @TheHookUp1
Music by www.BenSound.com Наука
Rob, just wanted to say thank you. Your trigger method of using motion detection was just what I was looking for ! Perfectly themed content! Keep it up :)
Your videos are excellent practical primers for Node Red. Thanks very much.
Rob, you are freak**g amazing. You have no idea how much your video helped me with my Html5 actionable notification on my android phone.
Thank you thank you thank you
Love your videos about node red. I would like to see more node red videos and if possible Arduino for smart home automation. 👍 For all your work
Thank you Rob. this one is much easier to undertand and try out. I have been struggling to figure out how to sense motion from BRUH's multisensor PIR. It gives out "standby" and "detected" and i did not know what else to try. thanks for covering that and events all that shows all log like activity.
Awesome video Rob, I never played with the trigger node yet, but it looks very interesting, this is the beauty of node red, there a million ways to do anything..
Yep, and my way isn't always the best way, it's just a way that I came up with that works. I learn that every day when I'm teaching computer science classes and my kids figure out different ways of solving a problem that I never thought of.
I know I’m late to this vid, but ur a legend.
This goldddd. Thank you for sharing
Rob, great video, thank you. Is their a way in Node Red to do conditions as in home Assistant? For example trigger an event only of other conditions are met?
Awesome video Rob. I have a couple of PIR's connected to PI Zeros and your handling of the off timer looks much easier then the raw js I wrote. I will be having a look tonight.
Thanks again.
I have some custom JS delays in my classroom timer flow, it's still the only way to use the payload to pass a custom time length for the delay.
so many polo shirts Rob!
Thanks for the videos Rob they are very helpful. You will probably get to it sometime but im looking for how I can create a flow or sequence (which ever one would be the right one) that will only run so many minutes prior to sunset and so many minutes after sunrise. My guess is to use the sunrise node however it looks like you can only get it to start with sunrise and end with sunset unless I would need to use another node in conjunction with the sunrise node to make it work correctly.
I've been using callback functions on the html5 notification on my android phone. This means I can action the message from my phone or even my watch. You can also pin the home assistant page to your Android home screen as a progressive web app. Let me know if you want to know more. I'm currently working on a video of setting up and integrating forked-daapd for whole home audio controlled from home assistant.
Never used a trigger node, but watching this, looks like I'll have to start using it after I get motion/vibration/door sensors
PS to anyone watching nowadays, there's a Home Assistant companion app for Android too
Looking for video you did on medicine reminder that you mentioned in this video with no luck
Home assistant now has a dedicated notification service built in. You can call it as a service in am automation or script.
It also works with Android flawlessly
Hey Rob have you done a video regarding templates and Node-RED
Wanting for Season 2 ? Thanks Rob !
Hi Rob, is there any way to pass configurable information back to HA when an actionable notification button is pressed on the iphone?
I'm trying to create a Node Red automation for the following scenario: I have several outdoor lights controlled by MQTT switches. Sometimes, one or more of these lights gets accidentally turned on during daylight hours (mainly through accidental flipping of the physical switch by a family member). I want to create a Node Red automation for when one of these outdoor lights is turned on during the day, I get an actionable notification on my iphone with a single button to turn that light off. I know I can do this by creating one "push" category with a single action identifier for each light. But I was wondering whether I can do this with a single "push" category with one action identifier for all the outdoor lights. The problem is that when an action button is pressed on the iphone, the only useful information HA receives (for user programming purpose) is the action identifier, and as far as I know, that identifier has to be a constant defined in the "IOS" section of the configuration.yaml file. Do you know of a way to pass information in additional to the action identifier back to HA when the action button is pressed?
Great video. Thanks. How would you stop messages from a PIR during the day.
Use the orange Time Range node. Enter your latitude and longitude, put a start time of "sunset" and an end time of "sunrise". You can offset the start and end times with times, such as "00:15" for 15 minutes after sunset, and "-00:15" for 15 minutes before sunrise. The offsets are specified in minutes. It says you can just say "60" or "-60" for an hour after sunset and an hour before sunrise.
Not sure if anyone commented this but I find that using the context variables and a function node is best when you want to truly trigger a flow based on how long something has been on or off for since that trigger node you have is acting more like a delay node. What I think is best is to use a function node and use javascript to convert the timestamp that home assistant provides to milliseconds then min and compare after let’s say 5min if the state is On for the last 5 min. This way it’s not like someone kept going in and out of the room during the countdown.
Great video. I used the “delay” node for actions that needed to be done later, but the problem with that is there is no reset possibility. So I’m going to change some things here. Thanks for the info.
Yep, when I found the trigger node I basically replaced all of my delay nodes with it. Cheers.
If you use a change node before a delay node and move msg.payload to msg.reset it puts the timer into the initial state (not counting down). I use this to reset the timer on my motion lights. Each time the motion sensor sees motion the timer is reset to the intial state.
Great video - is there any way of getting a nice UI that would allow you to amend the light
Scheduler as it would be nice to be able for non programers to have a calendar type interface? Maybe a video topic? - thanks for your help
Unfortunately there's no way to modify the schedules via command line, so it won't work.
Can you please create a video tutorial on a virtual device simulator and connect it to a cloud, ibm cloud would be ideal and to the watson iot
Hello and thank you very much for all of your hard work and help!. Can you please help with FireTV/AndroidTV notifications via Node-Red for Home Assistant.
What kind of notifications does it send?
very cool. I capture the 'click' from xiaomi buttons using the events:all node because their entity doesn't produce a state change on click. same for the Harmony Home Control - I have it control 4 obscurely named input_booleans I expose via emulated hue, then pipe those into node red - another node-red automation ensures the input_booleans always have the same state as the lights their controlling.
Pushbullet sucks. The notifications are often with a huge delay. there is an android app called Join. it's amazing. you can do so much with it. one of the things being sending push notifications. to any android device or pc, you might have. and even make the recipient device react to the notification in various different ways. the join app has a Home assistant component. making it a breeze to setup. Oh yeah, it also works with node Red!
I have made an automation rule. if the motion sensor at the front door triggers it will send a push notification to all of my devices with a button I can press to watch the live video feed from the doorbell camera. if I haven't reacted to the notification for 30 sec. the button will disappear. on all the devices. leaving only the notification to let me know that is has triggered.
Hi Rob. You might consider updating this video as HA is about to remove the push and categories functionality in the next realease, 2020.6? As far as I can tell there are no videos that show how to use NR with the new "standard" for actionable notifications.
It's on my short list.
hello,
I am looking for something similar to this set up . I am using a PIR with my android app "smart life" to trigger my light on and off . I don't have the option to "NOT" turn light off if PIR is detecting motion. Then turn off after a set time has gone by when no motion is being detected. I only have home automation running on my windows 10 computer as a server is this still possible. I read you can link IFTTT and web hook but I have yet to figure this out?
Nice Rob, could you maybe make a video on how to setup pushbullet for the notification ;o)
I second the request for a pushbullet video!
I'd really recommend looking at html5 notifications. They with natively on Android, as well as on Chrome browser on other platforms.
For the lighting control...
How do you make it possible to turn on the light via a switch/input to HA, that is not overruled by the ended motion? So to keep the light on if i have decided manually?
Personally I'd handle that with an input boolean in HA, call it "Persistent Light" or something like that, when toggled the normal trigger that would turn off the light doesn't fire.
@@TheHookUp thanks for the response, I will give it a try!
Trying to remember how I previously set up HA/node red so that I had a switch in the HA dashboard to override a node-red action (i.e. motion sensor) aka a virtual override switch.... new to node red can anyone point me in the right direction?
Is using rpi zero for home assistant or node red a good idea ?
I wouldn't recommend it. The zero is quite slow for that task.
You could just use the wait until node too then if motion on again cancels the wait so you only need an event node a wait until node and a node for on and one for off way easier.
Hi, did you forget to hyperlink the videos on 0:25 ?
They show up for me, I'm not sure cards work on mobile... could that be the issue?
4:40: Have you tried to replace the usage of the iPhone app with a telegram bot? You can easily display custom keybords such as "remind me in 30 min", "dismiss", and interact with the bot. This makes you smartphone independent, since telegram is available on all mayor platorms and even has a web interface as well.
I haven’t tried that. Home assistant is just so powerful as far as actionable notifications, and is available on iOS and Android.
@@TheHookUp Hi, actionable notifications is stil beta on Android and far from perfect :(
The home assistant IOS app is nothing compared to what you can do with the android app called join, Node Red, Home assistant,
Update on Android Notifications (4:40) better late than never, we now get the same actionable notifications through the application companion.home-assistant.io/docs/notifications/notifications-basic/
fyi the HA app does not work with HA with a user accounts...
I'm confident that it will be updated once user accounts are more hashed out. For now you can use legacy authentication.
This confused me a great deal when I first downloaded the app until I figured put to set the api_password in configuration.yaml
Strange not existing a "Home Assistant Companion" equivalent for Android, besides the usual “Add to Home screen” from a browser!
The companion app was made by a community which knew how to code for iOS but didn't know how to code for Android
I can't make it work with Actionable Notifications. The Notification shows up on the iPhone, but nothing happens after pressing the action. Also, no ios.notification_action_fired is ever fired.
Details here: community.home-assistant.io/t/actionable-notifications-are-not-working/93138
Do you have any iOS actionable notifications working? Like, can you just send the payload from the call services section in HA and it works?
@@TheHookUp Yes, I can send the payload to the call service and a notification appears. My problem is that when I press the action, then nothing happens and I can see that no ios.notification_action_fired is being fired
how did you manage node-red to connect to home assistant, since authentication with legacy API pswd is not recommended anymore? www.home-assistant.io/docs/authentication/
The newest add-on by Franck takes care of all that and uses your user is and pw for HA
@@TheHookUp Add-on connection to HA is still not warranted. I tried several years ago. And again tried nowadays still glitchy behind the curtain. I strongly suggest not using any HA add-on if it is available to deploy on separate machine/vm/container.