Skip to content

Template for customizing displayed value

Compare
Choose a tag to compare
@amitfin amitfin released this 24 May 12:41
· 55 commits to main since this release

A new optional template configuration for customizing the displayed value.
Example:

- entity: binary_sensor.let_the_dog_out
  template: >-
    {{ state_attr(entity_id, 'schedule') | rejectattr('disabled',
    'true') | map(attribute='from') | map('truncate', 2, True, '')
    | join(' | ') }}