-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mqtt_json device tracker broken - seems to try to start before MQTT integration has started and fails #91093
Comments
I am seeing the same thing, and it is inconsistent. It sometimes takes 2 or 3 restarts, but it eventually works without errors. |
I have not seen it succeed even once. It probably depends on how large an MQTT setup you have. It seems the code should be waiting for mqtt instead of failing. Maybe it waits but then it gives up too quickly |
I asked in the Discored developer general channel for help assigning a developer as it seems the manifast has none defined I can add one more data point. This failing integration reports a start up time of 0:00 so it fails immediately. I think it tried to query the MQTT server before the rest of the system is up and fails. There is some runtime dependency that seems lost |
I just raised a bug for an other MQTT related bug and you got auto assigned. Isn't this one supposed to be assigned to you? If not then I am sorry |
I'll have a look a this one. |
I ran the boot with all of HA in debug logging I cannot see anything obvious but again context may help.
|
@KennethLavrsen Could you check if #91454 resolves your issue? Please share some logs. Waiting for MQTT should not be needed if dependencies are processed correctly. |
I am travelling on business so it will be in the weekend I can look at trying this. |
The problem
I use the mqtt based device tracker. It has worked stable and fine until 2023.4 when it fails to load
The error message says that MQTT is not enabled. Well. I have 100s of items based on MQTT in home assistant and they all work just fine
The error happens at restart of HA and the integration does not even attempt to try again. It just fails
What version of Home Assistant Core has the issue?
core-2023.04.01
What was the last working version of Home Assistant Core?
core-2023.03
What type of installation are you running?
Home Assistant OS
Integration causing the issue
mqtt_json
Link to integration documentation on our website
https://www.home-assistant.io/integrations/mqtt_json/
Diagnostics information
This is the error log
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: