What’s wrong with my template here? Template editor is returning the right content however pasting the content into a custom:card-templater only the title is displayed :
type: custom:card-templater
card:
type: entities
title: Buiten Nieuw
show_header_toggle: true
state_color: true
entities_template: >-
{%- set target_areas = ['Voortuin', 'Achtertuin', 'Kerstmis'] -%}
{%- set target_label = 'Lichten' -%}
{%- for area in target_areas %}
{%- set area_ents = area_entities(area) | list %}
{%- set label_ents = label_entities(target_label) | list %}
{%- set desired_ents = (area_ents | intersect(label_ents) | list | sort) %}
{%- if desired_ents | length > 0 %}
- type: section
label: "{{ area }}"
{%- for ent in desired_ents %}
- entity: "{{ ent }}"
{%- endfor %}
{%- endif %}
{%- endfor %}
Result:
type: custom:card-templater
card:
type: entities
title: Buiten Nieuw
show_header_toggle: true
state_color: true
entities_template: >-
- type: section
label: "Voortuin"
- entity: "light.ltw010_tuin_7"
- entity: "light.lwb006_voordeur"
- entity: "light.lwb010_tuin_4"
- entity: "light.lwb010_tuin_5"
- type: section
label: "Achtertuin"
- entity: "light.econic_outdoor_post_1"
- entity: "light.econic_outdoor_post_2"
- entity: "light.econic_outdoor_post_3"
- entity: "light.econic_outdoor_post_4"
- entity: "light.econic_outdoor_post_5"
- entity: "light.hue_econic_outdoor_post_1"
- entity: "light.hue_outdoor_wall_1"
- type: section
label: "Kerstmis"
- entity: "light.innr_plug_lampjes_eetkamer"
- entity: "light.innr_plug_lampjes_hal"
- entity: "light.innr_plug_lampjes_hal2"
- entity: "light.innr_plug_lampjes_kerstboom"
- entity: "light.innr_plug_reserve"
