I have a strange problem when I got a new internet provider (and router etc). I cannot get it to work as it used to, even though I checked the settings.
So, I have a broker on my NAS (Mosquito, no settings). I have a MQTT client pointing to that broker (I checked the IP and port if it’s pointing to my NAS). I have a MQTT hub (the app I can select devices in to send them out), with Home Assistant Discovery On. The topic, status topic, on-/offline message I checked and put into the configuration.yaml file.
The thing is, I had this working perfectly. When I changed modem/router/dhcp-server it went wrong. Yesterday, all of the sudden I had every entity in Home Assistant, but then they went " no data" on my. I deleted the whole MQTT entities and configuration in the yaml file.
The MQTT hub app on my device has home assistant discovery enabled.
I have to say, I just know to little to troubleshoot it. The explorer app only needs the IP address of the broker to display all the devices and states. I thought home assistant also works like this, but it seems not. I am not sure what client_id and discovery_prefix is. Same goes for birth and will messages, but they are configured in the hub-app as I said in my topic start configuration.
Yes, there was a new IP-range. But I corrected that everywhere. The explorer can find the details (see screenshot) so I think it’s something in Home Assistant.
I deleted my home assistant configuration and started fresh. Broker IP, hub and client pointing at each other the correct and new IP-address. Which I also made static with DHCP-binding in the router.
So, I deleted the MQTT configuration in the config-file, and removed the integration. Restarted. Then I added the MQTT configuration back in the file, rebooted the server: nothing.
The MQTT card is back stating ‘configuration.yaml’. But there aren’t any entities.
When I click configure and add ‘homeassistant’ or ‘homie’ as topic to listen to… nothing.
There is nothing in the logs. I have no idea. Do I add the configuration in the yaml-file or do I add MQTT in the GUI? Is that a difference?
This results in nothing visible in Home Assistant. But it’s the same I enter for the other MQTT Explorer app (and that shows everything). I really don’t get this. Why is Home Assistant so difficult in this?
Do I need to enter something with the listen to topic?
Do I need to manually enter something in the configuration.yaml file?
Things get even more strange… I deleted everything again, and there they were: all MQTT devices.
I enabled the yaml mode in my configuration, restarted the server and everything was back to unavailable. What the heck is going on inside Home Assistant to no receive my devices anymore?