Great documentation for something that is probably not used because ... it's not well documented. Thanks for this! The ability to match based on "Event Data" is exactly what I need. With multiple Bambulab 3d printers attached to Home Assistant, I need to monitor them and doing it with multiple "poll state" nodes was really painful. I'm not done implementing the logic using "Events All", but it's looking great so-far. Again, THANK YOU!
@thebleepbloop454711 күн бұрын
Glad it could help someone. ;). I use it for a bunch of stuff.
@rjbeare2 ай бұрын
Probably a stupid question but how can we do the same thing with boolean buttons?
@thebleepbloop45472 ай бұрын
There are no stupid questions. Not sure what you mean. Are you thinking about controlling the state of 4 separate toggle switches such that only one could be on at a time?
@jessemilligan2 ай бұрын
Found this video while I was trying to figure out how to do this exact thing… for the same purpose too, selecting the season to change how I do lighting. 😂
@jongriffith42932 ай бұрын
That's amazing!
@chjr47404 ай бұрын
So convoluted. I have no idea what you were trying to do for the winter stuff. Why not just so the simple example of turning 3 lights in an exclusive way?
@lakromani81726 ай бұрын
At 2:06, where is srcipt.turn_on defined. Can not get this to work, since I do not see where this part comes from. PS You are using * wrong in regex. * means repeat last character any number of times. It should be dot star .* to match any characters. But here you can remove the star at all and just use ^sript_desk since it will match that regex. I do use MQTT insted of this way, since no script are needed.
6 ай бұрын
I follow your video step by step but I get this message: Cannot call service input_select/select_option. required key not provided @ data['option']
@brodymoore94856 ай бұрын
I think people need to check their setups because I can hear you no problem lol
@Andre-xu3pq6 ай бұрын
Events: State node is different now 😞 i try to get this simpel, and step one with the debug i get no information. the witch works in MQTT is see the switch to move .. I this because the " Events: State node" is different now??
@jongriffith42936 ай бұрын
It does look different now. The principle still applies. Make sure that the state that you're testing for matches the states that your device reports. In my case, the motion sensor reports 'on.' Other motion sensor I've had report "detected," etc.
@DementedDog6 ай бұрын
That was really helpful for me thanks - I’ve tweaked it to set up a 7 button grid to control a ceiling fan which doesn’t work with a normal fan card!
@gayanll7 ай бұрын
Can you please post the code for input select too?
Fix your volume level and I will watch your videos! We CAN'T hear you.
@thebleepbloop454710 ай бұрын
Will do...I found the problem. While I could hear it, I didn't notice the record level was low.
@Hellawacked10 ай бұрын
On iPhone it’s not terrible.
@guy9999 ай бұрын
It’s fine on the iPad
@k5vg Жыл бұрын
What's up with the extremely low recording sound level? This video might actually be useful if the sound were audible.
@awgphoto Жыл бұрын
One question. How do I turn on the Dev Mode tab?
@romanykemp9042 Жыл бұрын
Helpful videos Jon. Thanks for pulling it together. You need to do more - you do a really great job in explaining these concepts.
@yomegaman1 Жыл бұрын
I love your TTS videos - and this "Scripts in Node-Red" is brilliant! Thanks for adding my new favorite tool to my Automation Toolbox.
@jongriffith4293 Жыл бұрын
Hey thanks!
@andymok79452 жыл бұрын
Good videos. You nerd to turn your mic level up a bit. The audio level is too low.
@fin31252 жыл бұрын
Love your videos. Can we submit requests?
@thebleepbloop45472 жыл бұрын
Sure, what are you trying to do?
@fin31252 жыл бұрын
@@thebleepbloop4547 I want to set limits on lights and fans the kids leave on. I am using a Helper to set the # of minutes. Zero would be for unlimited. How would I go about somthing like that?
@fin31252 жыл бұрын
@@thebleepbloop4547 Would love a lot of little how to videos.
@jongriffith42932 жыл бұрын
@@fin3125 The challenge is to determine at which point the light has been left on as opposed to when it is actually needed. You would need to be able to determine when the person abandoned the need for the light, which is a presence detection challenge. You could simply put a timer on each light, but then you have the problem of the light turning off when it may need to be on. If you use a motion sensor, you can monitor the state of that sensor and every time it's fired, run the payload through a timer node that counts down, then a service call to shut off the light when it expires. Is that what you're trying to do?
@fin31252 жыл бұрын
@@jongriffith4293 I have motion senors in some places but some I don't care..like.. Bathroom fan. I don't want the kids leaving it on for more than a few minutes or all the AC or Heat will get sucked out. But sometimes my wife wants it on longer mid season when the AC and heat are not on. In that case she can set it to zero. I set the variable to the number of minute. The State node uses that variable. Need to figure out the rest. I have other project too that I have not found videos for.
@fin31252 жыл бұрын
Thank you for these vidoes.
@ighost_13372 жыл бұрын
you should not expose your HA url
@thebleepbloop45472 жыл бұрын
Are you able to see my UI or just the login screen?
@PitFighter20072 жыл бұрын
sound is very quiet...annoyingly so. good vid tho.
@delbertruperman2 жыл бұрын
Thank You, very easy to understand.
@BoneyardHauntedHouse2 жыл бұрын
Very helpful video, thank you for sharing your knowledge.
@joos20332 жыл бұрын
What if, instead of a timer i want say to turn on and off the lights only in the moment of the day where there is no light outsite. It is possible ? do you have a video or explanation about how to do it ?
@jongriffith42932 жыл бұрын
There is probably not going to be a time when there is no light at all. So, what you would need is a light sensor that can give you a value in HA. Then, create a flow that watches that sensor and allows the message to pass if the value of that sensor falls below the value you note when the light conditions are what you want them to be, and vice versa
@KrastyoKrastev2 жыл бұрын
Great video! Too bad you have stopped doing videos :(
@zlkurtztecnologia2 жыл бұрын
good
@robi26682 жыл бұрын
Amazing simple and explicit tutorial, would love to see more!!!!
@ryanmarkus23832 жыл бұрын
How about one using bigtimer to turn on your lights?
@jongriffith42932 жыл бұрын
Super easy. Three nodes. Big Timer, a switch node, and the service call to turn on the lights. Set the Big Timer ON time and OFF time. Add "on" and "off" as the text in the ON Text and Off Text fields, then connect the bottom output of Big Timer to a switch node that checks for the text "on" or "off" in the payload. Direct the outputs of the switch accordingly to one of two nodes. Either a service call to turn on the switch/light, or one to turn off the switch/light. This is one simple way of many different methods.
@danielducu2 жыл бұрын
Motion sensor cool down period not taken into account here … unexpected results when you revisit the room and nothing happens
@jongriffith42932 жыл бұрын
The motion sensors I'm using trigger, then they reset in a matter of seconds. Hasn't been an issue.
@Paullik833 жыл бұрын
bad logic. this never works well.😆... How reset the timer if movement is acriv for more then 5 minits?
@jongriffith42933 жыл бұрын
Motion sensor is a binary on/off with a built in timer, so there's no continuous motion detection. It would simply be repeated motion triggers, so you could easily create a flow that re-triggers the timer every time it senses motion and shut down the lights after 5 minutes have passed without motion detected.
@n2ocharged3 жыл бұрын
I know this video is a year and a half old, my motion sensors won't update the timer to reset it. What sensors are you using?
@petercdejong3 жыл бұрын
More vids please! I am just starting with node red so bring it on!
@jongriffith42933 жыл бұрын
Got any specific challenges you're interested in solving?
@frankbecks2183 жыл бұрын
Works great, thanks :)
@eddomak3 жыл бұрын
Thanks for the video - it definitely helped me get started, and the logic is really helpful for checking additional conditions. In this particular case would it be more efficient to not even have the check for whether the light is already on and just always send a command to turn the light(s) on? This would still reset the timer each time prior to switching off.
@jongriffith42933 жыл бұрын
It's not necessary, but in a mechanical automation, it might make sense to check the state of something before automating.
@pauls83663 жыл бұрын
Bad resolution, bad noise, I gave up after 30 seconds, but read the comments and give it a try more.
@PatipanWongkleaw3 жыл бұрын
You need to properly tune your volume, don't just edit with your headphones on at max volume
@simonburke66813 жыл бұрын
I don't have sensor as an option under Home Assistant, any idea why?
@thebleepbloop45473 жыл бұрын
There could be many reasons for this, but I would start by looking at your Home Assistant configuration.yaml file. You should define your sensors through this file, whether it's directly in this file, or by using an included file in a different sub-folder of your home assistant configuration.
@SayWhaaaaaaaaaaaaaaaaaaaaaaat3 жыл бұрын
WTF quality??? impossible to see anything only 480p
@thebleepbloop45473 жыл бұрын
My bad. Not sure what happened. I recorded it in 1080p.
@emaanrad16243 жыл бұрын
hmm show me > > Home assistant connection failed with error: Connection to home assistant could not be established with config: localhost:8300 <password not used>
@thebleepbloop45473 жыл бұрын
Where are you seeing this?
@mattb74063 жыл бұрын
That was one of the coolest fricken things ever!
@jongriffith42933 жыл бұрын
Come on! Ever? Well, thanks!
@JoseBerruezo3 жыл бұрын
Hello, how can I enable or disable this flow from the homeassistant? For example, with a switch, on homeassistant, I can enable or disable this flow .Thanks
@jongriffith42933 жыл бұрын
Create an input boolean in HA, then in NodeRED add a switch to your flow that tests against it and stops the flow if it's TRUE.
@JoseBerruezo3 жыл бұрын
@@jongriffith4293 Thank you
@danieljensen7613 жыл бұрын
excellent video. great level of explanation. looking at you tabs in node. plenty of material to teach/explain :)
@jongriffith42933 жыл бұрын
Agreed...if only I didn't have an 8 month-old wobbling around here.
@darrenmunday40643 жыл бұрын
Thanks for getting me up and running with this. Now I must remember to turn my sound back down! Your vols are very low.
@thebleepbloop45473 жыл бұрын
Sorry about that. Sometimes I have to record these late at night when the family is sleeping in a really chaotic remodeling situation ;).
@MaxGoddur3 жыл бұрын
Please continue to make videos these are probably the only videos I have found covering step-by-step examples using Home Assistant and Node-Red. I still don't understand how the flow in NR talks to the HA devices. I can understand how the ESPhome works due to having the upload feature but no idea how the code gets to the ESP device once the flow is written?
@thebleepbloop45473 жыл бұрын
ESP devices simply become sensors or switches or lights. The Home Assistant nodes in NodeRED simply connect to the services that already exist in Home Assistant. So, if you have a motion sensor, and you used ESPHome to configure it and connect it to Home Assistant, then you can use the NodeRED Home Assistant nodes to listen to or trigger those entities. NodeRED doesn't send any code *to* the ESPHome device. NodeRED simply interfaces with Home Assistant much like you would if you were using the Home Assistant user interface. An example would be a basic light switch. In NodeRED, you use a Call Service node, point it to the light or switch you want to change, set whether it's to be turned on or off, and then use an inject node to test it. Whatever you add to the input of the service call will be what triggers NodeRED to send the "on" or "off" signal to Home Assistant through the call_service function.
@MaxGoddur3 жыл бұрын
@@thebleepbloop4547 if you ever decide to do a video using NR and HA and the Athom socket (my understanding of the Athom single gang receptacle is it is flashed with Tasmota) as it pertains to monitoring a washing machine and notifying it has completed I would be very interested and we could sip on a "buy you a cup of coffee" while we talk about the setup. I have tried to follow the many videos and instructions on how to do this but it appears the missing steps render the tutorials DIW.
@MaxGoddur3 жыл бұрын
Thank you so much. The number of videos covering the step-by-step of how a flow is created is just not found anywhere. It seems in the videos I have seen it is assumed everyone knows all the terms and syntax associated with Node-Red. I like how you explain why and what to enter sections of the nodes. I am new and want to learn more about Node-Red and how it works with Home Assistant. As it stands now I get the basic flow idea (and I mean basic) but not sure how Node-Red communicated with HA once you have completed a Node-red flow? Anyhow, I am going to see your YT page and see if you have any more videos. Fingers crossed this is what I have been searching weeks for? Still not sure how you get NR to see the stuff in HA. Again thank you.
@thebleepbloop45473 жыл бұрын
The connection between NodeRED and Home Assistant happens when you install the NodeRED Add-on inside of Home Assistant, so any time you open NodeRED through the Home Assistant interface and add any of the Home Assistant nodes, the entities will auto populate when you start typing in the right fields. If you alter the configuration, the NodeRED addon (not just home assistant) will need to be restarted so it picks up the new settings. I'm not sure how to connect to Home Assistant if you're using NodeRED outside of Home Assistant other than installing the node-red-contrib-home-assistant-websocket in NodeRED through the Manage Palette settings.
@MaxGoddur3 жыл бұрын
@@thebleepbloop4547 I got the setup working and stumbling through your video. I got the led on another ESP device to be controlled by NR flow. So exciting. Look forward to seeing video examples of NR and other flow examples. I have a washer with the Athom plug and would like to learn how to send a simple text message to my cell phone. Along with maybe text to speech for alerting us the washer has completed. Again thank you and would like to buy you a cup of joe.