Beginners Guide to Node-RED in Home Assistant

Поділитися
Вставка
  • Опубліковано 15 лис 2024
  • This video goes through installing the Node-RED add-on in Home Assistant and how to create your first few basic flows.
    The key nodes for understanding how it works and testing your first flows are discussed, such as the inject and debug nodes.
    If you would like to see a follow-up video with some more detailed examples then let me know in the comments!

КОМЕНТАРІ • 50

  • @MrGatya2
    @MrGatya2 Рік тому +3

    I am surprised you don't have more likes and subscribes. This was an excellently done tutorial. Thank you!

  • @davidleney2955
    @davidleney2955 Рік тому +11

    Very nice. I like the way you explain things clearly and slowly for us just starting out with node red.

  • @excimer78
    @excimer78 2 місяці тому

    Very good video. You did put in a simple way to explain Node Red.

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

    Thank you for your content - I really like the presentation of nodes - as you conclude this only scratched the surface 🙂

    • @lets-automate
      @lets-automate  Рік тому

      Thank you. I plan to do some more content on Node-RED in the coming weeks and months.

  • @phlo2009
    @phlo2009 9 місяців тому

    Great tutorial for beginners like me. Thanks.

  • @TrockeyTrockey
    @TrockeyTrockey 9 місяців тому

    Thanks for basic instruction - very helpful!

  • @scottvickrey2743
    @scottvickrey2743 6 місяців тому

    I was so happy to see node red in here I was dreading using HA's Automations. I love node red just could never afford a hosted solution, or the security ramifications of self hosted. I will never open a port again!

  • @Oscar230
    @Oscar230 Місяць тому

    Thanks, this is really inspiring!

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

    Very nice introduction to NodeRed, i just started my adventure with this powerful tool and hope for more guides from you.

  • @krisdevoecht
    @krisdevoecht 2 місяці тому

    Thanks for a good explanation!

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

    THANKS!!
    Needed this! Hope for more good NR stuff

    • @lets-automate
      @lets-automate  Рік тому +1

      Thanks for the comment! I actually do have another Node-RED one coming out on Saturday.

  • @nochannel3005
    @nochannel3005 8 місяців тому

    very helpful! Thanks so much!

  • @michaels7828
    @michaels7828 2 місяці тому

    Thank you very much for your video.

  • @RaymondKnapp-d3h
    @RaymondKnapp-d3h 9 місяців тому

    Thank you for producing this video. I now have node-red set up. Now I do have a question, being new to home assistant I would like to set up the ssl. I have no idea how to do that. I would also like to see examples of how to code using nod-red. I you have a video or can refer me to one it would be great. I am a retired computer programmer but have been out of it for years. Thank you for your assistance. Ray

    • @lets-automate
      @lets-automate  9 місяців тому

      Thanks for the comment!
      The easiest way to set up SSL for Home Assistant is to use "Home Assistant Cloud" by Nabu Casa. It's about $5 per month but supports the Home Assistant project.
      It also make linking to Alexa or Google easier.
      The alternative is buying your own SSL certificate and messing around with Google Console and creating an app, they creating a CSR. It's totally doable but not simple and takes a little while. Once setup, you then have to do something each year to renew the certificate with this approach.
      For examples of code with Node-RED, it might be worth checking out my Node-RED playlist. I have a couple of videos on things such as the Function Node and calling an API.
      Hope this helps!

    • @JanA-yb8lh
      @JanA-yb8lh 9 місяців тому

      You can also create a "self-signed" certificate for free and upload that in the config screen. That should be fine for personal use. There are numerous tutorials available on how to do that.

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

    PERFECT Starter!

  • @mikealport2065
    @mikealport2065 2 місяці тому

    Any chance of your sharing the configuration options you used for your " Send Notification to Marc" node?

    • @lets-automate
      @lets-automate  Місяць тому

      Sorry for the (very) late reply! Do you still want this config? It calls the Home Assistant "notify" service. Are you using Home Assistant with Node-RED, or were you hoping it would just send a notification directly from Node-RED?

  • @tudordan9194
    @tudordan9194 8 місяців тому

    I noticed you had a formula 1 tab in node red, what related automation do you have over there? get a notification whenever Max doesn't win? :)))

    • @lets-automate
      @lets-automate  8 місяців тому

      Haha. That would be a good one. I think I talk about it in one of my other Node-RED videos. Check out the playlist.
      I find that the Google Homes seem to think that F1 doesn't exist, so I created two custom scripts.
      One broadcasts the driving standings of the top 3 drivers with the points gap between them.
      The other tells me how long until the next race and sends a notification to my phone with the details.

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

    Very useful video, THX.

  • @claudiogalinha
    @claudiogalinha 2 місяці тому

    Obrigado Bom trabalho

  • @joeking5211
    @joeking5211 11 місяців тому

    Thought I'd struck gold here, but there is no 'node-red' in the list, nearest to 'nod' in search is 'Linode' so not sure how you getting this going ???.

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

    I have a flow as followes:
    Pir motion triggered "ON" if it is between 10am and 6pm allow the the "ON" to turn on the fan and send message to my cell phone. The problem is the fan remains on for the allowed time which is 10am to 6pm but any further motion on continues to send annoying messages to my cell. How do I get this to be a one time "message" everyday?

    • @lets-automate
      @lets-automate  Рік тому +1

      Hey there. There are a couple of ways you could do it.
      I would say the simplest way is to use the delay node. It has a rate limiting mode whereby you could set this to only allow messages every x hours.
      Check out my 5 quick tips Node-RED video if you want to see a bit about it.
      Hope this helps!

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

    Very good tutorial ! Thanks. Would it be possible to get a tutorial about sending email from Node Red ? I have seen some around but they were made about 3 years ago and doesn't seems to work anymore. But good job ;-)

    • @lets-automate
      @lets-automate  Рік тому

      Hopefully my latest video will help you with what you are looking for!

  • @maciejweber4256
    @maciejweber4256 8 місяців тому

    I just got the home assistant created (I am very new to all of this), but I don't even get the 'add-ons' tab in the settings menu... any ideas?

    • @lets-automate
      @lets-automate  8 місяців тому

      It depends on whether you have installed Home Assistant OS? Docker install doesn't have the add-on store.
      If you are using HA OS then it could be due to profile settings.
      Go to your profile icon and ensure "Advanced Mode" is enabled.

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

    I'm still getting the, "FATAL: Please be sure to set the "credential_secret" option." even after entering and saving. I notice a "restart" option pops up on your screen but not on mine.
    Edit: I rebooted both the laptop I'm talking to Home Assistant with and also the Home Assistant NUC and then it was happy.

    • @lets-automate
      @lets-automate  Рік тому +1

      Glad to hear you it sorted! I've not needed a reboot before for that bit that I can remember, but you're probably on a newer version than me now.
      Home Assistant often needs / likes a restart after installing integrations and add-ons etc!

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

    You said we may wonder why you are only maintaining the car only every 2 months. I'm confused by this. I've never heard of anybody doing maintenance on their car this often. What exactly are you doing maintenance on that needs checking that frequently?

    • @lets-automate
      @lets-automate  Рік тому

      Yeah, fair point. I know a lot of people who wait till their service to be told what's going on.
      The main thing I do is fill up screenwash, as it has nossles on the headlights too, so gets through a fair amount.
      But the other is checking tyres pressures as I prefer to ensure pressures are fairly even, especially in winter and also especially when some of the tyres are near the end of their tread. TPMS only really kicks in when they are way off.
      Gone are the days of manually checking oil levels really, thankfully!

  • @ChrisAlves_17
    @ChrisAlves_17 10 місяців тому

    I dont have the option "Credential_Secret", what I can do?

    • @lets-automate
      @lets-automate  10 місяців тому

      Hmm, that's strange. You are using Home Assistant Add-on or standalone Node-RED install?
      Does it show all configuration options but that one?

    • @ChrisAlves_17
      @ChrisAlves_17 9 місяців тому

      @@lets-automate I follow all these steps to install the Node-RED Addon :/
      Can be a change with the new update?

    • @lets-automate
      @lets-automate  9 місяців тому

      What options does it give you under the "Configuration" tab of the Node-RED add-on?
      For me it's the top option. I've updated to version 17.0.3 and the option is still there for me.
      Presumably it's not letting you start the add-on then without that box populated? Check the "Log" tab.

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

    This isn't very "beginner" level. You're assuming people already understand some of the basics.

    • @lets-automate
      @lets-automate  Рік тому

      Hi, thanks for the feedback!
      What other elements would you have put in so that I can consider in future videos I create.

    • @droneforfun5384
      @droneforfun5384 2 місяці тому

      ”Call service. If you done automations in HA you know what call service is” 😂
      how to speak without saying a thing

  • @javierlindenthal6680
    @javierlindenthal6680 8 місяців тому

    Seems rather useless to have node red unless you need actions

    • @BrettSeibert
      @BrettSeibert День тому

      I’d argue that home assistant is rather useless, a sick joke, and a complete waste of fucking time. That’s just me though

  • @michaels7828
    @michaels7828 2 місяці тому

    I would like to get help on Node-RED configuration from you because I couldn't find it anywhere else. I install and (default, no-SSL) configured Node-RED ver. 18.0.5 from Add-On store of Home Assistant about a month ago. It didn't work initially, so I left it alone till now when I discovered that reason for not-working was following message s in the Node-RED Log:
    [14:13:11] INFO: Starting Node-RED...
    > start
    > node $NODE_OPTIONS node_modules/node-red/red.js --settings /etc/node-red/config.js
    27 Aug 14:13:13 - [info]
    Welcome to Node-RED
    ===================
    27 Aug 14:13:13 - [info] Node-RED version: v4.0.2
    27 Aug 14:13:13 - [info] Node.js version: v18.20.3
    27 Aug 14:13:13 - [info] Linux 6.1.54-v8+ arm64 LE
    27 Aug 14:13:14 - [info] Loading palette nodes
    27 Aug 14:13:15 - [info] Node-RED Contrib Theme Collection version: v4.0.8
    27 Aug 14:13:18 - [info] Dashboard version 3.6.5 started at /endpoint/ui
    27 Aug 14:13:20 - [info] Settings file : /etc/node-red/config.js
    27 Aug 14:13:20 - [info] Context store : 'default' [module=memory]
    27 Aug 14:13:20 - [info] User directory : /config/
    27 Aug 14:13:20 - [warn] Projects disabled : editorTheme.projects.enabled=false
    27 Aug 14:13:20 - [info] Flows file : /config/flows.json
    27 Aug 14:13:20 - [info] Server now running at 127.0.0.1:46836/
    27 Aug 14:13:20 - [warn]
    ---------------------------------------------------------------------
    Your flow credentials file is encrypted using a system-generated key.
    If the system-generated key is lost for any reason, your credentials
    file will not be recoverable, you will have to delete it and re-enter
    your credentials.
    You should set your own key using the 'credentialSecret' option in
    your settings file. Node-RED will then re-encrypt your credentials
    file using your chosen key the next time you deploy a change.
    ---------------------------------------------------------------------
    27 Aug 14:13:20 - [info] Starting flows
    27 Aug 14:13:20 - [error] [ha-entity-config:03141dd3886a8e74] Error: Invalid server config
    27 Aug 14:13:20 - [info] Started flows
    I couldn't find any solution for that problem.
    Please help.
    Thanks

    • @lets-automate
      @lets-automate  2 місяці тому

      Hi! I can't see a fatal error in those logs so it might still be loading. What happens when you press the "open Web ui" button in the add-on?
      Have you set a credential secret in the configuration tab? You also want to set username and password for http_node and http_static.
      I hope you get it working!