Giter VIP home page Giter VIP logo

Comments (4)

ildar170975 avatar ildar170975 commented on August 19, 2024

These errors seem to be related to a card you created.

from thewatchman.

kernelpanic85 avatar kernelpanic85 commented on August 19, 2024

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 %}

from thewatchman.

ildar170975 avatar ildar170975 commented on August 19, 2024

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.

from thewatchman.

kernelpanic85 avatar kernelpanic85 commented on August 19, 2024

Thanks. I figured it out. Will make a PR to update the readme.

from thewatchman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.