How home-assistant/ios works
This repository is Home Assistant’s native Apple-platform client, with an accompanying push server. A typical user connects to a Home Assistant instance, completes server setup and authentication, then uses the embedded frontend and native features such as Assist, camera viewing, and notifications. The map also includes watch support and the app’s server/session layer. Several domain branches are visible in the tree and README-level product context but were not sampled, so their internal links are omitted rather than inferred.
Main entry points: AssistPipelines.swift Assist pipeline model · Server.swift Server connection · HAApp.swift Home Assistant app · AssistPipelineEntityQuery.swift Intent pipeline query
Components 19
App experience
- Home Assistant app
Sources/App/HAApp.swift - Web frontend
Sources/App/Frontend/WebView/FrontendView.swift - Server onboarding
Sources/App/Onboarding/Container/OnboardingNavigationView.swift
Server connection
- Networking environment
Sources/HANetworking/Sources/HANetworkingEnvironment.swift - Server registry
Sources/HANetworking/Sources/ServerManager.swift - Server connection
Sources/HANetworking/Sources/Server.swift - Token management
Sources/HANetworking/Sources/TokenManager.swift
Assist and voice
- Assist pipeline model
Sources/HAModels/Sources/AssistPipelines.swift - Pipeline mirror
Sources/Shared/Database/Tables/AssistPipelinesTable.swift - Assist service
Sources/Shared/Intents/AppIntent/AssistInApp/AssistService.swift - Pipeline picker
Sources/App/Settings/MagicItem/AssistPipelinePicker.swift - Intent pipeline query
Sources/Extensions/AppIntents/Assist/AssistPipelineEntityQuery.swift
Device features
- Watch communication
Sources/Watch/WatchCommunicatorService.swift - Watch pipeline choices
Sources/WatchApp/Home/Edit/WatchAssistPipelineOption.swift - Camera notifications
Sources/Extensions/NotificationContent/CameraViewController.swift
Push service
- Push routes
Sources/PushServer/Sources/App/routes.swift - Push controller
Sources/PushServer/Sources/App/Controllers/PushController.swift
Other components
- Apple user
- Home Assistant server
Connections 17
- Apple user → Home Assistant app: uses
- Home Assistant app → Server onboarding: offers setup
- Server onboarding → Server registry: configures
- Home Assistant app → Web frontend: presents
- Server registry → Server connection: manages
Sources/HANetworking/Sources/ServerManager.swift - Server connection → Networking environment: uses services
Sources/HANetworking/Sources/Server.swift - Token management → Server connection: refreshes credentials
Sources/HANetworking/Sources/TokenManager.swift - Server connection → Home Assistant server: connects
- Pipeline mirror → Assist pipeline model: stores records
Sources/Shared/Database/Tables/AssistPipelinesTable.swift - Intent pipeline query → Assist pipeline model: reads pipeline model
Sources/Extensions/AppIntents/Assist/AssistPipelineEntityQuery.swift - Intent pipeline query → Pipeline mirror: fetches mirror
Sources/Extensions/AppIntents/Assist/AssistPipelineEntityQuery.swift - Pipeline picker → Assist pipeline model: selects pipeline
Sources/App/Settings/MagicItem/AssistPipelinePicker.swift - Assist service → Assist pipeline model: uses pipeline model
Sources/Shared/Intents/AppIntent/AssistInApp/AssistService.swift - Watch pipeline choices → Assist pipeline model: reads choices
Sources/WatchApp/Home/Edit/WatchAssistPipelineOption.swift - Watch communication → Assist service: invokes Assist
Sources/Watch/WatchCommunicatorService.swift - Push routes → Push controller: routes requests
Sources/PushServer/Sources/App/routes.swift - Push controller → Home Assistant server: sends push