andrey-git / home-assistant-custom-ui

Custom UI elements for https://home-assistant.io
https://home-assistant.io
MIT License
526 stars 97 forks source link

Extra data template not working for climate cards #138

Closed schmittx closed 4 years ago

schmittx commented 6 years ago

Documentation says that extra_data_template should work for climate cards, but it's not working for me. See configuration below and screenshots of result.

image image

Checklist

Browser + Version: Safari 11.1.1 and Chrome 67.0.3396.99

CustomUI version: 20180625

Home Assistant release (hass --version): 0.72.1

Problem-relevant configuration.yaml entries:

customizer:
  custom_ui: hosted
homeassistant:
  customize_glob:
    climate.*:
      custom_ui_state_card: state-card-custom-ui
      extra_data_template: >
        if (attributes.away_mode) return "Away Mode: " + attributes.away_mode; else return null;

Problem-relevant Home Assistant log entries: None

Any errors from browser Javascript console: None