Natywne wsparcie dla MQTT

casper25555
Posty: 12
Rejestracja: pt sie 06, 2021 7:56 am

pzygmunt pisze: sob sie 07, 2021 9:34 am Pokaż swój config mqtt z configuration.yaml
mqtt:
broker: mqtt47.supla.org
port: 8883
certificate: auto
username: xxxxxx
password: xxxxxx
discovery: true
Awatar użytkownika
pzygmunt
Posty: 18284
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Masz tam odpowiednie wcięcia. Wyłącz starą integrację z Suplą. Wyczyść logi. Zrestartuj HA. Sprawdź logi.
Awatar użytkownika
pzygmunt
Posty: 18284
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Ewntualnie daj mi dostęp przez Teamviewer-a.
https://get.teamviewer.com/adfz4q6
casper25555
Posty: 12
Rejestracja: pt sie 06, 2021 7:56 am

pzygmunt pisze: sob sie 07, 2021 9:42 am Ewntualnie daj mi dostęp przez Teamviewer-a.
https://get.teamviewer.com/adfz4q6
Wyslalem dostep na priv
casper25555
Posty: 12
Rejestracja: pt sie 06, 2021 7:56 am

pzygmunt pisze: sob sie 07, 2021 9:41 am Masz tam odpowiednie wcięcia. Wyłącz starą integrację z Suplą. Wyczyść logi. Zrestartuj HA. Sprawdź logi.
Stara integracja wyłączona, wcięcia zgodnie z tymi z poradnika.

Błędy mqtt

Logger: homeassistant.components.mqtt
Source: components/mqtt/__init__.py:725
Integration: MQTT (documentation, issues)
First occurred: 11:58:34 (1 occurrences)
Last logged: 11:58:34

Failed to connect to MQTT server due to exception: [Errno -3] Try again
Bez tytułu.jpg
Bez tytułu.jpg (28.93 KiB) Przejrzano 1016 razy
casper25555
Posty: 12
Rejestracja: pt sie 06, 2021 7:56 am

casper25555 pisze: sob sie 07, 2021 9:53 am
pzygmunt pisze: sob sie 07, 2021 9:41 am Masz tam odpowiednie wcięcia. Wyłącz starą integrację z Suplą. Wyczyść logi. Zrestartuj HA. Sprawdź logi.
Stara integracja wyłączona, wcięcia zgodnie z tymi z poradnika.

Błędy mqtt

Logger: homeassistant.components.mqtt
Source: components/mqtt/__init__.py:725
Integration: MQTT (documentation, issues)
First occurred: 11:58:34 (1 occurrences)
Last logged: 11:58:34

Failed to connect to MQTT server due to exception: [Errno -3] Try again
Bez tytułu.jpg
Problem rozwiązany.
Okazało się że tkwiły pozostałości po starej konfiguracji mqtt.
Po usunięciu ruszyło.

Dziękuję za pomoc.
Jacek2707
Posty: 4
Rejestracja: wt sie 17, 2021 8:22 pm

Mam problem z uruchomieniem MQTT bridge

bridge.conf :
connection bridge-5Zg8rrF3eIRdyy5z

address mqtt55.supla.org:8883
topic supla/# in
topic homeassistant/# in
topic supla/+/devices/+/channels/+/execute_action out
topic supla/+/devices/+/channels/+/set/+ out
remote_username xxxxxxxxxxxxxxxxxx
remote_password xxxxxxxxxxxxxxxxxx
bridge_capath /etc/ssl/certs
Logi z MQTT brokera:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] mosquitto.sh: executing...
[22:46:23] INFO: SSL is not enabled
[cont-init.d] mosquitto.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[22:46:24] INFO: Starting NGINX for authentication handling...
[22:46:24] INFO: Starting mosquitto MQTT broker...
1629233184: Loading config file /share/mosquitto/bridge.conf
1629233184: mosquitto version 1.6.12 starting
1629233184: |-- *** auth-plug: startup
[22:46:25] INFO: Successfully send discovery information to Home Assistant.
[22:46:25] INFO: Successfully send service information to the Supervisor.
1629233184: Config loaded from /etc/mosquitto/mosquitto.conf.
1629233184: Loading plugin: /usr/share/mosquitto/auth-plug.so
1629233184: ├── Username/password checking enabled.
1629233184: ├── TLS-PSK checking enabled.
1629233184: └── Extended authentication not enabled.
1629233184: Opening ipv4 listen socket on port 1883.
1629233184: Opening ipv6 listen socket on port 1883.
1629233184: Opening websockets listen socket on port 1884.
1629233184: Warning: Mosquitto should not be run as root/administrator.
1629233184: Connecting bridge bridge-5Zg8rrF3eIRdyy5z (mqtt55.supla.org:8883)
1629233184: mosquitto version 1.6.12 running
1629233184: New connection from 127.0.0.1 on port 1883.
1629233184: Socket error on client <unknown>, disconnecting.
1629233184: Socket error on client local.core-mosquitto.bridge-5Zg8rrF3eIRdyy5z, disconnecting.
1629233185: New connection from 172.30.32.1 on port 1883.
1629233185: New client connected from 172.30.32.1 as 5eRWOHyHUEOlFjwHCwl1M9 (p2, c1, k60, u'homeassistant').
1629233190: Connecting bridge bridge-5Zg8rrF3eIRdyy5z (mqtt55.supla.org:8883)
1629233190: Socket error on client local.core-mosquitto.bridge-5Zg8rrF3eIRdyy5z, disconnecting.
1629233196: Connecting bridge bridge-5Zg8rrF3eIRdyy5z (mqtt55.supla.org:8883)
1629233196: Socket error on client local.core-mosquitto.bridge-5Zg8rrF3eIRdyy5z, disconnecting.
1629233202: Connecting bridge bridge-5Zg8rrF3eIRdyy5z (mqtt55.supla.org:8883)
1629233202: Socket error on client local.core-mosquitto.bridge-5Zg8rrF3eIRdyy5z, disconnecting.
1629233208: Connecting bridge bridge-5Zg8rrF3eIRdyy5z (mqtt55.supla.org:8883)
1629233208: Socket error on client local.core-mosquitto.bridge-5Zg8rrF3eIRdyy5z, disconnecting.
1629233214: Connecting bridge bridge-5Zg8rrF3eIRdyy5z (mqtt55.supla.org:8883)
1629233214: Socket error on client local.core-mosquitto.bridge-5Zg8rrF3eIRdyy5z, disconnecting.
1629233220: Connecting bridge bridge-5Zg8rrF3eIRdyy5z (mqtt55.supla.org:8883)
Nie moge sobie z tym poradzic. Prosze o pomoc
Awatar użytkownika
pzygmunt
Posty: 18284
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Wygeneruj nowe hasło. Być może jest tam jakiś znak specjalny.
Jacek2707
Posty: 4
Rejestracja: wt sie 17, 2021 8:22 pm

Rzeczywiscie haslo mialo znaki specjalne, ale wygenerowalem bez znakow specjalnych i nic sie nie zmienilo.
Awatar użytkownika
pzygmunt
Posty: 18284
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Próbowałeś się z Twojej podsieci połączyć z Suplowym brokerem danymi, które wpisałeś do konfiguracji ?
ODPOWIEDZ

Wróć do „MQTT”