ESP8266 Light Dimmer For Smart Lights (Home Assistant, ESPHome)

Sdílet
Vložit
  • čas přidán 2. 08. 2024
  • Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video, ‪@PCBWay‬ www.pcbway.com
    I like having a small smart home setup build around Home Assistant. Simple automations, voice controls and other modern features are nice, but I still want regular controls for lights (in addition to smart features).
    I made simple light dimmer using ESP8266 which I configured using ESPHome. This works hand-in-hand with Home Assistant's controls: Even if brightness was changed by another device, this knows what current brightness is and manages to adjust it in small steps.
    SOURCE CODE, added some rounding, filtering and maybe other things for reliability and stability:
    github.com/hugatry/VideoSourc...
    HARDWARE: There isn't much, I selected D1 mini's D5 and D6 for the A and B pins of rotary encoder, encoder's common pin is connected to ground.
    0:00 Light dimmer
    0:35 PCBWAY
    0:55 Light to be controlled
    1:08 ESPHome
    1:22 YAML: Rotary Encoder Sensor
    1:50 YAML: Filtering / limit update rate
    2:25 YAML: Change Brightness
    2:55 Almost working?
    3:30 YAML: Read brightness from Home Assistant
    3:55 Now it works!
    If you liked the video, please show it and hit the Like-button!
    Check out my other videos:
    / hugatry
    Subscribe:
    czcams.com/users/hugatry?...
  • Věda a technologie

Komentáře • 4

  • @Ben-ld5lt
    @Ben-ld5lt Před 2 měsíci

    Nice video! Thanks for sharing.

  • @Edmorbus
    @Edmorbus Před 2 měsíci

    Excelente video
    Can you make dowloadeble files schematics

  • @Edmorbus
    @Edmorbus Před 2 měsíci

    Thanks for sharing
    can you help me to make circuit schematics and code
    I want to read voltage with an isolated ground
    Mine setup is 4x 12v battery with 4x solar controllers with 1x Esp32 and 2x ADS1115

  • @argentinomacrifuevidaltamb3772

    Excelente video