Powiadomienia
Wyczyść wszystko

Problem z mqtt w smarticzu.  

  RSS
Jabuszko
(@jabuszko)
Młodzik

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?

Cytuj
Dodane : 28/09/2020 8:50 am
isom
 isom
(@isom)
Prezes Moderator Zasłużony dla Forum, Donator 2019, Donator 2K20

@jabuszko a co dostajesz po restarcie po wpisaniu w terminal

mosquitto -v

wrzuć jakieś foto , albo opisz to bardziej precyzyjnie

OdpowiedzCytuj
Dodane : 28/09/2020 12:02 pm
Jabuszko
(@jabuszko)
Młodzik

@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.

OdpowiedzCytuj
Dodane : 28/09/2020 4:25 pm
Udostępnij: