I would like to request some help. Im trying to make the UI background change with the actual season (script is done, change the item), but Im not able to load in any way the background image. If Im using the background-image: url(‘/static/Spring.jpg’) its loading the image from the static folder but if I try to use my item which is itemSeasonName its not works.
- context: item
description: Season name item
label: Smart Home panel season tag
name: itemSeasonName
required: true
type: TEXT
groupName: SmartHomeWallPanel
The item value can be: Spring.jpg , Winter.jpg, etc
If the actual name is your item is itemSeasonName, then you don’t need to use the widget property at all. You can access the state of items directly in the widget expression. In this case, I would use a string template to build the full string value: