Lovelace - buttons at first view path to other views

Is there a way to use buttons as links to other views.

From here:
https://www.home-assistant.io/lovelace/views/

You can link to one view from another view by its path. For this use cards that support navigation (navigation_path). Do not use special characters in paths.

So there is an example on how to do this with pictures. However I tried that but my picure wasn’t clickable (nothing happened).

Any advice? Do I have to restart ha for this?

The docs are not up to date.
The example should be:

- type: picture
  image: /local/living_room.png
  tap_action:
    action: navigate
    navigation_path: /lovelace/living_room
1 Like

Is there a way to do this without pictures. A simple button (with text) would be nice.

@VDRainer do you know how to make the picture cards smaller?

No, not using them.
Maybe use the Horizontal Stack Card or try it with the Entity Button Card.
Every card that provides ‘tap_action’ should work.

Thanks, found a solution.

I set up some dummy input_boolean’s and use a glance card.

example:

configuration.yaml

input_boolean:
  light_view:
    initial: off

in lovelace.yaml:

  - type: glance
    show_state: false
    show_name: false
    entities:
      - entity: input_boolean.light_view
        icon: mdi:lightbulb-on-outline
        tap_action:
          action: navigate
          navigation_path: /lovelace/light
2 Likes