How oursprojects/nexushome works
NexusHome is an Android smart-home controller: users connect to paired hardware, monitor temperature and device status, switch automatic/manual operation, and issue light, fan, and curtain commands. The app’s ViewModel exposes Bluetooth state to the main screen; command history is persisted locally and displayed separately. The README also documents a preconfigured VC-02 offline voice module. Source excerpts establish the app, Bluetooth service, and history-storage relationships; links to firmware and voice hardware reflect README-level product descriptions, not inspected firmware internals.
Main entry points: MainActivity.kt Control dashboard · CommandHistoryActivity.kt History screen · MainViewModel.kt Main ViewModel · BluetoothService.kt Bluetooth service
Components 12
Android app
- Control dashboard
app/src/main/java/com/capstone/nexushome/MainActivity.kt - Main ViewModel
app/src/main/java/com/capstone/nexushome/MainViewModel.kt - Bluetooth service
app/src/main/java/com/capstone/nexushome/bluetooth/BluetoothService.kt
Smart-home device
- Device firmware
firmware/NexusHomeCode.ino - NexusHome hardware
- VC-02 voice module
Command history
- History screen
app/src/main/java/com/capstone/nexushome/CommandHistoryActivity.kt - Log list adapter
app/src/main/java/com/capstone/nexushome/adapter/CommandLogAdapter.kt - Command log DAO
app/src/main/java/com/capstone/nexushome/data/CommandLogDao.kt - Command log record
app/src/main/java/com/capstone/nexushome/data/CommandLog.kt - Local Room database
app/src/main/java/com/capstone/nexushome/data/AppDatabase.kt
Other components
- Home user
Connections 15
- Home user → Control dashboard: controls
README.md - Control dashboard → Main ViewModel: observes state
app/src/main/java/com/capstone/nexushome/MainActivity.kt - Control dashboard → Main ViewModel: sends commands
app/src/main/java/com/capstone/nexushome/MainActivity.kt - Main ViewModel → Bluetooth service: delegates control
app/src/main/java/com/capstone/nexushome/MainViewModel.kt - Bluetooth service → NexusHome hardware: Bluetooth control
README.md - NexusHome hardware → Bluetooth service: status updates
README.md - Device firmware → NexusHome hardware: runs on
- VC-02 voice module → NexusHome hardware: voice control
README.md - Control dashboard → Local Room database: records commands
app/src/main/java/com/capstone/nexushome/MainActivity.kt - History screen → Local Room database: opens database
app/src/main/java/com/capstone/nexushome/CommandHistoryActivity.kt - Local Room database → Command log DAO: provides DAO
app/src/main/java/com/capstone/nexushome/data/AppDatabase.kt - Command log DAO → Command log record: stores records
app/src/main/java/com/capstone/nexushome/data/CommandLogDao.kt - History screen → Command log DAO: observes and clears
app/src/main/java/com/capstone/nexushome/CommandHistoryActivity.kt - History screen → Log list adapter: renders entries
app/src/main/java/com/capstone/nexushome/CommandHistoryActivity.kt - Log list adapter → Command log record: displays fields
app/src/main/java/com/capstone/nexushome/adapter/CommandLogAdapter.kt