How to change focused Lovelace View with automation?

I am looking for a way to switch to a specific view or dashboard in lovelace, by using an automation.
I set up a view in panel-mode with an entity-card which shows who is currently calling. This view should be shown/focused on the wall mounted display, whenever the phone is ringing.

Is there an action, which can switch to a desired view (or url)? Or any other way to achieve a full screen call monitor which is activated by a trigger? Any help appreciated :slight_smile:

1 Like

I think you will need something like

Wow, great mod! This is even better than switching views :wink:

This is what I came up with:

  1. The automation for incoming call triggers on
entity_id: sensor.phone
platform: state
to: ringing

and calls browser_mod.popup with some custom css to make the popup larger:

card:
  entity: sensor.fritzphone_status
  type: entity
deviceID: myid
style:
  height: 50vh
  padding: 20px
  width: 50vw
title: Phone is ringing!

(sensor.fritzphone_status is a template sensor which has the callers name and number in it, using the fritzbox_callmonitor integration)

  1. The automation for cancelling the popup triggers on
entity_id: sensor.phone
from: ringing
platform: state

and calls browser_mod.close_popup

1 Like