Problem z mqtt w sm...
 
Powiadomienia
Wyczyść wszystko

Problem z mqtt w smarticzu.

3 Wpisów
2 Użytkownicy
0 Reactions
665 Wyświetleń
Jabuszko
(@jabuszko)
Wpisów: 12
Praktykant
Autor tematu
 

Witam. 

Mam problem z mqtt w smarticzu. Po restarcie maliny i odpaleniu domoticz nie ma odczytu informacji z mqtt. 

Dopiero restart mqtt i mqtt2zigbee z ssh daje efekt.

Ktoś spotkał się z takim problemem? 

 
Dodane : 28/09/2020 7:50 am
isom
 isom
(@isom)
Wpisów: 5170
Szef wszystkich szefów Moderator Zasłużony dla Forum, Donator 2K19, Donator 2K20
 

@jabuszko a co dostajesz po restarcie po wpisaniu w terminal

mosquitto -v

wrzuć jakieś foto , albo opisz to bardziej precyzyjnie 

 
Dodane : 28/09/2020 11:02 am
Jabuszko
(@jabuszko)
Wpisów: 12
Praktykant
Autor tematu
 

@isom

pi@smarticz:~ $ mosquitto -v
1601302639: mosquitto version 1.6.8 starting
1601302639: Using default config.
1601302639: Opening ipv4 listen socket on port 1883.
1601302639: Error: Address already in use

pi@smarticz:~ $ sudo journalctl -u zigbee2mqtt.service -f
-- Logs begin at Mon 2020-09-28 16:16:14 CEST. --
Sep 28 16:17:25 smarticz npm[528]: zigbee2mqtt:warn 2020-09-28T14:17:25: `permit_join` set to `true` in configuration.yaml.
Sep 28 16:17:25 smarticz npm[528]: zigbee2mqtt:warn 2020-09-28T14:17:25: Allowing new devices to join.
Sep 28 16:17:25 smarticz npm[528]: zigbee2mqtt:warn 2020-09-28T14:17:25: Set `permit_join` to `false` once you joined all devices.
Sep 28 16:17:25 smarticz npm[528]: zigbee2mqtt:info 2020-09-28T14:17:25: Zigbee: allowing new devices to join.
Sep 28 16:17:25 smarticz npm[528]: zigbee2mqtt:info 2020-09-28T14:17:25: Connecting to MQTT server at mqtt://localhost
Sep 28 16:17:32 smarticz npm[528]: zigbee2mqtt:info 2020-09-28T14:17:32: Connected to MQTT server
pi@smarticz:~ $ sudo tail -f /var/log/mosquitto/mosquitto.log
1601302592: mosquitto version 1.6.8 starting
1601302592: Config loaded from /etc/mosquitto/mosquitto.conf.
1601302592: Opening ipv4 listen socket on port 1883.
1601302592: Opening ipv6 listen socket on port 1883.
1601302640: New connection from ::1 on port 1883.
1601302640: New client connected from ::1 as Domoticz*********** (p2, c1, k40, u'*********').
1601302640: New connection from 127.0.0.1 on port 1883.
1601302640: New client connected from 127.0.0.1 as Domoticz_1601302640_9900 (p2, c1, k60, u'**********').
1601302645: New connection from 127.0.0.1 on port 1883.
1601302652: New client connected from 127.0.0.1 as mqttjs_************* (p2, c1, k60, u'*******').

Po restarcie mosquitto oraz zigbee2mqtt wszystko śmiga a logi wtedy są:

pi@smarticz:~ $ mosquitto -v
1601303055: mosquitto version 1.6.8 starting
1601303055: Using default config.
1601303055: Opening ipv4 listen socket on port 1883.
1601303055: Error: Address already in use

pi@smarticz:~ $ sudo tail -f /var/log/mosquitto/mosquitto.log
1601303007: Opening ipv4 listen socket on port 1883.
1601303007: Opening ipv6 listen socket on port 1883.
1601303008: New connection from 127.0.0.1 on port 1883.
1601303008: New client connected from 127.0.0.1 as mqttjs_****** (p2, c1, k60, u'**********').
1601303010: New connection from 127.0.0.1 on port 1883.
1601303010: New client connected from 127.0.0.1 as Domoticz_*********** (p2, c1, k60, u'*************').
1601303012: Client mqttjs_d*********** disconnected.
1601303019: New connection from 127.0.0.1 on port 1883.
1601303019: New client connected from 127.0.0.1 as mqttjs_************ (p2, c1, k60, u'***************').
1601303034: New connection from ::1 on port 1883.

 

 
Dodane : 28/09/2020 3:25 pm
Udostępnij: