lovelace-card-templater icon indicating copy to clipboard operation
lovelace-card-templater copied to clipboard

Unable to template a url_path in a button card (similar to issue #22)

Open robertwigley opened this issue 4 years ago • 3 comments

I am templating the url_path in a button card. When clicking the button it just opens the Home Asssitant default Dashboard and not the templated url_path.

type: 'custom:card-templater'
card:
  type: button
  tap_action:
    action: url
    url_path_template: >-
      https://www.google.co.uk/maps?q={{ state_attr('device_tracker.car',
      'latitude') }},{{ state_attr('device_tracker.car', 'longitude') }}
  show_state: true
  icon: 'mdi:map-search'
  icon_height: 48px
  hold_action:
    action: none
  name: Map Car

robertwigley avatar Feb 11 '21 15:02 robertwigley

I'm having the same issue...the URL template doesn't work properly. If I remove the _template suffix the action tries to go to the template text (rather than the URL it would render), so I know the card is processing the _template, just not rendering it properly...

brandondb1 avatar Aug 23 '21 16:08 brandondb1

@gadgetchnnel Will this ever get looked at?

drinfernoo avatar Sep 15 '21 14:09 drinfernoo

@gadgetchnnel Will this ever get looked at?

seems not so :/

JAnslinger avatar Apr 05 '24 09:04 JAnslinger