This lets you input a time to a input_datetime right in the lovelace interface, without having to open up the more-info dialog.
I made this solely for my own benefit, so it’s not documented at all, and it only support inputing times, not dates.
If you think you’d use it, let me know and I might try to add the feature.
This allows you to add elements to your picture that does one thing when you click them, and another - totally different - thing when you click and hold for about half a second.
A typical use case would be a light that you toggle on or off by clicking (or tapping on a touch screen), but holding the mouse button (or finger) down for a while will bring up the more-info dialog and allow you to dim the light or change its color.
But the long-press action can also be something entirely different, like calling a service or toggling a different entity.
Think of the amazing stuff people have made with picture-elements over at sharethelove.io. That’s made possible - in part - because elements can be styled with custom css. And now any normal card can as well.
It’s also a great way to produce atrocities such as:
But I’m sure that in the hands of anyone even just a tiny bit more artistic than myself, it can be used to produce wonderful things.
A bonus feature of this card is that you can manually select which size it will report when placing in the layout. That can give some more control over which card ends up where on screen:
Is there any way to change the number of columns used? Mine is showing 2 columns when 3 would be better. Goes down to 1 on my phone which is great.
Would it be as simple as changing the max column width from 500px to 300px or something like that?
Also getting an error…
https://domain.duckdns.org/local/mini-media-player.js?ver=0.8.1:592:22 NotSupportedError: Cannot define multiple custom elements with the same tag name
Please do, if you’ve got time. Opening more-info on long click is just a small addition to the existing picture entity card in terms of code, but a gamechanger in terms of usability.