From 15795381c4813578e2622e32c86b2772e028c869 Mon Sep 17 00:00:00 2001 From: Mark Francis Date: Sat, 11 Jul 2026 10:52:54 -0400 Subject: [PATCH 1/5] Update notification command_webview for behavior improvements --- docs/notifications/commands.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/notifications/commands.md b/docs/notifications/commands.md index 8d4aa6823b2..2204b3b42b0 100644 --- a/docs/notifications/commands.md +++ b/docs/notifications/commands.md @@ -874,6 +874,8 @@ automation: If you want to just open the Companion app to any page or even the homepage you will want to send `message: command_webview`. If you wish to navigate to a specific [view](https://www.home-assistant.io/lovelace/views/) or [dashboard](https://www.home-assistant.io/lovelace/dashboards/) you will want to use `command` to specify the [`path`](https://www.home-assistant.io/lovelace/views/#path) (example: `/lovelace/settings`). You can also open the More Info panel for any entity by using the following format for `command`: `entityId:sun.sun` just replace `sun.sun` with the entity you wish to open. If `command` is not provided the user will be directed to the homepage. The first time you send this command you will be taken to a permission screen to grant the app access to display over other apps policy. This permission is necessary for the feature to work in the background and we cannot prompt the user to grant it. +BETA When the app is already open and showing the targeted server (Home Assistant 2025.6 or later), the command acts on the open page in place instead of relaunching the app, so the state of the page is kept. You can also send `command: reload` to reload the page without cached data, which releases the resources the page holds, like camera streams; when the app is not open, `reload` opens it to the homepage instead. + Example: ```yaml @@ -888,3 +890,18 @@ automation: data: command: "/lovelace/settings" ``` + +Example to reload the current page: + +```yaml +automation: + - alias: Reload android webview + trigger: + ... + action: + - action: notify.mobile_app_ + data: + message: "command_webview" + data: + command: "reload" +``` From e8239501a3cf31c611d1ba6b4e1674bc0612d802 Mon Sep 17 00:00:00 2001 From: Mark Francis Date: Sat, 11 Jul 2026 11:01:38 -0400 Subject: [PATCH 2/5] Add webview reload note in android command list --- docs/notifications/commands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/notifications/commands.md b/docs/notifications/commands.md index 2204b3b42b0..acc0042cb7c 100644 --- a/docs/notifications/commands.md +++ b/docs/notifications/commands.md @@ -51,7 +51,7 @@ The Companion apps offer a lot of different notification options. In place of po | `command_update_sensors` | Updates all enabled sensors, if the state changed since the last update. | | `command_volume_level` | Control the volume for all available audio streams, [see below](#volume-level) for how it works and whats required. | | `command_wake_word_detection` | Turn wake word detection for Assist on or off. | -| `command_webview` | Open the app to the homepage or any dashboard or view, [see below](#webview) for how. | +| `command_webview` | Open the app to any dashboard, view or entity, or reload it, [see below](#webview) for how. | | `remove_channel`* | Remove a notification channel from the device settings, [more details](basic.md#removing-a-channel). | | `request_location_update` | Request a location update from the device, [see below](#request-location-updates) for implications about this command. | From 8a2352dddcf427641242b86d2ce401cb3905d5bb Mon Sep 17 00:00:00 2001 From: markfrancisonly <12145270+markfrancisonly@users.noreply.github.com> Date: Sun, 12 Jul 2026 08:46:31 -0400 Subject: [PATCH 3/5] Scope the 2025.6 requirement to in-place navigation The reload value acts on the open page on any server version, only navigating in place needs the navigate command from Home Assistant 2025.6. Co-Authored-By: Claude Fable 5 --- docs/notifications/commands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/notifications/commands.md b/docs/notifications/commands.md index acc0042cb7c..c57a9c72e0e 100644 --- a/docs/notifications/commands.md +++ b/docs/notifications/commands.md @@ -874,7 +874,7 @@ automation: If you want to just open the Companion app to any page or even the homepage you will want to send `message: command_webview`. If you wish to navigate to a specific [view](https://www.home-assistant.io/lovelace/views/) or [dashboard](https://www.home-assistant.io/lovelace/dashboards/) you will want to use `command` to specify the [`path`](https://www.home-assistant.io/lovelace/views/#path) (example: `/lovelace/settings`). You can also open the More Info panel for any entity by using the following format for `command`: `entityId:sun.sun` just replace `sun.sun` with the entity you wish to open. If `command` is not provided the user will be directed to the homepage. The first time you send this command you will be taken to a permission screen to grant the app access to display over other apps policy. This permission is necessary for the feature to work in the background and we cannot prompt the user to grant it. -BETA When the app is already open and showing the targeted server (Home Assistant 2025.6 or later), the command acts on the open page in place instead of relaunching the app, so the state of the page is kept. You can also send `command: reload` to reload the page without cached data, which releases the resources the page holds, like camera streams; when the app is not open, `reload` opens it to the homepage instead. +BETA When the app is already open and showing the targeted server, the command acts on the open page in place instead of relaunching the app, so the state of the page is kept; navigating in place requires Home Assistant 2025.6 or later. You can also send `command: reload` on any server version to reload the page without cached data, which releases the resources the page holds, like camera streams; when the app is not open, `reload` opens it to the homepage instead. Example: From e029836514f893355290345547f88fc3caa4daff Mon Sep 17 00:00:00 2001 From: Mark Francis Date: Sun, 19 Jul 2026 16:06:33 -0400 Subject: [PATCH 4/5] Reload is a plain page reload Co-Authored-By: Claude Opus 4.8 --- docs/notifications/commands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/notifications/commands.md b/docs/notifications/commands.md index c57a9c72e0e..7718858b671 100644 --- a/docs/notifications/commands.md +++ b/docs/notifications/commands.md @@ -874,7 +874,7 @@ automation: If you want to just open the Companion app to any page or even the homepage you will want to send `message: command_webview`. If you wish to navigate to a specific [view](https://www.home-assistant.io/lovelace/views/) or [dashboard](https://www.home-assistant.io/lovelace/dashboards/) you will want to use `command` to specify the [`path`](https://www.home-assistant.io/lovelace/views/#path) (example: `/lovelace/settings`). You can also open the More Info panel for any entity by using the following format for `command`: `entityId:sun.sun` just replace `sun.sun` with the entity you wish to open. If `command` is not provided the user will be directed to the homepage. The first time you send this command you will be taken to a permission screen to grant the app access to display over other apps policy. This permission is necessary for the feature to work in the background and we cannot prompt the user to grant it. -BETA When the app is already open and showing the targeted server, the command acts on the open page in place instead of relaunching the app, so the state of the page is kept; navigating in place requires Home Assistant 2025.6 or later. You can also send `command: reload` on any server version to reload the page without cached data, which releases the resources the page holds, like camera streams; when the app is not open, `reload` opens it to the homepage instead. +BETA When the app is already open and showing the targeted server, the command acts on the open page in place instead of relaunching the app, so the state of the page is kept; navigating in place requires Home Assistant 2025.6 or later. You can also send `command: reload` on any server version to reload the page, which releases the resources the page holds, like camera streams; when the app is not open, `reload` opens it to the homepage instead. Example: From b6a5ac289b21d06791c15bc39ab7030a37b25692 Mon Sep 17 00:00:00 2001 From: Mark Francis Date: Sun, 19 Jul 2026 16:48:05 -0400 Subject: [PATCH 5/5] Revert "Reload is a plain page reload" This reverts commit e029836514f893355290345547f88fc3caa4daff. --- docs/notifications/commands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/notifications/commands.md b/docs/notifications/commands.md index 7718858b671..c57a9c72e0e 100644 --- a/docs/notifications/commands.md +++ b/docs/notifications/commands.md @@ -874,7 +874,7 @@ automation: If you want to just open the Companion app to any page or even the homepage you will want to send `message: command_webview`. If you wish to navigate to a specific [view](https://www.home-assistant.io/lovelace/views/) or [dashboard](https://www.home-assistant.io/lovelace/dashboards/) you will want to use `command` to specify the [`path`](https://www.home-assistant.io/lovelace/views/#path) (example: `/lovelace/settings`). You can also open the More Info panel for any entity by using the following format for `command`: `entityId:sun.sun` just replace `sun.sun` with the entity you wish to open. If `command` is not provided the user will be directed to the homepage. The first time you send this command you will be taken to a permission screen to grant the app access to display over other apps policy. This permission is necessary for the feature to work in the background and we cannot prompt the user to grant it. -BETA When the app is already open and showing the targeted server, the command acts on the open page in place instead of relaunching the app, so the state of the page is kept; navigating in place requires Home Assistant 2025.6 or later. You can also send `command: reload` on any server version to reload the page, which releases the resources the page holds, like camera streams; when the app is not open, `reload` opens it to the homepage instead. +BETA When the app is already open and showing the targeted server, the command acts on the open page in place instead of relaunching the app, so the state of the page is kept; navigating in place requires Home Assistant 2025.6 or later. You can also send `command: reload` on any server version to reload the page without cached data, which releases the resources the page holds, like camera streams; when the app is not open, `reload` opens it to the homepage instead. Example: