Yup, I think both approaches are valid and it’s a matter of preference.
For example, mini-media-player and banner-card use theme variables, and button-card and mini-graph-card use your approach with custom config in the card. And custom-header uses both
The drawback of your approach is that if you want to change the card everywhere you use it, you have to either use some kind of template, or copy-paste the config everywhere.
The drawback of mine is it’s a bit harder to change it in a single place. If you have card-mod installed, you can set the variables in the card config like this:
Currently the card behaves like a default lovelace card - it’ll take as much space horizontally as it can (within the column), and fixed space vertically.
Do you want to increase the amount of space the card takes or the size of the buttons/inputs in the card?
I really don’t understand why it has taken this long for something this simple to arrive but I am very happy. It’s simple but does what it needs to do. Great work!
If I change the input_datetime in the “normal” way, the state will be restored after reboot.
But, if I change the state via this plugin, the state will NOT be restored after reboot. This is very curious.
The value in both cards should change immediately after you change it (no matter which card you change it from). The value in both cards should be the same after a Home Assistant reboot.
if I change values and restart within ~ 10minutes -> it falls back to 0:00 (or old values)
if I change values and restart after ~ 10minutes -> it works
By the way:
no initial value used
no errors
point 4 was my first attempt and works like a charm (in both directions) -> so, I think it is just a matter of time between value-change and reboot (which makes no sense from point view )