HI,
Only just started with Lovelace, please allow this theming question:
Most of my customizing set in custom-ui works.
A remarkable off is theming in front-end cards, whilemore-info does apply themes correctly:
example:
frontend:
more-info:
as you can see the _stateDisplay is set correctly in both views, so that is compatible.
maybe there’s a new way of doing things in Lovelace, but I hope this can be made compatible somehow?
still nothing on this?
its a remarkable issue. I raise this in HA and custom-ui GitHub.
theme set in custom-ui not recognized in Lovelace
sensor.huidig_tarief:
templates:
icon: >
if (state === '1') return 'mdi:numeric-1-box-multiple-outline';
if (state === '2') return 'mdi:numeric-2-box-multiple-outline';
return 'mdi:fire';
theme: >
if (state === '1') return 'green';
return 'orange';
_stateDisplay: >
if (state === '1') return 'Laag';
return 'Hoog';
Lovelace:
Regular HA