SHEM (Smart Home Energy Manager) is a comprehensive IoT-based solution designed to monitor, analyze, and optimize household energy consumption in real-time. Combining a powerful ESP32-based hardware controller with a sleek React/Vite Dashboard, SHEM empowers users to take control of their electricity bills and reduce their carbon footprint.
- Real-Time Monitoring: Visualize Voltage, Current, Power, and Energy consumption live.
- AI-Powered Insights: Integrated Chatbot & Smart Tips (powered by OpenRouter/Gemini) to suggest actionable energy-saving habits.
- Device Control: Remote toggle for appliances (AC, Lights, etc.) directly from the web interface.
- Cost Analytics: Interactive charts breaking down daily/weekly costs and appliance usage.
- Responsive Design: "Premium Dark/Gold" aesthetic optimized for Desktop and Mobile.
- Predictive Budgeting: Set monthly energy budgets and get alerted before you cross them.
- Smart Notifications: Instant alerts for high usage, connection loss, or system anomalies via a centralized Notification Hub.
- Frontend: React, Vite, TailwindCSS, Recharts, Framer Motion.
- Backend: Node.js, Express, MongoDB (Structure ready for scale).
- Hardware: ESP32, PZEM-004T Sensors, Relay Modules.
- Node.js (v18+)
- MongoDB (Local or Atlas)
- Git
-
Clone the Repository
git clone https://github.com/ritesh-1918/SHEM.git cd SHEM -
Setup Frontend
cd shem-pro-frontend npm install -
Setup Backend
cd ../shem-pro-backend npm install
Create a .env file in shem-pro-frontend for AI features:
VITE_OPENROUTER_KEY=your_key_here
VITE_GROQ_KEY=your_key_here
VITE_GEMINI_KEY=your_key_hereFrontend (Dashboard)
cd shem-pro-frontend
npm run devAccess at
http://localhost:5173
Backend (API)
cd shem-pro-backend
npm run devServer running on
http://localhost:5000
| Dashboard Overview | Analytics & Charts | AI Assistant |
|---|---|---|
| Visual of live metrics | Deep dive into cost analysis | Chatting with SHEM AI |
Contributions are welcome! Please fork the repo and submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ by the SHEM Team