Это видео недоступно.
Сожалеем об этом.
Node Red + Home Assistant - Master Class 1. Beginners guide, basic flow with state, call service +_
HTML-код
- Опубликовано: 16 окт 2020
- Node Red Home Assistant - Master Class #1 the basics; including how to start out with Node Red from a beginner. In this tutorial, we'll look at the general layout, how flows and sequences work including variables, some of the basic nodes and a run through a quick example.
Nodes we'll look at:
- State Node
- Call Service Node
- Delay Node
- Inject Node
- Debug Node
- Change Node
- Time Range Node
Really want to show your appreciation? You can always "Buy me a beer"...
www.buymeacoff...
Flow can be found here to import:
homesight.tech...
Install Node Red:
• Home Assistant Beginne...
Music: www.bensound.com
Video: Free Stock Video Footage by Videezy!
I'm only 15 minutes in but so far this is the best primer to Node Red I've seen. I've used it for about a year but sometimes I feel my basics knowledge of Node Red is actually still kind of weak just due to the fact I assume some things work the way they do, or don't realize the full options of each potential node. Great job.
Only minor complaint is your audio is a bit quiet. Maybe it's just my devices but I had to max your volume out and strain to listen at times.
Absolutely fantastic, so clear and detailed. Thanks so much. Keep going at it and you'll definitely be the new go to for Home Assistant as Drzzs has lost it with two hour streaming session of hellos and animation's.
Thank you! I found the same with some videos I was watching, they seemed a bit out of date, hence the start of my channel!
Fantastic quality and the clearest videos on Home Assistant - One problem with most video is they think every body knows all about programming and the raspberry pi. These ones teach and keep it simple. Any change you can do one on Lovelace. You have a great design with your house.
Hi Jim! That’s great to hear, I’m glad you enjoy them. I do my best to make videos I wish I found when I was starting out! I have a plan to do a Lovelace mini series very soon!
Thinking I was a bit harsh the first time reviewing this video and now after looking over the sea of videos for NR it is clear to me your video rises above the others by a long shot. I was able to follow the step-by-step video tutorial and got my PIR motion sensor to trigger the fan in my computer room. The next step is to add temperature and have that control the same fan. This video is a bit old but will see if you have the "buy me a coffee" link cause you deserve it.
Thank you for starting my Node Red journey. I have been scared to dip my toe in the water but your clear explanation is great.
Glad to help!
These are the very best video's i can find for learning node red ! Thanks !
Glad to help Walter!
Thank you very much! I'm successfully controlling a light based on another light's status. Now I'm hooked on Node Red!
Loving your work!!! I can spend hours making new sequences!!
this is a fantastic series! thank you so much for taking the time to upload it. i was completely lost until i found this channel. thank you!!!
Thank you, glad to help!
Thats a very helpful video - good pace, useful example and easy to understand pronunciation - thank you!
Another great presentation. You seem to have the ability to know what people need to know about these topics and present it in a concise and clear manner. Good work
Thanks Anthony!
by far the best explanation on youtube cheers
Before watching the series: I enjoy the enthusiasm and hope this is what I have been looking for!
Douglas! I’m certainly not short on enthusiasm on node red… I flipping love it!
@@HomeSight So far - the video got compressed too far and most of the stuff is hard to read and your audio is many dB too low. I am sure you're aware though and I haven't gotten to any other videos yet. But, content is there. I'll keep watching! I know so little and this seems like it might be a good start
Hi Doug, sorry, yes this was quite an early video and I had a few issues with sound/audio! They are much better in the later vids
@@HomeSight No need to be sorry. I still am bite-sizing this first video but I've learned a lot so far. I look forward to the other master class ones!
This was perfect! Can't wait to look at your other videos!
Thanks Dale
Best guide around the web! Thank you for your time.
You are very welcome! I’m glad you enjoyed it!
Great video and explained so clearly. Looking forward to watching the rest of the series 👍
really helpful video to get up and running with node red, thank you so much. super clear and informative and gives enough of the building blocks for me to do what i want. thanks!!
Great, so easy to understand node red with your video.
Thanks, glad you enjoyed it.
Great guide. Easy to follow. Thanks.
Thanks Shawn
Very good, you have the ability to teach, thank you.
Thanks John!
Thank you so much, a super introduction. I'm off to watch the next
Thank you very much for creating this content, I found the progression of your examples and the overall pace very helpful to grasp.
Hi Robert, thanks I’m glad they are helpful.
Great video.
Thanks John!
Great content, easy to follow, thank you!
You’re very welcome. Glad you enjoyed it.
Subscribed....great intro video
I don't know bout you guys, but i see the video is very blurred, even I have used the HD quality.
Anyway, this is indeed a top quality content. Thank you for sharing your work.
Sorry, this was one of my earlier videos and the Resolution wasn't that good... I was still finding my mojo! The later ones are much better (if I do say so myself)
@@HomeSight it's okay. I am still enjoying the rich content. This is gold. Merry Christmas and happy holiday to you!
Thanks. Merry Christmas to you and yours too!
I learned quite a bit from this video. Could you do a video showing how to take a sensor value to control the brightness on a dimmable light?
Hi Robert, thanks for watching. You’ll want to check out Node Red Masterclass 5: Node Red + Home Assistant -Master Class 5. ruclips.net/video/Z_1GVWhmne4/видео.html. It goes quite deep into creating a sequence to control the brightness based on button clicks and holds.
The previous video (master class 4) takes a slightly different remote which passes a fixed value into a sequence and sends that to the light. ruclips.net/video/epjSLG21EQQ/видео.html
Great video, thank you !
I'm Glad you liked it!
Amazing work
Thank you
Thanks for watching!
ok, this video got me started on getting info from home assistant into node red. next problem: processing that info using logical operations (AND, OR, XOR). have you covered that in one of your videos?
Good videos, and as sometime that hacks along in NR this is good to fill in the blanks.
Only comment would be a better mic/audio processing but I'm being super picky.
Thanks for the videos they're really helpful. I do however find the audio to be on the low side, my laptop is generally OK when watching other videos but i'm having to set my sound to 100% so i can just about hear you.
if You use ESPEasy at all it would be great if you could do a video on the setup and use of that.
Thanks
Otherwise great work
Hi Steve, thanks for the feedback. It was raised by someone else recently too, I’ve experimented with my mic setup and have addressed it in my most recent video. I think I was compensating with my speaker setup. Apologies!
Very well done. If you continue with node red can you explain a little deeper storing a payload into a flow. I think that is something I have been looking for. Again thank you
Hi Gary, yes I’ll make sure I cover that.
Gary, I've just put up my second Node Red Masterclass. It uses a flow variable between different sequences. I hope it answers your questions you might have! ruclips.net/video/tpVGIun68r8/видео.html
@@HomeSight I saw it, thank you for covering it. You make it very simple to understand thanks again
I’m glad it helped!
here's a tip: if you refer to another video, it would be a good idea to put a link to that video in the description, not just into the video overlays (or "in-video info cards"). not everyone has those overlays turned on.
Thanks for the tutorials would you be covering how you got the house plan into home assistant it looks very good?
Hi Joe, thanks for watching. Yes I will most definitely cover that soon!
Thank You so much! ...... My I ask a question! Iam bold to ask maybe but it looks really cool. Can you give a class about how you did setup youre "home" on Home Assistant view
Oh, did only viewed the first maybe you done it already......
Hi, yes already done: ruclips.net/video/xGIH6MlbRn0/видео.html
Hi, I like your tutorials. Right now I've installed docker using IOTstack on a raspberry pi4. And have installed the Home assistant inside this docker system. Works nice. Your youtibe video's are not really legible / readable due to the low 1080p resolution. Can you upload them next times in 2k or 4k? Thanks.
Thanks for watching and the feedback. It’s something I was thinking on my last video actually! I have a high res monitor, but record at 1080p. I’ll look into it for the next one.
Of course, I do generally put a link for all the config or export the sequences for Node Red in the description, if that helps?
Thanks for the video, but your last change node example is not working, and the debugger is also notifing you about that.
Hello! excelent tutorial!!! just one question, how do you set up your sensor (minute 10:05) that five second after it's turned on it automatically turns off?
Hi, Thank you. You can set binary sensors to auto off using "off_delay: 5" in the configuration.yaml. It only works for binary sensors though. It's very useful for PIRs, and Doorbells and the like which only have an "on". Other than that, you could use node red to reset somehow I image.
I have HA installed on a synology and cannot figure out how to install Node Red.
Hi Simon , I'm new to Code Red so I'm enjoying your videos, One thing though , I'm unable to import the sequence you have exported to your website due to the fact that in cutting and pasting the code to your website the process has replaced the standard quote character " (unicode \u0022) with either the “ (unicode \u201c) or ” (unicode \u201d). not a big deal to fix it , but if you are going to be exporting your sequences to html it is something to be aware of. thanks
Hi, I’m glad you are enjoying my videos! That’s interesting, I will have to take a look! I always add them to a “code” section on my website so that in theory it leaves them unmodified. Thank you
@@HomeSight I have the same issue but I do not know how to fix it, copy and then import from eg homesight.tech/?portfolio=node-red-master-class-2-advanced-flow
i get SyntaxError: Unexpected token “ in JSON at position 2
[{“id”:”eb14e7
Hi Shaun, Delete the “ and then put them back in.
Hmm, I realise there is a lot. I’ll take a look
I’ve updated the page, could you try again?
Really great video but what is up with the resolution, it looks like 720p upscaled to 1080p o.O
Hi, yeah I did have some issues with resolution at that time! I’ve sorted it now…
Great Video... One question. In the video you mention that your motion sensor stays on (detected) for 5 seconds and then returns if no motion. You noted you did that in your config file. Could you share that config or do a video on that. Thanks
Hi Bill, I’m glad you liked it. Yes, it’s a really simple line to be added into your config: off_delay: 5. Here’s the whole thing:
platform: mqtt
name: "PIR Side"
state_topic: "tele/rf_bridge/RESULT"
value_template: '{{value_json.RfReceived.Data}}'
payload_on: "EEA74E"
payload_off: "EEA74E_off"
device_class: motion
off_delay: 5
qos: 1
i created switch with helper. I tried to turn off the switch this manual, but the code doesn't set anything - it doesn't turn off the switch. The status of the bord switch remains the same. how can i find a solution for this?
I'm coming from SmartThings and just trying to get to know Home Assistant. Lots of things to learn. Is Node Red an add on that just allows you to create automations based on flow charts?
Hello and welcome! I’m sure you’ll love Home Assistant. Yes exactly that! Node red is an add-on that allows you to create automations by dragging and dropping “nodes” and linking them together to follow the logic set. It’s incredibly powerful, if you can think up a process and draw it on some paper, you can find a way to make it happen in node red!
@@HomeSight I installed it on VirtualBox. Now I need to figure out how to get my zwave usb stick to work and install Node Red.
I can certainly help you out with the installation of Node Red: ruclips.net/video/ik3PrhoQ5ms/видео.html. As far as getting the Z-wave recognised, it’s not something I’ve played with myself yet. You’ll need to make sure the host “connects” the USB device to the guest HA. I have a cc2531 for my Zigbee devices. If you go into the supervisor, System, Host System > Hardware; you should see the USB device appear!
i need to use email-in and use msg.topic to get the first word. the msg.topic returns Disarm (Stay): “Master” for example.
I need to get only the states,i.e. Disarm or Arm.
then i need to change to a value,1=arm,0=disarm. I get as far as getting the msg.topic into debug but that’s as far as I get. Can you show me how to solve this?
Tried all 4 node red masterclass, nr 4 worked but not 1-3
Hi
love your vids.
i cant get my Sonoff motion Sensor working with Timeout.
how did you config yours ?
I use “off_delay: 5” in the configuration.yaml file.
Occasionally a node or nodes jump and get squashed into upper left corner and cannot be moved back. Undo doesn't revert. I am suspicious that it happens because of some accidental keystroke but I have no clue what it is. Have you experienced this?
It would be fantastic if you could explain "how to" interface nodered with lovelace, for example, I create a very simple flow with a inject node to trigger a cast (web radio link), one for each station. it work fine, now I would like to select from a lovelace card like I would click on inject, how to do that ?
Hi, That's a great idea. There is a few ways that spring to mind. you could setup a "helper" or an "input boolean" and use a change state node to start the flow. I've added it to my "video to do -list".
Just found your channel. Subscribed!!
Could you tell me what program you've used to create your floor plan?
Hi, thanks for watching. It’s a mix of roomle, gimp and gravit. Full details here in part 1 of 3: ruclips.net/video/xGIH6MlbRn0/видео.html
@@HomeSight And of course you already did a tutorial for it. That's great. Greatly appreciated!!
No problem. I’ve been spending a lot of time re-doing my own dashboard recently. I think I’ll do another vid on it soon.
Thanks for your video, exactly what I needed a simple node red exercise to start me up. Your audio is too low.
Glad it helped. Sorry about the audio, it’s much better in later videos!
Hi, how can iget data of an atlas scientific temperature sensor RTD in node red and raspberry pi 4?
Are you want to make a complete tutorial about Node RED
Hi, Yes that's my plan. This is the first of many! In fact, I'm going to be recording another tonight.
any ideas would be good
Hi Neel, Not sure what you want ideas for? Anything specific?
What do I need to put in for the data section on the call service if I have a dimmer and want it to turn on at 100%?
Hi, that slightly depends. Does your device show 100% as max or 255 as max?
@@HomeSight How do I find that out? I believe 100%. It's a GE zwave plus light switch. To ask my next question would it be a light instead of a switch?
If max is 255 then use this
{
"entity_id": "light.YourEntity",
"brightness": 255
}
Or if max is 100 (I.e a percentage) use this:
{
"entity_id": "light.kitchen_worktop",
"brightness_pct": 100
}
You can try both (examples above). Yes it will be light instead of switch. Switch will error abs say something like “no extra keys allowed”
@@HomeSight Ok, thank you for that, under my call services for turn off and turn on both say No Connection at: 15:32. Does this mean node red can't connect to my light switch?
If I were a girl I would be with you ahahahah thank you so much for this amazing videos, I was looking for them :) Please, don't give up in this :D
Denis... you made it weird... you’re very welcome! I’m glad you enjoyed my videos!
@@HomeSight I could make it weirder ahahahhaahhahahaahah, kidding but really, thank you so much. You are making my automation better...
Glad to help!
Give this Clip HD my EYES 😫🙈
hi, thank you. when i try to import your flow though i get an error SyntaxError: JSON Parse error: Unrecognized token '“' what does this mean ? i presuming there is incorrect use of quotes somewhere ? thank you
Hi, it will be the way they are pasted in and the daft formatting of the quotes as you say. Take the quote out and put a new one in and you should be sorted.
@@HomeSight hi thanks for the reply, im not sure i follow sorry. Yhere are a lot of "" in the code, which is the problem though ? im not sure what to edit really.
@@HomeSight i did a find and replace and edited all the "" but to no avail still the same error. i wonder if it is as thelines are all bunched. oh well no worries, thanks for sharing though
How can I make a single button to toggle light brightness from 50% to 25% and back and forth from each click?
So instead of toggle on and off, it will be 50% and 25%
Hi, take a look at this video and it covers something very similar, you should be able to modify it for your requirement.
ruclips.net/video/Z_1GVWhmne4/видео.html
@@HomeSight I found a way by using the counter node in combination with the render template node and a switch node.
Good stuff! I’m glad you found a way!
@@HomeSight Yup, if you need help making a brightness toggle just let me know. It was a bit tricky as the counter doesn't consider 0 to be a number so it only resets to 1
Thanks Naro
I wanted to find out do to the following say if e.g. alarm is set and if motion is detected the send messages to phone
Keep watching the others in the series, and I believe you should find the answers!
@@HomeSight cannot seem find the video
Notifications are in this one Node Red + Home Assistant Masterclass 3 - iPhone iOS Notifications with CCTV capture and stream
@@HomeSight I am looking for if two Boolean states are on say If alarm is set and motion is detected then send message to phone.
If alarm is not set and motion is detected do nothing
What is your trigger? Motion detector? You could have a flow, started by a motion detector change state, then through a current state node, if on, then send message.
What to do if I haven't "switch" in the Domain list?
That’s odd... is your device showing as a switch? Have you just added a switch? If you look in developer tools and you have anything prefixed with “switch.” Then the switch domain should appear. Sometimes node red hasn’t stored a new device into its cache, so re-start of node red might help?
@@HomeSight thank you for your quick reply! :) I would like to switch on a Philips Hue light bulb turn on and as you choose in the video (@8:19) a would find as well however there isn't in my list even the developer mode turned on previously...
Hmm, that would probably show as a “light” rather than a switch.
@@HomeSight a changed to "light" if already haven't "switch" the motion sensor shows as it works however doesn't switch on any lamp :( if I use "timestamp" as it shows in the video the light turning on and off...
Can you export the sequence and add it on here?
One ingredient missing the "zoom" feature.
Sorry Rud Dog, the later ones are all in 4K so you can zoom away!
@15:12 honestly couldn't understand the logic behind this part.
The debug part?
too complicated.
Sorry to hear that. Anything I can help with?
@@HomeSight
Thanks for the offer but already the installation does not work on the MAC.
No UI is shown. Neither on MAC OS nor on iOS. So I probably have to live without this particular software.
In any case, this "open source" seems to have its problems with "not Windows" not just on this sample.
On both MAC OS and iOS, HA is full of "bugs" unless you run them rudimentary. This works quite well, after you have solved the problem of ex4 formatting the Flash Cart on the MAC without expensive additional software.
I will then have to do without a wider use of HA, because the problems that will be associated with it are becoming increasingly clear.
I use HA on a Pi, in docker, on Linux and windows within a virtual machine. The interface runs fine on my Mac, on IOS and windows. I’m not certain what you are trying to achieve, and how. Thanks