Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - Light with dimmer attribute only #20

Closed
Tedsterh opened this issue Feb 17, 2020 · 8 comments
Closed

Bug - Light with dimmer attribute only #20

Tedsterh opened this issue Feb 17, 2020 · 8 comments

Comments

@Tedsterh
Copy link

I have a light with just a dimmer attribute, no colour or temperature. The popup only shows a switch, unlike my colour bulbs where the popup has a slider.

@DBuit
Copy link
Owner

DBuit commented Feb 17, 2020

Hi @Tedsterh set supportedFeaturesTreshold to 0 for this entity and it will display slider.

@Tedsterh
Copy link
Author

Tedsterh commented Feb 17, 2020

I have placed that inside the popup config, but it hasn't changed anything. I still get the switch instead of the slider.

- column: 2 tileOnRow: 4 entities: - title: Master Bedroom entities: - entity: light.main_light popup: type: 'custom:light-popup-card' scenesInARow: 4 brightnessWidth: 130px brightnessHeight: 350px switchWidth: 110px switchHeight: 300px supportedFeaturesTreshold: 0

@DBuit
Copy link
Owner

DBuit commented Feb 18, 2020

@Tedsterh can you share the state in de developer tools of home assistant.
Like this:
example

@Tedsterh
Copy link
Author

Screenshot 2020-02-18 at 15 16 43

@DBuit
Copy link
Owner

DBuit commented Feb 18, 2020

@Tedsterh that is strange by setting tileHoldAnimation to 0 it should show the brightness slider when supported_features is higher than 0.

Can you share your config as code with before the code and after so the indentation is kept.

@Tedsterh
Copy link
Author

Tedsterh commented Feb 18, 2020

Can you share your config as code with before the code and after so the indentation is kept.

I did that but it doesn't seem to display the indentations.
Screenshot 2020-02-18 at 18 23 18
This is my code for the light and popup.

@DBuit
Copy link
Owner

DBuit commented Feb 19, 2020

@Tedsterh really strange i can even get a slider for a light that does not have brightness by setting supportedFeaturesTreshold: -1. Are you using HACS? and latest version? or manual installation?

@Tedsterh
Copy link
Author

I am using HACS latest version, if I set the supportedFeaturesTreshold: -1 then I get a dimmer slider. Not sure why I don't if its set to 0 instead.

@DBuit DBuit closed this as completed Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants