Giter Site home page Giter Site logo

Comments (8)

andrey-git avatar andrey-git commented on August 28, 2024

Could you paste your custom-ui related config here?

from home-assistant-custom-ui.

mihalski avatar mihalski commented on August 28, 2024

In configuration.yaml:

homeassistant:
  customize_glob:
    light.*:
      custom_ui_state_card: custom_light
    cover.*:
      custom_ui_state_card: custom_cover

In customise.yaml:

    light.office:
      custom_ui_state_card: custom_light
      state_card_mode: break-slider
      stretch_slider: true
      # extra_data_template: "{power_consumption!=10}W"
      slider_theme:
        min: 1
        max: 255
        pin: true
        off_when_min: false
        report_when_not_changed: false

Now here is where I am a bit confused. The entity name doesn't match any entity and yet all the lights have taken on the new customised ui. Is this where I'm messing up?

from home-assistant-custom-ui.

andrey-git avatar andrey-git commented on August 28, 2024

All lights will take the customized ui from the

homeassistant:
  customize_glob:
    light.*:
      custom_ui_state_card: custom_light

part. (Which is matching all entities with ID starting from light.)
If light.office is not an actual ID it won't apply anywhere. If it is - the config seems fine.

from home-assistant-custom-ui.

mihalski avatar mihalski commented on August 28, 2024

light.office is not an actual entity_id. Does this mean that the component defaults to pin: false and max: 100 ?

Also, does this mean that to apply this customisation to every light with the desired settings I have to duplicate the entire entry for each light?

from home-assistant-custom-ui.

andrey-git avatar andrey-git commented on August 28, 2024

pin defaults to false, but max defaults to 255.

If you want the same options for all your lights - just put them under the customize_glob: section:

homeassistant:
  customize_glob:
    light.*:
      custom_ui_state_card: custom_light
      state_card_mode: break-slider
      stretch_slider: true
      # extra_data_template: "{power_consumption!=10}W"
      slider_theme:
        min: 1
        max: 255
        pin: true
        off_when_min: false
        report_when_not_changed: false

from home-assistant-custom-ui.

mihalski avatar mihalski commented on August 28, 2024

Ahh, so that's how I'd do that. Is it then also possible to then override per light in the customize section?

Weird that max is capping out for me at 100.
screen shot 2017-04-06 09 41 17 pm

Just made the changes and everything is working great after a restart! Except for this oddity:
screen shot 2017-04-06 09 49 26 pm
It's like the inverse of what was happening before. I can't really touch the light tonight since it's being used. Seems like HA is saying it's at 255 but the custom components slider read it back differently. I had another light on at full brightness and it read that back correctly.

Either way this tiny glitch doesn't concern me, I only mention it because it might indicate some sort of bug somewhere.

from home-assistant-custom-ui.

andrey-git avatar andrey-git commented on August 28, 2024

What platform is this light?

from home-assistant-custom-ui.

mihalski avatar mihalski commented on August 28, 2024

LIFX. The new and improved version of the component.

from home-assistant-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.