Comments (8)
Could you paste your custom-ui related config here?
from home-assistant-custom-ui.
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.
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.
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.
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.
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.
Just made the changes and everything is working great after a restart! Except for this oddity:
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.
What platform is this light?
from home-assistant-custom-ui.
LIFX. The new and improved version of the component.
from home-assistant-custom-ui.
Related Issues (20)
- Configuration tab on Homeassistant broken with 0.90.0 HOT 13
- HTML Imports is deprecated and will be removed in M73, around March 2019. Please use ES modules instead. HOT 1
- Custom-ui not working on HA 0.93.0 HOT 18
- Extra keys not allowed HOT 2
- Hass.io 0.96.3 : Cannot read property 'some' of undefined HOT 14
- UndefinedError: 'None' has no attribute 'state' hanging up server HOT 1
- Is the custom ui working with lovelace? HOT 6
- 0:0 Script error on HA 0.102.1 HOT 4
- Confusing docs, pls help. HOT 4
- http://192.168.200.235:8123/local/custom_ui/state-card-custom-ui.html:27:8908 Uncaught TypeError: e.push is not a function HOT 9
- input_datetime icon_color based on state HOT 1
- HA 0.108.1 HOT 28
- icon_color don‘t work anymore with ha 0.110 HOT 19
- HA 0.110.2: Extra badge does not show up HOT 16
- HA 0.110.2 - Icons are not being colorized HOT 3
- New custom-ui for HA 110+ HOT 1
- Customization is being ignored within paper-buttons-row HOT 7
- state-custom-ui is not loading/working on HA 0.115.x HOT 1
- What is it? Does it work with default “lovelace” dashboard ui?
- Error during setup HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistant-custom-ui.