@resoai so this is what i ended up with for date/time, kinda a mix between the custom js and the HA entity:
{
position: [0, 0],
type: TYPES.SENSOR,
classes: [" datetime"],
id: 'sensor.time',
title: '',
width: 3,
height: 2,
filter: function(value) {
time = value.split(':');
var suffix = time[0] >= 12 ? " pm":" am";
var hour = ((parseInt(time[0]) + 11) % 12 + 1);
return hour + ":" + time[1] + suffix;
},
bg: 'https://picsum.photos/374/247?random',
state: '&sensor.date.state',
}
Little bit of custom css to style it:
.datetime .item-entity--value{font-size: 480% !important;overflow: inherit !important;}
.datetime .item-entity{overflow: inherit !important;}
.datetime .item-background{opacity: 0.5;}
.item.-th-sensor.datetime{background-color: transparent;}
Love the flexibility!!