@boneheadfraggle wrote:
I’d like an overview of all sensor that are unavailable, state = none or unknown. I put together this:
{% for item in states %} {% if item.state | lower == 'unavailable' or item.state | lower == 'unknown' or item.state | lower == 'none'%} {{ item.attributes.friendly_name }} is {{ item.state }} {% endif %} {% endfor %}
…which lists the sensors correctly in the template window. But it needs some trimming to remove unnecessary spaces and so on. But - how to best show the result? I thought of a templated sensor, but they can only contain 255 characters which may be too little. Suggestions?
Posts: 6
Participants: 3