Finally made a light control card with 10/10 wife acceptance. 💪

Hello there, I have some issue with implementing your button.

I have installed card-mod 3 and adaptive lighting, but when I add your code nothing show to me just configuration error.

Did I need something else?

BTW: I am also HA noobie just started last week :smiley:

Did you also install Mushroom Cards?

I found https://github.com/goggybox/compact-light-card this which is very nice.

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!

It seems to be working well for me, so hopefully all good for anyone else who tries it. I’ve forked off the main project - GitHub - lewisburgess/compact-light-card-1 at feature/icon-tap-brightness (it got called this as the first thing I did was work on the icon tap for brightness setting).

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.