Templates - resoai/TileBoard GitHub Wiki
For many tile fields, like title
, subtitle
, state
, icon
, icons
, filter
, bg
, filter
, etc, you may use our custom templating.
In templates you may use @/& prefixes to get a value inside objects (entities). @
is relative to the current entity (@attributes.friendly_name
) and &
is for global (&sensor.kitchen_temp.state
).
String may contain many such variables.
Here an example:
{
type: TYPES.WEATHER,
fields: {
summary: 'Max: &sensor.dark_sky_max_temp.state - min: &sensor.dark_sky_min_temp.state',
}
}