SmartHome and DIY Home automation
1. AlexaInterface is a simple interfacing between Alex Voice Commands to python script
Dependencies:
i. Fauxmo : python3 -m pip install fauxmo
ii. Flask: python3 -m pip install Flask
Running: python3 alexaInterface.py
2. Alexa_on_rpi is a complete smart light switch for controling with Alexa voice commands
Dependencies:
i. Fauxmo : python3 -m pip install fauxmo
ii. Flask: python3 -m pip install Flask
Download the source and install the dependencies to Raspberry pi(tested with raspian)
Running: python3 Path_to/diningRoom.py Path_to/configTemplate.json &
or add the above line to /home/pi/.bashrc
at the bottom for launching at boot
After boot up or running the command directly ask Alexa to "alexa discover devices"
Then saying "alexa light on" or "alexa light off" to turn the light 'on' or 'off'.
The python script triggers the rpi gpio pin number 4 high for 'on' and low for 'off'.
3. Esp8266_switch it is a wifi enabled module which connects to given ssid and enables mdns so it can be discovered by Alexa_on_rpi to operate its relays
Reference for flashing the chip: https://create.arduino.cc/projecthub/harshmangukiya/how-to-program-esp8266-with-arduino-uno-efb05f
Used a local made dev board for esp8266: https://www.techshopbd.com/detail/2832/ESP8266_WiFi_2_Relay_Switch_-_Retired_techshop_bangladesh