ironsheep/RPi-Reporter-MQTT2HA-Daemon

MQTT connection error. Please check your settings in the configuration file "config.ini"

Boxersteavee opened this issue · 9 comments

Checklist:

  • [how do these work, yes] I updated to the latest version available
  • [how do these work, yes] I checked that my MQTT broker is otherwise working

Release with the issue:
1.8.5
Last working release (if known):
N/A
Hardware, Operating System, Python version:
Orange Pi 3 LTS, Debian, Python 3.10.12

Error: NOTIFY: MQTT connection error. Please check your settings in the configuration file "config.ini" upon running the python file
Description of problem:
I don't really understand all of the information i'm supposed to configure.
I have configured and am confident the following is correct:

  • hostname
  • Left discovery_prefix alone
  • username
  • password -
    The username and password are the same as they are in the config file of another instance of this running on the same pi running HA, and it works fine. But running the script with an almost identical config file (just changed hostname) isn't working. The below image is a screenshot of the config file for what i think is the stuff i'm supposed to configure, and i don't know what i'm supposed to do with base_topic.

I don't know why it isn't working, i want it to work, and i don't know how to fix it. Please help
image

bsimmo commented

As i said, i don't really knw what i'm doing. I haven't setup any monitor tools for the mqtt server, but i have got this tool working fine on the same machine hosting the mqtt server, and it has been successfully picked up and connected to home assistant fine, just this other device isn't working. Where would i find those logs?

bsimmo commented

Yeah I'm not using Home Assistant OS, so it doesn't have an Mqtt broker add-on thingy, I have to setup my own

Yeah I'm not using Home Assistant OS, so it doesn't have an Mqtt broker add-on thingy.i found an Mqtt client on the play store and it to failed to connect. How would.i allow external connections for the broker? I know the device itself allows external connections, so if it's a broker configuration. But silly for an IoT server not to allow external connections isn't it?

I can confirm it is in local only mode. I ran the sudo mosquito command and it showed it is running in local only. I'll try to set it up myself (I need to make a listener?) But I don't have high hopes 😅

nope, got stuck...

So how do I get it out of local mode?

I have done a big upgrade, and now have Home Assistant on a TrueNAS VM, and EMQX running the MQTT broker. I now have rpi-reporter running fine on my old server, but I can't figure out how to get the data to show up in home assistant. EMQX does show there is a connection.

I'm stupid, I haven't added the MQTT integration, I only setup a broker through an addon.