Closed rklueber closed 1 year ago
allow the replacement of the "this.entity_id" not only in
options
, but as well in theattributes
section?
The attributes
section supports a list of "attribute + value" options, the this.entity_id
is meaningless here (templates are not supported for values).
Your only solution could be a using the template
option.
Go to Community auto-entities
thread for examples.
The issue is neither a bug nor a FR. Better to ask these questions in that thread.
Having the possibility to reference the current entity_id in the
options
section is helpfull for service calls.Is there a possibility to allow the replacement of the "this.entity_id" not only in
options
, but as well in theattributes
section?I am looking for an easy solution to show only the sonos media_players which play and arear not in a group ... or play and are master in their group.
This is the jinja2 code to identify those players. I would like to use auto-entities to get those done.
I tried via the
template:
route with little success as I did not be able to use the mini-media-player card with auto-entities.I tried a different approach ... but fail bc of this.entity_id is not being expanded in the attributes section. This is what I would like to achieve.