Supla with Home assistant error

moravec.frantisek
Posts: 21
Joined: Tue Sep 26, 2023 3:24 pm

Post

Hallo,

can anone help me with connection Home assistant with supla cloud server over MQTT?
I set it up MQTT brokera and nothing.

My settings:
mosquitto.conf
connection bridge-xxxxx

address mqtt99.supla.org:8883
topic supla/# in
topic homeassistant/# in
topic supla/+/devices/+/channels/+/execute_action out
topic supla/+/devices/+/channels/+/set/+ out
remote_username xxxxxx
remote_password xxxxxx
bridge_capath /etc/ssl/certs

broker settings:
logins: []
require_certificate: true
certfile: fullchain.pem
keyfile: privkey.pem
customize:
active: true
folder: mosquitto

Broker log:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/mosquitto.sh
[17:15:48] INFO: SSL is not enabled
cont-init: info: /etc/cont-init.d/mosquitto.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun mosquitto (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
[17:15:49] INFO: Starting NGINX for authentication handling...
s6-rc: info: service legacy-services successfully started
[17:15:49] INFO: Starting mosquitto MQTT broker...
1695741349: Loading config file /share/mosquitto/mosquitto.conf
2023-09-26 17:15:49: Warning: Mosquitto should not be run as root/administrator.
2023-09-26 17:15:49: mosquitto version 2.0.17 starting
2023-09-26 17:15:49: Config loaded from /etc/mosquitto/mosquitto.conf.
2023-09-26 17:15:49: Loading plugin: /usr/share/mosquitto/go-auth.so
2023-09-26 17:15:49: ├── Username/password checking enabled.
2023-09-26 17:15:49: ├── TLS-PSK checking enabled.
2023-09-26 17:15:49: └── Extended authentication not enabled.
2023-09-26 17:15:49: Opening ipv4 listen socket on port 1883.
2023-09-26 17:15:49: Opening ipv6 listen socket on port 1883.
2023-09-26 17:15:49: Opening websockets listen socket on port 1884.
2023-09-26 17:15:49: Connecting bridge bridge-xxxxx (mqtt99.supla.org:8883)
2023-09-26 17:15:49: mosquitto version 2.0.17 running
2023-09-26 17:15:50: New connection from 127.0.0.1:37930 on port 1883.
2023-09-26 17:15:50: Client <unknown> disconnected due to protocol error.
[17:15:51] INFO: Successfully send discovery information to Home Assistant.
[17:15:51] INFO: Successfully send service information to the Supervisor.

Thank U
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

SUPLA.... Nareszcie w domu.
moravec.frantisek
Posts: 21
Joined: Tue Sep 26, 2023 3:24 pm

Post

Thank U but that is not working for me...
I tried this manual...
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

Have you tried to connect using MQTT Explorer directly to the Supli broker from your network?
SUPLA.... Nareszcie w domu.
moravec.frantisek
Posts: 21
Joined: Tue Sep 26, 2023 3:24 pm

Post

yes it is working when i check encrypt TLS
moravec.frantisek
Posts: 21
Joined: Tue Sep 26, 2023 3:24 pm

Post

I am trying both methots. Own MQTT broker and without own MQTT broker
and nothing.
moravec.frantisek
Posts: 21
Joined: Tue Sep 26, 2023 3:24 pm

Post

Here is a MQTT integration set up
You do not have the required permissions to view the files attached to this post.
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

What you showed are two different methods. Which one do you want to use?
SUPLA.... Nareszcie w domu.
moravec.frantisek
Posts: 21
Joined: Tue Sep 26, 2023 3:24 pm

Post

Which is better and stable…?
I could use both but i traid both but nothink works for me.
Last edited by moravec.frantisek on Wed Sep 27, 2023 2:48 pm, edited 1 time in total.
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

It depends on whether you want to connect any other devices via MQTT that do not work with Supla.
SUPLA.... Nareszcie w domu.

Return to “Help”