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

Combination of Toggle Button and Slider Card #209

Open
mhummels opened this issue Mar 16, 2024 · 3 comments
Open

Combination of Toggle Button and Slider Card #209

mhummels opened this issue Mar 16, 2024 · 3 comments
Assignees

Comments

@mhummels
Copy link

I am using ESP-DASH for my smart van project and bought Pro today. Thank you for the great work and quick support getting the Pro download working.

As I have some dimmable lights in my van, it would be really nice to have a combination of the slider card with the toggle button card. Just imagine you would be able to just press on the icon of the slider card to toggle the light on and off and have the slider for the brightness right next to it. Currently I have to use two different cards to get the same result. It works, but it is a little inconvenient.

@mathieucarbou
Copy link
Contributor

That's a good idea that I would also be interested to have on my project. I also dim some load and I have a toggle button and a slider currently to provide a quick toggle at full power and and a power control. It would be nice indeed to have sort of toggle dimmer that would integrate the button in the icon.

Also, this is just a UI change, no code change, because level == 0 (min value) means button off and level == 100 (max) means button on.

Note that if you have the pro version you can create your own cards ;-)

@mhummels
Copy link
Author

Note that if you have the pro version you can create your own cards ;-)

Is that documented somewhere? I checked the code and found only precompiled HTML. For my understanding I would need to adjust that to be able to add a custom card as the JSON just defines the types but not the UI or am I wrong?

@mathieucarbou
Copy link
Contributor

I checked the code and found only precompiled HTML.

If you bought the Pro version, you also have the portal code and can modify it (after reading the README).

That's how i was able to develop all the latest contributions I did, that you guys now also have in the Pro version ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants