I have a dashboard that displays HA-related information, but written from scratch by me over several years.
Now that HA native dashboarding is getting great, I am considering switching the current contents to a tab of the browser, and keep the old one for transition (I have a strong WAF to consider and cannot just switch like that, without extensive preparation).
My setup today is a (normal, non-touch) screen connected to an RPi, and the RPi starts with a full-screen Chromium, --kiosk and a few other switches. I do not interact with it, just watch the displayed data.
My goal would be to ādriveā the displayed page (either a tab or a new page) with a physical button (EDIT: emphasizing that the button is a standalone Zigbee or RF433 button), which itself is managed by HA (this the Inception part).
I just need to know what HA is supposed to send to the browser to make the switch.
Chromium does not have an API (AFAICT) but I am open to any suggestions from people who decided, one day, to use a button to flip pages on their dashboard
Hi, you do know that you can use multiple dashboards?
You can switch views/dashboards with events.
Another option is to stay on the dashboard and open a popup with browser_mod.
On a wall tablet, when going in the kitchen, the display wakes up but even in off state, when adding items to the shopping list, the display also wakes up and shows the content from the shopping list in a popup for a certain amount of time.
I am not sure I understand. I do have multiple dashboards (most are available from my side panel), and within these dashboards I have several views (tabs).
I did not know that I could open each of them through events. I just found Actions - Home Assistant which is for physics interactions.
Maybe I didnāt understand your question or what you want to achieve and I just wanted to help.
(FYI: āweā have dropped the use of WAF in favor of HAF, which stands for home approval factor)
Itās quite normal to have multiple dashboards, depending on the room, the device that you view them or the person using them.
As I mentioned, in the kitchen there is a wall tablet and it has another default dashboard then the one on a touchscreen in my office.
On my PC I use another default dashboard and on a roaming tablet also another one.
Why would you use 2, or more, different tabs of your browser whereas you can use multple dashboards/views within the browser/app session?
IMHO this can complicate things even more for others in your houseā¦
Today: on this screen I display a web page, an SPA I wrote that connects to HA (among others) and display useful stuff.
Tomorrow: I would like to replace this with a HA dashboard (so far nothing special, itās just another web page) but I need to be able to switch back and forth between the current view (my app) and the new future view (HA dashboard) - with the press of a button. It has to be that way for some time.
I could probably belly dance around that and directly move to the HA dashboard but I still will need, with the new HS dashboard, to switch with a button between several dashboards (or views within one dashboard, whichever is easier to automate) to have
one āmainā view
a view on technical stuff I want to peek at
a view on a complete, month-long calendar
ā¦
All this with a ādumbā screen without a mouse or keyboard.
Are you willing to have two links or buttons? If so, just place it on each. Itās just simple hrefs. On the HA side you can use a markdown card with a link.
But have them where? The screen is not a touch screen, this is a simple monitor. Thus the need to drive this via a physical button.
I now realize I may have emphasized the fact that the button is physical (if this was not clear enough from the description of the screen) (EDIT: I updated the question to make it crystal clear)
Yes you can use an i.e Zigbee Button/remote, to i.e open another dashboard/view(url), as for you other, current āweb-Appā this (url) you can show in a āmarkup-cardā in a āPanel-viewā, And use the remote-button to shift to that View/Dashboard (inside your default-HA-instance)
PS: With the Markup-card, you can also choose to view i.e details from your current āweb-appā in various Dashboards/Tabs
I believe there also still is a custom iFrame-card, if that suits your needs
PS: Sorry it was wrong Link, ill see if i can find the correct again
* Install Browser Mod: Install Browser Mod from HACS to enable browser navigation control.
* Identify Button Event: Press your Zigbee button and look at Developer Tools > Events (listening for zha_event) to find the exact device_ieee or unique_id.
* Create Automation:
* Trigger: Event -> Event Type: zha_event
* Condition: Optional (e.g., check for single/double press).
* Action: Call Service -> browser_mod.navigate
* Data: path: /lovelace/your-dashboard-path (e.g., /lovelace/tablet or /lovelace-tablet/0).