mirror of
https://github.com/home-assistant/iOS.git
synced 2026-06-26 13:07:07 -05:00
<!-- Thank you for submitting a Pull Request and helping to improve Home Assistant. Please complete the following sections to help the processing and review of your changes. Please do not delete anything from this template. --> ## Summary <!-- Provide a brief summary of the changes you have made and most importantly what they aim to achieve --> Adds a new kiosk push command, `kiosk_default`, that navigates the dashboard back to the server and dashboard configured in kiosk settings (or the server default when no specific dashboard is set). This lets an automation guarantee a wall-mounted kiosk always returns to its main dashboard after someone has navigated away from it for a moment. A notification whose body is `kiosk_default` mirrors the existing kiosk-target logic: if the kiosk is pinned to a server other than the one currently on screen, it switches to that server (rebuilding the web view, which loads the kiosk dashboard on creation); otherwise it navigates the current web view to the configured dashboard via `applyKioskDashboard()`. As with the other kiosk commands, it is gated behind the "Accept remote commands" kiosk setting and shows a localized in-app toast (iOS 18+) instead of a banner. ## Screenshots <!-- If this is a user-facing change not in the frontend, please include screenshots in light and dark mode. --> <!-- TODO: add the "Returning to dashboard" toast in light and dark mode --> ## Link to pull request in Documentation repository <!-- Pull requests that add, change or remove functionality must have a corresponding pull request in the Companion App Documentation repository (https://github.com/home-assistant/companion.home-assistant). Please add the number of this pull request after the "#" --> Documentation: home-assistant/companion.home-assistant#1363 ## Any other notes <!-- If there is any other information of note, like if this Pull Request is part of a bigger change, please include it here. --> Builds on the existing kiosk push-command infrastructure. The server/dashboard restoration reuses the same logic as `OnboardingStateObservable.applyKioskTarget(_:)`, so navigation behaviour stays consistent with the kiosk settings pickers.