i can't get it to work.
what's working now:
i can send local messages to domoticz (mosquitto_pub -h localhost -m '{ "idx" : 1, "nvalue" : 0, "svalue" : "25.0" }' -t 'domoticz/in')
I can''t get it to work from outside the localhost (domoticz RPI3b+)
my mosquitto config file looks like this:
Code: Select all
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
per_listener_settings true
pid_file /run/mosquitto/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
allow_anonymous false
listener 1883
password_file /etc/mosquitto/passwd
and is located at /etc/mosquitto/mosquitto.conf
i use the firewall ufw and have set the port 1883 open for traffic ipv4 and ipv6 (with the firewall disabled it is not working either)
when i want to connect to my broker from a windows pc with MQTT explorer it keeps disconnecting.
I have set a mqtt username with password.
anonymouse or with user/password login it won't let me login externally.
i use a normal IP range like (192.168.1.1 to 192.168.1.254)
Has anyone of you guys tips/tricks?