Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Themes set in Custom-ui not recognized in frontend Lovelace #163

Open
3 tasks
Mariusthvdb opened this issue Dec 19, 2018 · 4 comments
Open
3 tasks

Themes set in Custom-ui not recognized in frontend Lovelace #163

Mariusthvdb opened this issue Dec 19, 2018 · 4 comments

Comments

@Mariusthvdb
Copy link

Mariusthvdb commented Dec 19, 2018

Checklist

  • I'm running the latest version of CustomUI (Update guide) or using a specific release that is not marked as "Broken".
  • I tried to force-refresh (Ctrl+Shift+R / Ctrl+F5) the browser
  • (Optional, but recommended) I'm using Chrome or tried to reproduce the feature on Chrome.

Browser + Version:
Safari/Chrome/Firefox Mac Mijave

CustomUI version:

20181217
Home Assistant release (hass --version):

0.84.3
Problem-relevant configuration.yaml entries:

sensor.huidig_tarief:
  templates:
    icon: >
      if (state === '1') return 'mdi:numeric-1-box-multiple-outline';
      if (state === '2') return 'mdi:numeric-2-box-multiple-outline';
      return 'mdi:fire';
    theme: >
      if (state === '1') return 'green';
      return 'orange';
    _stateDisplay: >
       if (state === '1') return 'Laag';
       return 'Hoog';

and theme:

orange:
  primary-text-color: orange
  paper-item-icon-color: orange
  secondary-text-color: orange
  label-badge-background-color: white
  label-badge-text-color: orange
  label-badge-red: orange
  label-badge-border-color: orange

Problem-relevant Home Assistant log entries:


no log entries

Any errors from browser Javascript console:


please see: home-assistant/frontend#2366
and https://community.home-assistant.io/t/lovelace-themes-custom-ui/81658/2

Lovelace
schermafbeelding 2018-12-19 om 11 19 06

Regular HA
schermafbeelding 2018-12-19 om 11 19 14

Lovelace More-info
schermafbeelding 2018-12-19 om 11 29 18

@gamer06
Copy link

gamer06 commented Mar 23, 2019

Hi. Any news about this??
Thanks!

@VirtualL
Copy link

As far as I know Custom-UI Will not work at the new "Lovelace UI" , only in "States UI".
more info at #139

@horacecar
Copy link

As far as I know Custom-UI Will not work at the new "Lovelace UI" , only in "States UI".
more info at #139

Can we use this way?
https://community.home-assistant.io/t/lovelace-custom-ui/65026/10


Got it running now…completely (lovelace and standard-UI)
…without above mentioned workaround. (forget it 😉 )

Here’s a snippet out of my configuration.yaml:

customizer:
custom_ui: local

frontend:
javascript_version: auto
extra_html_url:
- /local/custom_ui/state-card-iframe.html
- /local/custom_ui/lovelace-iframe.html
extra_html_url_es5:
- /local/custom_ui/state-card-iframe-es5.html
- /local/custom_ui/lovelace-iframe.html

@Mariusthvdb
Copy link
Author

HI @andrey-git ,

Not sure if you're even keeping custom-ui up to date, (which I most sincerely hope), but would there be any chance you could make theme settings in custom-ui be recognized by Lovelace please?

I now they are still working, and showing in more-info, but the normal entities view doesnt reflect the set theme in custom-ui, since quite a long time now.

Hope you can have a look and fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants