trying this,(took out the icon first) thereâs a strange ânâ at the end when I use:
button_text:
options: >
{{ hours12 }}:{{ minutesLZ }} {{ AMPM }} - {{state_attr('weather.home_darksky','temperature') }}°
not sure if this is related, but inspector says:
note inspector surprisingly still sees compact-custom-header⌠Ive of course taken that out of the ui-lovelace.yaml, and restarted a few times, clearing cachesâŚ
title: Hassio RPi4
resources: !include lovelace/resources.yaml
button_card_templates: !include lovelace/includes/button_card_templates.yaml
decluttering_templates: !include_dir_named lovelace/decluttering_templates
#cch: !include lovelace/includes/compact_custom_header.yaml
custom_header: !include lovelace/includes/custom_header.yaml
views:
- !include lovelace/views/view_Home.yaml #0
- !include lovelace/views/view_Lights.yaml #1
secondly, when trying to replace your icon template with this:
button_text:
options: >
{{ hours12 }}:{{ minutesLZ }} {{ AMPM }} - <ha-icon icon={{states('sensor.weather_icon')}></ha-icon>
{{state_attr('weather.home_darksky','temperature') }}°
the whole text disappears, and the full header shows, even though I use compact_mode, with the config name:
and, a footer appears also:
apparently the icon_template for the button-text is not correctly formatted? Even so, putting of the rest of the config would be considered a bug?
with this in the log:
2019-12-17 12:07:14 ERROR (MainThread) [frontend.js.latest.201912041] https://redacted/local/lovelace/resources/custom-header.js?v=0.0.1:4774:21 TypeError: undefined is not an object (evaluating 'config.compact_mode')
Could you help me formatting the icon_template?]thanks