Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabriel-milan/smart-switch
Using Blynk and Amazon Alexa with the ESP01 Relay Module.
https://github.com/gabriel-milan/smart-switch
Last synced: about 1 month ago
JSON representation
Using Blynk and Amazon Alexa with the ESP01 Relay Module.
- Host: GitHub
- URL: https://github.com/gabriel-milan/smart-switch
- Owner: gabriel-milan
- Created: 2021-03-31T11:59:47.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-03-31T12:01:52.000Z (over 3 years ago)
- Last Synced: 2024-05-01T17:40:18.104Z (7 months ago)
- Language: C++
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Smart Switch
Using Blynk and Amazon Alexa with the ESP01 Relay Module.
All configuration is placed on `SmartSwitch/include/SmartSwitch.hpp`, please check this file before anything else.
## Setting up with Blynk
If you desire to disable Blynk, just comment the `#define BLYNK_ENABLED` line on `SmartSwitch/include/SmartSwitch.hpp`.
- Download and install Blynk on your smartphone
- Create a new app
- Place a button with Switch mode and set it to `GP0` (or the pin you want to use for your relay)
- Get your Blynk key from e-mail and replace it on the `SmartSwitch/include/SmartSwitch.hpp` file## Setting up with Amazon Alexa
If you desire to disable Amazon Alexa, just comment the `#define ALEXA_ENABLED` line on `SmartSwitch/include/SmartSwitch.hpp`.
- Create an account on SinricPro
- Add a new Device of type Switch
- On the "Credentials" tab, get both of your app key and password
- On the "Devices" tab, get your device ID
- Fill it up on `SmartSwitch/include/SmartSwitch.hpp`## Initial state and state if device goes offline
On `SmartSwitch/include/SmartSwitch.hpp`, set it like this:
```cpp
#define INITIAL_STATE OFF
#define DISCONNECTED_STATE ON
```