dummylabs / thewatchman

Home Assistant custom integration to keep track of missing entities and actions in your config files
MIT License
475 stars 20 forks source link

Cannot be completely uninstalled #105

Closed Deub31 closed 5 months ago

Deub31 commented 1 year ago

Hi,

I uninstalled watchman via HACS. The watchman directory in custom_components has been deleted. The sensors have been deleted. I no longer have any reference to watchman in HA and yet I get this message when HA starts up: 2023-09-27 17:21:09.211 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=(

Watchman report

Missing Entities: {{ states.sensor.watchman_missing_entities.state }}

{%- for item in state_attr("sensor.watchman_missing_entities", "entities") %}
<ha-icon icon='mdi: {%- if item.state=="missing"-%}cloud-alert' {%- elif item.state=="unavail" -%}cloud-off-outline' {%- else-%}cloud-question' {%- endif -%} > {{ item.id }} [{{item.state}}] {{item.occurrences.split('/')[-1].split(':')[0]}}
{%- endfor %}) renders=2>

So if you have an idea, I'll take it! Thx

Deub31 commented 1 year ago

I even deleted the db of HA ... I'm going crazy ...

ondras12345 commented 1 year ago

That looks like the template used in the UI markdown card example. Do you happen to have added that to your dashboard?

Deub31 commented 1 year ago

Yes, that's exactly it. Yes, I've completely deleted it, that's what's so strange. I don't unterstand to be honest ...

Deub31 commented 1 year ago

I even searched in .storage just in case ... and nothing.

Deub31 commented 1 year ago

Problem solved In fact you have to reboot several times HA. I don't know why or how but the error disappeared after a second reboot ...

ildar170975 commented 1 year ago

Yes, I've completely deleted it, that's what's so strange.

Deleted what? The markdown card was still in the Dashboard. Since you have not deleted it - each time you opened the view some errors were logged. As expected.