Scaling icons with picture size in picture-elements

I make extensive use of the picture-elements card.

It is, for my family, far and away the easiest way to communicate what is going on, and what is controllable in the house.

We access HA from a variety of different devices, from phones, tablets, and browsers on big beefy desktops.

Here is where the picture-elements card has some issues-- when viewed on phones (especially in portrait orientation), the icons are too large, and overlap (and even worse for their ‘hitboxes’, which are larger than the icon itself).

Ideally the icons (and the touch/hitbox) would scale as the picture itself scales.

Is there some way to do this?

Better to continue a discussion there.

1 Like