It's taken me the last 24 hours (more or less) to wrap my head around the settings for this but now I have it operating with two ping checks, my security lighting activates 5 minutes after we both leave the house. Thanks Rob for the great videos you're putting out on Node Red. I'm a rank amateur with a 2 week old HASS/Node Red setup and so far it's proving to be a fantastic tool for home automation.
I first got dragged down the rabbit hole that is home automation and Home Assistant when I referenced your video on automating a Roomba to build a robotic butler a year ago.... this was the second video of yours I watched and I find myself coming back to it time and time again to find the solutions to all the home automation projects I've done since
I had to laugh at one point in this excellent video - I remembered a line in the original Ghostbuster - where Bill Murray says "Ray, pretend, for a moment, I don't know anything about metallurgy, engineering, or physics - and just tell me what the hell is going on". There is a LOT of info here that would be so much easier to understand if one had a previous background of javascript and json and the like - something that in my IT career I never felt the need to get into - it was challenging enough just to try to stay current on ever changing world of routing and switching and security and the like. Now that I'm retired I want to get a better understanding of those concepts so this video was a great motivation to do some reading. It a 17 minute video but I spent several hours going thru it - making notes and creating bread crumbs to follow later. Great job you did - I still have lots of questions about exactly what's happening but much further along along now than I was...
Rob, Well done. You have the rare ability to translate your subject comprehension into properly organized information for the targeted audience in a perfect time slice. Poof, knowledge transferred.
I must say, great video. I’m an avid user of node-red and learned new techniques. As a side note, took me a while to find your channel. I was watching Dr.Zzs video and I thought the channel would be in the description and it wasn’t, so I thought I’d search “the hook up” on RUclips search and couldn’t find the channel either, I get music videos and movie scenes, after pages of turning and refining the search found the channel. Great videos. Keep ‘em coming.
you young guys remind me back in the 70's when I was doing same stuff, electronics,, Commodore vic 20 times, pc's in the early 80's came out, X10 stuff sort of same but not as custom as home assistance of today. I do alot with the Arduino for couple yrs, us old guys Trying to keep up with you. I see notice most you smart guys don't put Direct link to Github for what you are video about, as there are many others, scripts.. you should in your links Direct github link,, so us older guys, don't get too lost in the beginning,, thanks for all you do for others.....
Great video. I’ve been using Node-Red with Home Assistant since I started six months ago. Automations are much easier. It’s great to see that I’m not alone in doing this. You’ve even given me a few new ideas for my current automations. Thank you.
Love the way you explain things. Nice and slow for slow people like me! Can't wait to get some time to try out node red because I come from tasker which is what I'm used to. Hassio and the coding part has been frustrating most of the times!
Suggestions for future flows: A simple common one I see people doing are motion triggers with timers to turn out a light once the motion is gone after a bit. Then possibly another with a state change firing off a reminder about something say a door left open, then every 5 minutes it reminds you with a notification or TTS message, but if the door is closed, stop the 5 minute timer and fire off a thank you notification of some sort.
To add to that some sort of loop so that if the motion gets triggered again (ie you're still in the room) the timer resets and the light stays on for another X minutes. Wifey is not happy if the lights go off when she's still in the room! Lol
Yep, that's what my first one was basically. You can find it at the link here, I thought it would be a good one to include though as I'm sure many folks want it. Scroll down to lighting two diyfuturism.com/index.php/2017/12/14/basic-node-red-flows-for-automating-lighting-with-home-assistant/#more-191
Straight to the important stuff on how to set and really create useful node-red automations in home assistant. Great explanation of the basics and really understandable flows. Thanks!!
Thanks. That helped. The WS version of the pallet is has a different event state detector which includes a condition, then two outputs, one if true, one if false. That IMO makes it much easier to understand visually. But, I was overthinking how to do a logical AND/OR, and this helped.
Fantastic video. I'm starting to use Node Red for all my automations and it's so much easier than YAML. Still struggling with some of the concepts so your video is is a huge help. Thanks!
I'm just getting started with HassIo and Node-RED, but seeing these examples makes me really optimistic. I have experience in C#, VBS, and Powershell, so all I'm seeing is a bunch of If-This-Then-That...but JSON is a whole 'nother beast to me. Seeing what you have going on though, I have so, so many plans and I know I'll get the WAF (Wife Approval Factor) once I finally start nailing it all down. Much appreciated and thanks for the video!
Ah yes, the ever important WAF. I need to get this implemented so that my WAF is above 8.5. Right now I'm teetering at a 6 which is almost at the "sleep in the other room" level!
Like Kerbo, I wanted to get into Node-RED and this is a great step. I have watched others and have done some reading, but I hadn't found one that starts in the beginning. Great job! By the way, I found this by way of watching DrZzz's latest....
Thanks! Really great video! I do not understand very much about it (no programming skills), but I did not have that from Yaml at the beginning. Because of your video, it is becoming more and more clear to me. Thank you!!
I am new-ish to HA and new to Node-red but have managed to set up a flow for the kitchen lights by following a tutorial I found on RUclips. watching your video I found your occupancy flow for you, your wife and guests to be really interesting and something I would like to duplicate. do you have or could you make a video on how to set this up from scratch? My wife and I both have HA app on our android phones with device_tracker entities within HA. your videos are great and really helpful so thankyou for all you do!
It's a nice introduction to the most important nodes in node-red. There is better way to store entities state. You need just to use the scene.create service!
Awsome Videos - im a fan! Your videos gave me the confidence to belly flop in, and the waters nice! it was a magical moment when the first ios notification popped up on my phone with a click of a button. Its slowly taking over my home but am loving every moment and learning so much! thanks for the videos!
Subscribed. Great video! I really liked the pacing of this video. I'm a experienced developer, but new to home automation and wanting to learn about various projects, apps, and technologies. Many of the other videos take too long to get to the point, or are too slow and repetitive to make them worthwhile. While this video could be a bit fast for some, it is a video that can be paused, rewind, and re-watched as many times as necessary.
Thanks! That's actually the niche I was trying to fill, something that I beginner could watch a few times and get it or something an experienced computer user could pick up quickly without getting bored.
I now have node red working and have been experimenting with my first flows. I started off with a media / NAS server running unRAID (uses docker) and a smartthings hub I added for z-wave control. I setup the smartthings app/bridge to an MQTT broker running on my server. I also setup nodeRED and HomeAssistant through docker and connected them all together. I have a question though, is there any advantage to using the HomeAssistant palette in NodeRED compared to using MQTT nodes directly? (both will work)
As an oldie ,beginner and I guess a dummie, I am having difficulty making progress with Automations with HA. I would really appreciate if you could one day make a video assuming a lesser degree of understanding for beginners such as myself. As an example I am trying to understand how I can set up tracking or even presence detection using IOS (ipad). HA shows my position at home regardless whether I have my ipad switched on or off. My ipad is shown as an entity which is used to determine my location. I feel if I could grasp a concept such as that, I could start to make some progress. Perhaps other beginners are having such difficulties. You do a great job with your videos.
This was a great Node Red intro although you didnt mean it to be that way. I googled alot of intro Node Red videos and I saw some pretty lame ones. I think the title of your video, although true, could be limiting your audience. I wish I had seen your video because I have about 1hr of time I'll never get back of watching other vids . Kudos! and thanks for sharing.
Another great video. glad to see you "team up" with DrZzs. Can hardly wait until the next video. For days I have tried to "extract" values out of the messages that Tasmoda sends out using node-red. no Joy. I hope you will include that. Seems like it should be simple. If you have time to give me a clue, I would really appreciate it. Thanks
You make great videos. thank you so much..one small feedback though, you demonstrate as you speak very quickly and this all happens(i mean your product demonstration) before we understand what you say. My guess is you do this to keep the length of the video in control. Any how, thanks for the videos..
❓6:28 But how to turn off occupied ONLY if no one is home for 30 minutes? So in those 30 minutes it should repeatedly check if someone is home (if all are gone during those 30 minutes it turns off).
Hi Robb, great video, Im new to NR and these videos are helping. Can I ask why the function on and off nodes after the light schedule nodes, wouldn't a switch node work the same?
Hi Rob keep up the great job you’re doing for the community. I need this help. I have my living lights controlled by a PIR but during movie nights I’m having difficulties to disable the PIR or the flow. Is there any work around or solution for this? Thanks
Very helpful, but this video is now going on 4 years old (how many is that in HA years?). Which Alexa integration was it using (or are your node-red nodes enough - that'd be a miracle). And, how do I get rid of the predecessor nodes e.g. node-red-contrib-alexa-local, which HA says are "in use"? Wish we had HA when I was in high school...
Great job, great explanations!!! Very analytical approach !! Thank you very much!! I would like to watch further the cloud mqtt connected with home assistant node red and the aws...until now we have see videos about own tracks, what if we can have connection with the cloud mqtt and aws for machine learning for cognitive buildings!! Just an idea!
Hi, Just wanted to say loving this video series you are doing. I've switched my current automations over to Node-Red; and am even trying new things as it seems easier for the most part to visualize the flow. Would it be possible to someday cover how to get state information from HA; and merging of messages from two sources? I have an automation that tracks my washing machine and I would like to add how long each wash cycle takes to the message but have no idea how to get the information from HA and merge two payload messages together. Thanks! Looking forward to seeing what videos you release over the summer!
Great videos, this seemed the most appropriate place to ask a question. HA and Node-Red are both fantastic, I use them in my setup. BUT.........with lots of various IoT devices, do you staticly assign th IPs to your devices or do you use DHCP? if the latter, then how do you handle possible changes to a device IP in HA? Thanks in advance
Any chance on getting the config.yaml file, I'm having trouble with getting the input booleans set up. Btw great videos and a lot of help. I'm looking forward to trying the roomba!!
Question; at 15:44 in the overview you have the storing of the light state and the delay of 1 sec. Couldn't you have done it in such a way that it goes instead of this: - Away (if state) > Other Ben Light (get state) > Other Ben Light Flow (store variable) - after 1 sec, turn everything off To this: - Away (if state) > Other Ben Light (get state) > Other Ben Light Flow (store variable) > Turn off
Yes, you can do that now. The current state node used to be a bit buggy so I did it that way to avoid issues. The current implementation is much easier to use and will work as you described.
Fantastic video, well put together!!! Nobody can answer my question. I put together a FLOW (Temp sens with high / low slider with email alert). It outputs to a URL. I add the URL to a Lovelace card unless there is another way. When the system reboots I have to re authenticate the URL again or the card does not work, any suggestions?
Hi! Many thanks for your useful videos. Please would you explain how you set up/configured your input booleans? E.g. brad home, lindsey home, home occupied?
What do you mean by how I configured them? To add them in home assistant you just add them to your configuration.yaml file like this: input_boolean: notify_exterior: name: Exterior Notifications alarm_exterior: name: Exterior Alarm
Great video! Two questions though: 1. To clarify, this is all done with the NodeRed Home Assistant component and not by running NodeRed on a device, correct? I just want to make sure that I only have to have Home Assistant installed on my Raspberry Pi and not both. 2. What brand of door/window sensors & what brand of motion cameras are you using that you've integrated into Home Assistant? I'm currently looking into buying Wyze Motion Sensor Cams for my cameras and Tuya/Smart Life door/window sensors, both of which don't appear to be fully integrate-able into the Home Assistant environment from the information & discussions I've found.
I'm using the node red add-on for hassio. It installs node red on the same raspberry pi as HA. I use diy mqtt sensors (see my other videos) and a rtsp NVR. But other people have had plenty of success using rf sensors and a sonoff rf bridge (dr zzs) has a great video on that.
I absolutely agree that overuse of Function nodes defeats the whole purpose of Node-RED. In fact personally I'd rather write up custom reusable nodes than overuse Function nodes.
I have started working with this again in Nodered. I can get the home to recognize when my wife or myself comes home and turn on some automations. I have a problem when one of us leaves the house it does not recognize that the other person is still in the house. I am using a current state mode between the state node and the call service node. I have tried to set it up like you explained in the video. But with the changes to Nodered some for the attributes you were discussing I do not see in Nodered. Any suggestions?
Any plans to release the configuration of the presence detection input boolean? I’d like to reference it to create my own for some HA project I’m doing that require simple presence detection
Hey , Great video ... started to look into Node-red recently and thanks for people like you it gets easier to jump onto it. I have an automation that i would like to move to node red but there is some feature i don't know how to reproduce , here is an example of what i would like to tranfer any help would be appreciated thanks - alias: 'laundry: washing begins' trigger: platform: numeric_state entity_id: sensor.zooz_zen15_power_switch_current above: 0.09 for: # minutes: 2 seconds: 30 condition: condition: state entity_id: input_boolean.washing_state state: 'off' action: - service: input_boolean.turn_on entity_id: input_boolean.washing_state - alias: 'laundry: washing ends' trigger: platform: numeric_state entity_id: sensor.zooz_zen15_power_switch_current below: 0.15 for: minutes: 5 # seconds: 55 condition: condition: state entity_id: input_boolean.washing_state state: 'on' action: - service: input_boolean.turn_off entity_id: input_boolean.washing_state - service: tts.google_say entity_id: media_player.maison data: message: 'le lavage est terminé' language: 'fr'
Never had any myself, but I have heard from others this can be caused by using too many debug nodes. Try deleting the connections to your debug nodes and see if that helps.
I’ve had some slow downs when I’ve had too many flows going on, and using too many dashboard U/I’s. I’ve had to disable the flows I had kept for the dashboard U/I legacy setup. That helped speed things up in my case. I’ve been using a raspberry pi. I’m about to move my setup to a nuc and see if this improves.
great video thanks for the explanation, your videos are great and straight to the point. Subscribed. My only issue is that there appears to be updates to node red since you made this video, but everything you have is still relevant. I am confused on the "call service" node, did you already have an entity of type input_boolean called home? or is it created in node red? if its not created in node red how do you create new entities in HA?
Great tutorials, thanks. I have two MQTT brokers on my network, one for Home Assistant and one to manage my solar system. Can you give some advise on how to display some of the solar info from that MQTT on the LoveLace panel on my Home Assistant?
You can set up multiple brokers in node red. If you want you can just pipe 100% of the data from your solar system into your HA MQTT in node red, but I'm not sure I'd recommend that. Instead, I'd set up an MQTT in node with the specific topic you are looking to get data from on your solar MQTT and then pipe it into an MQTT out topic for your HA, then set up a mqtt sensor in HA to show the data from that topic.
Awesome video. Out of curiosity, is there a way to use your amazon link to get to the US site and then switch to my local country (canada) and then make a purchase and you still get that little comission ?
I have 3 of these: amzn.to/2vyvofG one in the back yard, and one on each front corner of the house. NodeMCUs that are in charge of other stuff handle them as a secondary task. My shade nodeMCU runs the rear alarm, pool nodeMCU runs the front side alarm, and holiday house lights nodeMCU runs the other front side alarm.
Great video. A little feedback though: as a complete node-red noob, I had no idea where it was placed. Is it an add-on to home assistant? Does it run on a computer? Is it scripts that you download to your sensors, like Arduino code? It was hard to follow what you were doing when I couldn't quite place the components in my head :) But i read a bit online and watched the video again, now it makes sense!
I love your videos and watch (and like) them often. I have a working nod-red installation that I want to put Home Assistant on but the only instructions I can find is using the Hass.io image, which I assume overwrites the SD card. Is there an install guide anywhere that describes how to install HA on an existing RasPi? Or can it even be done? Thanks and keep up the great work!
Hass.io is written to run on it's own OS (hassOS), so you won't be able to add it to a raspi. You could install it on a linux machine using a virtual machine, but there's no way to put it on an existing Raspi. There's a great node-red addon for hassio though if you decide to go that way.
Ok, thank you for the reply. So if I cannot apply Hass.io to a raspberry pi can I at least add node red to Hass.io.io? Or do I just need to use two separate pi’s? I have an extra one but was hoping to keep things simple.
Thanks, great vid! Would love to see a watchdog implementation through node red. I have Sonoffs on all of the networking equipment. I’ve got one I’m working on but I’m sure it could use some finessing.
Excellent video, as usual. In the video, you mention that your window sensor will send either, OPEN, CLOSED, or the battery voltage. Do you have a modified window sensor schematic that sends a new message when you actually close the window? I do not see how in the code the CLOSED is sent. What am I missing. Thanks
Closed is the LWT (last will and testament) message, meaning that's the message that will be published when the sensor goes offline from loss of power.
Robert Tait thanks for that. I believe that the LWT will get set when the esp01 goes into deepsleep(0) and after the keep alive timeout of 10 seconds, which is what I saw in testing. So essentially an erroneous closed message. Am I missing something?
Ah, yeah, that's the intended behavior. I basically designed them as burglar alarms. They send the one "open" message to trigger alarms, and then revert to "closed" until the next time they are open. The design could be modified to do open and closed, but it would take a few more components and I was trying to keep it as simple as possible. Edit: just noticed I replied from the wrong youtube account before, whoops.
so basically you use the reed switch to trigger the initial power on (by putting the magnet in the path of the opening/closing window), and then you set GPIO2 high in the setup loop (which allows the current to flow through the transistor and keep the power on), then you have it send your open or closed message and then set GPIO2 low to power the chip down. You can use SPIFFS to store the last state of the window so you can send the correct "open" or "closed" message. imgur.com/k9Nn5RA
Id really like to figure out how to get HomeAssistant working for my home, but you are losing me with the language. Do you have any suggestions on what I should start learning(in a relatively quick fashion) to start to understand what you are talking about? I appreciate any help!
Hello Rob, Liking the video. I am a bit of an automation noob, find yaml impossible to get syntax right, so thought I'd try a node red option. I havent got past the input boolean set up. I have tried to make it for life 360 but no joy. Can you please do a video about input boolean for wi-fi login, or a tracker app like life360. Keep up the good work.
@3:38 - '...when our phones connect or disconnect from google wifi.' How are you achieving this? I cannot see a way for this to happen in 2020 (I realize this video is a couple of years old) but I am puzzled how to do this, as I'm trying to do something similar. The only alternative I can think of is geofencing with the phones. Thoughts?
So on the last video I asked why to use Node-RED when you can do all the things in Home Assistant itself. Now I read a bit into Node-RED and I would like to know, why use Home Assistant at all? Couldn’t you control all of your devices with one of the hundreds addons, through MQTT and use Node-RED Dashboard for browser control, etc.?
Copy/Paste from a similar question I answered on reddit: The quick answer is that Home Assistant (HA) is a superior component platform. It's unbelievably easy to add devices to HA and there are hundreds of hobbiests working tirelessly to integrate popular hardware as it becomes available. HA also has an iOS app with built in (albeit spotty) device tracking, and actionable notifications. AFAIK node red dashboard only runs in a browser. Node-RED is a superior automation platform, writing automations in yaml sucks, so combining the compatibility of HA with the automation power of node-red really gives the best possible end result.
I would also like to add that the dashboard interface has some issues, especially with sliders. Using Home Assistant has a much slicker interface with the Appdeamon 3 dashboard. It’s also much more configurable for to match the sizes of different devices, such as phones or tablets.
ha! I was about to ask the same question after dozens of videos of you, DrZzz and others. Watching you writing all those hard-to-remember yamal stuff looks quite painful. One visible advantage is notification system on mobile (havn't checked if available on android). So after seing the answer I would guess: "do as much as possible in node-red and check HA only, when NR can't do something"? Cheers!
What about setting up groups? I have a "Jimmie", "Syrease" & "Home Occupied" group that checks for our GPS, Wifi & Bluetooth presence; If any are present then the group is "home"; Only if ALL are "not_home" does the group set to "not_home". If either of us are home, then the "home_occupied" group is set to home. Just another way about it, your way works perfect too.
I just got started with Home Assistant and my first task was to try and send a motion detected message to my LG OLED TV. I can get a basic text message to appear but trying to do anything more complicated gives me error messages. I’m going to try Node Red. The thing I’m missing is how are the two integrated? Does code from Node Red appear as an Automations in Home Assistant or is it kept outside of Home Assistant and Node Red must be running on the same machine? Just wasn’t clear to me how it all connects.
I have been watching your videos, and I love them! I have learned so much! One thing that is stumping me on this one (and probably a basic config that I missed)....under the "SERVICES" Tab in HA, I only have "Service Data (YAML,optional)" no JSON. How do I get the JSON to appear?
please, is there an updated version of this? I installed it via HACS, i installed the companion , but I don't see ANY node-red menu item or any way to configure it. All the guides online talk about "add on stores" which don't even exist in HA now
In a function node in a flow, is there a way to get the status of an entity? I can get the status of an entity from a node (current state), but I can't figure out how to get the state directly within a function node.
Thank you very much for your video. I already made quite nice flow for my girlfriend, that is checking traffic (using api) and sending info if trains are delayed or canceled or there is something on the way. Also she can snooze those with actionable button. I can share the flow if someone will be interested. However what I don't like is the fact, that she can't see those messages retrospectively in case she "swipe right". Any idea how to see that? :) Or maybe how to send it to the notifications in home assistant?
Do you have a video showing how you add presence detection via Google WiFi? Or can you recommend a video? I also have Google WiFi and would like to add.
@@TheHookUp Ahhh ok, Ill look around. Can you look at my first sequence here? It works but I dont see any true-false nodes in your example. Can I accomplish this same thing in a simpler way? I want to get it right before I start adding a bunch of sequences. drive.google.com/file/d/1GRb903Ic8T6PnYjedS192kbHY-L6NHd7/view?usp=sharing
It's taken me the last 24 hours (more or less) to wrap my head around the settings for this but now I have it operating with two ping checks, my security lighting activates 5 minutes after we both leave the house.
Thanks Rob for the great videos you're putting out on Node Red. I'm a rank amateur with a 2 week old HASS/Node Red setup and so far it's proving to be a fantastic tool for home automation.
I first got dragged down the rabbit hole that is home automation and Home Assistant when I referenced your video on automating a Roomba to build a robotic butler a year ago.... this was the second video of yours I watched and I find myself coming back to it time and time again to find the solutions to all the home automation projects I've done since
I had to laugh at one point in this excellent video - I remembered a line in the original Ghostbuster - where Bill Murray says "Ray, pretend, for a moment, I don't know anything about metallurgy, engineering, or physics - and just tell me what the hell is going on". There is a LOT of info here that would be so much easier to understand if one had a previous background of javascript and json and the like - something that in my IT career I never felt the need to get into - it was challenging enough just to try to stay current on ever changing world of routing and switching and security and the like. Now that I'm retired I want to get a better understanding of those concepts so this video was a great motivation to do some reading. It a 17 minute video but I spent several hours going thru it - making notes and creating bread crumbs to follow later. Great job you did - I still have lots of questions about exactly what's happening but much further along along now than I was...
Rob, Well done. You have the rare ability to translate your subject comprehension into properly organized information for the targeted audience in a perfect time slice. Poof, knowledge transferred.
I must say, great video. I’m an avid user of node-red and learned new techniques.
As a side note, took me a while to find your channel. I was watching Dr.Zzs video and I thought the channel would be in the description and it wasn’t, so I thought I’d search “the hook up” on RUclips search and couldn’t find the channel either, I get music videos and movie scenes, after pages of turning and refining the search found the channel.
Great videos. Keep ‘em coming.
I'll tell him to throw the link in the description
you young guys remind me back in the 70's when I was doing same stuff, electronics,, Commodore vic 20 times, pc's in the early 80's came out, X10 stuff sort of same but not as custom as home assistance of today. I do alot with the Arduino for couple yrs, us old guys Trying to keep up with you. I see notice most you smart guys don't put Direct link to Github for what you are video about, as there are many others, scripts.. you should in your links Direct github link,, so us older guys, don't get too lost in the beginning,, thanks for all you do for others.....
Great video. I’ve been using Node-Red with Home Assistant since I started six months ago. Automations are much easier. It’s great to see that I’m not alone in doing this. You’ve even given me a few new ideas for my current automations. Thank you.
this is how you do quality home automation tutorial videos!
Damn, you created a full blow alarm system! Good job bro, this is awesomely overkill. Love it!
Hey, I noticed that you are interested in Node-RED. We just released a video on Node-RED. Thought you'd want to check it out. Thanks
👇👇👇
utm.io/um5R
Love the way you explain things. Nice and slow for slow people like me!
Can't wait to get some time to try out node red because I come from tasker which is what I'm used to.
Hassio and the coding part has been frustrating most of the times!
Thats one hell of automation you did out there. Kudos to you.
Suggestions for future flows: A simple common one I see people doing are motion triggers with timers to turn out a light once the motion is gone after a bit. Then possibly another with a state change firing off a reminder about something say a door left open, then every 5 minutes it reminds you with a notification or TTS message, but if the door is closed, stop the 5 minute timer and fire off a thank you notification of some sort.
Those are great suggestions. Sounds like a job for the trigger node.
To add to that some sort of loop so that if the motion gets triggered again (ie you're still in the room) the timer resets and the light stays on for another X minutes. Wifey is not happy if the lights go off when she's still in the room! Lol
Yep, that's what my first one was basically. You can find it at the link here, I thought it would be a good one to include though as I'm sure many folks want it. Scroll down to lighting two diyfuturism.com/index.php/2017/12/14/basic-node-red-flows-for-automating-lighting-with-home-assistant/#more-191
Straight to the important stuff on how to set and really create useful node-red automations in home assistant. Great explanation of the basics and really understandable flows. Thanks!!
Thanks. That helped. The WS version of the pallet is has a different event state detector which includes a condition, then two outputs, one if true, one if false. That IMO makes it much easier to understand visually. But, I was overthinking how to do a logical AND/OR, and this helped.
Fantastic video. I'm starting to use Node Red for all my automations and it's so much easier than YAML. Still struggling with some of the concepts so your video is is a huge help. Thanks!
I'm just getting started with HassIo and Node-RED, but seeing these examples makes me really optimistic.
I have experience in C#, VBS, and Powershell, so all I'm seeing is a bunch of If-This-Then-That...but JSON is a whole 'nother beast to me. Seeing what you have going on though, I have so, so many plans and I know I'll get the WAF (Wife Approval Factor) once I finally start nailing it all down. Much appreciated and thanks for the video!
Ah yes, the ever important WAF. I need to get this implemented so that my WAF is above 8.5. Right now I'm teetering at a 6 which is almost at the "sleep in the other room" level!
Like Kerbo, I wanted to get into Node-RED and this is a great step. I have watched others and have done some reading, but I hadn't found one that starts in the beginning. Great job! By the way, I found this by way of watching DrZzz's latest....
Exactly what I needed to understand how node-red integrates with home assistant. Thanks.
God that a lot to process, yet loving it. Can't wait for the dashboard one though
This is great stuff. Thanks for documenting this so well, making it look easy. I can see so much potential in using node-red for HA automation!
Oh man. I am so going to over engineer our new house it is going to be my end.
As long as you're having fun doing it!
The Hook Up the wife approval index is low on this matter!
over-engineering doesn't have to be over-complicated!
Same here!
I may or may not have had to debug the Christmas tree.
Thanks! Really great video! I do not understand very much about it (no programming skills), but I did not have that from Yaml at the beginning. Because of your video, it is becoming more and more clear to me. Thank you!!
Exactly the kind of thing I like to hear!
Maybe you guys know where to find someone who would set this up for me for a few bucks?
I am new-ish to HA and new to Node-red but have managed to set up a flow for the kitchen lights by following a tutorial I found on RUclips. watching your video I found your occupancy flow for you, your wife and guests to be really interesting and something I would like to duplicate. do you have or could you make a video on how to set this up from scratch? My wife and I both have HA app on our android phones with device_tracker entities within HA. your videos are great and really helpful so thankyou for all you do!
Fantastic video and a great explanation of the nodes and their scope. Really great way to get started in NodeRED!
This was a useful video on getting started with node-red. I had to shed a little tear when I saw YAML listed as a programming language. Whyyyyyy!!!!
Outstanding video, I have learned more from this the dozen or so others I have watched. Thanks
Thanks for this video! It helped optimize a few flows using presence detection.
It's a nice introduction to the most important nodes in node-red.
There is better way to store entities state. You need just to use the scene.create service!
Great video! I've been wanting to dive into node-red and this was a good overview
Thanks!
Thank you very much! I didn't manage to use it on Greek server but on the Germany one, works like a charm!! good Job!
Thanks for this video, its is awesome and is so much more accessible than the yaml files
Awsome Videos - im a fan! Your videos gave me the confidence to belly flop in, and the waters nice!
it was a magical moment when the first ios notification popped up on my phone with a click of a button.
Its slowly taking over my home but am loving every moment and learning so much!
thanks for the videos!
Subscribed. Great video! I really liked the pacing of this video. I'm a experienced developer, but new to home automation and wanting to learn about various projects, apps, and technologies. Many of the other videos take too long to get to the point, or are too slow and repetitive to make them worthwhile. While this video could be a bit fast for some, it is a video that can be paused, rewind, and re-watched as many times as necessary.
Thanks! That's actually the niche I was trying to fill, something that I beginner could watch a few times and get it or something an experienced computer user could pick up quickly without getting bored.
I now have node red working and have been experimenting with my first flows. I started off with a media / NAS server running unRAID (uses docker) and a smartthings hub I added for z-wave control. I setup the smartthings app/bridge to an MQTT broker running on my server. I also setup nodeRED and HomeAssistant through docker and connected them all together. I have a question though, is there any advantage to using the HomeAssistant palette in NodeRED compared to using MQTT nodes directly? (both will work)
As an oldie ,beginner and I guess a dummie, I am having difficulty making progress with Automations with HA. I would really appreciate if you could one day make a video assuming a lesser degree of understanding for beginners such as myself. As an example I am trying to understand how I can set up tracking or even presence detection using IOS (ipad). HA shows my position at home regardless whether I have my ipad switched on or off. My ipad is shown as an entity which is used to determine my location. I feel if I could grasp a concept such as that, I could start to make some progress. Perhaps other beginners are having such difficulties. You do a great job with your videos.
This was a great Node Red intro although you didnt mean it to be that way. I googled alot of intro Node Red videos and I saw some pretty lame ones. I think the title of your video, although true, could be limiting your audience. I wish I had seen your video because I have about 1hr of time I'll never get back of watching other vids . Kudos! and thanks for sharing.
Thank you very much for the video, explanation, and codes.
Omg thank you so much!!! Exactly what I needed
Thanks a lot...U are taking NodeRed to God Mode
Another great video. glad to see you "team up" with DrZzs. Can hardly wait until the next video. For days I have tried to "extract" values out of the messages that Tasmoda sends out using node-red. no Joy. I hope you will include that. Seems like it should be simple. If you have time to give me a clue, I would really appreciate it. Thanks
That will be included in my next video.
Very well produced. Thank you for this video.
You make great videos. thank you so much..one small feedback though, you demonstrate as you speak very quickly and this all happens(i mean your product demonstration) before we understand what you say. My guess is you do this to keep the length of the video in control. Any how, thanks for the videos..
Great video! Looking forward to implementing this.
great video-tutorial! Helped me out a lot. Thanks!
Wow. Thanks!! Great start
❓6:28
But how to turn off occupied ONLY if no one is home for 30 minutes?
So in those 30 minutes it should repeatedly check if someone is home (if all are gone during those 30 minutes it turns off).
Very nice video, and very good work! Thank you!
Great stuff, well presented….subscribed
Hi Robb, great video, Im new to NR and these videos are helping. Can I ask why the function on and off nodes after the light schedule nodes, wouldn't a switch node work the same?
switching-on lights though used to be piece of cake in the past...but it was boring...it is a hell lot more fun this complex way :-)...yeah!!!
hopefully he makes an update video on the new packages to control HA, there have been a lot of changes to Both HA and Node-Red since this was made.
Hi Rob keep up the great job you’re doing for the community.
I need this help. I have my living lights controlled by a PIR but during movie nights I’m having difficulties to disable the PIR or the flow.
Is there any work around or solution for this?
Thanks
Very helpful, but this video is now going on 4 years old (how many is that in HA years?). Which Alexa integration was it using (or are your node-red nodes enough - that'd be a miracle). And, how do I get rid of the predecessor nodes e.g. node-red-contrib-alexa-local, which HA says are "in use"? Wish we had HA when I was in high school...
Great job, great explanations!!! Very analytical approach !! Thank you very much!! I would like to watch further the cloud mqtt connected with home assistant node red and the aws...until now we have see videos about own tracks, what if we can have connection with the cloud mqtt and aws for machine learning for cognitive buildings!! Just an idea!
great video, thank you. Really helped me to quickly get results with my hass & node red :-)
Hi,
Just wanted to say loving this video series you are doing. I've switched my current automations over to Node-Red; and am even trying new things as it seems easier for the most part to visualize the flow.
Would it be possible to someday cover how to get state information from HA; and merging of messages from two sources? I have an automation that tracks my washing machine and I would like to add how long each wash cycle takes to the message but have no idea how to get the information from HA and merge two payload messages together.
Thanks! Looking forward to seeing what videos you release over the summer!
That will be included in part 3. I actually just wrote the flow for the video today.
Excellent video....any suggestions on android app for home assitant
Great videos, this seemed the most appropriate place to ask a question. HA and Node-Red are both fantastic, I use them in my setup. BUT.........with lots of various IoT devices, do you staticly assign th IPs to your devices or do you use DHCP? if the latter, then how do you handle possible changes to a device IP in HA? Thanks in advance
Hi, like your video's verry much! Can I ask you a technical question regarding Nodered in Hassio?
Any chance on getting the config.yaml file, I'm having trouble with getting the input booleans set up. Btw great videos and a lot of help. I'm looking forward to trying the roomba!!
Question; at 15:44 in the overview you have the storing of the light state and the delay of 1 sec.
Couldn't you have done it in such a way that it goes instead of this:
- Away (if state) > Other Ben Light (get state) > Other Ben Light Flow (store variable)
- after 1 sec, turn everything off
To this:
- Away (if state) > Other Ben Light (get state) > Other Ben Light Flow (store variable) > Turn off
Yes, you can do that now. The current state node used to be a bit buggy so I did it that way to avoid issues. The current implementation is much easier to use and will work as you described.
@@TheHookUp Good, then i start to understand Node-Red :)
Fantastic video, well put together!!! Nobody can answer my question. I put together a FLOW (Temp sens with high / low slider with email alert). It outputs to a URL. I add the URL to a Lovelace card unless there is another way. When the system reboots I have to re authenticate the URL again or the card does not work, any suggestions?
Hi! Many thanks for your useful videos. Please would you explain how you set up/configured your input booleans? E.g. brad home, lindsey home, home occupied?
What do you mean by how I configured them? To add them in home assistant you just add them to your configuration.yaml file like this:
input_boolean:
notify_exterior:
name: Exterior Notifications
alarm_exterior:
name: Exterior Alarm
Great video! Two questions though:
1. To clarify, this is all done with the NodeRed Home Assistant component and not by running NodeRed on a device, correct? I just want to make sure that I only have to have Home Assistant installed on my Raspberry Pi and not both.
2. What brand of door/window sensors & what brand of motion cameras are you using that you've integrated into Home Assistant? I'm currently looking into buying Wyze Motion Sensor Cams for my cameras and Tuya/Smart Life door/window sensors, both of which don't appear to be fully integrate-able into the Home Assistant environment from the information & discussions I've found.
I'm using the node red add-on for hassio. It installs node red on the same raspberry pi as HA.
I use diy mqtt sensors (see my other videos) and a rtsp NVR. But other people have had plenty of success using rf sensors and a sonoff rf bridge (dr zzs) has a great video on that.
Awesome, thanks for confirming!
I absolutely agree that overuse of Function nodes defeats the whole purpose of Node-RED. In fact personally I'd rather write up custom reusable nodes than overuse Function nodes.
I have started working with this again in Nodered. I can get the home to recognize when my wife or myself comes home and turn on some automations. I have a problem when one of us leaves the house it does not recognize that the other person is still in the house. I am using a current state mode between the state node and the call service node. I have tried to set it up like you explained in the video. But with the changes to Nodered some for the attributes you were discussing I do not see in Nodered. Any suggestions?
Any plans to release the configuration of the presence detection input boolean? I’d like to reference it to create my own for some HA project I’m doing that require simple presence detection
Hey , Great video ... started to look into Node-red recently and thanks for people like you it gets easier to jump onto it.
I have an automation that i would like to move to node red but there is some feature i don't know how to reproduce , here is an example of what i would like to tranfer
any help would be appreciated
thanks
- alias: 'laundry: washing begins'
trigger:
platform: numeric_state
entity_id: sensor.zooz_zen15_power_switch_current
above: 0.09
for:
# minutes: 2
seconds: 30
condition:
condition: state
entity_id: input_boolean.washing_state
state: 'off'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.washing_state
- alias: 'laundry: washing ends'
trigger:
platform: numeric_state
entity_id: sensor.zooz_zen15_power_switch_current
below: 0.15
for:
minutes: 5
# seconds: 55
condition:
condition: state
entity_id: input_boolean.washing_state
state: 'on'
action:
- service: input_boolean.turn_off
entity_id: input_boolean.washing_state
- service: tts.google_say
entity_id: media_player.maison
data:
message: 'le lavage est terminé'
language: 'fr'
great video, really. Have you ever experienced some sort of delay or slowness with node-red? i have node-red installed on the last hassio version.
Never had any myself, but I have heard from others this can be caused by using too many debug nodes. Try deleting the connections to your debug nodes and see if that helps.
thanks for the advice, i will try.
I’ve had some slow downs when I’ve had too many flows going on, and using too many dashboard U/I’s. I’ve had to disable the flows I had kept for the dashboard U/I legacy setup. That helped speed things up in my case. I’ve been using a raspberry pi. I’m about to move my setup to a nuc and see if this improves.
great video thanks for the explanation, your videos are great and straight to the point. Subscribed. My only issue is that there appears to be updates to node red since you made this video, but everything you have is still relevant. I am confused on the "call service" node, did you already have an entity of type input_boolean called home? or is it created in node red? if its not created in node red how do you create new entities in HA?
community.home-assistant.io/t/home-away-switch-boolean-using-automation/106328
Great tutorials, thanks. I have two MQTT brokers on my network, one for Home Assistant and one to manage my solar system. Can you give some advise on how to display some of the solar info from that MQTT on the LoveLace panel on my Home Assistant?
You can set up multiple brokers in node red. If you want you can just pipe 100% of the data from your solar system into your HA MQTT in node red, but I'm not sure I'd recommend that. Instead, I'd set up an MQTT in node with the specific topic you are looking to get data from on your solar MQTT and then pipe it into an MQTT out topic for your HA, then set up a mqtt sensor in HA to show the data from that topic.
Awesome video. Out of curiosity, is there a way to use your amazon link to get to the US site and then switch to my local country (canada) and then make a purchase and you still get that little comission ?
Unfortunately no, it's not a great system. No worries.
this is awesome, what do you use for your siren?
I have 3 of these: amzn.to/2vyvofG
one in the back yard, and one on each front corner of the house. NodeMCUs that are in charge of other stuff handle them as a secondary task.
My shade nodeMCU runs the rear alarm, pool nodeMCU runs the front side alarm, and holiday house lights nodeMCU runs the other front side alarm.
Great video. A little feedback though: as a complete node-red noob, I had no idea where it was placed. Is it an add-on to home assistant? Does it run on a computer? Is it scripts that you download to your sensors, like Arduino code? It was hard to follow what you were doing when I couldn't quite place the components in my head :) But i read a bit online and watched the video again, now it makes sense!
Check out Dr. Zzs video on node-red, he talks more about the installation and general idea of it.
On our website we have manuals in Spanish for node red. Good work and I hope that my contribution can help other friends.
Hi Rob. Have you updated to the new iOS app yet? The notification mechanism is different and I’m struggling to get it working with Node Red.
Is there a possibility of a video of how you created the whole alarm system? with the integrations between node red and HA?
Do you think you could make a video or give some instruction on how to use google wifi as home presence? Love the videos
I love your videos and watch (and like) them often. I have a working nod-red installation that I want to put Home Assistant on but the only instructions I can find is using the Hass.io image, which I assume overwrites the SD card. Is there an install guide anywhere that describes how to install HA on an existing RasPi? Or can it even be done?
Thanks and keep up the great work!
Hass.io is written to run on it's own OS (hassOS), so you won't be able to add it to a raspi. You could install it on a linux machine using a virtual machine, but there's no way to put it on an existing Raspi. There's a great node-red addon for hassio though if you decide to go that way.
Ok, thank you for the reply. So if I cannot apply Hass.io to a raspberry pi can I at least add node red to Hass.io.io? Or do I just need to use two separate pi’s? I have an extra one but was hoping to keep things simple.
Just one pi, hassio is essentially the os
Thanks, great vid! Would love to see a watchdog implementation through node red. I have Sonoffs on all of the networking equipment.
I’ve got one I’m working on but I’m sure it could use some finessing.
Excellent video, as usual. In the video, you mention that your window sensor will send either, OPEN, CLOSED, or the battery voltage. Do you have a modified window sensor schematic that sends a new message when you actually close the window? I do not see how in the code the CLOSED is sent. What am I missing. Thanks
Closed is the LWT (last will and testament) message, meaning that's the message that will be published when the sensor goes offline from loss of power.
Robert Tait thanks for that. I believe that the LWT will get set when the esp01 goes into deepsleep(0) and after the keep alive timeout of 10 seconds, which is what I saw in testing. So essentially an erroneous closed message. Am I missing something?
Ah, yeah, that's the intended behavior. I basically designed them as burglar alarms. They send the one "open" message to trigger alarms, and then revert to "closed" until the next time they are open. The design could be modified to do open and closed, but it would take a few more components and I was trying to keep it as simple as possible.
Edit: just noticed I replied from the wrong youtube account before, whoops.
Thanks. Makes sense. Do you mind sharing what the changed design would be to be open /closed?
so basically you use the reed switch to trigger the initial power on (by putting the magnet in the path of the opening/closing window), and then you set GPIO2 high in the setup loop (which allows the current to flow through the transistor and keep the power on), then you have it send your open or closed message and then set GPIO2 low to power the chip down. You can use SPIFFS to store the last state of the window so you can send the correct "open" or "closed" message.
imgur.com/k9Nn5RA
I'm new to this and I want to learn how to use Home Assistant and Hass and Node Red and what not. Is there a video that covers where to start?
Id really like to figure out how to get HomeAssistant working for my home, but you are losing me with the language. Do you have any suggestions on what I should start learning(in a relatively quick fashion) to start to understand what you are talking about? I appreciate any help!
Check out JuanMTech here on youtube.
Hey, I noticed that you are interested in Node-RED. We just released a video on Node-RED. Thought you'd want to check it out. Thanks
👇👇👇
utm.io/um5R
Hello Rob, Liking the video. I am a bit of an automation noob, find yaml impossible to get syntax right, so thought I'd try a node red option. I havent got past the input boolean set up. I have tried to make it for life 360 but no joy. Can you please do a video about input boolean for wi-fi login, or a tracker app like life360. Keep up the good work.
Hi, great tutorial. Can you do one on using NODE RED and arming/disarming an alarm via an apple watch?
My life has been changed forever
Will you ever make 'how to' videos about IoT (i.e. how to connect device to open-source platform)?
what a trip that intro - killed it! Zz
@3:38 - '...when our phones connect or disconnect from google wifi.' How are you achieving this? I cannot see a way for this to happen in 2020 (I realize this video is a couple of years old) but I am puzzled how to do this, as I'm trying to do something similar. The only alternative I can think of is geofencing with the phones. Thoughts?
So on the last video I asked why to use Node-RED when you can do all the things in Home Assistant itself. Now I read a bit into Node-RED and I would like to know, why use Home Assistant at all? Couldn’t you control all of your devices with one of the hundreds addons, through MQTT and use Node-RED Dashboard for browser control, etc.?
Copy/Paste from a similar question I answered on reddit:
The quick answer is that Home Assistant (HA) is a superior component platform. It's unbelievably easy to add devices to HA and there are hundreds of hobbiests working tirelessly to integrate popular hardware as it becomes available. HA also has an iOS app with built in (albeit spotty) device tracking, and actionable notifications. AFAIK node red dashboard only runs in a browser.
Node-RED is a superior automation platform, writing automations in yaml sucks, so combining the compatibility of HA with the automation power of node-red really gives the best possible end result.
I would also like to add that the dashboard interface has some issues, especially with sliders. Using Home Assistant has a much slicker interface with the Appdeamon 3 dashboard. It’s also much more configurable for to match the sizes of different devices, such as phones or tablets.
ha! I was about to ask the same question after dozens of videos of you, DrZzz and others. Watching you writing all those hard-to-remember yamal stuff looks quite painful. One visible advantage is notification system on mobile (havn't checked if available on android). So after seing the answer I would guess: "do as much as possible in node-red and check HA only, when NR can't do something"?
Cheers!
What about setting up groups? I have a "Jimmie", "Syrease" & "Home Occupied" group that checks for our GPS, Wifi & Bluetooth presence; If any are present then the group is "home"; Only if ALL are "not_home" does the group set to "not_home". If either of us are home, then the "home_occupied" group is set to home. Just another way about it, your way works perfect too.
Yep, that's another option. I think I use that solution in another one of my videos (maybe the 3rd node red one?).
I just got started with Home Assistant and my first task was to try and send a motion detected message to my LG OLED TV. I can get a basic text message to appear but trying to do anything more complicated gives me error messages. I’m going to try Node Red. The thing I’m missing is how are the two integrated? Does code from Node Red appear as an Automations in Home Assistant or is it kept outside of Home Assistant and Node Red must be running on the same machine? Just wasn’t clear to me how it all connects.
I have been watching your videos, and I love them! I have learned so much! One thing that is stumping me on this one (and probably a basic config that I missed)....under the "SERVICES" Tab in HA, I only have "Service Data (YAML,optional)" no JSON. How do I get the JSON to appear?
That part of HA went away around version .92, I haven't found a suitable replacement for it yet.
@@TheHookUp That's a real pain as I'm now properly stuck!
please, is there an updated version of this? I installed it via HACS, i installed the companion , but I don't see ANY node-red menu item or any way to configure it. All the guides online talk about "add on stores" which don't even exist in HA now
Amazing Intro! Love it! You make me laugh!
In a function node in a flow, is there a way to get the status of an entity? I can get the status of an entity from a node (current state), but I can't figure out how to get the state directly within a function node.
Fantastic video
Hi,
Could you share your security system or what you are using ?
I would like to setup my security system with HA but don’t know how to start.
Thanks
Thank you very much for your video. I already made quite nice flow for my girlfriend, that is checking traffic (using api) and sending info if trains are delayed or canceled or there is something on the way. Also she can snooze those with actionable button. I can share the flow if someone will be interested. However what I don't like is the fact, that she can't see those messages retrospectively in case she "swipe right". Any idea how to see that? :) Or maybe how to send it to the notifications in home assistant?
Are you still using Node-RED for automations, please?
Do you have a video showing how you add presence detection via Google WiFi? Or can you recommend a video? I also have Google WiFi and would like to add.
Unfortunately I was using IFTTT for this integration and IFTTT has gone through some significant changes recently.
@@TheHookUp Ahhh ok, Ill look around. Can you look at my first sequence here? It works but I dont see any true-false nodes in your example. Can I accomplish this same thing in a simpler way? I want to get it right before I start adding a bunch of sequences. drive.google.com/file/d/1GRb903Ic8T6PnYjedS192kbHY-L6NHd7/view?usp=sharing