Hi All! I’m very new to home assistant, so forgive me if this is a bit of an obvious answer for someone who knows their way around a bit, but I’m having trouble controlling my tablet’s active dashboard with the “command_webview” notification command.
For reference, I’m using “madface”'s suggestion from this link to handle the screen on/off behavior, and its working great, except for the fact that no matter what I use for the “command_webview” nested command: “/lovelace-flur” in the linked example, I cannot get the companion app to switch to any dashboard other than the default/main dashboard.
I’ve traced the issue to here, which implies a resolution can be found in the definition of “path”, (linked from the documentation for command_webview), but the link is dead as a doornail.
My assumption is that the “path” corresponds to “https://homeassistant.<mydomain>.com/<path>”, but that doesn’t seem to do the trick, and I’m at a loss for other things to try in the absense of a working “path” documentation link.
Hopefully someone here might be able to point me in the right direction? Any help is much appreciated!
I was curious about this so I tested it on my systems. Path refers to the part after your domain. So, if your settings page is available under https://homeassistant.mydomain.com/config/dashboard (check with your desktop or mobile browser to get the exact URL, then you would use “/config/dashboard” as your path setting. Same for any lovelace dashboard, check the URL in your browser, if it is https://homeassistant.mydomain.com/lovelace-mobile/0, then use “/lovelace-mobile/0” as the path argument. lovelace-mobile is the dashboard part, 0 corresponds to the tab.
Hope this helps!
Thanks for the response, that confirms my assumption, seems like I was configuring it right, but the behavior is not as expected.
Is this all that is to be expected? or should I be able to get to the desired dashboard, from any previous screen or application state?
Nope, that doesn’t sound right.
I just tried all of your use cases and it works for me every time, HA in the foreground, background, closed; the command changes to the HA app and the right page.
One thing you should check: Android Settings, Apps, Special app access, Display over other apps, -> make sure home assistant is enabled here. If that doesn’t help I’m out of ideas and suggestions for the moment.