Home Assistant: Simple relays with ESPhome

  Рет қаралды 71,721

Intermit.Tech

Intermit.Tech

Күн бұрын

Пікірлер: 60
@IntermitTech
@IntermitTech 5 жыл бұрын
It seems I might have messed up some (confusing) terminology in the video! So, NO is normally open and that means *no* power will flow when there is no power on the relay, and will flow if if the relay is switched on... NC is not normally closed but Normally Connect, which means without the relay on, power will flow. The terminals depicted in the video (for instance at 6:56) and other explanations still apply just the terminology got reversed.
@timderks5960
@timderks5960 5 жыл бұрын
I've never heard NC being called normally connect, anyone I know or follow calls it normally closed. Normally closed also makes sense, since you're talking about a circuit. A closed circuit will flow, an open circuit won't.
@MrFurriephillips
@MrFurriephillips 5 жыл бұрын
LOL, I'm glad you clarified this, as I did a double-take!
@alexscarbro796
@alexscarbro796 4 жыл бұрын
It should be noted that the current rating for the relay will probably be for resistive loads. If you are switching a motor or other “reactive” load, the rating is often a LOT lower, e.g. Maybe 1A or less. So it’s always best to understand the load and check the relay specifications, otherwise it’s switching life may be significantly shortened.
@MrPSummerfield
@MrPSummerfield 5 жыл бұрын
Hi Quindor, thanks for a informative video. You're making me spend my money 😄. I've order quite a few relay boards, keep up the good work, your videos are great.
@shanxac
@shanxac 6 ай бұрын
Wonderfully explained video. I have a quick question, hope you can help me out with this. I have a esp8266 board running esphome with a PIR sensor connected to it. I am presently making use of Amazon Alexa actions through homeassistant automation when motion is detected (turn on light). Is it possible to connect a 220v (AC) led strip via a 5v single channel relay to the same esp 8266 board that has the PIR sensor to trigger motion detected led strip turning on. If so, what code lines should I be adding to the config file? Sorry for the long post. Thanks in anticipation.
@IntermitTech
@IntermitTech 5 ай бұрын
Hey hey, glad you liked it! Yes you can do that in ESPhome, look up "on trigger" actions in the ESPhome manual, the code you need is right there. :)
@shanxac
@shanxac 5 ай бұрын
@@IntermitTech Thank you very much for your reply. Really appreciate your help. I will look up on the trigger actions in esp home. Thanks.
@xanderdekok909
@xanderdekok909 4 жыл бұрын
I also build a small test setup with your ESPhome code, but I didn't understand the inverted: true option. In my setup this resulted in the switch being turned on by default. So I put it to false. Why did you invert the switches?
@dablet
@dablet Жыл бұрын
thank you for the code BUT please post link to the wiring. yes, we saw your pictures, but it would be clearer if you show pin connections. in my videos, i always do this to clarify
@sermayoral
@sermayoral 5 жыл бұрын
A really good video! I'm learning a lot with them. Thanks for your effort!! I'm very curious to see how the system is finally. Waiting for the next part :-) Regards!
@Labombab
@Labombab 5 жыл бұрын
Hi Quindor, I purchased a (AZDelivery 16-Relais Modul 12V mit Optokoppler relay) on Amazon, the gpio inputs on this board are 5V. Problem with this one is that my Rasberry 4 is not able to switch the relays, apparently because the gpio voltage of the Raspberry uses 3.3V and has not enough power to switch the 5V relays. I found a AZDelivery TXS0108E on Amazon, and they should convert the 3.3v to 5V. Once connected they only give contact when i mess arround with the jumper cables. Not shure it being the cables or the logic converter boards themselfs. I hoped that a logic level converter could solve the problem i ordered another 2x (8-Kanal-Level-Conversion-Modul Zwei-Wege-Konvertierung) on Amazon, but these are not delivered yet. So could not test these.....yet. Do you have any experience with these logic converters and would they solve my problem?
@IntermitTech
@IntermitTech 5 жыл бұрын
Ai, yeah, some really need 5v to trigger, the boards I linked to worked perfectly down to about 2.5v so worked with ESP's and such. But yes, I use logic level shifters on some of my boards and that can work to raise the GPIO voltage from 3.3v to 5v and that would fix your problem, won't be pretty, but that can work. :)
@jonsmol
@jonsmol 2 жыл бұрын
Is this the most effective way to control 24v analog strips? I have four 26’ long channels of high CRI white LED strips that I’m installing over my work shop/lab - i’m trying to figure out the best way to turn them on and off and dim Each channel will have a second 24v ID RGB strip that will be managed by ESP+WLED - I’ve got that tested and figured out from watching your previous videos but how to additionally manage analog in the same system would be wonderful!
@IntermitTech
@IntermitTech 2 жыл бұрын
I'm confused, if you are already using a PWM dimmer for the 24v RGB why then not also do so for the 24v Analog strip?
@ChazzerB31491
@ChazzerB31491 3 жыл бұрын
What do you have on the tips of your wires that connect to the screw terminals?
@IntermitTech
@IntermitTech 3 жыл бұрын
Those are wire ferrules, see here: quinled.info/2018/10/01/tools-and-equipment/#ferrule-crimping-tools
@gregbrissey5675
@gregbrissey5675 5 жыл бұрын
Just wondered if you had consider any I2C relay boards? (when you run out of pins) How many pins does the ESP32 have that can be used to control relays? Thanks
@IntermitTech
@IntermitTech 5 жыл бұрын
Ah good question! I haven't considered any because of probably added cost. In my case I need at most 12 relays in one place so I think even an ESP8266 NodeMCU has enough pins for that, but the ESP32 boards I'm using for sure (I believe there are 24 output pins).
@tomar5e115
@tomar5e115 5 жыл бұрын
Gotta think about safety too. Bet that Honeyeell controller has some smarts in it to identify faults with the system and shut off the valves in that event. What if one of your relays was locked closed? Would it stop heating or just keep running hot?
@IntermitTech
@IntermitTech 5 жыл бұрын
Worst case in my application would be that a valve would stay open, the pump would keep running or the heat pump would continuously get the signal that heat is desired. In the case of an open valve, that's no issue really and the circulation pump would still shut off so it makes no difference if a valve would get stuck. If the pump keeps pumping there is a safety for that in the system where some loops have no valves including the 40L buffer tank, so no risk of running it dry and it's been on for days before too. Continuous heat ask from the heat pump would mostly be inefficient. Since all valves would be closed it would keep heating the buffer tank and unvalved groups. Basically the heat pump is dumb anyway and only has a temperature it wants to get it's buffer tank to, if that temperature has been reached, even though there is heat ask, it will still automatically shut off until the buffer tank drops below it's set value. So I understand your concerns but everything that this is controlling has their own safety features also and even if everything was constantly on, it's designed to run that way. :)
@Jay.M
@Jay.M 5 жыл бұрын
Hi I just wanted to say I love your channel and these videos. I don't usually use affiliate links and this will be the first time I do. I really appreciate your information since I'm new to this. Would be good if you documented more in the blog though so i didn't have to keep revisiting these videos since they are quite long.
@IntermitTech
@IntermitTech 5 жыл бұрын
Thank you and much appreciated, it's a lot of work writing both the blog posts and making a video about it. But it's good to know people also value the written form, I'll try to think about what I can do to get more information into the blog post without costing even more time. 😅
@Jay.M
@Jay.M 5 жыл бұрын
@@IntermitTech of course! Maybe just dot points? I saw on the blog post you mentioned a DC to DC converter but I'm not entirely sure how to hook that up :( only ordering tonight though so I'll have a few weeks before it comes here to figure it out haha
@isaacbreuer6017
@isaacbreuer6017 5 жыл бұрын
How do you control the boiler circulating pump, that when any of the relays is on the pump should start, do you use on of the relays on board and nodered will do it? Or you heard wire toca separate relay
@IntermitTech
@IntermitTech 5 жыл бұрын
The pump is on its own relay and in Node-Red I can configure that if one valve opens the pump should also run. Or at least, in my test setup, I hope to continue building this later this year!
@linearburn8838
@linearburn8838 5 жыл бұрын
Just wondering IS there a More polished product that does the job of the esp32 and relay boards ect in a single comerical package
@brucerawiri7170
@brucerawiri7170 5 жыл бұрын
Hi Quindor. I am very interested in this video and I have one questions. You are using a NodeMCU to control the relays or ESP32 board, which is fine and this integrates into HA, all well and good. What I would like to do is us a simple Push Button to control One of the relays on a 8 channel Board. E.G. If I have 3 push buttons on my wall plate in the lounge controlling 3 separate lights. If i deploy the relay board in the ceiling and connect the lights to the relays, how can I control the Relays on the lounge switch which is 3 push buttons?? Can I use a NodeMCU to connect the Push Buttons too and then send a mqtt command or something to HA to turn the relay on? I guess the lounge switch could still be a simple light switch connected to NodeMCU or ESP32 development board I hope this makes sense. Thanks for now Bruce
@IntermitTech
@IntermitTech 5 жыл бұрын
Sure you can can easily program this using ESPhome combined with Home Assistant. You could even make it so that if HA would be down, because it's all on the same ESP32 that you can still switch the relays.
@brucerawiri7170
@brucerawiri7170 5 жыл бұрын
@@IntermitTech Thanks Quindor, much appreciated. Would you please be able to give me a sample of what the Switch Code would look like so I can test it. I would be greatly appreciative if you can help me out. Thanks so much again
@IntermitTech
@IntermitTech 5 жыл бұрын
@@brucerawiri7170 That's going to be a bit hard to do through KZbin comments. Search around for ESPhome code, I'm sure it wouldn't be too hard to find. :)
@martinspukitis1954
@martinspukitis1954 Жыл бұрын
How to put this stuff on a DIN rale?
@cassio2999
@cassio2999 5 жыл бұрын
It's the 1st of Maj at 12.00 and The Netherlands like Denmark are checking the Sirens
@mariopalma3802
@mariopalma3802 4 жыл бұрын
Hi Intermit-Tech, very intresting video. I would like to do something similar but for a electrical underfloor heating system. I know that a thermostat do this job, but I would like to define a certain maximum Kw instant consumption and decide what room (based on a priority list) have to be switched off- Do you think using your project plus some device (like Shelly EM) monitoring the consumption in Home Assitant cen work? PS the heating system will have a separate switch case so it will be easy to monitor just the heating consumption vs, the rest of the house. Thanks and please continue posting videos.
@IntermitTech
@IntermitTech 4 жыл бұрын
Poh, if you can program that logic and the thermostat is a simple on/off deal, you I think that can work.
@mariopalma3802
@mariopalma3802 4 жыл бұрын
@@IntermitTech I will try and let you know. BTW do you have your devices availables? I would like to buy a couple of them. Thanks
@IntermitTech
@IntermitTech 4 жыл бұрын
@@mariopalma3802 Everything is always available since they are DIY builds! But for the QuinLED-Dig-Uno I also do a pre-assembled version and that is currently in stock. :)
@pangit9999
@pangit9999 5 жыл бұрын
What is the advantage of this over a Sonoff running Tasmota?
@holijames82
@holijames82 4 жыл бұрын
can i use 1 esp32 on home assistance with 4 separate temp sensors and 8 relays?
@IntermitTech
@IntermitTech 4 жыл бұрын
Yes, that should work without issues
@holijames82
@holijames82 4 жыл бұрын
@@IntermitTech thanks mate, love your video 🤙
@jemapelu
@jemapelu 4 жыл бұрын
do you control the heat pump also?
@jorritparmentier2901
@jorritparmentier2901 3 жыл бұрын
Nice video. But I think you made a mistake with the lights. The 3 lights that are off are on NO, the one that burns is NC
@JM-zb8ro
@JM-zb8ro Жыл бұрын
What about hvac
@n.r.2258
@n.r.2258 3 жыл бұрын
coding in the meta information would have been a nice service.
@viniciusnoyoutube
@viniciusnoyoutube 5 жыл бұрын
Awesome video!
@tobias-lars.hoeher
@tobias-lars.hoeher Жыл бұрын
Hello, Thank you very much for your video. That's what first got me thinking about the topic. But now I am still new to the scene, but would like to try it. I bought the ESP12F_Relay_X8_V1.1 board with integrated WiFi and would like to integrate it with my WiFi and then control it with Home Assistant (underfloor heating), but unfortunately I still lack the skills to configure the board to connect to my WiFi. I know it's a lot to ask, but would it be possible to create a code where I only have to enter my SSID and password? Many thanks and greetings from Bavaria
@htcheroportugal
@htcheroportugal 5 жыл бұрын
nice work.
@sergio6477
@sergio6477 3 жыл бұрын
Great video, I'm aiming to do a similar setup as yours controlling my floor heating system with electrovalves. Could you share some pictures of your setup so I could learn a little from your experience?
@dunckeroo1987
@dunckeroo1987 4 жыл бұрын
230 volt zone controls (?) crazy. Over on this side of the world most zone controls are 24 volt.
@IntermitTech
@IntermitTech 4 жыл бұрын
Yeah, I would have rather had 24v DC too, but this is the most common system that is rolled out over here.
@dunckeroo1987
@dunckeroo1987 4 жыл бұрын
@@IntermitTech Oh that would be 24 volts AC , so needs a transformer.
@madrian_hello
@madrian_hello 5 жыл бұрын
Or you can use Sonoff 4CH too. :)
@IntermitTech
@IntermitTech 5 жыл бұрын
Yes, those are great too, but I need about 12 relais on 2 points and then this becomes a lot cheaper. Still Sonoff stuff is nice too!
@amintaleghani2110
@amintaleghani2110 3 жыл бұрын
thanks for your video, however i wonder if someone holds your hands can you continue talking ? 😁
@madhukeshnp
@madhukeshnp 4 жыл бұрын
#electroboom 😂
@jtreg
@jtreg 18 күн бұрын
the hand waving and head movements are so distracting, I can't follow what you are saying.
@DEEFRAG
@DEEFRAG Жыл бұрын
I really tried to watch your video. i'm interested in the topic but i can't stand your constant head shaking. just keep your head in a fixed position pointing towards the camera, like a normal person would do. It drives me crazy watching this unnecessary left and right movement. i have to stop it before i lose my mind.
@Patrick_010
@Patrick_010 Жыл бұрын
Stop waving your hands. Really annoying
ESPHome weight sensor in Home Assistant
9:35
Home Automation Guy
Рет қаралды 31 М.
Diy Presence Sensor
10:25
Mellow_Labs
Рет қаралды 42 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Home Assistant: Automated Bathroom Ventilation
10:57
Intermit.Tech
Рет қаралды 50 М.
Controlling Relay Boards from an ESP32
9:11
Enjoy Mechatronics
Рет қаралды 57 М.
Beginner's Guide to ESPHome ESP8266, ESP32, Beken Devices and more
33:46
Switches in ESPHome
12:17
kian
Рет қаралды 35 М.
Home Assistant Control Panel For My Wall
11:19
BorisDigital
Рет қаралды 346 М.
DIY Whole Home Power Monitoring with ESPHome & Home Assistant
30:39
digiblur DIY
Рет қаралды 259 М.