I have a buton card that I would like to have the action when pressed to send the user to another dashboard. This dashboard would ideally be hidden, as in not displayed in side bar. How do I need to structure the URL to get this button send to another page. I have been tinkering with it but cant make it work. I do notice that when I put a URL to a button it opens a new webpage tab on my browser. I just want one button to send the user to a different page in lovelace. Can someone tell me how I can accomplish this?
Create a new view in your dashboard (if you’re using the latest version of HA, you can set it as a subview), otherwise just set it not to be visible to any users (it stops them seeing an icon in the dashboard, but doesn’t stop them getting to it by url.)
Then set a Navigate tap action on your button.
tap_action:
action: navigate
navigation_path: /lovelace-*dashboardName*/*viewName*
gui:
works perfectly. THank you very much!
This perfect for what I would like also. By any chance is there a way to get the sub-view to return to the main view/dashboard after a period of time?
Kids will be kids, the change the view any never remember to put it back to normal.
Greg
You could look into having the button trigger an automation instead of directly navigating. The Automation could navigate and start a counter. Once Counter reaches time X another automation triggers the navigation back to main menu. If manually moved back to main menu the counter can be reset.
I havent tested that, just considering that should be possibilities
Excellent idea. I will give it a go! Thanks…
Really dumb question: I thought I had already got a dashboard button to execute an automation. Looking through all my automations I cannot see one that does that. I tried to create an automation to execute when a dashboard button is pressed but cannot figure out how to do that. It is something obvious that I am just not seeing, or is there a trick to this?
Greg
