This repository has been archived by the owner on Nov 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 278
Templates
Evgeny edited this page Jul 9, 2018
·
1 revision
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',
}
}