Image State
Specifies the image's behavior responding to specific datapoint states values.
Attributes
Datapoint
Value
The value of the datapoint that identifies the state.
Attribute Values
| Value | Description |
|---|---|
| <string> | The value. |
Image
Image
Specifies the image source to show.
The value can be:
- A relative path to an image file, such as
lights/lamp.png - An icon prefixed with
icon:
Relative image paths are resolved against one of the following folders:
- Common images folder, for images shared among projects (www/img)
- Project images folder, for project-specific images (www/projects/<project>/img) If an image with the same relative path is found in both folders, the project image is used.
Attribute Values
| Value | Description | Example |
|---|---|---|
| <image> | Relative path to the image file. | lights/lamp.png |
| <icon> | Icon prefixed with icon:. | icon:mdi#account-multiple |
| none | No image is displayed. |