Kashub's Code Barn - "Home Assistant markdown card listing all attributes of specific entities"

podświetlone jako yaml (dodał(a) kashub @ 2024-01-25 16:52:43)

Twoja wyszukiwarka
Parcel ABC
Podświetl ten kod w:
Ostatnio dodane:
Losowe wpisy:
type: markdown
title: Test markdown all attributes of defined entities
content: |

  {% set entities = [
  "media_player.office_speaker",
  "media_player.bedroom_3",
  ] %}
 
  {%- for id in entities -%}
    <table>
      <tr><th colspan="2">{{ id }}</th></tr>
    {%- for attr in states[id].attributes -%}
      <tr>
        <td>{{ attr }}</td>
        <td>{{ state_attr(id, attr) }}</td>
      </tr>
    {%- endfor %}
    </table>
  {%- endfor %}
 
| Foteliki samochodowe | | Wózki dla dzieci | | Sklep z oponami | | Opony motocyklowe | | Sklep z artykułami RTV/AGD | | Programista Trójmiasto | | Przenieś bloga z onetu | | Załóż za darmo bloga | | Skracacz adresów | | Opisy na Facebooka |