thewatchman icon indicating copy to clipboard operation
thewatchman copied to clipboard

Code for Services Markdown Card has Error

Open pickerin opened this issue 1 year ago • 3 comments

The code for the Services Markdown Card in the README.md incorrectly lists "services" as the attribute being pulled rather than "entities". The correct code should look like this:

type: markdown
content: >-
  <h2 class="some"> <ha-icon icon='mdi:shield-half-full'></ha-icon> Watchman report</h2>
  <h3> Missing Services: {{ states.sensor.watchman_missing_services.state }} </h3>
  {%- for item in state_attr("sensor.watchman_missing_services", "entities") %}
  <hr><table><tr> <td>  <ha-icon icon='mdi:cloud-alert'></ha-icon> {{ item.id }}
  <a title="{{item.occurrences}}">{{item.occurrences.split('/')[-1].split(':')[0]}}</a>
  </td></tr></table>
  {%- endfor %}
card_mod:
  style:
    ha-markdown:
      $: |
        ha-markdown-element:first-of-type hr{
          border-color: #303030;
        }

pickerin avatar Jun 25 '23 20:06 pickerin