Supervisor is not adding MQTT entities and devices anymore

I had to reinstall Home Assistant Supervised because I was having problems with it starting. I deleted all the docker containers and reran the install script. I realized that most configurations were still there after reinstalling. I have two devices connected so far, both via zigbee2mqtt. I realized that the device switches were not reacting anymore on Lovelace, so I deleted them. I thought they would automatically reappear after reconnecting them with zigbee2mqtt, but they are gone. I then deleted one entitiy in Mosquitto and it is also not reappearing. I then tried to gain control over Lovelace to add the remaining entity manually, which also did not work.

How can I let the supervisor regain control of Lovelace and add entities automatically again?

I also tried installing the Simple Scheduler and it is also not showing any devices. I guess for the same reason.

I would also not have a problem with a clean start, as I only have two devices connected so far. I already stopped the hassio-supervisor and hassio-apparmor services and deleted all the docker containers last time. Most configurations were still there. What would I have to do to wipe Home Assistant completely and start from scratch?

Here is my supervisor log

1-08-02 18:25:53 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not running - CoreState.SETUP
21-08-02 18:25:53 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP
21-08-02 18:25:53 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
21-08-02 18:25:53 INFO (MainThread) [__main__] Running Supervisor
21-08-02 18:25:53 WARNING (MainThread) [supervisor.core] System running in a unsupported environment!
21-08-02 18:25:53 INFO (MainThread) [supervisor.jobs] 'HassOS.mark_healthy' blocked from execution, no Home Assistant OS available
21-08-02 18:25:53 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.INITIALIZE' starting 0 add-ons
21-08-02 18:25:53 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SYSTEM' starting 1 add-ons
21-08-02 18:25:53 INFO (SyncWorker_2) [supervisor.docker.interface] Cleaning addon_core_mosquitto application
21-08-02 18:25:59 INFO (SyncWorker_2) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-mosquitto with version 6.0.1
21-08-02 18:26:03 INFO (MainThread) [supervisor.services.modules.mqtt] Set core_mosquitto as service provider for mqtt
21-08-02 18:26:04 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SERVICES' starting 1 add-ons
21-08-02 18:26:04 ERROR (MainThread) [supervisor.addons.addon] Add-on core_duckdns has invalid options: Missing required option 'token' in Duck DNS (core_duckdns). Got {'lets_encrypt': {'accept_terms': False, 'certfile': 'fullchain.pem', 'keyfile': 'privkey.pem'}, 'token': None, 'domains': [None], 'aliases': [], 'seconds': 300}
21-08-02 18:26:04 WARNING (MainThread) [supervisor.addons] Can't start Add-on core_duckdns
21-08-02 18:26:09 INFO (MainThread) [supervisor.core] Start Home Assistant Core
21-08-02 18:26:09 INFO (SyncWorker_3) [supervisor.docker.interface] Starting homeassistant
21-08-02 18:26:11 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
21-08-02 18:26:42 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.STARTUP
21-08-02 18:26:42 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
21-08-02 18:27:00 INFO (MainThread) [supervisor.auth] Auth request from 'core_mosquitto' for 'homeassistant'
21-08-02 18:27:00 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
21-08-02 18:27:01 INFO (MainThread) [supervisor.auth] Home Assistant not running, checking cache
21-08-02 18:27:06 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
21-08-02 18:27:06 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.APPLICATION' starting 2 add-ons
21-08-02 18:27:07 INFO (SyncWorker_3) [supervisor.docker.interface] Cleaning addon_45df7312_zigbee2mqtt application
21-08-02 18:27:14 INFO (SyncWorker_3) [supervisor.docker.addon] Starting Docker add-on zigbee2mqtt/zigbee2mqtt-armv7 with version 1.21.0-1
21-08-02 18:27:15 INFO (SyncWorker_3) [supervisor.docker.interface] Cleaning addon_00185a40_simplescheduler application
21-08-02 18:27:22 INFO (SyncWorker_3) [supervisor.docker.addon] Starting Docker add-on 00185a40/armv7-addon-simplescheduler with version 0.30.05
21-08-02 18:27:24 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.33.1:8099 ssl:default [Connect call failed ('172.30.33.1', 8099)]
21-08-02 18:27:27 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
21-08-02 18:27:27 INFO (MainThread) [supervisor.core] Supervisor is up and running
21-08-02 18:27:27 INFO (MainThread) [supervisor.host.info] Updating local host information
21-08-02 18:27:27 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
21-08-02 18:27:27 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
21-08-02 18:27:27 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
21-08-02 18:27:27 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
21-08-02 18:27:27 INFO (MainThread) [supervisor.resolution.module] Create new suggestion SuggestionType.CREATE_FULL_SNAPSHOT - ContextType.SYSTEM / None
21-08-02 18:27:27 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
21-08-02 18:27:27 INFO (MainThread) [supervisor.resolution.check] System checks complete
21-08-02 18:27:27 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
21-08-02 18:27:28 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.33.1:8099 ssl:default [Connect call failed ('172.30.33.1', 8099)]
21-08-02 18:27:28 INFO (MainThread) [supervisor.host.services] Updating service information
21-08-02 18:27:28 INFO (MainThread) [supervisor.host.network] Updating local network information
21-08-02 18:27:29 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
21-08-02 18:27:29 INFO (MainThread) [supervisor.host] Host information reload completed
21-08-02 18:27:37 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
21-08-02 18:27:37 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
21-08-02 18:27:37 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
21-08-02 18:28:09 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.33.1:8099 ssl:default [Connect call failed ('172.30.33.1', 8099)]
21-08-02 18:28:14 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.33.1:8099 ssl:default [Connect call failed ('172.30.33.1', 8099)]
21-08-02 18:28:15 INFO (MainThread) [supervisor.auth] Auth request from 'core_mosquitto' for 'mqtt_user'
21-08-02 18:28:16 INFO (MainThread) [supervisor.auth] Successful login for 'mqtt_user'
21-08-02 18:33:09 INFO (MainThread) [supervisor.auth] Auth request from 'core_mosquitto' for 'homeassistant'
21-08-02 18:33:10 WARNING (MainThread) [supervisor.auth] Unauthorized login for 'homeassistant'
21-08-02 18:39:10 INFO (MainThread) [supervisor.auth] Auth request from 'core_mosquitto' for 'homeassistant'
21-08-02 18:39:10 WARNING (MainThread) [supervisor.auth] Unauthorized login for 'homeassistant'
21-08-02 18:42:26 INFO (SyncWorker_2) [supervisor.docker.interface] Restarting ghcr.io/home-assistant/raspberrypi4-homeassistant
21-08-02 18:42:33 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
21-08-02 18:42:38 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
21-08-02 18:42:38 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
21-08-02 18:42:48 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
21-08-02 18:43:05 INFO (SyncWorker_2) [supervisor.docker.interface] Stopping addon_45df7312_zigbee2mqtt application
21-08-02 18:43:08 INFO (SyncWorker_2) [supervisor.docker.interface] Cleaning addon_45df7312_zigbee2mqtt application
21-08-02 18:43:08 INFO (SyncWorker_2) [supervisor.docker.interface] Removing image zigbee2mqtt/zigbee2mqtt-armv7 with latest and 1.21.0-1
21-08-02 18:43:10 INFO (MainThread) [supervisor.addons.addon] Removing add-on data folder /data/addons/data/45df7312_zigbee2mqtt
21-08-02 18:43:10 INFO (MainThread) [supervisor.ingress] Update Ingress as panel for 45df7312_zigbee2mqtt
21-08-02 18:43:10 INFO (MainThread) [supervisor.addons] Add-on '45df7312_zigbee2mqtt' successfully removed
21-08-02 18:43:20 INFO (SyncWorker_1) [supervisor.docker.interface] Stopping addon_core_mosquitto application
21-08-02 18:43:23 INFO (SyncWorker_1) [supervisor.docker.interface] Cleaning addon_core_mosquitto application
21-08-02 18:43:23 INFO (SyncWorker_1) [supervisor.docker.interface] Removing image homeassistant/armv7-addon-mosquitto with latest and 6.0.1
21-08-02 18:43:23 INFO (MainThread) [supervisor.addons.addon] Removing add-on data folder /data/addons/data/core_mosquitto
21-08-02 18:43:23 INFO (MainThread) [supervisor.discovery] Delete discovery to Home Assistant mqtt from core_mosquitto
21-08-02 18:43:23 INFO (MainThread) [supervisor.addons] Add-on 'core_mosquitto' successfully removed
21-08-02 18:43:24 INFO (MainThread) [supervisor.discovery] Discovery 032dbbd814dd42e4a41be6935aed2c48 message send
21-08-02 18:43:27 INFO (MainThread) [supervisor.addons] Creating Home Assistant add-on data folder /data/addons/data/core_mosquitto
21-08-02 18:43:27 INFO (SyncWorker_4) [supervisor.docker.interface] Downloading docker image homeassistant/armv7-addon-mosquitto with tag 6.0.1.
21-08-02 18:43:36 INFO (MainThread) [supervisor.addons] Add-on 'core_mosquitto' successfully installed
21-08-02 18:43:45 INFO (SyncWorker_4) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-mosquitto with version 6.0.1
21-08-02 18:43:47 INFO (MainThread) [supervisor.discovery] Sending discovery to Home Assistant mqtt from core_mosquitto
21-08-02 18:43:47 INFO (MainThread) [supervisor.discovery] Discovery f9130834d31a4dc880e513785ec6c017 message send
21-08-02 18:43:47 INFO (MainThread) [supervisor.services.modules.mqtt] Set core_mosquitto as service provider for mqtt
21-08-02 18:43:51 INFO (MainThread) [supervisor.addons] Creating Home Assistant add-on data folder /data/addons/data/45df7312_zigbee2mqtt
21-08-02 18:43:51 INFO (SyncWorker_2) [supervisor.docker.interface] Downloading docker image zigbee2mqtt/zigbee2mqtt-armv7 with tag 1.21.0-1.
21-08-02 18:44:18 INFO (MainThread) [supervisor.addons] Add-on '45df7312_zigbee2mqtt' successfully installed
21-08-02 18:44:22 INFO (MainThread) [supervisor.ingress] Update Ingress as panel for 45df7312_zigbee2mqtt
21-08-02 18:44:29 INFO (SyncWorker_3) [supervisor.docker.addon] Starting Docker add-on zigbee2mqtt/zigbee2mqtt-armv7 with version 1.21.0-1
21-08-02 18:44:49 INFO (MainThread) [supervisor.auth] Auth request from 'core_mosquitto' for 'homeassistant'
21-08-02 18:44:49 WARNING (MainThread) [supervisor.auth] Unauthorized login for 'homeassistant'
21-08-02 18:46:03 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
21-08-02 18:46:03 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
21-08-02 18:46:03 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
21-08-02 18:49:14 INFO (MainThread) [supervisor.snapshots] Found 0 snapshot files
21-08-02 18:49:14 INFO (MainThread) [supervisor.snapshots] Found 0 snapshot files
21-08-02 18:50:49 INFO (MainThread) [supervisor.auth] Auth request from 'core_mosquitto' for 'homeassistant'
21-08-02 18:50:50 WARNING (MainThread) [supervisor.auth] Unauthorized login for 'homeassistant'

Supervisor does not add devices.

But did you set up mosquitto to automatically add discovered devices?

1 Like

The error clearly shows homeassistant can’t access your mqtt broker. Did you create a user and password for mosquitto ?

This is done in the configuration.yaml, which I can’t find. Last time it worked out of the box. Where do I set that just in case?

Could be because I tried reinstalling MQTT and zigbee2mqtt. Only zigbee2mqtt needed a user the first time. I think I realized though that the supervisor is complaining that there is still another MQTT instance. It seems they were not really deleted orderly.

I need to start from scratch. How can I factory reset Home Assistant?

I just tried deleting the configuration.yaml and .storage folder, but the behavior persists.

EDIT: It works now. Seems like deleting those files did the trick. I had add MQTT in the integrations menu again. :slight_smile:

Which line in the log you posted represents the Supervisor “complaining that there is still another MQTT instance”?

It happened later after tinkering around. It is not contained in the posted log.

well post it then.

I can’t anymore. I wiped the complete drive and reinstalled, because I had too many issues. Sorry.

Problem solved :slight_smile:

Yes, but it is always better for understanding to solve the problems rather than blindly reinstall. I actually managed to do that, but I still had a problem with my SSL certification that even reinstalling did not solve.

@nickrout In case you can help: Where to configure the server for https and port listening?

Without seeing the actual log, it made it all that more difficult for anyone else to determine the root cause of the problem (which might have avoided re-installation).

You made statements in this thread that were perplexing and/or false, starting with the topic’s title and then this:

Nickrout immediately explained Supervisor is not responsible for that. MQTT Discovery is handled by the MQTT integration, not Supervisor. That’s why it was important for others to see the log that led you to believe it was (it might have revealed clues).

Anyway, glad to hear a complete re-installation cleared up the issue (as it’s likely to do since it’s the “nuclear option”).