Closed kernelpanic85 closed 7 months ago
These errors seem to be related to a card you created.
Thanks I am using the card config from the readme. The missing services sensor reads 0 right now, is it just that the card config needs to handle when the sensor is 0?
type: vertical-stack
cards:
- type: markdown
content: >-
<h2> <ha-icon icon='mdi:shield-half-full'></ha-icon> Watchman report</h2>
<h3>Missing Entities: {{ states.sensor.watchman_missing_entities.state }}
</h3> {%- for item in state_attr("sensor.watchman_missing_entities",
"entities") %} <hr> <table><tr> <td> <ha-icon icon='mdi: {%- if
item.state=="missing"-%}cloud-alert' {%- elif item.state=="unavail"
-%}cloud-off-outline' {%- else-%}cloud-question' {%- endif -%} ></ha-icon>
{{ item.id }} [{{item.state}}] <a title="{{item.occurrences}}">
{{item.occurrences.split('/')[-1].split(':')[0]}}</a> </td></tr></table>
{%- endfor %}
- 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", "services") %}
<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 %}
In general, a code posted in Docs could be wrong/imperfect. Suggest you to test a logic in Dev tools -> Template and add necessary changes.
Thanks. I figured it out. Will make a PR to update the readme.
I've been getting the following Watchman errors in my logs running HA 2024.3.3 and Watchman 0.6.1.