CustomUI - discussion thread

Any existing element (which probably won’t be useful, as an icon element won’t act like a button) or any custom element you write.

Yes, this is broken since HA 0.70. I haven’t figured how to re-implement it yet.

You should either use

extra_html_url: ...
extra_html_url_es5: ...

or custom_ui: local. Not both.

Your files are at the correct places, but it is not clear to what is not working.

Thanks for the hint… so whats the difference between both of em ? I thought one would need both because only using the html entries is doing nothing for me.
And as soon as i only use the customizer entry the config check runs forever … this is why i think something must be wrong somewhere!

Just restarted without the config check and now custom ui appears under Dev Info:

devinf

But i guess config check should be working anyway?

Update: i think i got it working with the html section. But can someone still tell me whats the difference between both methods?

Thank you @andrey!! Not a biggie, I just wanted to make sure I wasn’t doing anything wrong with my setup.

You should definitely be able to do this by changing the html in my code. I haven’t tested this, but I bet it would be something like this:

<paper-button-group on-click="stopPropagation">
    <paper-icon-button
      src="/local/on.png"
      class="on"
      on-tap='handleOnTap'
      hidden$='[[!onButtonVisible]]'>On</paper-icon-button>
    <paper-icon-button
      src="/local/off.png"
      class="off"
      on-tap='handleOffTap'
      hidden$='[[!offButtonVisible]]'>Off</paper-icon-button>
</paper-button-group>

Then you should be able to set the size in the style section like this:

paper-icon-button {
  width: 30px;
  height: 30px;
}
1 Like

thanks! will test and try after updating to 0.70.1
nice.

I have released a new version

2018-06-02

  • Hotfix for HA 0.71+
  • Restore handling custom attributes in form and more-info.

cc @sfiorini

2 Likes

Thank you @andrey !!
I will check it out shortly

I do apologise in advance for what might seem to be an easy ‘fix’. It’s just that I cannot, try as I may, find an answer to my issue. I am using HA v0.70.1 with CustomUI 20180528. I am slowly learning how to set things up as I’d like to see them. I’ve managed to get sensor icons to change colour on different states, but if I click on an icon, the ‘card’ that shows - and I’m sorry, but I don’t know exactly what this ‘card’ is properly called! - shows not only a history of the sensor but also a heap of extra text - templates; icon color etc. (see example below)

sensor

So, my question is how can I remove that text from this ‘card’ while still maintaining the changes I have made? Or even - can I?

Thanks so much for any help!

Same here… and i would like to know if it’s a correct behaviour or not…

Two posts above yours…

cc @maurizio53

So it means it will be fixed in the next release?

No, it means it’s fixed in the 2018-06-02 version like it says :slight_smile: and I can confirm it fixed mine.

Hmm… i just upgraded to the last custom ui, but i still have that in my cards…
But it says “hotfix for HA 0.71+”

Have you done a force refresh in your browser or if that doesn’t work wipe the cache?

Ok, i’ll try when back home…

HI @andrey guess your right, only dedicated elements show nicely here. But this opens doors to other fine elements, so thanks.

Please help me out, can we use home-assistant-custom-ui/docs/features.md at master · andrey-git/home-assistant-custom-ui · GitHub for regular input_numbers/sliders? Ive tried but nothing happens, and the name is cut off, to display the slider:

36

instead of:

40

cheers,
Marius

@andrey Tested and it works great!! I was able to hide all custom attributes.

Thanks for that. I’ve installed v0.71.0b0 (it’s actually still in beta, and expected release date is 10 Jun) and also updated Custom UI to 20180602. The result on the State Card (is that the correct terminology?) is certainly better - but it hasn’t completely fixed the issue of showing extra information!

SensorCard_PostBetaInstall

You can see the effect on the card (above). Oh, and yes, my browser cache was cleared and the result confirmed on a second computer. Am I missing something here? Is there a configuration entry I need to include / modify to remove this superfluous information - or should it be ‘automatic’ with Custom UI? Thanks again for assistance - and a great add-on!

@Mikeinnc - What code did you use to achieve this? - I have been messing around with sensor templates for 24 hours+

Im using a customization-sensors.yaml and hs_color and brightness - can you share your code please?

I can get colors to change but the HSL colour for rgb 128,128,128 (which should be gray) is coming out blue

Thanks
Rob

I have indeed forgot to add icon_color to the list.

What is the state attribute?

In any case you can hide any attribute you like using customizer

1 Like