Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant add template in destination field #20

Open
AlanMW opened this issue Nov 18, 2023 · 0 comments
Open

Cant add template in destination field #20

AlanMW opened this issue Nov 18, 2023 · 0 comments

Comments

@AlanMW
Copy link

AlanMW commented Nov 18, 2023

I have a destination that is variable based on my calendar, I can't seem to update the destination with that value. Some of the templates I have tried:

'{{state_attr('calender.activities', 'location') | string}}'
'{{state_attr('calender.activities', 'location')'

I am guessing the input doesn't support templates?

type: custom:ha-card-waze-travel-time
header: false
name: Current Drive Time...
unit: mi
columns:
  - from
  - to
  - duration
  - distance
  - icon
destinations:
  - entity: sensor.waze_travel_time
    from: Home
    to: '{{state_attr('calender.activities', 'location') | string}}'
style: |
  ha-card {
    --primary-text-color: #FFFFFF;
    --secondary-text-color: [#727272](https://github.com/r-renato/ha-card-waze-travel-time/issues/727272);
    --text-primary-color: #ffffff;
    --disabled-text-color: #bdbdbd;
    background-image: url("/local/imgs/card_back.png") ;
    background-repeat: no-repeat ;
    background-color: rgba(50,50,50,0.3) ;
    background-size: 100% 300px ;
    border-radius: 20px ;
    border: solid 1px rgba(100,100,100,0.3) ;
    box-shadow: 3px 3px rgba(0,0,0,0.4) ;
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant