Dear community,
I am new to CustomUI. I am trying to set the icon color using frontend theme but it does not work for me (works fine via templates.icon_color
). Also extra data is not displayed. What I am doing wrong?
Thanks in advance.
frontend:
extra_html_url:
- /local/custom_ui/state-card-custom-ui.html
extra_html_url_es5:
- /local/custom_ui/state-card-custom-ui-es5.html
themes:
alert_yellow:
primary-text-color: '#FFC000'
paper-item-icon-color: '#FFC000'
paper-item-icon-active-color: '#FFC000'
alert_red:
primary-text-color: '#FF0000'
paper-item-icon-color: '#FF0000'
paper-item-icon-active-color: '#FF0000'
homeassistant:
customize:
vacuum.roomba:
custom_ui_state_card: state-card-custom-ui
templates:
theme: >
if (attributes.bin_full) return 'alert_red';
if (attributes.status === 'Charging') return 'alert_yellow';
extra_data_template: >
return attributes.status + (attributes.bin_full ? ' (bin full)' : '')