The current Jinja implementation for the url field does not have access to the current user. The possibilities for this are endless. In my use case I would use it to check the users phone dahttps://github.com/piitaya/lovelace-mushroom/blob/main/src/cards/template-card/template-card.ts#L56ta/wifi signal and determine if it's sufficient for the mainstream url or requires the substream url.
The current Jinja implementation for the url field does not have access to the current
user
. The possibilities for this are endless. In my use case I would use it to check the users phone dahttps://github.com/piitaya/lovelace-mushroom/blob/main/src/cards/template-card/template-card.ts#L56ta/wifi signal and determine if it's sufficient for the mainstream url or requires the substream url.Here's some documentation on this.
https://developers.home-assistant.io/docs/frontend/data/#hassuser
An example of this being used in the mushroom Template card.
https://github.com/piitaya/lovelace-mushroom/blob/main/src/cards/template-card/template-card.ts#L56