JUST THE TIP - Home Assistant Node-Red: Streamline Switch and Light Flows

  Рет қаралды 9,739

3ATIVE VFX

3ATIVE VFX

Күн бұрын

Пікірлер: 55
@ha_tinkerer1191
@ha_tinkerer1191 Жыл бұрын
Just want to thank you belatedly for this video. Just shared it to answer someone’s question about this in the NR discord channel.
@3ATIVE
@3ATIVE Жыл бұрын
Oh that's great, @ha_tinkerer1191! Glad the video helped and thanks for sharing it to assist others in the NR discord channel. Appreciate your support! 🙌
@thierry3610
@thierry3610 3 жыл бұрын
I've slowly been streamlining my flows as well with function nodes and subflows, however you took it a step further. Excellent tips!
@3ATIVE
@3ATIVE 3 жыл бұрын
Good to hear, nothing worse (IMHO) than a messy 'Flow' 😉 Thank you for the kind feedback, I hope you were able to include what I've shown here in your process. 👍
@d_sellers1
@d_sellers1 3 жыл бұрын
Great video. I had tried using NR & Alexa in the past using the basic on/off code (I forget where I found the function), but was discouraged because I couldn't figure out how to get brightness and RGB to work and started having a lot of nodes. It works great with your function and using the Topic clears up the number of nodes used. Two things that I'd like to mention: 1. The Topic can be used to control multiple entities. For example, in the Call Service Node, changing the Entity Id from "light.{{payload}}" to "{{payload}}" will allow you to use the Topic of "light.living_room_1, light.living_room_2". (I imagine you could use a Topic with a group.entity_id too but I haven't tried it.) 2. I was also able to control an input_boolean in the same fashion. I used the topic of "input_boolean.motion_detectors_active" which I use in other automations. Since the Call Service node is on the homeassistant domain, it just seems to work. Now, I can tell Alexa to "turn on/off the motion detectors". As I am slowly moving towards more locally controlled devices, getting them incorporated to be controlled with Alexa was a roadblock. Now, I know what I have to do to get past it.
@3ATIVE
@3ATIVE 3 жыл бұрын
Thanks Derek, I'm so happy happy to hear it's help out. 😎 Good points on the topic usage, I will have a play with that too. 👍
@MrPSummerfield
@MrPSummerfield 3 жыл бұрын
Great tip, just implemented the first simplification to control my central heating, thank you.
@3ATIVE
@3ATIVE 3 жыл бұрын
YAY!!! Excellent 👍 Good to hear.
@borolo222
@borolo222 3 жыл бұрын
Man, you nailed it. Thank you.
@3ATIVE
@3ATIVE 3 жыл бұрын
Thanks man. 👍I hope you find it useful.
@theaustindude
@theaustindude 2 жыл бұрын
Great tip! I may have missed it, but where is the rgb color and brightness coming from?
@3ATIVE
@3ATIVE 2 жыл бұрын
Those are sent (along with On/Off) from the Alexa Node, as part of its Payload.
@alcidesmarcano
@alcidesmarcano 3 жыл бұрын
Awesome brother!!! as always a brilliant master class... Thanks
@3ATIVE
@3ATIVE 3 жыл бұрын
My pleasure! Ah there it is... my favourite feedback "Master Class' - it never gets old. Big thanks. 😎
@NunoSoares22
@NunoSoares22 3 жыл бұрын
Nice!!!! Congrats! Keep them coming :)
@3ATIVE
@3ATIVE 3 жыл бұрын
Thank you Nuno, I have loads of ideas stacked up! - 'Stay Tuned!' 😜
@Rickr522
@Rickr522 3 жыл бұрын
That is great!!! Thanks for the instruction and your time.
@3ATIVE
@3ATIVE 3 жыл бұрын
You are most welcome... thank you for the feedback. 👍
@gkchimzz28
@gkchimzz28 2 жыл бұрын
Thanks
@RichSimpson
@RichSimpson 3 жыл бұрын
Excellent, just moved my flows to this same way of working. For switches do you just not need the function?
@3ATIVE
@3ATIVE 3 жыл бұрын
*Good to hear it* 👍 For basic things, like switches and some lights that only have On/Off - you don't need a 'Function Node'.
@zht9
@zht9 2 жыл бұрын
This is something next-level to me. For my curiousity, does this improve the performance of Node-red?
@3ATIVE
@3ATIVE 2 жыл бұрын
Hard to say, I haven't done any comparisons or bench-marks. I guess it must do - as there is a lot fewer connections and nodes
@zht9
@zht9 2 жыл бұрын
@@3ATIVE Cooool. Looks like it's time to refresh my setup.
@drreality1
@drreality1 3 жыл бұрын
That’s great take on streamlining thank you. I struggle with setting brightness transition smoothly, by pressing up or down button. I finally settled on 10 steps. have you figured out a better way?
@3ATIVE
@3ATIVE 3 жыл бұрын
Thanks. I have a few Flows where I did something like this, it makes everything easier to fault-find and build upon.
@adidas5901
@adidas5901 3 жыл бұрын
Sir plz plz node red esp8266 led pwm brightness make a video
@adidas5901
@adidas5901 3 жыл бұрын
Multi led pwm brightness nodred mqtt esp8266
@3ATIVE
@3ATIVE 3 жыл бұрын
Sorry, I'm having trouble understanding what you mean.... ESP8266 need to be programmed, or 'Flashed' first, in order to control LEDs via PWM. Once done, sending 'Brightness' from Node-Red is easy.
@3ATIVE
@3ATIVE 3 жыл бұрын
@@adidas5901 I don't use MQTT - I don't see the point or have the need for it. 😉
@kennethfribert6074
@kennethfribert6074 3 жыл бұрын
Good tips, just too bad that all my normal light control is handled in ControllerX :-D Only the more special functions are in node-red for me :-)
@3ATIVE
@3ATIVE 3 жыл бұрын
It's not only for lights and switches, I hope at least some of what I've shown could be useful for you down the line. ✔
@kennethfribert6074
@kennethfribert6074 3 жыл бұрын
@@3ATIVE Hi, sorry, the comment wasn't meant for saying it wasn't usefull, I'm trying to look at my flows to see if I can use the method, just not for lights for me. I've used another method for my fire alarm, as I want voice notifications, I've used a change node, with a ton of 'search' statements, so it will seach for the nodename, and then send the name I want for that room.
@3ATIVE
@3ATIVE 3 жыл бұрын
@@kennethfribert6074 Oh no worries, I wasn't offended by your comment. Soz, if my reply read that way. 😊
@kennethfribert6074
@kennethfribert6074 3 жыл бұрын
@@3ATIVE It didn't :-)
@flixmyswitch
@flixmyswitch 3 жыл бұрын
stream lined - nice
@3ATIVE
@3ATIVE 3 жыл бұрын
Cheers fella. 🍺
@stever8114
@stever8114 3 жыл бұрын
Thank you for this. A question. I have a couple of lamps that turn on at the same time and they are currently listed on the entity id line separated by a comma in a call service node. Is there a way for a msg.payload to handle something like this?
@3ATIVE
@3ATIVE 3 жыл бұрын
I'm not sure what you want to do, it sounds like you already have this setup the way you want.
@stever8114
@stever8114 3 жыл бұрын
@@3ATIVE Sorry poor explanation on my part. Current setup has entity id of "light.wife.lamp,light.me.lamp". To streamline, topic of "wife.lamp,me.lamp" of course fails. Is my only recourse to break these entity ids back out into individual flows, or is there maybe a way to send two topics from the time node they originate from?
@3ATIVE
@3ATIVE 3 жыл бұрын
@@stever8114 Ah ok, I get ya now. 👍 Hmmm, well.... I'd really have to see your Flow in order work out how you are triggering these and how to best optimise it. Contact me on Facebook so we can go through it. facebook.com/3ative
@BigBird2202
@BigBird2202 3 жыл бұрын
So much help thank you
@3ATIVE
@3ATIVE 3 жыл бұрын
You are welcome. I hope you were able to use what I've shown. ✔
@timknowlden
@timknowlden 3 жыл бұрын
Hi Tutorial is very helpful and I have now streamlined a few flows however I have an office light that when motion is detected I outside of sunset to sunrise it turns on at 100% for 2 minutes using trigger node and then off. if the time is also before 11am or after 8pm it only turns on to 50%, is there a way to use those variable in the function node to reduce them further?
@3ATIVE
@3ATIVE 3 жыл бұрын
No one here called 'Tutorial' LMAO Thanks for the feedback, I'm glad to hear my little video was useful for you. 👍 As for your office light flow... I'm not able to offer help via KZbin comments. There's simply no way to see what you have or to offer advise on your flow.
@dfgass
@dfgass 3 жыл бұрын
What is that link node coming from?
@3ATIVE
@3ATIVE 3 жыл бұрын
'Link In' and 'Link Out' Node pairs create 'Virtual' connections between Nodes. I use them to wire between Flows. The ones I show here connect back to the 'Amazon Echo Hub', on another Flow - I showed their use in another video: kzbin.info/www/bejne/f5Obg5mceL6WnNE
@clintAdventures
@clintAdventures 3 жыл бұрын
What is the alexa node your using? I've tried a few and none will work (connect to my echos)
@3ATIVE
@3ATIVE 3 жыл бұрын
Without knowing how you've set up your system, just giving you the node name may not work. I have a whole playlist devoted to Home Assistant and Alexa and everything you need / every question have about my set up is shown there: kzbin.info/aero/PLWRTMby105biP9gE08iGLab1FP6n7_mka
@remcoverhagen192
@remcoverhagen192 3 жыл бұрын
is this possible with google home ??
@3ATIVE
@3ATIVE 3 жыл бұрын
The main point is reducing Nodes, I only use Alexa but, If you can get Google in Node-Red the same way... I can't see why not. ✔
@6BlackWings
@6BlackWings 2 ай бұрын
What?
@3ATIVE
@3ATIVE 2 ай бұрын
Why?
@dougle03
@dougle03 3 жыл бұрын
Stop saying friggin 'alexa'.... Echo would work just fine.. ;)
@3ATIVE
@3ATIVE 3 жыл бұрын
Soz about that, I noticed I missed some - After I uploaded. My Bad! 😜
Home Assistant Node-RED Install Plus Examples
1:14:32
Tech Tutorials - David McKone
Рет қаралды 59 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН
Вопрос Ребром - Джиган
43:52
Gazgolder
Рет қаралды 3,8 МЛН
Beginners Guide to Node-RED in Home Assistant
27:10
Let's Automate
Рет қаралды 99 М.
Smooth dimming with Node RED
13:31
Esben on tech
Рет қаралды 11 М.
10+ Community Node Red Automations Cookbook
13:30
Smart Home Makers
Рет қаралды 11 М.
Home Assistant practice. Times of the Day, application, template creation
11:26
Alex Kvazis - технологии умного дома
Рет қаралды 16 М.
JUST THE TIP -  Top 10 Node-Red Tips & Tricks for working faster
3:56
Мы Сняли Радужных Друзей на новый iPhone 14 PRO !
24:18
It's not easy to think too much in this life
0:56
R-CC
Рет қаралды 103 МЛН
Cut the Rope Challenge ✂️ #shorts
0:56
Mr DegrEE
Рет қаралды 9 МЛН
LNF - Câu chuyện về 2 anh em || The Story of 2 brothers #shorts
0:53
Linh Nhi Family
Рет қаралды 23 МЛН