andrey-git / home-assistant-custom-ui

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

Extra badge theming/templating not working in CustomUI: 20190113 #165

Open covrig opened 5 years ago

covrig commented 5 years ago

Checklist

Browser + Version: All browsers. Using Chrome Version 71.0.3578.98 (Official Build) (64-bit)

CustomUI version: CustomUI: 20190113 Home Assistant release (hass --version): 0.83-0.85.1 Problem-relevant configuration.yaml entries: n/a Problem-relevant Home Assistant log entries: n/a Any errors from browser Javascript console: n/a

The Extra badges take the theme from the main element (state card). They should retrieve their own theme/template. This:

34455339-779d373c-ed7d-11e7-8e3f-700ab4680c45

should be something like this:

34455339-779d373c-ed7d-11e7-8e3f-700ab4680c4d

Related to: var --label-badge-background-color

crus1313 commented 5 years ago

how did you install the new version? github files are still old ones, even update.sh is installing same 20180831. ANd yes my badges are broken too (not changing color for home/away)

covrig commented 5 years ago

In my case it is installing the right version. I didn't check in detail but the Custom UI version displayed in Home Assistant is 20190113.

crus1313 commented 5 years ago

Could you point me to the page you install from? Because as stated before, installing from the usual place gives me that old version. In your version do the custom color badges work?

RezzZ commented 5 years ago

just use the update.sh file @crus1313

pi@RPi3BplusDEV:/opt/homeassistant $ ./update.sh
Getting ./update.sh
File up to date.
Getting scripts.js.map
Getting scripts.js.LICENSE
File up to date.
Getting scripts-es5.js.map
Getting scripts-es5.js.LICENSE
File up to date.
Getting state-card-custom-ui-es5.html
Getting state-card-custom-ui-es5.html.gz
Getting state-card-custom-ui.html
Getting state-card-custom-ui.html.gz
Updated to Custom UI "20190113"
Getting __init__.py
File up to date.
Getting services.yaml
File up to date.

edit: don't forget to hard refresh your webbrowser so it correctly displays the new version. not sure if a restart is required but it wouldn't hurt either.

Mariusthvdb commented 5 years ago

No theming on the extra badges here, and even the Unit has disappeared:

HA 84.3

Schermafbeelding 2019-04-03 om 14 23 28

HA 90.2

Schermafbeelding 2019-04-03 om 14 23 53

same goes for lights:

HA 84.3 Schermafbeelding 2019-04-03 om 14 26 04

HA 90.2 Schermafbeelding 2019-04-03 om 14 26 19

Before none was displayed under the badges, and the update before latest custom-ui solved that. Icon_color has been reinstated, which is very nice.

Now please bring back the units under the badges?

Would be very nice, thanks