Node-RED Pt.3: Trigger and Events: All nodes. Motion Lighting and Actionable Notifications.

Поділитися
Вставка

КОМЕНТАРІ • 67

  • @thebaldfox
    @thebaldfox 4 роки тому +9

    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 :)

  • @1kuhny
    @1kuhny 3 роки тому +2

    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

  • @kraddoomsters
    @kraddoomsters 3 роки тому +2

    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

  • @markmacherey4744
    @markmacherey4744 5 років тому

    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..

    • @TheHookUp
      @TheHookUp  5 років тому +1

      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.

  • @JFloridaTech
    @JFloridaTech Рік тому +1

    I know I’m late to this vid, but ur a legend.

  • @aaliankhan4998
    @aaliankhan4998 5 років тому +4

    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

  • @starshipduck
    @starshipduck 4 роки тому

    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.

  • @wardope
    @wardope 5 років тому +1

    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.

  • @VAKUL-DC
    @VAKUL-DC 5 років тому +1

    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.

  • @tlamont941
    @tlamont941 5 років тому

    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.

    • @TheHookUp
      @TheHookUp  5 років тому

      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.

  • @pa5mf
    @pa5mf 5 років тому +1

    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.

    • @TheHookUp
      @TheHookUp  5 років тому +2

      Yep, when I found the trigger node I basically replaced all of my delay nodes with it. Cheers.

    • @kzimm200
      @kzimm200 5 років тому +1

      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.

  • @James02876
    @James02876 5 років тому +6

    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.

  • @kcrvideo
    @kcrvideo 4 роки тому

    Your videos are excellent practical primers for Node Red. Thanks very much.

  • @homeassistant1649
    @homeassistant1649 5 років тому

    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

  • @jerryhalasz
    @jerryhalasz 5 років тому +3

    so many polo shirts Rob!

  • @dannytech4709
    @dannytech4709 2 роки тому

    Wanting for Season 2 ? Thanks Rob !

  • @twitchyfingerss
    @twitchyfingerss 5 років тому

    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.

  • @blairpoll287
    @blairpoll287 4 роки тому

    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.

  • @madmaiike
    @madmaiike 4 роки тому +1

    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/

  • @morrydavis
    @morrydavis 4 роки тому +2

    Looking for video you did on medicine reminder that you mentioned in this video with no luck

  • @philmarquette8744
    @philmarquette8744 5 років тому

    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.

  • @DatNguyen-dl9ec
    @DatNguyen-dl9ec 5 років тому

    This goldddd. Thank you for sharing

  • @hvddrift
    @hvddrift 5 років тому +1

    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?

  • @andjones132
    @andjones132 2 роки тому

    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.

    • @TheHookUp
      @TheHookUp  2 роки тому

      It's on my short list.

  • @PrivaterUser
    @PrivaterUser 4 роки тому

    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.

    • @TheHookUp
      @TheHookUp  4 роки тому

      I haven’t tried that. Home assistant is just so powerful as far as actionable notifications, and is available on iOS and Android.

    • @PrivaterUser
      @PrivaterUser 4 роки тому

      @@TheHookUp Hi, actionable notifications is stil beta on Android and far from perfect :(

  • @dartfrogdk
    @dartfrogdk 5 років тому +1

    Nice Rob, could you maybe make a video on how to setup pushbullet for the notification ;o)

    • @donniefontaine8018
      @donniefontaine8018 5 років тому

      I second the request for a pushbullet video!

    • @James02876
      @James02876 5 років тому

      I'd really recommend looking at html5 notifications. They with natively on Android, as well as on Chrome browser on other platforms.

  • @WickedIllusion1
    @WickedIllusion1 3 роки тому

    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?

  • @ptmoy1
    @ptmoy1 5 років тому

    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?

  • @almonteco3739
    @almonteco3739 5 років тому

    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.

    • @TheHookUp
      @TheHookUp  5 років тому

      What kind of notifications does it send?

  • @amar2042
    @amar2042 4 роки тому

    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

  • @powermate
    @powermate 5 років тому

    Great video. Thanks. How would you stop messages from a PIR during the day.

    • @astrostevehobby5096
      @astrostevehobby5096 3 роки тому

      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.

  • @shannonbreaux8442
    @shannonbreaux8442 4 роки тому

    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?

  • @epichome1568
    @epichome1568 5 років тому

    The home assistant IOS app is nothing compared to what you can do with the android app called join, Node Red, Home assistant,

  • @morrydavis
    @morrydavis 4 роки тому

    Hey Rob have you done a video regarding templates and Node-RED

  • @pjbear1813
    @pjbear1813 5 років тому

    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

    • @TheHookUp
      @TheHookUp  5 років тому +1

      Unfortunately there's no way to modify the schedules via command line, so it won't work.

  • @lytter2
    @lytter2 5 років тому

    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?

    • @TheHookUp
      @TheHookUp  5 років тому +1

      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.

    • @lytter2
      @lytter2 5 років тому

      @@TheHookUp thanks for the response, I will give it a try!

  • @jasperbojsen
    @jasperbojsen 5 років тому

    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

    • @TheHookUp
      @TheHookUp  5 років тому

      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?

    • @jasperbojsen
      @jasperbojsen 5 років тому

      @@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

  • @hsmptg
    @hsmptg 5 років тому +1

    Strange not existing a "Home Assistant Companion" equivalent for Android, besides the usual “Add to Home screen” from a browser!

    • @aaliankhan4998
      @aaliankhan4998 5 років тому

      The companion app was made by a community which knew how to code for iOS but didn't know how to code for Android

  • @RapaciousSloth
    @RapaciousSloth 5 років тому

    Hi, did you forget to hyperlink the videos on 0:25 ?

    • @TheHookUp
      @TheHookUp  5 років тому +1

      They show up for me, I'm not sure cards work on mobile... could that be the issue?

  • @chakree100
    @chakree100 5 років тому

    Is using rpi zero for home assistant or node red a good idea ?

    • @TheHookUp
      @TheHookUp  5 років тому

      I wouldn't recommend it. The zero is quite slow for that task.

  • @isojed
    @isojed 5 років тому

    fyi the HA app does not work with HA with a user accounts...

    • @TheHookUp
      @TheHookUp  5 років тому

      I'm confident that it will be updated once user accounts are more hashed out. For now you can use legacy authentication.

    • @johnraahauge4552
      @johnraahauge4552 5 років тому

      This confused me a great deal when I first downloaded the app until I figured put to set the api_password in configuration.yaml

  • @novitibo
    @novitibo 5 років тому

    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/

    • @TheHookUp
      @TheHookUp  5 років тому

      The newest add-on by Franck takes care of all that and uses your user is and pw for HA

    • @irtibatkisileri222
      @irtibatkisileri222 Рік тому

      @@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.