The following template sensor:-
- sensor:
- name: Main_HDD_Health
state: >
{% if states('sensor.main_hdd_health_rest')!='unknown' %}
{{ states('sensor.main_hdd_health_rest') }}
{%else%}
{{ this.state }}
{%endif%}
Gets its data from this rest sensor:-
- resource: http://192.168.0.203:8000/PrimaryHDD.txt
scan_interval: 300
sensor:
- name: main_hdd_health_rest
value_template: >
{% if "SMART overall-health self-assessment test result:" in value %}
{{ (value|regex_findall("SMART overall-health self-assessment test result:.*"))[0].split(":")[1] }}
{%else%}
unknown
{%endif%}
But in my entities list I see this:-
I really only want the top one and the bottom one.
And all of them seem to be getting updates…
I think its because I have editted and changed this over time, so how do I get rid of the old entries ?