Dim Lights using ESPHome add on in Home Assistant

Ғылым және технология

#esphome #home_assistant #dim
Learn how you can dim lights from 5 to 36 VDC in Home Assistant with ESP32 or ESP8266 development boards.
Invitation Link to join my Exclusive membership:
/ @kian.smarthome
==============================
Code for ESP8266:
output:
- platform: esp8266_pwm
pin: D1
frequency: 500 Hz
id: pwm_output
light:
- platform: monochromatic
output: pwm_output
name: "ESP8266 Dimmer"
==============================
Codes for ESP32:
output:
- platform: ledc
pin: GPIO19
id: gpio_19
frequency: "1000Hz"
light:
- platform: monochromatic
output: gpio_19
name: "ESP32 Dimmer"
===============================
PWM Trigger Drive Module:
t.ly/J3ij
ESP32 Pinout Reference:
t.ly/bEmE
ESP8266 Pinout Reference:
t.ly/XtTQ
Set up ESPHome in Home Assistant:
• Setup ESPHome with Hom...
The simplest way to install ESPHome on ESP devices:
• The simplest way to in...
Install ESPHome on esp32 with ESP web tools:
• Install ESPHome on esp...
Home Assistant integration with ESP32 flashed with ESPHome:
• Home Assistant integra...
BUY ME A COFFEE:
www.buymeacoffee.com/kian.sma...
#smart_home #home_automation #iot #bms #dimmer #dimable_led #dimming_light #automation #automations #wifi #tuya #zwave #z-wave #esp32 #esp8266 #development_board #integration #pwm_trigger_module #zigbee #energy_efficient #energy_saving #peace #comfort #philio #fibaro #ezlo #700_series #add_on

Пікірлер: 43

  • @DylanOil
    @DylanOil2 ай бұрын

    Great video - been looking for a concise HA-ESP32 description on how to use PWM for a while. In my case 12V pump speed control. It would be nice if you explained a bit about pulse width and frequency. I get it but might help others.

  • @kian.smarthome

    @kian.smarthome

    Ай бұрын

    in a nut shell, frequency refers to the times the signal is high in one second. so with the longer high pulse, you'll have shorter frequency. I hope I could have conveyed the message as it is hard for me to describe it within a few words.

  • @DonParlor
    @DonParlor2 жыл бұрын

    As always, very informative and well made!

  • @kian.smarthome

    @kian.smarthome

    2 жыл бұрын

    Thanks a million

  • @McL-dz2st
    @McL-dz2st3 ай бұрын

    Nice, thank you 🙂

  • @kian.smarthome

    @kian.smarthome

    3 ай бұрын

    🙏🙏🙏

  • @RND-USA
    @RND-USA3 ай бұрын

    This video is so great, thanks for making it! I’ve looking for a good one that covers PWM dimming with two-pin (non-individually addressable) LEDs that works with Home Assistant, or Homebrige, and or Home kit for ever and finally this one came up. I’m going to do this project today. 😂🙌

  • @kian.smarthome

    @kian.smarthome

    3 ай бұрын

    You're welcome and thank you a lot. ❤❤

  • @RND-USA

    @RND-USA

    2 ай бұрын

    Hello! Update/ question! So after having my pwm + light running great for a month 🎉, I put it in a new enclosure (10cm x 70cm x 30cm ) which is just a little smaller than the first box I had it in. The only rewiring that I did was temporarily disconnecting the final 5v output usb panel jack (that powers the led strip light sign) so I could install it into the enclosure. I reconnected the jack back to the rest of the circuit. But at some point after powering up the whole system again (between exactly after turning it on to at the most 1 hour later - I wish I knew but I got pulled away from paying attention), my S4 diode on my NodeMCU v2 burnt out.🤔 I discovered it about one hour after adding power to the circuit when I noticed the device was offline and opened the enclosure and smelled that dreaded DIY burnt diode smell. I’ve since gone back to watch your video to recheck the wiring of everything and all the wiring looks the same as yours /correct. 🤔🧐🤔 Do you have any ideas on why my s4 might have burnt out? The only difference between your and my set up is that I'm using: from the wall, a 12v power supply (good quality Lacie Hard Drive 3A adapter) to => a Dual 5v voltage regulator / divider (LM2596) . From the voltage divider, the first 5v USB A 1A port goes to => usb micro cable => to the Node MCU usb micro port. From the second USB 5V 2A port => usb male to wires adapter positive and negative 18AWG wires => connected to the “vin +” and “vin -“ screw terminals of the mosfet (the VOUT terminals go to =>the final usb A connector that goes to the led strip sign). From the mosfet ,the soldered ground wire goes to the ->NodeMCUv2 ground pin (but on the bottom right side next to the 3v3 pin) and the pwm soldered wire goes to ->the D1 pin (upper right hand side). It is interesting to me that the burnt out S4 is on the lower left side next to the vin pin and ground pin that I did not use. Should I have used that left side ground pin instead of the one next to the 3v3 pin on the right side? In theory all of my grounds in the entire circuit have a common ground so that shouldn’t matter right? I have since tested the voltage divider’s outputs too and they read the same, 5v (as they should) . The led sign pulls 1A max. Any thought on what you think I should do before connecting this to a new esp8266 would be greatly appreciated! 😅 I have considered, for the next experiment powering the new NodeMCU via the pos wire from the voltage divider to the ESP’s vin pin and the negative wire of the Mosfet to the ground pin next to the vin instead of using the USB micro cable, to cut out any possible loops but maybe that could cause different problems? 😅 Thank you!!! 🙏

  • @RND-USA

    @RND-USA

    2 ай бұрын

    I just tried swapping out the old, burnt NodeMCU with a newly flashed one and it seems to be working great. I kept all the wiring the same as when the the last one failed. The only difference is that I used a different usb micro cable (until I can figure out a way to test the old one). Still curious if you know how the S4 diode might have blown on the old model. Do you think putting it in a 10 x 70 x 30 cm enclosure was a bad idea?

  • @kian.smarthome

    @kian.smarthome

    Ай бұрын

    @@RND-USA were you sure about connections and short circuits?

  • @RND-USA

    @RND-USA

    Ай бұрын

    @@kian.smarthome it’s really strange I never figured out how the damage happened. I hooked a new esp up the the old circuit and everything has been fine. I even put it into the enclosure. So maybe I just had bad luck with an esp. Thanks so much for your video btw. It was really hard for me to find a video on esp pmw dimmers for monochrome lights (2-wire). I’ve been meaning to see if anyone has made some with HomeSpan yet because HomeSpan is homekit compatible without the need of Home Assistant. These dimmers would make nice gifts. This video is best!

  • @sdelgadodelgado
    @sdelgadodelgado Жыл бұрын

    Good job

  • @jfrras1065
    @jfrras1065 Жыл бұрын

    تشکر . عالی

  • @EvgenMo1111
    @EvgenMo1111 Жыл бұрын

    thanks friend, that's it! it works

  • @PiyushNikam
    @PiyushNikam2 жыл бұрын

    Nice helpful video 👍

  • @kian.smarthome

    @kian.smarthome

    2 жыл бұрын

    Glad it was helpful!

  • @modulo-engineering
    @modulo-engineering Жыл бұрын

    Hi, nice short work. do you know how to implementate in Yaml. for example an additional button on a gpio pin for dimming ? short press on off, long press dimming up, again longpress dimming down. thx for Feedback.

  • @kian.smarthome

    @kian.smarthome

    Жыл бұрын

    Watch this video and inform me if it helped you: kzread.info/dash/bejne/e4KbsaRrdNvQgto.html

  • @darrentsai592
    @darrentsai592Ай бұрын

    Great video! Can you use an IRF520 mosfet too? Or is there a reason why the HW517 mosfet module is better?

  • @kian.smarthome

    @kian.smarthome

    28 күн бұрын

    For your answer the data of IRF520 must be checked. but I think there should be no issue.

  • @soumynonareverse7807
    @soumynonareverse78076 ай бұрын

    Thanks for the video. What do you do if I want to connect this to E27 LED bulbs that uses 230V?

  • @kian.smarthome

    @kian.smarthome

    6 ай бұрын

    Thanks. Only Change your Converter. It must work switch 230V

  • @silviocaltabiano5981
    @silviocaltabiano5981 Жыл бұрын

    Tx for the superb video. It helped me understand how to wire esp via MOSFET to led. Can this be used for cod led strip?

  • @kian.smarthome

    @kian.smarthome

    Жыл бұрын

    you're welcome. "cod LED"?

  • @CyrusHostetler

    @CyrusHostetler

    Жыл бұрын

    @@kian.smarthome I assume he means FCOB LED strips. I have been trying to use these because they are flexible, thin, and defused 12v LEDs. But I cant seem to get it to work. Flickering and my ESP32 cannot control the light.

  • @kian.smarthome

    @kian.smarthome

    Жыл бұрын

    @@CyrusHostetler So yes. you can use it for FCOB LED. Flickering means the power is not sufficient.

  • @cristianocarvalho5743
    @cristianocarvalho57437 ай бұрын

    How would you place this dimmer on the Nextion to control it?

  • @kian.smarthome

    @kian.smarthome

    7 ай бұрын

    Watch this video, I hope it helps you. kzread.info/dash/bejne/ZY6Kt8OkpciYqqQ.htmlsi=WeSisTqjxV7ssbqe

  • @keshav2609
    @keshav2609 Жыл бұрын

    Hi thanks for this great tutorial 👍 i was thinking of this code can manage fan speed... Heard that it should work... Can you confirm?

  • @kian.smarthome

    @kian.smarthome

    Жыл бұрын

    Fir sure Yes, Its tutorial is: kzread.info/dash/bejne/rJuht5aNhpWzipc.html

  • @alkhashtee
    @alkhashtee2 жыл бұрын

    Great Video Ali, but I have question like how can I show the brightness level on a GAUGE card on the DASHBOARD?

  • @kian.smarthome

    @kian.smarthome

    2 жыл бұрын

    thank you. by adding correct card to dashboard

  • @alkhashtee

    @alkhashtee

    2 жыл бұрын

    @@kian.smarthome Yes thank you I did that by using LIGHT card, but now how can I read it for automation purposes, like through Node-RED?

  • @inakiferreiramartin180
    @inakiferreiramartin180 Жыл бұрын

    Buenas tardes se puede utilizar un interruptor físico con robotdyn ac dimmer en esp home en una placa esp 32

  • @kian.smarthome

    @kian.smarthome

    Жыл бұрын

    Hi, sure, I can do that for you if you want in Membership channel. Inform me if you agree to join the membership, please.

  • @inakiferreiramartin180

    @inakiferreiramartin180

    Жыл бұрын

    @@kian.smarthome claro que si quiero ser miembro del canal

  • @inakiferreiramartin180

    @inakiferreiramartin180

    Жыл бұрын

    Gracias por el canal

  • @inakiferreiramartin180

    @inakiferreiramartin180

    Жыл бұрын

    Intento Colocar Un Interruptor Mecánico Pero No Lo Consigo A Ver Si Me Echas Una Mano Gracias

  • @t33jaytube
    @t33jaytube2 жыл бұрын

    Will this cause flickering when taking video under this light?

  • @kian.smarthome

    @kian.smarthome

    2 жыл бұрын

    yes

  • @Mascka666
    @Mascka6662 жыл бұрын

    Leds not so bright. I suppose that only 8 or 9v get to them

Келесі