Code Monkey home page Code Monkey logo

Comments (9)

Mariusthvdb avatar Mariusthvdb commented on May 20, 2024

Hi, as the screen shot shows, you haven't yet installed custom-ui.

Please check the documentation how to do that first.

from custom-ui.

Javito68 avatar Javito68 commented on May 20, 2024

thanks for answering Mariusthvdb, I just installed custom-ui:
image

but it does not work, any suggestions?

image

Thanks!!!

from custom-ui.

Mariusthvdb avatar Mariusthvdb commented on May 20, 2024

You didn't install the custom-ui in this repo, but the old and no longer working version...

Please delete this and check the docs once more.

After that show the info page with the version installed

from custom-ui.

Javito68 avatar Javito68 commented on May 20, 2024

Hi Marius, instalado:
image

now I have the following doubts:
- Why does it not work in the target entity and if in the target entities?

image
image

-How can I hide attributes? I have used hide_attributes in customize.yaml and it doesn't work:

sensor.temperatura1:
hide_attributes:
friendly_name: "Temperatura dht22"
icon: mdi:speedometer-slow
templates:
#icon_color: green
icon_color: >
if (state < 25) return 'red';
else return 'green';

image

thank you for your patience!!!

from custom-ui.

Mariusthvdb avatar Mariusthvdb commented on May 20, 2024

Hide_attributes:

You didn't configure what to hide ;-) check the docs and see eg templates and icon_color, or simply set all

Color:
Could be 2 things: not always necessary, but did you also restart?

If so, it could be you need to quote the number (because it could be a string), so try '25'

Lastly, the word 'else' is not needed.

from custom-ui.

Javito68 avatar Javito68 commented on May 20, 2024

Hi,
Hide_attributes -> Ok

Color:
in each change restart, the data is numeric as string does not work, overridden the else:
sensor.temperatura1:
hide_attributes:
- templates
friendly_name: "Temperatura dht22"
icon: mdi:coolant-temperature
templates:
#icon_color: green
icon_color: >
if (state < 0) return 'red';
if (state < 20) return 'yellow';
if (state < 30) return 'green';
if (state < 50) return 'red';

it not work in the target entity, why?
image

Thanks!!!

from custom-ui.

Mariusthvdb avatar Mariusthvdb commented on May 20, 2024

that card probably can't be customized by custom-ui, because it uses another way of displaying the icon_color.

you need the card-mod resource by Thomas Loven, check https://community.home-assistant.io/t/card-mod-add-css-styles-to-any-lovelace-card/120744/1396 by @ildar_gabdullin for many suggestions to do so.

from custom-ui.

Javito68 avatar Javito68 commented on May 20, 2024

Thanks and greetings !!!

from custom-ui.

Mariusthvdb avatar Mariusthvdb commented on May 20, 2024

you're most welcome ;-)
closing.

from custom-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.