MQTT fehlt

Nachdem ich das aktuelle nightly 0.8.0-3024 über-installiert habe, funktioniert MQTT auf einmal nicht mehr. Keine Änderung an der MQTT.conf. Aus der Not heraus habe ich Homegear komplett gelöscht und anschließend das nightly neu installiert. Läuft alles, auch das pairen von Bidcos- und Zigbee-Komponenten. Nur zeigt sich immer noch kein MQTT-Verkehr. Log- und Err-Dateien zeigen keine Auffälligkeiten. Ich habe keine Idee, an welcher Stelle ich noch suchen soll.

Poste bitte mal die mqtt.conf und schau vor allem ins Log beim Start. Eventuell kommt es zu einem Verbindungsfehler zu deinem Broker.
Kannst du gucken ob der wirklich läuft?

Here we are:

# Set this to "true" to enable MQTT.
enabled = true

# Hostname or IP address of your MQTT message broker.
brokerHostname = 192.168.1.34

# Port of your MQTT message broker.
brokerPort = 1883

# Name of this client. When unset a random and unique client ID is generated.
clientName = Homegear

# The prefix to use. Every topic starts with this prefix.
# Default: homegear
prefix = homegear

# Unique ID of this Homegear instance. Change this, have you have multiple
# Homegear installations.
# This is not used for IBM Bluemix Watson IOT platform
homegearId = 262

# Quality of service. Only 0 (no qos) and 1 (sent/received at least once, recommended) are supported.
qos = 1

# Tells the MQTT server to retain received MQTT messages. New clients will then
# receive the last value of a topic on connection.
# Variables of type "Action" are not retained.
retain = false
 
# When authentication by username and password is enabled, uncomment the following two lines and fill in your username
# and password.
#username = myUser
#password = myPassword

# The number of parallel processing threads.
processingThreadCount = 5

### Topic payload encodings ###

# Enable topic: homegear/HOMEGEAR_ID/plain/PEERID/CHANNEL/VARIABLE_NAME
# Contains the value as is. E. g.: 43.7.
plainTopic = false

# Enable topic: homegear/HOMEGEAR_ID/json/PEERID/CHANNEL/VARIABLE_NAME
# Puts the value in a JSON array to be JSON-compliant: [43.7].
jsonTopic = false

# Enable topic: homegear/HOMEGEAR_ID/jsonobj/PEERID/CHANNEL/VARIABLE_NAME
# Puts the value into a JSON object. The key is value: { "value": 43.7 }.
jsonobjTopic = true

und die err-Datei:

06/15/20 21:42:15.656 Warning: variables with id “custom_ch7_values” does not exist.
06/15/20 21:42:15.656 Warning: configParameters with id “config” does not exist.
06/15/20 21:42:15.665 Warning: variables with id “custom_ch7_values” does not exist.
06/15/20 21:42:15.714 RPC Server (Port 2001): Warning: SSL is not enabled for this RPC server. It is strongly recommended to disable all unencrypted RPC servers when the connected clients support it.
06/15/20 21:42:15.715 RPC Server (Port 2001): Warning: RPC server has no authorization enabled. Everybody on your local network can login into this installation. It is strongly recommended to enable authorization on all RPC servers when the connected clients support it.
06/15/20 21:42:15.760 RPC Server (Port 2002): Warning: RPC server has no authorization enabled. Everybody on your local network can login into this installation. It is strongly recommended to enable authorization on all RPC servers when the connected clients support it.
06/15/20 21:42:28.722 Module Zigbee: Zigbee serial module “Serial1”: Error: No response received to packet: FE012F060028

finally die log-Datei:

06/15/20 21:42:09.579 Starting Homegear…
06/15/20 21:42:09.579 Homegear version 0.8.0-3024
06/15/20 21:42:09.579 Determining maximum thread count…
06/15/20 21:42:10.724 Maximum thread count is: 437
06/15/20 21:42:10.754 Info: Backing up database…
06/15/20 21:42:12.174 Initializing database…
06/15/20 21:42:13.945 Debug: Loading licensing modules
06/15/20 21:42:13.946 Info: Loading licensing module mod_licensing.so
06/15/20 21:42:13.948 Initializing system variable controller…
06/15/20 21:42:13.950 Debug: Loading family modules
06/15/20 21:42:13.950 Info: Loading family module (type 1) mod_homematicbidcos.so
06/15/20 21:42:13.976 Info: Loading settings from /etc/homegear/families/homematicbidcos.conf
06/15/20 21:42:13.978 Info: Loading family module (type 1) mod_miscellaneous.so
06/15/20 21:42:13.984 Info: Loading settings from /etc/homegear/families/miscellaneous.conf
06/15/20 21:42:13.985 Info: Loading family module (type 1) mod_zigbee.so
06/15/20 21:42:14.018 Info: Loading settings from /etc/homegear/families/zigbee.conf
06/15/20 21:42:14.086 Info: Setting up physical interfaces and GPIOs…
06/15/20 21:42:14.087 Info: Dropping privileges to user homegear (110) and group homegear (115)
06/15/20 21:42:14.087 Info: Homegear is (now) running as user with id 110 and group with id 115.
06/15/20 21:42:14.177 Starting script engine server…
06/15/20 21:42:14.227 Initializing licensing controller…
06/15/20 21:42:14.299 Loading licensing controller data…
06/15/20 21:42:14.300 Loading devices…
06/15/20 21:42:14.300 Loading XML RPC devices…
06/15/20 21:42:15.141 Loading device 1
06/15/20 21:42:15.142 Module HomeMatic BidCoS: Info: Central address set to 0xFD0810.
06/15/20 21:42:15.143 Module HomeMatic BidCoS: Loading peer 1
06/15/20 21:42:15.148 Module HomeMatic BidCoS: Loading peer 9
06/15/20 21:42:15.153 Module HomeMatic BidCoS: Loading peer 10
06/15/20 21:42:15.219 Loading XML RPC devices…
06/15/20 21:42:15.257 Loading device 2
06/15/20 21:42:15.258 Module Zigbee: Loading Zigbee peer 11

etc pp - kannst Du irgendwas daraus ableiten? Danke schon mal!

Nein, weil du das Log ab dem Punkt wo es interessant wurde abgeschnitten hast. Deine config sieht ok aus.

OK, aber das ist so unendlich lang:

06/15/20 21:42:09.579 Starting Homegear…
06/15/20 21:42:09.579 Homegear version 0.8.0-3024
06/15/20 21:42:09.579 Determining maximum thread count…
06/15/20 21:42:10.724 Maximum thread count is: 437
06/15/20 21:42:10.754 Info: Backing up database…
06/15/20 21:42:12.174 Initializing database…
06/15/20 21:42:13.945 Debug: Loading licensing modules
06/15/20 21:42:13.946 Info: Loading licensing module mod_licensing.so
06/15/20 21:42:13.948 Initializing system variable controller…
06/15/20 21:42:13.950 Debug: Loading family modules
06/15/20 21:42:13.950 Info: Loading family module (type 1) mod_homematicbidcos.so
06/15/20 21:42:13.976 Info: Loading settings from /etc/homegear/families/homematicbidcos.conf
06/15/20 21:42:13.978 Info: Loading family module (type 1) mod_miscellaneous.so
06/15/20 21:42:13.984 Info: Loading settings from /etc/homegear/families/miscellaneous.conf
06/15/20 21:42:13.985 Info: Loading family module (type 1) mod_zigbee.so
06/15/20 21:42:14.018 Info: Loading settings from /etc/homegear/families/zigbee.conf
06/15/20 21:42:14.086 Info: Setting up physical interfaces and GPIOs…
06/15/20 21:42:14.087 Info: Dropping privileges to user homegear (110) and group homegear (115)
06/15/20 21:42:14.087 Info: Homegear is (now) running as user with id 110 and group with id 115.
06/15/20 21:42:14.177 Starting script engine server…
06/15/20 21:42:14.227 Initializing licensing controller…
06/15/20 21:42:14.299 Loading licensing controller data…
06/15/20 21:42:14.300 Loading devices…
06/15/20 21:42:14.300 Loading XML RPC devices…
06/15/20 21:42:15.141 Loading device 1
06/15/20 21:42:15.142 Module HomeMatic BidCoS: Info: Central address set to 0xFD0810.
06/15/20 21:42:15.143 Module HomeMatic BidCoS: Loading peer 1
06/15/20 21:42:15.148 Module HomeMatic BidCoS: Loading peer 9
06/15/20 21:42:15.153 Module HomeMatic BidCoS: Loading peer 10
06/15/20 21:42:15.219 Loading XML RPC devices…
06/15/20 21:42:15.257 Loading device 2
06/15/20 21:42:15.258 Module Zigbee: Loading Zigbee peer 11
06/15/20 21:42:15.283 Adding device: 1037lumi.ctrl_neutral23 with type number: 15
06/15/20 21:42:15.283 Adding device:

Lang genug?

Naja, du kannst dir aber schon mal die Mühe machen das Log selbst zu lesen, oder? Dass zigbee nichts mit MQTT zu tun hat ist doch ersichtlich :slight_smile:

Im ganzen log taucht leider nichts mit mqtt auf (STRG-F)… das ist komisch.

Läuft der Broker denn?

100%ig richtig. Aber das ist die homegear.log-Datei, unverändert. Was mir fehlt ist eine Idee, warum MQTT nicht startet. Wenn ich zurück auf die 0.7 stable gehe, bekomme ich manche ZIGBEE-Komponenten nicht registriert. Und ja, Mosquitto läuft. Mein gesamtes ‘Smart Home’ funxt, nur nicht die Komponenten, die über Homegear angebunden sind.

Ok, dann muss vielleicht @sathya was dazu sagen. Sehe da leider keinen Zusammenhang.

And this contains the missing info about an id I needed to make the device xml files. I’ll send you today the files with the proper ids (hopefully, this time).

Hier ein Auszug aus der Management.err:

06/16/20 16:28:25.524 Script engine (/var/lib/homegear/scripts/inline.php): PHP Fatal error: Uncaught Homegear\HomegearException: Requested method not found. in /var/lib/homegear/scripts/inline.php:7
Stack trace:
#0 /var/lib/homegear/scripts/inline.php(7): Homegear\Homegear->__call(‘managementInter…’, Array)
#1 {main}
thrown in /var/lib/homegear/scripts/inline.php on line 7

Ist das ein Ansatz für die Fehlersuche?

Gib mal die Ausgabe von dpkg -l | grep homegear… ist vielleicht homegear-magement nicht installiert?

ii homegear 0.8.0-3026 armhf Interface program to your smart home devices
ii homegear-adminui 0.1.0-238 all Provides an administrative user interface for Homegear.
ii homegear-homematicbidcos 0.8.0-3026 armhf HomeMatic BidCoS module for Homegear
ii homegear-influxdb 0.8.0-3026 armhf Passes variable changes in Homegear to InfluxDB
ii homegear-licensing 0.8.0-3026 armhf Default licensing module for Homegear
ii homegear-management 0.8.0-3026 armhf Management service for Homegear
ii homegear-nodes-core 0.8.0-3026 armhf Core nodes for Homegear’s Node-BLUE
ii homegear-nodes-extra 0.8.0-3026 armhf Extra nodes for Homegear’s Node-BLUE
ii homegear-ui 0.1.0-326 all Provides an user interface for Homegear.
ii homegear-zigbee 0.8.0-3026 armhf Zigbee module for Homegear
ii libhomegear-base 0.8.0-3026 armhf Base library for Homegear
ii libhomegear-ipc 0.1.2-40 armhf IPC library for Homegear
ii libhomegear-node 0.1.7-51 armhf Node library for Homegear
ii python3-homegear 1.0.14-1 armhf Python module for Homegear

Müsste da nicht auch irgendwo ‘MQTT’ auftauchen?

Hmm, nein. MQTT ist in homegear… deswegen verstehe ich es gerade auch nicht.

pi@homegear:~ $ dpkg -l | grep homegear
ii  homegear                       0.8.0-2967                          armhf        Interface program to your smart home devices
ii  homegear-adminui               0.1.0-220                           all          Provides an administrative user interface for Homegear.
ii  homegear-beckhoff              0.8.0-2967                          armhf        Beckhoff module for Homegear
ii  homegear-enocean               0.8.0-2967                          armhf        EnOcean module for Homegear
ii  homegear-homematicbidcos       0.8.0-2967                          armhf        HomeMatic BidCoS module for Homegear
ii  homegear-licensing             0.8.0-2967                          armhf        Default licensing module for Homegear
ii  homegear-management            0.8.0-2967                          armhf        Management service for Homegear
ii  homegear-nodes-core            0.8.0-2967                          armhf        Core nodes for Homegear's Node-BLUE
ii  homegear-nodes-extra           0.8.0-2967                          armhf        Extra nodes for Homegear's Node-BLUE
ii  homegear-philipshue            0.8.0-2967                          armhf        Philips Hue module for Homegear
ii  homegear-ui                    0.1.0-312                           all          Provides an user interface for Homegear.
ii  libhomegear-base               0.8.0-2967                          armhf        Base library for Homegear
ii  libhomegear-ipc                0.1.2-40                            armhf        IPC library for Homegear
ii  libhomegear-node               0.1.7-51                            armhf        Node library for Homegear
ii  python3-homegear               1.0.14-1                            armhf        Python module for Homegear

Das habe ich installiert und MQTT geht.

Ich habe ein älteres 0.8-nightly ausprobiert (vom 4.4.20) - nun funktioniert MQTT wieder.

1 Like

Ok, dann muss sich das @sathya in jedem Fall angucken. :+1:

Ich habe ein älteres 0.8-nightly ausprobiert (vom 4.4.20) - nun funktioniert MQTT wieder.

… und im nächsten Nightly auch. Da hat sich durch einen Bugfix ein Bug eingeschlichen.

Vielen Dank

Sathya

2 Likes

A post was split to a new topic: Fehlermeldungen im Log (Serial)

Puhh…das hat mich auch einige Analyse gekostet um festzustellen, dass es an der Nightly liegen muss. Nachdem ich dann auf die aktuelle Version upgedated habe, ging wieder alles.

Naja…dafür ist man ja mit der Nightly unterwegs. Trotzdem wäre es gut, wenn sich solche gravierenden Dinge in Zukunft vermeiden ließen - das hält mein Nervenkostüm nicht aus. :stuck_out_tongue:

haha, wenn sich Fehler vermeiden ließen, wären es keine Fehler mehr und das nightly nicht das nightly :wink: .
Unabhängig davon und rein informativ: wenn man das Gefühl hat, dass nach dem Update auf das aktuelle nightly etwas nicht richtig funktioniert, lässt sich das durch ein downgrade recht einfach testen:
wget -O /tmp/InstallNightly.sh https://downloads.homegear.eu/InstallNightly.sh && bash /tmp/InstallNightly.sh 202006xx

4 Likes

Hallo Leute!

Ich habe vor einigen Tagen auch festgestellt das mein Mqtt-Topic weg ist.

Erstmal zu meinem System.
Alles läuft auf einem Pi4, im Moment habe ich Nightly, die Version 0.7.45-3101.

Wenn ich aber mosquitto_sub aufrufe, verrät mir Homegaer keine Topics, auch wenn ich welche auslöse. Stoppe ich den den Mosquitto Dienst, läuft auch nix mehr an Aktion.

Im Grunde läuft es, aber ich würde gerne in den nächsten Tagen, ein paar Geräte hinzufügen und da wären die Topic nicht schlecht zu wissen.

Danke und einen schönen Abend erstmal an alle!