top of page

Making smart home tutorial with Amazon Alexa Part 1

Updated: Mar 20, 2021

Hello All, As I moved to my new home I decided to make all my home smart, as a lazy person I need to make anything smart, like lights, thermostats, etc and I'm sharing every step with you...

to make the first project I'm starting from the kitchen lamp, the place never I go so if my project doesn't work I don't lose that much :)


 

In this project we learn :

  1. How to program nodemcu (ESP32)

  2. How to use fauxmoESP to emulate Philips hue

  3. How to control lamp with Alexa


 

The things we need :


 

Let's get started




First, if you don't have Arduino IDE you should download and install it, if you have any problem with installing or downloading there are many courses about how to use the internet :) just kidding



How this works:

the main purpose is to control the kitchen light with Alexa, when you ask Alexa to discover a new device Alexa starts to search and ask all of the devices in the local network or understand there is any familiar face or not, so? if we connect our ESP32 to wifi Alexa will ask that nodeMCU and definitely, our nodeMCU is not familiar with Alexa, so we have to pretend we are a familiar brand! then Alexa will trust us.

one of the libraries that emulate Philips Hue is fauxmoESP.


The first step is installing Arduino IDE

then we go to Arduino IDE preferences and in additional Boards Manager URLs we add these 2 links:

https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json




now it's time to add fauxmoESP library, so we go Tools -> Manage Libraries and in the searching field, we enter Fuxmo then we install it!




it's time to go to the code, choose the Fauxmo example from File -> Examples -> FauxmoEsp -> FauxmoESP_basic


as you ss example is pretty simple and there are 4 different devices, but because I need just one device I just keep on them and remove the rest of it



as you see I just removed 3 devices and changed one device name, and because I'm so lazy even I don't change the variable name! :)


now everything is ready and after setting SSID and password in "credentials.h" we are ready to upload code to our ESP32(or ESP8266)





Full code: https://github.com/robotvio/smart_kitchen_fauxmo

4 Comments


Jack Parsley
Jack Parsley
7 days ago

This tutorial on creating a smart home with Amazon Alexa is a great starting point! I love how easy you made it to understand the setup process. If you're looking for additional support in organizing your smart home setup, you might consider seeking affordable ghostwriting services to help with detailed instructions and guides. It can save time and provide professional results, especially for those who want to document their journey.

Like

Great introduction to creating a smart home with Amazon Alexa! I'm looking forward to learning more. Also, if anyone needs HRM Assignment Help UK, just a click away for expert guidance.

Like

Paint Protection Film | Ultrashieldx


ULTRASHIELDX specializes in premium Paint Protection Film services designed to safeguard your vehicle's exterior from scratches, chips, and environmental damage. Utilizing advanced technology, their PPF offers unmatched clarity and durability, ensuring your car maintains its pristine appearance.


best paint protection film

Top 7 Tips to Protect your Car From Scratches

Selecting the Best Coating for Your Vehicle: Teflon vs Ceramic vs PPF

How to Clean Car Windshield?

Top Mistakes People Make When Choosing Paint Protection Films

Dichroic Glass 


Like

A well-crafted Finance Project Report for MBA is essential for showcasing your understanding of financial concepts and applying them to real-world scenarios.

Like
  • Facebook
  • Twitter
  • LinkedIn

©2021 by mycamp. Proudly created with Wix.com

bottom of page