gadgetchnnel / lovelace-card-templater

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

Doesnt seem to be working anymore? name_template shows '-' #70

Closed daytonturner closed 1 year ago

daytonturner commented 1 year ago

I'm using HA 2023.5, and I'm trying to use the templater card very similar to the example in the README:

type: custom:card-templater
card:
  type: entities
  title: 'Ferry: Langdale to Horseshoe Bay'
  entities:
    - entity: sensor.bc_ferries_langdale_to_horseshoe_bay_schedule_1
      type: custom:multiple-entity-row
      name_template: '{{ states.sensor.bc_ferries_langdale_to_horseshoe_bay_schedule_1_leave_by.state }}'
      show_state: false
      icon: mdi:ferry

The state of this sensor is a time string (9:07 PM) and instead, its displaying a - in place of the name.

It seems to do this regardless of what i put in name_template, or if i use a multiline >- config format,.. Tried different sensor entities.

I dont see any javascript errors in the console, and not sure where else to look.

Any suggestions?

daytonturner commented 1 year ago

Realized i needed to list the entities at the bottom of the card that had _template values associated. Nevermind!