I liked this so much (and theoretically exactly what I wanted) but found a few things that weren’t quite right in terms of responsiveness and CSS - it wasn’t working on the iPad HA app properly, as well as some other things I wanted to modify.
I forked the project on GitHub and prompted Claude Code to make the changes. This is the first time I’ve forked something in GitHub, so hopefully all done properly!
The changes are;
Improved responsiveness on use
Visual editor with all settings (including new ones)
Tap icon for specific brightness (with setting for that brightness)
Separated opacity out for icon and the rest of the card both for off and on states
Icon background colour setting
Fixed rendering on HA app on iPadOS ^
Fixed width of card rendering issue
Added card height and font size settings
RGB and colour hue buttons with dynamic sliders can be toggled. Will only show if supported by the light.
Ability to ‘split’ the slider to avoid clashing with the buttons. Easier on touch screens but can still use the full width optionally if you turn this off.
^ I’m running my dashboard on an old iPad so it’s quite fussy about various things!
Looks very cool @lewisb79. But I think you posted in the wrong place. I posted the code directly in the OP. Never had it on github (although that’s a good idea).
I’m getting a configuration error on that code. I have changed the entities for the light but still. I also have the mushroom and the card mod plug-in installed.