Help Configuring a custom button-card

This is going to be complicated and a challenge.
I want to build a nice interface for this nodered flow: github.com/dvbit/ICL
So let me describe what I would ideally to do.

Square button.

  • Icon representing a bulb at the center: colored with the current brightness
  • smaller icons on top left and right: left the running man of movement sensors, right the switch icon. Icon animated if the corresponding automation is running . Greyed out if the corresponding animation is overridden. Not displayed if the corresponding automation is not enabled
  • below across the button a dynamic progress bar displaying the current status of the active countdown (either movement sensor automation or manual switch automation can be on at any given time) .
    a second bar with threshold illuminance and current illuminance

here a little sketch
I am currently fighting custom button card

IMG_1923

Here’s a start…