lovelace-card-templater
lovelace-card-templater copied to clipboard
Unable to template a url_path in a button card (similar to issue #22)
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
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...
@gadgetchnnel Will this ever get looked at?
@gadgetchnnel Will this ever get looked at?
seems not so :/