Open Pe-MaKer opened 5 years ago
Try mqtt://localhost
instead of mqtt://localhost:1883
I've tried it without port number with the same result. No messages and unfortunately not even an error message.
You could also try mqtt://yourlocalipadress
.
But it seems like there is a different issue. I'm sure @ycardon will help you.
After changing the mqtt_url to my local hostname, it looks promising:
19-10-22 13:48:42 INFO (SyncWorker_15) [hassio.docker.addon] Start Docker add-on d8fd2d64/armv7-addon-gigaset with version 1.2
19-10-22 13:48:47 INFO (MainThread) [hassio.auth] Auth request from core_mosquitto for gigaset
19-10-22 13:48:48 INFO (MainThread) [hassio.auth] Success login from gigaset
:)
"localhost" and "127.0.0.1" (as documented) did not work. One have to specify at least the Hostname or IP of the broker.
Well, it does work with localhost when you are not using it as a Hassio add-on (which uses docker networking: localhost from within a docker container is not the "host" localhost)
I keep the issue open until I put some works in the doc !
(which uses docker networking: localhost from within a docker container is not the "host" localhost)
@ycardon could you explain that bit more? Is it not the „host“ localhost because it’s not in the same container?
yes, it could be clearer :)
When you are using docker, you must consider that each container is a (virtual) server.
on Hassio architecture, MQTT broker runs inside one container, gigaset-proxy runs inside an other container: everything happens as if they were running on different servers, so you cannot use localhost and must use explicit IP addresses
without Hassio, MQTT broker and gigaset-proxy run on the same server so you can use localhost
Better explanation ?
Better explanation ?
Perfect explanation, thank you!
The Mosquitto Broker does not receive MQTT messages from the Gigaset elements proxy.
Setup: Home Assistant 0.100.1 Hassio Supervisor 189 HassOS 2.11 Gigaset Elements Proxy Add-on 1.2 Mosquitto Broker Add-on 5.1
I created a new user "gigaset" in the HA user administration, which I also used in the add-on config of the element Proxy:
The log of the proxy doesn't show any (e.g. authentication) error:
But when I subscribe to the topic "gigaset/Arbeitszimmerfenster" or "gigaset/#", nothing happens. No messages, no error messages in the Mosquitto logs. Just nothing.