Monitors and manages system updates for Home Assistant addons and the NetDaemon application itself.
The Auto Update App provides automated monitoring of system updates, intelligent notification handling, and coordinated update management to keep the home automation system current while minimizing disruption.
- Update Detection: Monitors for available updates across multiple system components
- Notification System: Discord alerts for pending updates with detailed information
- Restart Management: Handles restart notifications and confirmations
- Update Scheduling: Smart timing for update installations based on system usage
private async Task AutoUpdate()
{
var updates = await GetAvailableUpdates();
if (updates.Any())
{
await NotifyUpdatesAvailable(updates);
await ScheduleUpdateInstallation();
}
}- Home Assistant Core: Monitors for HA core updates
- Add-ons: Tracks individual addon updates
- NetDaemon: Monitors NetDaemon framework updates
- Custom Components: Tracks HACS and other custom component updates
- Maintenance Windows: Preferred times for update installations
- Critical Updates: Immediate notification and scheduling for security updates
- Non-Critical Updates: Batched notifications and scheduled installations
- User Confirmation: Optional manual approval for major updates
- Discord Integration: Rich notifications with update details
- Phone Notifications: High-priority alerts for critical updates
- Update Summaries: Daily/weekly update status reports
- Usage Pattern Analysis: Schedules updates during low-usage periods
- Holiday Awareness: Adjusts update timing during vacation periods
- Sleep Integration: Coordinates with sleep manager for optimal timing
- Dependency Management: Handles update dependencies and ordering
- Security Updates: Immediate priority with fast-track scheduling
- Feature Updates: Normal priority with user notification
- Beta Updates: Optional updates with explicit confirmation required
- Maintenance Updates: Low priority with automatic scheduling
- State Preservation: Saves current system state
- Notification: Alerts users of impending restart
- Grace Period: Provides time for manual intervention
- Dependency Check: Ensures all dependent services are ready
- Health Check: Verifies system functionality after restart
- State Restoration: Restores preserved system state
- Update Confirmation: Confirms successful update installation
- Error Reporting: Reports any issues encountered during update
- Title: "System Updates Available"
- Content: Detailed list of available updates with descriptions
- Actions: Install now, schedule later, view details
- Title: "System Restart Required"
- Content: Updates requiring restart with estimated downtime
- Actions: Restart now, schedule restart, cancel updates
- Failed Updates: Automatic rollback and error reporting
- Network Issues: Retry logic with exponential backoff
- Dependency Conflicts: Conflict resolution and user notification
- Disk Space: Storage space validation before update downloads
- Sleep Manager: Coordinates update timing with sleep schedules
- Holiday Manager: Adjusts behavior during vacation periods
- Notification System: Provides rich update notifications
- System Monitoring: Tracks update success and system health
- Rollback Capability: Automatic rollback on update failures
- Backup Creation: Automated backups before major updates
- Health Monitoring: Continuous health checks during updates
- Emergency Override: Manual update abort capability
- Detects updates automatically
- Schedules installations during optimal windows
- Provides notifications for user awareness
- Handles restarts with minimal user intervention
- Notifies of available updates
- Waits for explicit user approval
- Provides detailed update information
- Allows custom scheduling of installations