Dashboard Badges: Show different attribute

I would like to create a badge on my dashboard that:

  • Displays the current indoor thermostat target temperature
  • Opens the thermostat more info when tapped

I was able to create a template sensor with the info I want, but I can’t figure out how to apply it to the badge.

I’ve tried the two approaches below but neither work:

badges:
  - entity: sensor.thermostat_temperature
    name: Indoor
    tap-action:
      action: more-info
      entity: climate.thermostat
  - entity: climate.thermostat
    attribute: current_temperature

Badges do not support attributes.
Docs.
Create a template sensor to show an attribute.

A standard more-info action cannot be performed for another entity.
Docs.
May be a browser-mod (google it) may help you.

You could create a subview dashboard containing just the thermostat, and use a action: navigate to open it on tap.

So (assuming the entity is your working template sensor):

badges:
  - entity: sensor.thermostat_temperature
    name: Indoor
    tap-action:
      action: navigate
      navigation_path: /lovelace/thermostat