Custom component / sensor platform and icon instead of state

Hi,

I’m building my first own custom component for a media player. It’s working, ie showing up in the frontend and changes state based on what my media player is doing. What I would like to do, though, is have an mdi-icon showing instead of the state being “playing” or “paused”. Is this possible to do? Should I perhaps go about creating a binary_sensor instead?

Thanks,
Patrik

1 Like