Cześć, żeby nie śmiecić pozwolę sobie podłączyć pod temat.
Próbuje skonfigurować MQTT. (2x RPI na jednym HA, na drugim działająca Spula)
Mosquitto.conf na HA
Code: Select all
connection bridge-xxxxxxxx
address adres_IP_HA:1883
topic supla/# in
topic homeassistant/# in
topic supla/+/devices/+/channels/+/execute_action out
topic supla/+/devices/+/channels/+/set/+ out
remote_username mqtt_user
remote_password xxxx
bridge_capath /etc/ssl/certs
.env na supli
Code: Select all
# MQTT Broker settings (you have to run the broker yourself)
MQTT_BROKER_ENABLED=true
MQTT_BROKER_HOST=adres_ip_HA
MQTT_BROKER_PORT=1883
MQTT_BROKER_TLS=true
MQTT_BROKER_USERNAME=mqtt_user
MQTT_BROKER_PASSWORD=xxxx
MQTT_BROKER_CLIENT_ID=supla_mqtt
Włączony bloker MQTT na Supli
logi mosquitto na HA
Code: Select all
[07:00:44] 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)
s6-rc: info: service legacy-services successfully started
[07:00:45] INFO: Starting NGINX for authentication handling...
[07:00:45] INFO: Starting mosquitto MQTT broker...
1681966845: Loading config file /share/mosquitto/mosquitto.conf
2023-04-20 07:00:45: Warning: Mosquitto should not be run as root/administrator.
[07:00:47] INFO: Successfully send discovery information to Home Assistant.
[07:00:47] INFO: Successfully send service information to the Supervisor.
2023-04-20 07:00:45: mosquitto version 2.0.15 starting
2023-04-20 07:00:45: Config loaded from /etc/mosquitto/mosquitto.conf.
2023-04-20 07:00:45: Loading plugin: /usr/share/mosquitto/go-auth.so
2023-04-20 07:00:45: ├── Username/password checking enabled.
2023-04-20 07:00:45: ├── TLS-PSK checking enabled.
2023-04-20 07:00:45: └── Extended authentication not enabled.
2023-04-20 07:00:45: Opening ipv4 listen socket on port 1883.
2023-04-20 07:00:45: Opening ipv6 listen socket on port 1883.
2023-04-20 07:00:45: Opening websockets listen socket on port 1884.
2023-04-20 07:00:45: Connecting bridge bridge-Li24c04H1965! (192.168.1.31:1883)
2023-04-20 07:00:45: mosquitto version 2.0.15 running
2023-04-20 07:00:46: New connection from 172.30.32.1:51844 on port 1883.
2023-04-20 07:00:46: Expiring client local.core-mosquitto.bridge-Li24c04H1965! due to timeout.
2023-04-20 07:00:46: Client <unknown> disconnected due to protocol error.
2023-04-20 07:00:46: New connection from 127.0.0.1:36576 on port 1883.
2023-04-20 07:00:46: Client <unknown> closed its connection.
2023-04-20 07:01:17: New connection from 172.30.32.1:42043 on port 1883.
2023-04-20 07:01:17: New client connected from 172.30.32.1:42043 as 0cccc79r86QODy5BXQDTSQ (p2, c1, k60, u'mqtt_user').
2023-04-20 07:02:43: New connection from 192.168.1.12:50610 on port 1883.
2023-04-20 07:02:43: Client <unknown> closed its connection.
2023-04-20 07:03:33: New connection from 172.30.32.2:43818 on port 1883.
2023-04-20 07:03:33: Client <unknown> closed its connection.
2023-04-20 07:03:38: New connection from 192.168.1.12:50884 on port 1883.
2023-04-20 07:03:38: Client <unknown> closed its connection.
2023-04-20 07:04:16: New connection from 192.168.1.12:51076 on port 1883.
2023-04-20 07:04:16: Client <unknown> closed its connection.
2023-04-20 07:05:22: New connection from 192.168.1.12:51396 on port 1883.
2023-04-20 07:05:22: Client <unknown> closed its connection.
2023-04-20 07:05:33: New connection from 172.30.32.2:50292 on port 1883.
2023-04-20 07:05:33: Client <unknown> closed its connection.
2023-04-20 07:06:28: New connection from 192.168.1.12:51714 on port 1883.
2023-04-20 07:06:28: Client <unknown> closed its connection.
2023-04-20 07:07:33: New connection from 172.30.32.2:43128 on port 1883.
2023-04-20 07:07:33: Client <unknown> closed its connection.
2023-04-20 07:09:33: New connection from 172.30.32.2:43444 on port 1883.
2023-04-20 07:09:33: Client <unknown> closed its connection.
2023-04-20 07:11:33: New connection from 172.30.32.2:48216 on port 1883.
2023-04-20 07:11:33: Client <unknown> closed its connection.
2023-04-20 07:13:33: New connection from 172.30.32.2:44036 on port 1883.
2023-04-20 07:13:33: Client <unknown> closed its connection.
2023-04-20 07:15:33: New connection from 172.30.32.2:59080 on port 1883.
2023-04-20 07:15:33: Client <unknown> closed its connection.
2023-04-20 07:16:45: New connection from 192.168.1.12:54516 on port 1883.
2023-04-20 07:16:45: Client <unknown> closed its connection.
2023-04-20 07:17:12: New connection from 192.168.1.12:54642 on port 1883.
2023-04-20 07:17:12: Client <unknown> closed its connection.
2023-04-20 07:17:33: New connection from 172.30.32.2:52730 on port 1883.
2023-04-20 07:17:33: Client <unknown> closed its connection.
2023-04-20 07:19:33: New connection from 172.30.32.2:54400 on port 1883.
2023-04-20 07:19:33: Client <unknown> closed its connection.
2023-04-20 07:21:33: New connection from 172.30.32.2:54294 on port 1883.
2023-04-20 07:21:33: Client <unknown> closed its connection.
2023-04-20 07:23:33: New connection from 172.30.32.2:33062 on port 1883.
2023-04-20 07:23:33: Client <unknown> closed its connection.
2023-04-20 07:25:33: New connection from 172.30.32.2:35750 on port 1883.
2023-04-20 07:25:33: Client <unknown> closed its connection.
2023-04-20 07:26:00: New connection from 192.168.1.12:56938 on port 1883.
2023-04-20 07:26:00: Client <unknown> closed its connection.
2023-04-20 07:27:33: New connection from 172.30.32.2:33754 on port 1883.
Rejestr encji na HA pokazuje prawidłowo zassane urządzenia z supli
Linki bezpośrednie (sterowanie bramą) działają
HA - ustawienia/Urządzenia i usługi/Integracje Core-mosqiutto - brak urządzeń-encji
Natomiast próba włączenia światła powoduje komunikat
Nie udało się wywołać usługi switch/turnoff
Będę wdzięczny za pomoc we właściwej konfiguracji. THX