Open frantathefranta opened 1 year ago
Don't know if you've already figured this out by yourself, but there is a missing "template:" in the custom_widget_irmajavi definition in the custom card yaml. It should look like this:
custom_widget_irmajavi:
template:
- "ulm_translation_engine"
show_label: true
(...)
Hey there,
I'm had the same issue?
This is worked for me in the end
custom_widget_irmajavi:
template:
- "ulm_translation_engine"
show_label: true
show_icon: false
label: "[[[ return variables.ulm_translation_state_unit ]]]"
styles:
name:
- justify-self: "center"
- align-self: "start"
- font-weight: "bolder"
- font-size: "12px"
- filter: "opacity(40%)"
label:
- margin-top: "10px"
- justify-self: "center"
- font-weight: "bold"
- font-size: "14px"
grid:
- grid-template-areas: "'l' 'n'"
- grid-template-columns: "1fr"
- grid-template-rows: "min-content min-content"
card:
- box-shadow: "none"
Does anyone know how to get the icon to show properly?
Thanks
Describe the bug I'm getting this error in the bottom row of entities when using this custom card:
ButtonCardJSTemplateError: TypeError: undefined is not an object (evaluating 'variables.ulm_translation_state_unit') in 'return variables.ulm_translation_state_unit'
To Reproduce Installed the custom card through the Devices&Services config menu. Minimalist UI version is the latest hotfix. Using this card config (sensors are real and have readings, I tried changing the names as well but no success):
Expected behavior I would like it to look like the screenshot on the linked page.
Screenshots
Additional context Nothing comes to mind