I don’t know if the additional functionality you have in here could work like this, but one of the cool things about the gist from @ciotlosm is that it’s NOT a card and you can choose to include the functionality for particular clients, or exclude it for particular clients by just pointing the browser at a specific URL.

It would be cool if you could implement the various card options as URL query string params and not require a custom card at all in the ui-lovelace.yaml. For example:

The reason I made this into a card was so that it survives being navigated away from, restarts, etc as well as being easier to configure. The gist unfortunately didn’t play well with those things. I agree that it would be helpful, but I think something like mobile/touchscreen detection and separate views for those devices might be a better solution and I’m currently working on it.