Automating an RGB Lamp With Your Phone by Using Home Assistant Along With ESPHome

Introduction: Automating an RGB Lamp With Your Phone by Using Home Assistant Along With ESPHome

About: #BnBe is a platform to help teach electronics no matter what the age or skill level. We’re currently designing a wide range of products from beginner level kits to industry-standard microcontroller platforms.

In this post, we learn how to control WS2812B RGB LEDs from your smartphone, using Home Assistant. This includes controlling it's colour, brightness and even triggering effects.

Step 1: Watch the Video


The video above gives you all the information you need to build this yourself. This post will only provide the final configuration file that can be used as a starting point.

Step 2: Wire the LEDs

You can use the reference wiring diagram above to connect the LEDs. Please note that you need to use the RX pin, which is also the GPIO3 pin. This is needed as the DMA data transfer defaults to GPIO3.

Step 3: Configuration File

You can use the following link to obtain the configuration lines that need to be added to your ESPHome node:

https://www.bitsnblobs.com/wp-content/uploads/2020/05/e42.txt

Be the First to Share

    Recommendations

    • Rocks, Gems, and Stones Speed Challenge

      Rocks, Gems, and Stones Speed Challenge
    • Retro Tech Challenge

      Retro Tech Challenge
    • 3D Printed Student Design Challenge

      3D Printed Student Design Challenge

    2 Comments

    0
    BhupeshM2
    BhupeshM2

    Question 1 year ago on Step 2

    Where you buy this board

    0
    Bnbe_club
    Bnbe_club

    Reply 1 year ago

    You can buy it from eBay, Amazon and even Aliexpress. Search for "WeMos D1 Mini Board"