Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Adapter WM-Bus / Kampstrup Multical 21

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    Adapter WM-Bus / Kampstrup Multical 21

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @WolfgangFB last edited by Thomas Braun

      @wolfgangfb sagte in Adapter WM-Bus / Kampstrup Multical 21:

      An der Stelle frage ich mich, wie ich herausfinden kann, welche "version of debian" ich benutze.

      Das Paket mosquito kommt für Debian Stretch. Das ist aber eine Version die ihr Lebensende seit einem Jahr überschritten hat. Vielleicht falsche Quelle angelegt, vielleicht das Ableben verpasst... Jedenfalls sollte man Stretch beerdigen.

      Die installierte Version sieht man u.a. mit

      lsb_release -a
      

      Für aktuelle Releases kommt mosquito aber ohnehin aus den Standard-Repos:

      echad@chet:~ $ apt policy mosquitto
      mosquitto:
        Installiert:           (keine)
        Installationskandidat: 2.0.11-1
        Versionstabelle:
           2.0.11-1 500
              500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
      echad@chet:~ $
      

      Die ganze Anleitung zur Installation (aus dem Jahre des Herren 2013?) sollte also ohnehin nicht mehr erforderlich sein.

      W 1 Reply Last reply Reply Quote 0
      • W
        WolfgangFB @Thomas Braun last edited by

        @thomas-braun

        OK, ich habe also

        pi@raspberrypi4:~ $ lsb_release -a
        No LSB modules are available.
        Distributor ID: Raspbian
        Description:    Raspbian GNU/Linux 10 (buster)
        Release:        10
        Codename:       buster
        

        was wohl der Nachfolger von stretch ist.

        pi@raspberrypi4:~ $ apt policy mosquitto
        mosquitto:
          Installiert:           2.0.11-0mosquitto1~stretch1
          Installationskandidat: 2.0.11-0mosquitto1~stretch1
          Versionstabelle:
         *** 2.0.11-0mosquitto1~stretch1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
                100 /var/lib/dpkg/status
             2.0.11-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             2.0.10-0mosquitto1~stretch1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             2.0.10-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             2.0.9-0mosquitto1~stretch1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             2.0.9-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             2.0.8-0mosquitto2~stretch1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             2.0.8-0mosquitto2~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             2.0.8-0mosquitto1~stretch1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             2.0.8-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             1.6.12-0mosquitto1~stretch1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.6.12-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.6.12-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             1.6.11-0mosquitto1~stretch1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.6.11-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.6.11-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             1.6.10-0mosquitto1~stretch1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.6.10-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.6.10-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             1.6.8-0mosquitto1~stretch1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.6.8-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.6.8-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             1.6.7-0mosquitto1~stretch1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.6.7-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.6.7-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             1.6.6-0mosquitto1~stretch1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.6.6-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.6.6-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             1.6.4-0mosquitto1~stretch1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.6.4-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.6.4-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             1.6.3-0mosquitto1~stretch1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.6.3-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.6.3-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             1.6.2-0mosquitto1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.6.2-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.6.2-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             1.6.1-0mosquitto1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.6.1-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.6.1-0mosquitto1~buster1 500
                500 https://repo.mosquitto.org/debian buster/main armhf Packages
             1.5.8-0mosquitto1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.5.8-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.5.7-1+deb10u1 500
                500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
             1.5.6-0mosquitto1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.5.6-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.5.5-0mosquitto1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.5.5-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.5.4-0mosquitto2 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.5.4-0mosquitto2~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.5.4-0mosquitto1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.5.4-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.5.3-0mosquitto1 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.5.3-0mosquitto1~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.5-0mosquitto2 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.5-0mosquitto2~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
             1.4.15-0mosquitto4 500
                500 https://repo.mosquitto.org/debian stretch/main armhf Packages
             1.4.15-0mosquitto4~jessie1 500
                500 https://repo.mosquitto.org/debian jessie/main armhf Packages
        N: Datei »mosquitto-stretch.list.2« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
        N: Datei »mosquitto-jessie.list.1« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
        N: Datei »mosquitto-stretch.list.1« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
        p
        

        Ist das jetzt gut oder schlecht?

        Bleibt aber immer noch die frage, warum ich absolut keine Daten von der Wasseruhr sehe (darum geht es mir ja im Endeffekt).

        Gruß Wolfgang

        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @WolfgangFB last edited by Thomas Braun

          @wolfgangfb
          Die Quelle zu Stretch muss entfernt werden.

          Vermutlich so:

          sudo rm /etc/apt/sources.list.d/mosquitto-stretch.list
          sudo apt update
          sudo apt install mosquitto=2.0.11-0mosquitto1~buster1
          
          W 1 Reply Last reply Reply Quote 0
          • W
            WolfgangFB @Thomas Braun last edited by

            @thomas-braun

            pi@raspberrypi4:/etc/apt/sources.list.d $ sudo apt install mosquitto=2.0.11-0mosquitto1~buster1
            Paketlisten werden gelesen... Fertig
            Abhängigkeitsbaum wird aufgebaut.
            Statusinformationen werden eingelesen.... Fertig
            Die folgenden zusätzlichen Pakete werden installiert:
              libcjson1 libmosquitto1
            Die folgenden NEUEN Pakete werden installiert:
              libcjson1 libmosquitto1
            Die folgenden Pakete werden durch eine ÄLTERE VERSION ERSETZT (Downgrade):
              mosquitto
            0 aktualisiert, 2 neu installiert, 1 durch eine ältere Version ersetzt, 0 zu entfernen und 84 nicht aktualisiert.
            Es müssen 331 kB an Archiven heruntergeladen werden.
            Nach dieser Operation werden 350 kB Plattenplatz zusätzlich benutzt.
            Möchten Sie fortfahren? [J/n] J
            Holen:1 https://repo.mosquitto.org/debian buster/main armhf libmosquitto1 armhf 2.0.11-0mosquitto1~buster1 [81,0 kB]
            Holen:2 https://repo.mosquitto.org/debian buster/main armhf mosquitto armhf 2.0.11-0mosquitto1~buster1 [232 kB]
            Holen:3 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf libcjson1 armhf 1.7.10-1.1+deb10u1 [18,6 kB]
            Es wurden 331 kB in 1 s geholt (271 kB/s).
            Vormals nicht ausgewähltes Paket libcjson1:armhf wird gewählt.
            (Lese Datenbank ... 107608 Dateien und Verzeichnisse sind derzeit installiert.)
            Vorbereitung zum Entpacken von .../libcjson1_1.7.10-1.1+deb10u1_armhf.deb ...
            Entpacken von libcjson1:armhf (1.7.10-1.1+deb10u1) ...
            Vormals nicht ausgewähltes Paket libmosquitto1:armhf wird gewählt.
            Vorbereitung zum Entpacken von .../libmosquitto1_2.0.11-0mosquitto1~buster1_armhf.deb ...
            Entpacken von libmosquitto1:armhf (2.0.11-0mosquitto1~buster1) ...
            dpkg: Warnung: Version 2.0.11-0mosquitto1~stretch1 des Paketes mosquitto wird durch ältere Version 2.0.11-0mosquitto1~buster1 ersetzt
            Vorbereitung zum Entpacken von .../mosquitto_2.0.11-0mosquitto1~buster1_armhf.deb ...
            Entpacken von mosquitto (2.0.11-0mosquitto1~buster1) über (2.0.11-0mosquitto1~stretch1) ...
            libmosquitto1:armhf (2.0.11-0mosquitto1~buster1) wird eingerichtet ...
            libcjson1:armhf (1.7.10-1.1+deb10u1) wird eingerichtet ...
            mosquitto (2.0.11-0mosquitto1~buster1) wird eingerichtet ...
            Trigger für systemd (241-7~deb10u7+rpi1) werden verarbeitet ...
            Trigger für man-db (2.8.5-2) werden verarbeitet ...
            Trigger für libc-bin (2.28-10+rpi1) werden verarbeitet ...
            pi@raspberrypi4:/etc/apt/sources.list.d $                                                                                                                                                                                                       
            
            pi@raspberrypi4:/etc/apt/sources.list.d $ apt policy mosquitto
            mosquitto:
              Installiert:           2.0.11-0mosquitto1~buster1
              Installationskandidat: 2.0.11-0mosquitto1~buster1
              Versionstabelle:
             *** 2.0.11-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                    100 /var/lib/dpkg/status
                 2.0.10-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 2.0.9-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 2.0.8-0mosquitto2~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 2.0.8-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 1.6.12-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 1.6.11-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 1.6.10-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 1.6.8-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 1.6.7-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 1.6.6-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 1.6.4-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 1.6.3-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 1.6.2-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 1.6.1-0mosquitto1~buster1 500
                    500 https://repo.mosquitto.org/debian buster/main armhf Packages
                 1.5.7-1+deb10u1 500
                    500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
            pi@raspberrypi4:/etc/apt/sources.list.d $
            

            sieht zumindest mal "grüner" aus. Was kommt als nächstes?

            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @WolfgangFB last edited by

              @wolfgangfb
              Mal neu gestartet?
              Ich bin aber im Weiteren raus, von mosquito hab ich keine Ahnung.
              Jedenfalls ist die Installation jetzt sauber.

              1 Reply Last reply Reply Quote 0
              • M
                matze-dev last edited by matze-dev

                @wolfgangfb Hallo Wolfgang,
                wenn jetzt mosquitto läuft, übergibt der Treiber mittels des konfigurierten Befehls:
                in der Datei /etc/wmbusmeters.conf
                ...
                shell=/usr/local/bin/mosquitto_pub -d -h localhost -t wmbusmeters/$METER_ID -m "$METER_JSON"
                ....
                die Daten an den mosquitto.
                Jetzt muss im iobroker der MQTT Broker/Client installiert werden.

                1. die Webseite des iobroker öffnen (ist auf Port 8081).
                2. dann auf Adapter gehen
                3. MQTT Broker/Client auswählen und dann auf das +-Zeichen den Adapter hinzufügen.
                4. Adapter-Konfiguration (der muss jetzt als Server/Broker laufen):
                  b89c2ec0-7eaf-4694-9156-d1c121dd0d68-grafik.png
                  8e4ed92b-6c9d-4c0d-ada4-1782bda7ada2-grafik.png

                Danach braucht es noch folgende Adapter:
                History
                JS Script Engine
                BackITUp
                Flot Charts
                Visualisation
                Die einfach auch so, wie oben beschrieben, als Adapter dazufügen.

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @matze-dev last edited by

                  @matze-dev sagte in Adapter WM-Bus / Kampstrup Multical 21:

                  shell=/usr/local/bin/mosquitto_pub

                  Höchstwahrscheinlich der falsche Pfad. In /usr/local/bin sollte das nicht liegen

                  1 Reply Last reply Reply Quote 0
                  • W
                    WolfgangFB last edited by

                    @thomas-braun
                    Bei mir ist der Wurm drin 😞

                    Zuerst habe ich den MQTT Broker/Clinet installiert. Die Bilder sahen bei mir genauso aus wie bei matze-dev, aber der Adapter blieb auf gelb und es wurden keine Datenpunkte angelegt.

                    Ich habe den Raspberry neu gestartet (Thomas Braun: Mal neu gestartet?)

                    sudo reboot
                    

                    danach (wie immer nach einem reboot) " Cannot find view "system" for search "host".
                    Gemäß Anleitung den letzten regulären Zustand aus den Backups wiederhergestellt.

                    pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ iobroker start
                    pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ iobroker status
                    iobroker is running on this host.
                    
                    
                    Objects type: file
                    States  type: file
                    pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $
                    pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ iobroker status
                    No connection to databases possible ...
                    pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $
                    pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $
                    pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ iobroker stop
                    pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ iobroker status
                    iobroker is not running on this host.
                    
                    
                    Objects type: file
                    States  type: file
                    pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ iobroker start
                    pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $
                    pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ iobroker status
                    /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2674
                                    res.forEach(aliveState => {
                                        ^
                    
                    TypeError: Cannot read property 'forEach' of undefined
                        at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2674:21)
                        at processImmediate (internal/timers.js:463:21)
                    
                    

                    Was habe ich jetzt schon wieder falsch gemacht?

                    W 1 Reply Last reply Reply Quote 0
                    • W
                      WolfgangFB @WolfgangFB last edited by

                      @wolfgangfb

                      Nach diversen Neustarts läuft der IO-Broker (zum Glück) wieder).
                      Was mich stutzig macht ist:

                      pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ mosquitto
                      1626002431: mosquitto version 2.0.11 starting
                      1626002431: Using default config.
                      1626002431: Starting in local only mode. Connections will only be possible from clients running on this machine.
                      1626002431: Create a configuration file which defines a listener to allow remote access.
                      1626002431: For more details see https://mosquitto.org/documentation/authentication-methods/
                      1626002431: Opening ipv4 listen socket on port 1883.
                      1626002431: Error: Address already in use
                      1626002431: Opening ipv6 listen socket on port 1883.
                      1626002431: Error: Address already in use
                      

                      Das klingt für mich als ob ein anderer Dienst auf dem gleichen Rechner auf Port 1883 etwas macht.

                      pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $ netstat -a | grep 1883
                      tcp        0      0 localhost:1883          0.0.0.0:*               LISTEN
                      tcp6       0      0 localhost:1883          [::]:*                  LISTEN
                      

                      außerdem sieht für mich

                      sudo systemctl start wmbusmeters
                      more /var/log/wmbusmeters/wmbusmeters.log
                      [2021-07-11_13:27:40] Started config im871a[00100776] on /dev/ttyUSB0 listening on none
                      (im871a) on /dev/ttyUSB0
                      (serial) EVENT thread interrupted
                      (im871a) get config
                      (im871a) got device id 00000000
                      [2021-07-11_13:27:51] Not the expected dongle (dongle said 00000000, you said 00100776!
                      (wmbus) deleted im871a
                      No wmbus device detected, waiting for a device to be plugged in.
                      (shell) exec (capture output) "/bin/pidof"
                      (shell) arg "wmbusmetersd"
                      (shell) output: >>>5672
                      <<<
                      (serial) EVENT thread interrupted
                      (shell) return code 0
                      (shell) 5728 exited
                      (shell) exec (capture output) "/bin/pidof"
                      (shell) arg "wmbusmeters"
                      (shell) output: >>><<<
                      (serial) EVENT thread interrupted
                      (shell) return code 1
                      (shell) 5729 exited
                      (serial) registered regular callback HOT_PLUG_DETECTOR(0) every 2 seconds
                      (wmbusmeters) waiting for telegrams
                      (serial) waiting for stop
                      (serial) TIMER thread interrupted
                      (serial) EVENT thread interrupted
                      [2021-07-11_13:27:53] (memory) rss 2924544 peak 2.78 MiB
                      (lookup) with file "/dev/ttyUSB0"
                      (serial) EVENT thread interrupted
                      (serial) EVENT thread interrupted
                      (serial) EVENT thread interrupted
                      [2021-07-11_13:28:37] Expected im871a on /dev/ttyUSB0 but found unknown instead, ignoring it!
                      (verbose) ignoring device auto
                      

                      nicht gut aus. (ich verstehe das so, dass der Dongle garnicht erkannt wird)

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        matze-dev @WolfgangFB last edited by

                        @wolfgangfb Hallo Wolfgang, in der Tat, da sieht nicht so gut aus. Was sagt das Logfile, in das die Werte geschrieben werden? "cat /var/log/wmbusmeters/wmbusmeters.log" - sind die Werte darin OK?

                        W 1 Reply Last reply Reply Quote 0
                        • W
                          WolfgangFB @matze-dev last edited by

                          @matze-dev
                          (Ab dem Zeitpunkt, wo der wmbusmaster neu gestartet worden ist)

                          [2021-07-11_13:27:40] Started config im871a[00100776] on /dev/ttyUSB0 listening on none
                          (im871a) on /dev/ttyUSB0
                          (serial) EVENT thread interrupted
                          (im871a) get config
                          (im871a) got device id 00000000
                          [2021-07-11_13:27:51] Not the expected dongle (dongle said 00000000, you said 00100776!
                          (wmbus) deleted im871a
                          No wmbus device detected, waiting for a device to be plugged in.
                          (shell) exec (capture output) "/bin/pidof"
                          (shell) arg "wmbusmetersd"
                          (shell) output: >>>5672
                          <<<
                          (serial) EVENT thread interrupted
                          (shell) return code 0
                          (shell) 5728 exited
                          (shell) exec (capture output) "/bin/pidof"
                          (shell) arg "wmbusmeters"
                          (shell) output: >>><<<
                          (serial) EVENT thread interrupted
                          (shell) return code 1
                          (shell) 5729 exited
                          (serial) registered regular callback HOT_PLUG_DETECTOR(0) every 2 seconds
                          (wmbusmeters) waiting for telegrams
                          (serial) waiting for stop
                          (serial) TIMER thread interrupted
                          (serial) EVENT thread interrupted
                          [2021-07-11_13:27:53] (memory) rss 2924544 peak 2.78 MiB
                          (lookup) with file "/dev/ttyUSB0"
                          (serial) EVENT thread interrupted
                          (serial) EVENT thread interrupted
                          (serial) EVENT thread interrupted
                          [2021-07-11_13:28:37] Expected im871a on /dev/ttyUSB0 but found unknown instead, ignoring it!
                          (verbose) ignoring device auto
                          pi@raspberrypi4:/opt/iobroker/iobroker-data/backup-objects $
                          
                          
                          W 1 Reply Last reply Reply Quote 0
                          • W
                            WolfgangFB @WolfgangFB last edited by

                            @wolfgangfb

                            Ich dachte ich probiere das ganze nochmal parallel auf einer jungfräulichen SD Karte.
                            Also mit Imager ein neues Image gezogen, auf die SD Karte geschrieben.
                            Läuft soweit.

                            pi@raspberrypi:~ $ lsb_release -a
                            No LSB modules are available.
                            Distributor ID: Raspbian
                            Description:    Raspbian GNU/Linux 10 (buster)
                            Release:        10
                            Codename:       buster
                            pi@raspberrypi:~ $
                            
                            pi@raspberrypi:~ $ sudo apt-get install mosquitto    
                            

                            ist auch ohne Fehlermeldung durchgelaufen.
                            Jetzt zur Frage, wie ich den wmbusmeters richtig installiere und konfiguriere (ich möchte mir das für mich idiotensicher aufschreiben weil ich das bestimmt noch öfter brauche und beim letzten mal etliche Versuche gebraucht habe.

                            Ich habe es mal mit der Anleitung von

                            https://snapcraft.io/install/wmbusmeters/raspbian

                            probiert

                            sudo apt update
                            sudo apt install snapd
                            pi@raspberrypi:~ $ sudo snap install core
                            2021-07-11T20:43:45+02:00 INFO Waiting for restart...
                            core 16-2.51.1 from Canonical✓ installed
                            Channel latest/stable for core is closed; temporarily forwarding to stable.
                            pi@raspberrypi:~ $ sudo snap install wmbusmeters
                            wmbusmeters 1.3.0 from Fredrik Öhrström (oehrstroem) installed
                            pi@raspberrypi:~ $
                            

                            Dummerweise gibt es aber jetzt kein Verzeichnis /etc/wmbusmeters

                            Also: An dieser Stelle der erste Stolperstein. Wie installiere ich den wmbusmeters richtig?
                            Soll der als daemon oder als service laufen?

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @WolfgangFB last edited by Thomas Braun

                              @wolfgangfb Warum hantierst du da mit snap rum, wenn du mosquitto doch schon via apt installiert hast? Jetzt hast du das doppelt installiert, fürchte ich.

                              W 1 Reply Last reply Reply Quote 0
                              • W
                                WolfgangFB @Thomas Braun last edited by WolfgangFB

                                @thomas-braun

                                Ich habe nach einer idiotensicheren Möglichkeit den busmeter zu installieren gesucht und google lieferte mir
                                https://snapcraft.io/install/wmbusmeters/raspbian#install

                                Die Anleitung habe ich so verstanden, dass man damit ein Werkzeug zum installieren von busmeters installiert (snap) und dann mit dem Befehl

                                sudo snap install wmbusmeters
                                

                                zum gewünschten Erfolg kommt.
                                Für mich klang/klingt das so, als ob snap etwas ähnliches wie apt-get ist War wohl nichts, aber: wie geht es richtig?
                                Ist snap etwas das automatisch mosquitto installiert oder warum habe ich das jetzt doppelt?

                                Die Github Seite, auf die matze-dev verweist
                                https://github.com/weetmuts/wmbusmeters

                                gibt auch den "snap" als Installationsmöglichkeit an.

                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @WolfgangFB last edited by Thomas Braun

                                  @wolfgangfb

                                  pi@raspberrypi:~ $ sudo apt-get install mosquitto
                                  ist auch ohne Fehlermeldung durchgelaufen.

                                  Was denkst du passiert wenn man install angibt und das ganze ohne Fehlermeldung durchläuft?

                                  snap ist eine andere Methode Pakete zu installieren.
                                  Wird gerne für Entwicklerversionen verwendet, das ganze läuft dann in einer Art Sandbox ab. Auf dem Raspberry würde ich aber immer die vorgesehene Methode via apt bevorzugen. Viele Paketmanager verderben das System. Insbesondere wenn da auf Verdacht irgendwie irgendwas ins System gedübelt wird.

                                  W 1 Reply Last reply Reply Quote 0
                                  • W
                                    WolfgangFB @Thomas Braun last edited by

                                    @thomas-braun said in Adapter WM-Bus / Kampstrup Multical 21:

                                    @wolfgangfb

                                    pi@raspberrypi:~ $ sudo apt-get install mosquitto
                                    ist auch ohne Fehlermeldung durchgelaufen.

                                    Was denkst du passiert wenn man install angibt und das ganze ohne Fehlermeldung durchläuft?

                                    Ich denke, dass man damit mosquitto installiert

                                    snap ist eine andere Methode Pakete zu installieren.
                                    Wird gerne für Entwicklerversionen verwendet, das ganze läuft dann in einer Art Sandbox ab. Auf dem Raspberry würde ich aber immer die vorgesehene Methode via apt bevorzugen.

                                    ich habe auch auf Verdacht

                                    sudo apt-get install wmbusmeters 
                                    

                                    probiert,das hat aber nicht funktioniert, ich weiß aber immer noch nicht, was

                                    sudo snap install wmbusmeters
                                    

                                    mit einer doppelten Installation von mosquitto zu tun hat (es geht einmal um mosquitto, das ich installieren konnte und einmal um wmbusmeter das ich bisher nicht installieren konnte)

                                    Thomas Braun M 2 Replies Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @WolfgangFB last edited by

                                      @wolfgangfb Ah, sorry, da hatte ich nicht genau gelesen.

                                      Ich würde wmbusmeters dann ganz klassisch per Installations-Dreisatz selber bauen.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        matze-dev @WolfgangFB last edited by matze-dev

                                        @wolfgangfb
                                        wmbusmeters habe ich aus den Sourcen installiert:
                                        cd ~
                                        wget https://github.com/weetmuts/wmbusmeters/archive/master.zip
                                        alternativ geht auch der Download
                                        wget https://github.com/weetmuts/wmbusmeters/archive/refs/heads/master.zip
                                        unzip master.zip
                                        cd wmbusmeters-master/
                                        sudo make DEBUG=true // geht auch alternativ "sudo make"
                                        sudo make install

                                        Viel Glück

                                        W 2 Replies Last reply Reply Quote 0
                                        • W
                                          WolfgangFB @matze-dev last edited by

                                          @matze-dev

                                          Danke für die Hilfe. Klappt aber leider noch nicht ganz

                                          pi@raspberrypi4:~/wmbusmeters-master $ sudo make DEBUG=true
                                          [viel erfolgreiches gelöscht]
                                          g++ -O0 -ggdb -fsanitize=address -fno-omit-frame-pointer -fprofile-arcs -ftest-coverage -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild_debug src/rtlsdr.cc -c -E > build_debug/rtlsdr.o.src
                                          src/rtlsdr.cc:24:9: fatal error: rtl-sdr.h: Datei oder Verzeichnis nicht gefunden
                                           #include<rtl-sdr.h>
                                                   ^~~~~~~~~~~
                                          compilation terminated.
                                          make: *** [Makefile:104: build_debug/rtlsdr.o] Fehler 1
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @WolfgangFB last edited by

                                            @wolfgangfb

                                            Da fehlt das Paket librtlsdr-dev

                                            W 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            311
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            12
                                            151
                                            16734
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo