Change lovelace autmatic

Hi

I’m using HA as alarmsystem with alarmo.
I have a Samsung Tab as a wall mounted dashboard, with a local user for just that tablet.

When the alarm is disarmed, I want my tablet to show dashboard “/lovelace-ipad/0” and when the alarm is armed, I want my tablet to automatic change to dashboard “/lovelace-ipad/larm”. This dashboard has just one keypad for disarming my alarm.
When the alarm is disarmed again, I want it to change back, automatic, to dashboard “/lovelace-ipad/0”.

I tried with browser-mod but then all dashboards change, mobilephones, tablets etc.

I can send a notification to my tablet, but then I have to click on navigate url.

I have tried Automation with fully kiosk browser but I don’t have / understand fullykiosk.load_url and my tablet don’t have entity_id:media_player.my_tablet

I have looked at the document for fire event, but I can’t write ymal.

Thank you!

It doesn’t do exactly what you ask for but you can achieve something very similar:

GitHub - thomasloven/lovelace-state-switch: :small_blue_diamond:Dynamically replace lovelace cards depending on occasion

especially, if you use layout card as well (or a grid card)

GitHub - thomasloven/lovelace-layout-card: :small_blue_diamond: Get more control over the placement of lovelace cards.

Thank you!

I have tried this for some time now. I use grid and layout card on my dashboard.
I get one card to change “function” in the card, but I can’t figure out how to automatic change to another path / dashboard (navigation_path:lovelace-ipad/larm).

You don’t, as I said, it doesn’t do exactly as you asked for.

You could (possibly, I’ve never tried) set up your view in panel mode, create two separate layout cards with the different configs / child cards and control which one shows using state switch.

I finally find a solution. :grinning:

I use Browser Mod and it works perfect (after I had clear the cache memory).
I use browser_mod:navigate in an automation.