gadgetchnnel / lovelace-card-templater

Custom Lovelace card which allows Jinja2 templates to be applied to other cards
121 stars 6 forks source link

value_template does not work #67

Open weswitt opened 1 year ago

weswitt commented 1 year ago

using a value_template does not have any effect. using the following card yaml the value_template has sero effect. i've tried various code in the value_template but it just does nothing.

type: 'custom:card-templater' card: type: entities show_header_toggle: false columns: 1 title: Current Environmental entities:

pkoevesdi commented 1 year ago

I think You have to put it like this:

type: custom:card-templater
card:
  type: entities
  show_header_toggle: false
  columns: 1
  title: Current Environmental
entities:
  - entity: sensor.outside_temperature
    state_template: '{{ sensor.outside_temperature | round(0) }}'