h4nc
December 19, 2018, 6:05pm
1
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?
VDRainer
(🍻)
December 19, 2018, 9:56pm
2
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
h4nc
December 19, 2018, 10:07pm
3
Is there a way to do this without pictures. A simple button (with text) would be nice.
h4nc
December 19, 2018, 11:42pm
4
@VDRainer do you know how to make the picture cards smaller?
VDRainer
(🍻)
December 20, 2018, 8:25am
5
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.
h4nc
December 20, 2018, 9:29am
6
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