Create a desktop icon that launches specific actions (view, switch, automation, light)

It would be cool to have a way to create an icon (I use Android) that once pushed you get an action.

Http shortcut, does that, but not for all, for example to view a HASS card, or IP webcam, and so on