-
Notifications
You must be signed in to change notification settings - Fork 220
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 not working in HomeAssistant #804
Comments
i get the same error |
Hi @sidoh, Home Assistant 2023.9.3 |
@sidoh I added the HA version information in the issue, but it's the latest. I saw a lot of changes in the MQTT in HA, not sure if this could be the issue (I'm not a programmer, but a system engineer). |
Thanks, guys. Will take a look. I'm also on 2023.9, so a little strange that I'm not seeing it. |
Oh wait, this is showing up for me too, but it's a warning. Is it not a warning for you guys? |
Yeah you're correct, so I guess not a bug.. Maybe a misconfiguration, but where :( |
Do you see an entry in If you do, can you show me a screenshot of what yo usee there? |
Yes it is a warning in the logs. |
Gotcha. That's likely the cause. Will try to reproduce and get back to you guys. |
For me it isn't either not showing under Settings > Devices. |
Not suer if it helps, but these log lines appear in the Mosquito Broker logs when I remove a paired bulb and add it again (using the same device ID and group as the remote).
|
Ow and changed the MQTT state topic pattern to (compared to the settings provided when I created the issue):
|
I got a notification about a new update: 2023.10.0. Should I try this update? |
This happened to me last weekend after I decided to start fresh, but hadnt got round to troubleshooting. (also shows IP adddress for URL) |
I suspect it wont take @sidoh long to resolve this. But if you urgently need it working, you can manually add your lights using the MQQT Light component https://www.home-assistant.io/integrations/light.mqtt/#json-schema---examples |
I'm not in a rush, I've got it "working" via the official Wifi box, but I want to make it a little smarter ;) Thanks for the quick responses! |
Taking a peek now. Thanks all for the extra info. Don't expect a new version of HomeAssistant will help anything. I think I just mangled the discovery json a bit. (in my defense, the docs are kind of hard to parse). |
Yeah, I'd hoped it would add a link in the device dashboard to the config page, but it didn't have that effect. |
I believe this guy will fix the problem: #805 I tagged a beta release. Will publish that when the build finishes for you guys to try out. |
https://github.com/sidoh/esp8266_milight_hub/releases/tag/1.11.1-beta1 give this guy a try |
Just loaded this version and can confirm the MQTT discovery is now adding devices as expected for myself. |
Will try the beta tonight (I'm from the Netherlands). Thanks @Sidon 😄 |
Just did a quick test before getting ready to work, and it works! |
Nice, thanks for confirming, guys! I'll merge this and cut a release. LMK know if there are any issues :) |
Fixed in 1.11.1! Thanks everyone for the thorough reports. (no difference in 1.11.1-beta1 and 1.11.1 except the version tag/metadata.) |
Thank you, it works now! |
I can't get the MQTT working with Home Assistant. I get the following error in the HomeAssistant logs. This happens when I add new alias in the milight interface.
Home Assistant log output:
Setup information
HomeAssistant
MQTT broker: Mosquitto broker (default settings, but created a user for it)
Firmware version
1.11.0, didn't try another firmware
Output of http://milight-hub.local/about
Output of http://milight-hub.local/settings
Additional context
First time using this and it would be great if I get it working (if I find some time I will provide some updates to the wiki)
The text was updated successfully, but these errors were encountered: