Mqtt on synology nas with HA

So I have installed the mosquito package on my synology nas and have added the mqtt platform to home assistant.

`Mqtt:
  Broker: 192.168.1.124`

I have an esp32 I have just added a MiFlora sketch to and I can see it working, connecting to mqtt and posting data.

What do I do next to get that data into HA?

Integrations - mqtt says no devices

How do I even know if the data is making it to my mqtt broker on my nas? When setting it up it’s not got a username or password.

I’m not sure how to check it has data and how to get that data into HA?

So it looks like this is a problem with my sketch of siddy/flora

I downloaded mqtttest app for iOS and connected to my nas-mqtt and listened for flora topics, then test ran my esp32 and nothing was picked up.

The screen shots show the siddy/flora working but does not seem like anything got through.

My thoughts are that the siddy flora code requires a username and password and I have not and cannot work out how to set these up on the mosquito package for synology.

If I use the mqtttest app and publish to topic “test” and subscribe to it I can see this come through so would appear mqtt is working but I cannot get anything from subscribing to flora.

Any thoughts?

I hope this was a typo here in the forums. You shouldn’t be using capital letters when defining stuff.

Yes. This is normal.

You install an MQTT client on your computer and subscribe to the topics to watch the data.

Well, if that’s your sketch, it’s telling the device to connect to an MQTT broker at 10.10.10.1

According to you, your broker is at 192.168.1.124

You don’t NEED user/pass to connect to MQTT. You can comment out user/pass from the sketch

Remove the MQTT_USERNAME, MQTT_PASSWORD from that connection.

Thanks.

Broker is a typo I’m just on my phone and can’t copy code on iOS app.

The code I linked to is the initial file I have added my MAC address and my ip for mqtt. In the serial monitor it shows it finds and connects just odd that I cannot see anything come through when I subscribe to flora on mqtttest app.

Ok so downloaded mqtt.fx for Mac too and can publish on topic flora from iPhone and see it receive on Mac so the mqtt broker is working.

I can also subscribe on HA to flora and see my tests come through so that’s all ok.

Definitely means it’s the code on my esp32 causing the problems.

Will investigate more