https://github.com/ankush2992/smart-power-hub
Smart Power Hub: Control AC outlets remotely using ESP8266/ESP32 and SinricPro. Features voice control via Alexa/Google Assistant, mobile app support, WiFi connectivity, and real-time status updates. Turn any power strip into a smart home device. Perfect for home automation with easy setup and secure cloud communication.
https://github.com/ankush2992/smart-power-hub
esp32 iot-application voice-commands wireless-communications
Last synced: 2 months ago
JSON representation
Smart Power Hub: Control AC outlets remotely using ESP8266/ESP32 and SinricPro. Features voice control via Alexa/Google Assistant, mobile app support, WiFi connectivity, and real-time status updates. Turn any power strip into a smart home device. Perfect for home automation with easy setup and secure cloud communication.
- Host: GitHub
- URL: https://github.com/ankush2992/smart-power-hub
- Owner: ankush2992
- License: mit
- Created: 2025-01-22T19:16:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-03T16:31:55.000Z (over 1 year ago)
- Last Synced: 2025-10-25T15:46:32.409Z (8 months ago)
- Topics: esp32, iot-application, voice-commands, wireless-communications
- Language: C++
- Homepage:
- Size: 580 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ Smart Home Power Box.
### Control Your World with Voice and Touch ๐ฎ
[](https://opensource.org/licenses/MIT)
[](https://www.arduino.cc/)
[](https://www.espressif.com/)
[](https://alexa.amazon.com/)
*Transform your ordinary power strip into a smart home powerhouse with voice control and mobile app integration!* ๐
[Report Bug](https://github.com/ankush2992/smart-power-hub/issues) ยท [Request Feature](https://github.com/ankush2992/smart-power-hub/issues)
## โจ Features
- ๐ฏ **Precise Control** - Manage 3 independent AC outlets with millisecond precision
- ๐ **WiFi Enabled** - Connect to your home network with auto-reconnect capability
- ๐ฃ๏ธ **Voice Control** - Compatible with Alexa and Google Assistant through SinricPro
- ๐ฑ **Mobile App** - Control from anywhere using the SinricPro mobile app and inbuilt Google-Home device manager
- โก **Real-time Updates** - Instant status feedback and power state monitoring
- ๐ **Secure** - Encrypted communication and secure cloud connectivity .
Project Setup in Action
Final Assembled Device
## ๐ ๏ธ Hardware Requirements
### Components Needed
- ESP8266 or ESP32 development board
- 3-channel relay module (5V)
- Power strip or extension board
- Jumper wires
- 5V power supply
- Basic tools for assembly
Project Components
## ๐ง Installation
### 1๏ธโฃ Hardware Setup
```mermaid
graph LR
A[ESP8266/ESP32] --> B[Relay Module]
B --> C[Power Strip]
A -->|GPIO 14| D[Outlet 1]
A -->|GPIO 12| E[Outlet 2]
A -->|GPIO 13| F[Outlet 3]
```
### 2๏ธโฃ Software Setup
1. Install required libraries:
```bash
# Using Arduino Library Manager
๐ Search for "SinricPro"
โ
Install "SinricPro by Boris Jaeger"
```
2. Configure credentials:
```cpp
#define WIFI_SSID "Your_WiFi_SSID"
#define WIFI_PASS "Your_WiFi_Password"
#define APP_KEY "Your_APP_KEY"
#define APP_SECRET "Your_APP_SECRET"
```
## ๐ฑ Usage
1. **Power up** - Connect the device to power
2. **Connect** - Wait for WiFi connection (LED will turn solid)
3. **Control** - Use any of these methods:
- ๐ฃ๏ธ Voice commands through Alexa/Google Assistant
- ๐ฑ SinricPro mobile app
- ๐ Web dashboard
## ๐ Pin Configuration
| Component | GPIO Pin | Description |
|-----------|----------|-------------|
| Relay 1 | GPIO 14 | Main outlet control |
| Relay 2 | GPIO 12 | Secondary outlet |
| Relay 3 | GPIO 13 | Auxiliary outlet |
## โ ๏ธ Safety First!
```diff
+ Always ensure proper insulation
- Never work with live AC power
! Consult an expert when in doubt
```
## ๐ค Contributing
Contributions make the open-source community amazing! Any contributions you make are **greatly appreciated**.
1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
## ๐ License
Distributed under the MIT License. See `LICENSE` for more information.
## ๐ Support
Having troubles? We're here to help!
- ๐ง Email - xen2992on@gmail.com
## ๐ Show your support
Give a โญ๏ธ if this project helped you!
Made with โค๏ธ by [ANKUSH](https://github.com/ankush2992)