thewatchman
thewatchman copied to clipboard
Code for Services Markdown Card has Error
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;
}