mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 05:16:49 +00:00
Markdown Card: User Variable (#12614)
* User markdown * Undo line changes * add space
This commit is contained in:
parent
1b1506cecb
commit
e71fd7c5a7
@ -81,3 +81,18 @@ card:
|
|||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
|
|
||||||
|
A special template variable - `user` is set up for the `content` of the card. It contains the currently logged in user.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
type: markdown
|
||||||
|
content: |
|
||||||
|
Hello, {{user}}
|
||||||
|
```
|
||||||
|
|
||||||
|
{% endraw %}
|
Loading…
x
Reference in New Issue
Block a user