I’m sorry, but I don’t really understand. From my pi I just did sudo wget https://github.com/andrey-git/home-assistant-custom-ui/raw/master/state-card-custom-ui.html.gz and sudo wget https://github.com/andrey-git/home-assistant-custom-ui/raw/master/state-card-custom-ui.html. What do you mean it’s not a .gz file? Should I rename it to something different?
@andrey You mention in your documentation that you can set this conditionally, like so: {power_consumption!=0}W
Can this be conditional on another attribute or state? I only want to show the speed attribute it if the entity is on. If it is possible, I can’t seem to figure out the proper syntax.
Actually if you look at my errors the bottom one is “failed to load resource” and hovering over it says I was missing the files. I don’t see that in your errors, so possibly you have a different situation.
For some sensors I have the icons change depending on their state. It would be great if we could also change the colour of the sensor icons too depending on their state (or any icons, not just sensor icons).
It would be great if it were made possible in Custom UI
If you ever implement it please allow changing the colours from triggers, different states etc.
After upgrading to .54 my badges disappeared. I went to the github page and grabbed the new installer script, ran it, it updated the files/folders but still, no badges. I have no errors in the homeassistant.log. Any suggestions?
EDIT: I also downloaded the files manually but made no difference. I see this error on chrome debug;
Thanks for responding. I disabled the component and can tell the UI changed, no errors in the log, and the chrome error is still there, so probably unrelated. This configuration was working in .51, didn’t modify it just upgraded to .54 and the badges don’t show up anymore. Thanks for your help!
Before I spend time to figure out how to theme the color of the badge and the icon, and the icon itself, I was wondering if the following is currently possible with Custom UI. At the moment, I have this state card:
My question is about the badge for my binary (motion) sensor: is there a way to make the last_changed info show up in a label on that badge (so where the 3 other badges show the unit of measurement)? Of course it would have to be abbreviated to something like 3h instead of 3 hours ago.
Is it only me that get empty cards after a while?
I have the group header and group switch but content is empty.
Browser: Chrome on Android and PC
I have this error message in log, if that can be related:
2017-11-29 18:25:17 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.6/asyncio/tasks.py”, line 180, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/core.py”, line 1031, in _event_to_service_call
yield from service_handler.func(service_call)
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/init.py”, line 122, in async_handle_turn_service
entity_ids = extract_entity_ids(hass, service)
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/service.py”, line 104, in extract_entity_ids
return group.expand_entity_ids(hass, [service_ent_id])
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/group/init.py”, line 205, in expand_entity_ids
domain, _ = ha.split_entity_id(entity_id)
ValueError: not enough values to unpack (expected 2, got 1)
EDIT: Did som more testing, when removing this part from customglob everything shows (but no custom ui ofc)