Being ghosted by two(2) entities

Can someone point me in the right direction. I have 2 entities that I don’t use anymore, and I thought, I removed them back before HA switched from the OG config files, to the Lovelace config file. But, since I updated to 2022.2.0, their are now showing up in the home-assistant.log file. the following is what the log shows;

2022-02-09 11:41:23 ERROR (MainThread) [homeassistant.util.logging] Exception in async_discover when dispatching 'mqtt_discovery_new_light_mqtt': ({'name': 'LED Light Pole 2', 'command_topic': 'cmnd/led_pole_2/POWER', 'state_topic': 'stat/led_pole_2/RESULT', 'value_template': '{{value_json.POWER}}', 'payload_off': 'OFF', 'payload_on': 'ON', 'availability_topic': 'tele/led_pole_2/LWT', 'payload_available': 'Online', 'payload_not_available': 'Offline', 'brightness_command_topic': 'cmnd/led_pole_2/Dimmer', 'brightness_state_topic': 'stat/led_pole_2/RESULT', 'brightness_scale': 100, 'on_command_type': 'brightness', 'brightness_value_template': '{{value_json.Dimmer}}', 'rgb_command_topic': 'cmnd/led_pole_2/Color2', 'rgb_state_topic': 'stat/led_pole_2/RESULT', 'rgb_value_template': '{{value_json.Color}}', 'platform': 'mqtt'},)

The second error is the same, except it is for the entity is for led_pole_1. I went thru all my config files, and I can’t find any thing, that references these 2 entities.
Also, the 2 entities do not show up in the Configration/Entities or Device List

bumping, Still looking for any suggestions, that might me fix this error.

Am I missing something in my explanation???

There is No one, that has or had this issue…

My advice for you is to backup all the configuration and rebuild Home Assistant from scratch. I’m not sure if you use the find/search feature to search anything that relates to led_pole_1 and led_pole_2. In my Linux machine or server, I can use the command as follows:

grep -r "led_pole_2" name-of-directory/

The grep -r command in Linux will list files within directories starting with name-of-directory and outputs the line from files that contains led_pole_2. The -r flag specifies recursive. Here is an output without the -r flag:

gpeddie@epcotcenter
  ~
 $ grep "test" Documents/
grep: Documents/: Is a directory

If the two methods failed, perhaps there’s something publishing in the MQTT server? I have never used an MQTT server. I mean, I tried it before but I don’t have a use-case for it.

I hope I can be of help.

Before you do that- are these entities from an integration? If so, delete the integration, restart Home Assistant and those ghost entities will be gone. If you have other entities from that integration, Home Assistant will discover them again and you will see a notification on the home page.

Go to configuration ==> entities tab, then you can either filter out “disabled” entities so that it does not bother you or find the entity and should be able to delete the entity once you click on it like the screenshot below.

@GraysonPeddie 1) Rebuilding from scratch, I am reserving as a last resort…
2) Can I run the grep comands from Hassio?

@stevemann they are not part of an intergration, these entities are from this Dr.Zz’s video
Customizable Animated LED Christmas (& Every Holiday) Lights - YouTube I believe I did this project before the 2019 update to the video. But since has died, and I replaced with wLED.

@PanMat The two entities are listed in the Config==>entities tab, But, I can’t do anything with them, because they Hassio, long before the Lovelace Dashboard upgrade, and there was No Need for “Entity Id’s”. So, when I click on either entity, I get the following message:

This entity ('light.ledpole3') does not have a unique ID, therefore its settings cannot be managed from the UI. See the [documentation](https://www.home-assistant.io/faq/unique_id) for more detail.

Additional Note: I have combed thru the nearly 30,000 lines, of the core.entity_registry file, and could not find the offending entities.

1 Like

they are coming from MQTT discovery. What external addons/mqtt things are you using?

1 Like

@petro I 'm using the “Mosquitto broker” Add-on.

That’s what contains the topics that create your devices. However something is putting those topics in there. You have to figure out what. You can try removing the topics but they may reappear if you don’t find the source

Could an Automation, create the ghost entities?

If you made an automation that does that

Can I do something with/to the MQTT Add-on ?

I’ve experienced something similar that was caused by stale entries in the MQTT Add-on’s database.

I would start by using MQTT Explorer to see what’s in there. (It’s a free cross-platform piece of software).

You can use it to remove stale entries should they exist, but I would check here first before doing anything.

1 Like

@reste_narquois Thanks, I give it a try… That did the trick, once I connected with “MQTT Explorer”. The program, flagged
my to ghost entities. Thanks again!