Skip to content

[Feature Request] Support Jinja2 templates in widget labels #73

@deltamegacron

Description

@deltamegacron

Currently, widget labels only support static text. The geekmagic.notify service already supports Jinja2 templates in the message parameter, but widgets configured through the dashboard do not support templates in their label fields.

Current Behavior:
When configuring a Camera widget with label {{ states('sensor.birdnet_go_last_detection') }}, the literal string is displayed instead of being evaluated as a template.

Image

Desired Behavior:

Widget labels should evaluate Jinja2 templates, similar to how geekmagic.notify handles the message parameter.

Image

Use Case:

Display dynamic entity states alongside widgets without requiring separate Text widgets. Example: Show bird species name detected by BirdNET alongside the bird image in a Camera widget.

Example

Widget Type: Camera
Entity: camera.birdnet_vogelbild
Label: {{ states('sensor.birdnet_go_last_detection') }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions