Change switch from slider to ivons

For my broad link the switch automatically shows a lightning icon and two separate ones for on and off.

For another Mqtt switch it shows a slider.

How can I change this mqtt switch to show the same way? Or potentially with custom mdi icons for on and off? I managed to change the icon with icon:mdi but the switch itself is still a slider. Any tips?

add “assumed_state: false” to your switch configuration.

This does not seem to work.

try putting it into the customization section.

I’ve put it to true and now it seems to work :face_with_raised_eyebrow:

that’s strange. the docs say it should be exactly the opposite unless i’m reading it wrong: