Skip to content

Commit

Permalink
Update README.md Ranking card
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerbranda authored Mar 7, 2024
1 parent 721d691 commit 1fd1220
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,25 @@ rbfa:
Ranking card
-

- type: markdown
title: Ranking
content: >-
{% set sensor = "sensor.result_281449" %}

{{state_attr(sensor, "Series") }}
-
{% if state_attr(sensor, "Ranking") != None %}
{% for item in state_attr(sensor, "Ranking") %}{{item.position}}. {% if item.id == state_attr(sensor, "TeamID") %}**{{item.team}}**
{% else %}{{item.team}}
{% endif %}
{%- endfor %}
{% endif %}
```
type: markdown
title: Ranking
content: >-
{% set sensor = "sensor.result_279669" %}
{{state_attr(sensor, "Series") }}
-
{% if state_attr(sensor, "Ranking") != None %}
{% for item in state_attr(sensor, "Ranking") %}
{{ item.position }}. {% if item.id == state_attr(sensor, "TeamID") %}**{{item.team}}**
{% else %}{{item.team}}
{% endif %}
{% endfor %}
{% endif %}
```

<img src="https://github.com/rgerbranda/rbfa/blob/151ab7be10f3ae2d1fbd2e87d00107461c37e98a/images/ranking.png" alt="Ranking" width=528>

Expand Down

0 comments on commit 1fd1220

Please sign in to comment.