How kentarveyvalenzuela-dotcom/smart-home-app works
This repository appears to implement a Flutter smart-home and energy-monitoring app, backed by a Python API and ESP32 firmware. The intended user flow is authentication, device selection, live monitoring, then review of logs or alerts and adjustment of settings. The tree identifies these domain stages, but the README is empty and Flutter source excerpts were not provided; links between those stages are therefore shown as unverified. Backend internals and native desktop runner components are represented only where the tree or source index supports them.
Main entry points: api_service.dart API client · monitor_page.dart Monitor screen · flutter_window.cpp Windows Flutter host · auth_page.dart Authentication screens
Components 26
Flutter client
- Authentication screens
as_flutter_project/lib/screens/auth_page.dart - Device screen
as_flutter_project/lib/screens/device_page.dart - Monitor screen
as_flutter_project/lib/screens/monitor_page.dart - Home dashboard
as_flutter_project/lib/screens/home_screen.dart - Logs screen
as_flutter_project/lib/screens/logs_page.dart - Settings screen
as_flutter_project/lib/screens/settings_page.dart - Notifications screen
as_flutter_project/lib/screens/notification_page.dart
App services
- Authentication
as_flutter_project/lib/services/auth_service.dart - API client
as_flutter_project/lib/services/api_service.dart - Device management
as_flutter_project/lib/services/device_service.dart - Sensor data
as_flutter_project/lib/services/sensor_service.dart - Energy monitoring
as_flutter_project/lib/services/energy_monitor_service.dart - MQTT messaging
as_flutter_project/lib/services/mqtt_service.dart - Alert handling
as_flutter_project/lib/services/alert_service.dart - Activity logs
as_flutter_project/lib/services/log_service.dart - Push notifications
as_flutter_project/lib/services/notification_service.dart
Backend and devices
- Backend API
as_flutter_project/backend/app/main.py - Relational schema
as_flutter_project/backend/migrations/001_initial.sql - ESP32 firmware
as_flutter_project/scripts/esp32_energy_monitor.ino
Platform hosts
- Windows Flutter host
as_flutter_project/windows/runner/flutter_window.cpp - Windows window layer
as_flutter_project/windows/runner/win32_window.cpp - Windows plugin registration
as_flutter_project/windows/flutter/generated_plugin_registrant.cc - Linux app host
as_flutter_project/linux/runner/my_application.cc - Linux plugin registration
as_flutter_project/linux/flutter/generated_plugin_registrant.h - macOS plugin registration
as_flutter_project/macos/Flutter/GeneratedPluginRegistrant.swift
Other components
- App user
Connections 24
- App user → Authentication screens: uses
- App user → Home dashboard: uses
- App user → Device screen: selects device
- App user → Monitor screen: views readings
- App user → Logs screen: reviews history
- App user → Settings screen: changes settings
- App user → Notifications screen: views alerts
- Authentication screens → Authentication: authenticates
- Device screen → Device management: manages devices
- Monitor screen → Sensor data: requests readings
- Monitor screen → Energy monitoring: shows energy
- Logs screen → Activity logs: loads history
- Notifications screen → Push notifications: loads alerts
- Authentication → API client: uses API
- Device management → API client: uses API
- Sensor data → API client: uses API
- Energy monitoring → API client: uses API
- Activity logs → API client: uses API
- API client → Backend API: sends requests
- Backend API → Relational schema: uses schema
- MQTT messaging → ESP32 firmware: exchanges messages
- Windows Flutter host → Windows window layer: extends window
- Windows Flutter host → Windows plugin registration: registers plugins
- Linux app host → Linux plugin registration: registers plugins
as_flutter_project/linux/runner/my_application.cc