Anyway to have an image as the background of a button? Would anyone have an example from their config that I could use as a starting point?

Hello all,

Could I have some direction on the subject?

I haven’t been able to locate examples/ capabilities so far.

Thank you all in advance for the guidance.

Smth like this:

        type: button
        entity: sun.sun
        card_mod:
          style: |
            ha-card {
              background: url('/local/images/test/blue_low_2.jpg');
              background-size: 100% 100%;
            }

That is perfect!

Something, exactly like that.

Thank you so much @Ildar_Gabdullin and thank you for all of the help you have given me in the past!!

Thank you again for the example. I will see what I can do with this over the next few days.

1 Like