Dashboard as target for tap_action

I like how the Energy Summary dashboard is displayed from the Energy “button” on the HA sidebar menu, However I want to eliminate access to the sidebar menu in the future. To that end I added an Energy Usage badge:
image

to the top of my Welcome dashboard, with a tap_action to access the Energy Summary dashboard:

type: entity
show_name: false
show_state: true
show_icon: true
entity: sensor.vue_gen3_energy_today
tap_action:
  action: url
  url_path: homeassistant://navigate/energy/overview

It works as expected/desired from the HA Companion app on my phone. Unfortunately, from a browser (Firefox, Chrome, Edge…) when I click on the badge, a 2nd browser tab opens and is never populated, the url displayed is: about:blank (or homeassistant://navigate/energy/overview )

I don’t know if I have an error on the HA side or if I’ve got some sort of browser configuration error.

A suggestion for corrective action would be appreciated. (I’ve cleared cache many times :wink:

I do not think this is a proper address.
Try without a “navigate”.

1 Like

I tried without “navigate” and got the same “null” result on a desktop browser. I cleared the browser cache, restarted the browser, still no joy.

Here’s where I got the instructions on the use of “navigate”: URL Handler | Home Assistant Companion Docs

thanks for the thought… I’m ready for the next suggestion :wink:

type: entity
show_name: false
show_state: true
show_icon: true
entity: sensor.vue_gen3_energy_today
tap_action:
  action: url
  url_path: homeassistant://energy/overview

interestingly, this breaks what was working from the Companion App:

I restored “navigate”: Companion Apps works, browsers do not.

Missed it, why “url” instead of “navigate”???

1 Like

Doh! That’s a really good question:

As you suggested it now works as expected:

type: entity
show_name: false
show_state: true
show_icon: true
entity: sensor.vue_gen3_energy_today
tap_action:
  action: navigate
  navigation_path: /energy

Thanks yet again!!

1 Like