Expected behavior
I expect the icon to change based on the battery level of the sensor in the yaml
Additional context
If 'icon' is not a class of custom_fields, how can I change the icon based on the battery level with the code from the documentation:
Checklist
Describe the bug Icons for custom_fields based on condition are not showing. instead [object Object] or [nothing] shows up.
Version of the card Version: 3.4.2
To Reproduce This is the configuration I used:
Screenshots
Expected behavior I expect the icon to change based on the battery level of the sensor in the yaml
Additional context If 'icon' is not a class of custom_fields, how can I change the icon based on the battery level with the code from the documentation:
I tried an if loop where the icon is set, but this also just throws an error:
with that nothing is shown:
Hope someone can get me out of this.
Best regards, goeste