Android Client for Zigbee Device Management & Home Automation
A CapacitorJS + Vite mobile application for real-time monitoring and control of your smart home system with Zigbee sensors.
Features • Screenshots • Getting Started • Build Instructions
- Real-time Status Monitoring
- Live door state (Opening, Closing, Idle Open, Idle Closed)
- Progress bar during door operation
- Visual indicators for door position
- Remote Control
- Open/Close commands
- Emergency stop capability
- State reset functionality
- Real-time power consumption (W)
- Voltage and current readings
- Energy usage tracking (kWh)
- Device temperature monitoring
- Remote on/off control
- Tilt Sensor
- Open/closed detection
- Battery level monitoring
- Signal strength (link quality)
- Low battery warnings
- Vibration Sensor
- Movement detection
- Angle tracking
- Temperature readings
- Battery and voltage monitoring
- WebSocket connection for instant updates
- Connection status indicators
- MQTT broker status monitoring
- Pull-to-refresh functionality
- Clean, modern Material Design-inspired UI
- Lucide icons throughout
- Responsive layout optimized for mobile
- Visual feedback for all actions
- Color-coded status indicators
- Framework: CapacitorJS 8.0 (for native Android)
- Build Tool: Vite 5.4
- Icons: Lucide
- WebSocket: Native WebSocket API
- HTTP Client: Fetch API
- Node.js 18+ and npm
- Android Studio (for APK compilation)
- Java Development Kit (JDK) 17+
- Access to the Smart Home Server
git clone https://github.com/B077AS/smart-home-mobile.git
cd smart-home-mobilenpm installCreate a .env file in the project root:
VITE_WS_URL=wss://your-server-url/ws
VITE_API_BASE_URL=https://your-server-url/apiConfiguration Details:
VITE_WS_URL: WebSocket endpoint for real-time updatesVITE_API_BASE_URL: REST API base URL for the backend server
npm run devThis will start the development server, typically at http://localhost:5173
- Build the web assets:
npm run build- Sync with Capacitor:
npx cap sync- Open in Android Studio:
npx cap open android- Compile APK:
- In Android Studio, go to
Build > Build Bundle(s) / APK(s) > Build APK(s) - Or use the toolbar icon to run on a connected device/emulator
- In Android Studio, go to
For a production release APK:
- Follow steps 1-3 above
- In Android Studio:
Build > Generate Signed Bundle / APK - Follow the wizard to create/use a keystore
- Select release build variant
- Build the signed APK
To update the app icons and splash screens:
- Place your icon files in
src/assets/directory - Run the asset generator:
npx @capacitor/assets generate --assetPath src/assetsIcon Requirements:
- PNG format
- Minimum 1024x1024px recommended
- Transparent background for adaptive icons
- Automatic reconnection on connection loss
- Token-based authentication
- Real-time sensor data streaming
- Garage state updates
- Plug status monitoring
- RESTful endpoints for device control
- Token refresh handling
- Error handling with user feedback
- Offline mode detection
- Smart Home Server - Backend Spring Boot application




