Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Wasserzähler (Funk 868) auslesen.

    NEWS

    • [erledigt] 15. 05. Wartungsarbeiten am ioBroker Forum

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Wasserzähler (Funk 868) auslesen.

    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gerald123 @Michi_Pi last edited by

      @michi_pi sagte in Wasserzähler (Funk 868) auslesen.:

      systemctl status wmbusmeters

      Momentan habe ich bei der letzten Installation wieder die aktuelle Version aufgespielt.
      Das kommt beim Status:

      root@raspberrypi:~/wmbusmeters# systemctl status wmbusmeters
      ● wmbusmeters.service - "wmbusmeters service"
         Loaded: loaded (/lib/systemd/system/wmbusmeters.service; enabled; vendor preset: enabled)
         Active: active (running) since Fri 2021-05-07 20:20:29 CEST; 33min ago
           Docs: https://github.com/weetmuts/wmbusmeters
                 man:wmbusmeters(1)
        Process: 1653 ExecStartPre=/bin/mkdir -p /var/log/wmbusmeters/meter_readings (code=exited, status=0/SUCCESS)
        Process: 1654 ExecStartPre=/bin/chown -R wmbusmeters:wmbusmeters /var/log/wmbusmeters (code=exited, status=0/SUCCESS)
        Process: 1655 ExecStartPre=/bin/mkdir -p /run/wmbusmeters (code=exited, status=0/SUCCESS)
        Process: 1656 ExecStartPre=/bin/chown -R wmbusmeters:wmbusmeters /run/wmbusmeters (code=exited, status=0/SUCCESS)
        Process: 1657 ExecStart=/usr/sbin/wmbusmetersd /run/wmbusmeters/wmbusmeters.pid (code=exited, status=0/SUCCESS)
       Main PID: 1658 (wmbusmetersd)
          Tasks: 3 (limit: 2062)
         CGroup: /system.slice/wmbusmeters.service
                 └─1658 /usr/sbin/wmbusmetersd /run/wmbusmeters/wmbusmeters.pid
      
      Mai 07 20:20:28 raspberrypi systemd[1]: Starting "wmbusmeters service"...
      Mai 07 20:20:29 raspberrypi wmbusmetersd[1657]: (wmbusmeters) started /run/wmbusmeters/wmbusmeters.pid
      Mai 07 20:20:29 raspberrypi systemd[1]: Started "wmbusmeters service".
      root@raspberrypi:~/wmbusmeters#
      
      
      M 1 Reply Last reply Reply Quote 0
      • M
        Michi_Pi @gerald123 last edited by

        @gerald123 das sieht ja schon mal gut aus.

        NanoCul wird auch angezeigt mit?

        $ ls -l /dev/serial/by-id
        
        G 1 Reply Last reply Reply Quote 0
        • G
          gerald123 @Michi_Pi last edited by

          @michi_pi sagte in Wasserzähler (Funk 868) auslesen.:

          ls -l /dev/serial/by-id

          root@raspberrypi:~/wmbusmeters# ls -l /dev/serial/by-id
          insgesamt 0
          lrwxrwxrwx 1 root root 13 Mai  7 18:31 usb-SHK_NANO_CUL_868-if00-port0 -> ../../ttyUSB0
          root@raspberrypi:~/wmbusmeters#
          
          
          M 1 Reply Last reply Reply Quote 0
          • M
            Michi_Pi @gerald123 last edited by

            @gerald123 das passt auch.
            Hast du dann wmbusmeters schon gestartert bevor du eine Suche nach den Zählern gestartet hast ?

            Mach mal folgendes

            $ sudo systemctl stop wmbusmeters
            $ wmbusmeters --listento=t1 /dev/ttyUSB0
            
            G 1 Reply Last reply Reply Quote 0
            • G
              gerald123 @Michi_Pi last edited by

              @michi_pi

              Ich habe es in verschiedenen Varianten schon mal versucht, aber habe nichts gefunden.

              root@raspberrypi:~/wmbusmeters# sudo systemctl stop wmbusmeters
              root@raspberrypi:~/wmbusmeters# wmbusmeters --listento=t1 /dev/ttyUSB0
              Wmbus devices found but no meters supplied. You must supply which link modes to listen to. Eg. auto:c1
              root@raspberrypi:~/wmbusmeters#
              
              
              M Thomas Braun 2 Replies Last reply Reply Quote 0
              • M
                Michi_Pi @gerald123 last edited by

                @gerald123 wmbusmeters darf bei der Suche nicht im Hintergrund laufen, so meine Erfahrung.

                Versuchs so nochmal

                sudo killall -HUP wmbusmetersd
                sudo killall -9 wmbusmeters
                

                eins ist für den daemon das andere für die manuellen start von wmbusmeters

                dann noch mal

                wmbusmeters --listento=t1 /dev/ttyUSB0
                
                G 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @gerald123 last edited by Thomas Braun

                  @gerald123 sagte in Wasserzähler (Funk 868) auslesen.:

                  root@raspberrypi
                  

                  Damit bist du auch komplett falsch unterwegs.

                  M 1 Reply Last reply Reply Quote 0
                  • G
                    gerald123 @Michi_Pi last edited by

                    @michi_pi sagte in Wasserzähler (Funk 868) auslesen.:

                    wmbusmeters --listento=t1 /dev/ttyUSB0

                    Da habe ich irgendwas ganz falsch gemacht oder?

                    root@raspberrypi:~/wmbusmeters# sudo killall -HUP wmbusmetersd
                    wmbusmetersd: Kein Prozess gefunden
                    root@raspberrypi:~/wmbusmeters# sudo killall -9 wmbusmeters
                    wmbusmeters: Kein Prozess gefunden
                    root@raspberrypi:~/wmbusmeters# wmbusmeters --listento=t1 /dev/ttyUSB0
                    Wmbus devices found but no meters supplied. You must supply which link modes to listen to. Eg. auto:c1
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • M
                      Michi_Pi @Thomas Braun last edited by

                      @thomas-braun sagte in Wasserzähler (Funk 868) auslesen.:

                      root@raspberrypi

                      @gerald123 stimmt, ist mir gar nicht aufgefallen, ist das gewollt?

                      Und welchen Wasserzähler willst du suchen, evtt. musst du von t1 auf c1 wechseln.

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        gerald123 @Michi_Pi last edited by

                        @michi_pi
                        Ist genau der wie in der Beschreibung von Peter Siebler ein "DIEHL Metering, Germany".
                        Das ich das unter Root installieren soll habe ich auch von ihm.

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

                          @gerald123 sagte in Wasserzähler (Funk 868) auslesen.:

                          Das ich das unter Root installieren soll habe ich auch von ihm.

                          Das würde ich offengesagt für Schwachsinn halten.

                          1 Reply Last reply Reply Quote 0
                          • hg6806
                            hg6806 Most Active last edited by hg6806

                            Hallo nochmal,

                            leider musste ich mein System neu aufsetzen und somit auch wmbusmeters.
                            Folgende Fehlermeldung bekomme ich:

                            pi@raspberrypi:~/wmbusmeters $ make
                            Building 1.3.0-23-g08b9153
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/aes.cc -c -E > build/aes.o.src
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/aes.cc -MMD -c -o build/aes.o
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/aescmac.cc -c -E > build/aescmac.o.src
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/aescmac.cc -MMD -c -o build/aescmac.o
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/bus.cc -c -E > build/bus.o.src
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/bus.cc -MMD -c -o build/bus.o
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/cmdline.cc -c -E > build/cmdline.o.src
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/cmdline.cc -MMD -c -o build/cmdline.o
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/config.cc -c -E > build/config.o.src
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/config.cc -MMD -c -o build/config.o
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/dvparser.cc -c -E > build/dvparser.o.src
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/dvparser.cc -MMD -c -o build/dvparser.o
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/mbus_rawtty.cc -c -E > build/mbus_rawtty.o.src
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/mbus_rawtty.cc -MMD -c -o build/mbus_rawtty.o
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meters.cc -c -E > build/meters.o.src
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meters.cc -MMD -c -o build/meters.o
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/manufacturer_specificities.cc -c -E > build/manufacturer_specificities.o.src
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/manufacturer_specificities.cc -MMD -c -o build/manufacturer_specificities.o
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/printer.cc -c -E > build/printer.o.src
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/printer.cc -MMD -c -o build/printer.o
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/rtlsdr.cc -c -E > build/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/rtlsdr.o] Fehler 1
                            pi@raspberrypi:~/wmbusmeters $ sudo make install
                            Building 1.3.0-23-g08b9153
                            g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/rtlsdr.cc -c -E > build/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/rtlsdr.o] Fehler 1
                            
                            

                            Kann jemand helfen?

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

                              @hg6806 sagte in Wasserzähler (Funk 868) auslesen.:

                              rtl-sdr.h

                              Da fehlt das Paket librtlsdr-dev.

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

                                @thomas-braun
                                Dachte ich mir schon, die Frage ist wie man das (nach-) installiert

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

                                  @hg6806
                                  Wie jedes andere Paket auch:

                                  sudo apt install librtlsdr-dev
                                  

                                  Kann aber gut sein, dass da noch weitere -dev Pakete fehlen.

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

                                    @thomas-braun sagte in Wasserzähler (Funk 868) auslesen.:

                                    sudo apt install librtlsdr-dev

                                    Danke, ja des fehlt auch:

                                    In file included from src/admin.cc:26:
                                    src/ui.h:22:9: fatal error: curses.h: Datei oder Verzeichnis nicht gefunden
                                     #include<curses.h>
                                             ^~~~~~~~~~
                                    compilation terminated.
                                    make: *** [Makefile:104: build/admin.o] Fehler 1
                                    
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @hg6806 last edited by

                                      @hg6806 sagte in Wasserzähler (Funk 868) auslesen.:

                                      curses.h

                                      sudo apt install libncurses-dev
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • hg6806
                                        hg6806 Most Active last edited by

                                        OK, habe soweit alles installieren können, jedoch bekomme ich schon wieder keine Daten und bin am Verzweifeln!

                                        Ich hatte mir die letzten Configs gespeichert, aber irgendwie will es nicht.

                                        Hier die Ausgaben:

                                        pi@raspberrypi:/etc/wmbusmeters.d $ ls -l /dev/serial/by-id
                                        insgesamt 0
                                        lrwxrwxrwx 1 root root 13 Jun 17 18:40 usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB2
                                        lrwxrwxrwx 1 root root 13 Jun 17 18:40 usb-SHA_CUL868-if00 -> ../../ttyACM0
                                        lrwxrwxrwx 1 root root 13 Jun 17 18:40 usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_01304FAA-if00-port0 -> ../../ttyUSB0
                                        lrwxrwxrwx 1 root root 13 Jun 17 18:40 usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_01304FAE-if00-port0 -> ../../ttyUSB1
                                        
                                        

                                        pi@raspberrypi:/etc/wmbusmeters.d $ sudo nano ./meinwasserzaehler

                                        name=meinwasserzaehler
                                        type=iperl:t1
                                        id=2xxxxxxx6
                                        key=2xxxxxxxxxxxxxxx2
                                        
                                        

                                        pi@raspberrypi:/etc/wmbusmeters.d $ sudo nano /etc/wmbusmeters.conf

                                        loglevel=normal
                                        device=auto:t1
                                        logtelegrams=true
                                        format=json
                                        logfile=/var/log/wmbusmeters/wmbusmeters.log
                                        shell=/usr/bin/mosquitto_pub -h 192.168.178.18 -p 1883 -u user -P password -t wmbusmeters/21200936/Gesamt -m "$METER_TOTAL_M3"
                                        shell=/usr/bin/mosquitto_pub -h 192.168.178.18 -p 1883 -u user -P password -t wmbusmeters/21200936/RSSI -m "$METER_RSSI_DBM"
                                        
                                        
                                        
                                        pi@raspberrypi:/etc/wmbusmeters.d $ wmbusmeters auto:t1
                                        No wmbus device detected, waiting for a device to be plugged in.
                                        Notice! Other wmbusmeters (pid 17064) is running and it might hog any wmbus devices.
                                        No meters configured. Printing id:s of all telegrams heard!
                                        ^Cpi@raspberrypi:/etc/wmbusmeters.d sudo killall -HUP wmbusmeters
                                        pi@raspberrypi:/etc/wmbusmeters.d $ sudo killall -HUP wmbusmetersd
                                        wmbusmetersd: Kein Prozess gefunden
                                        pi@raspberrypi:/etc/wmbusmeters.d $ sudo wmbusmeters auto:t1
                                        No wmbus device detected, waiting for a device to be plugged in.
                                        Notice! Other wmbusmeters (pid 17064) is running and it might hog any wmbus devices.
                                        No meters configured. Printing id:s of all telegrams heard!
                                        

                                        Hat das was damit zu tun, dass der CUL jetzt an ACM0 hängt?

                                        M 2 Replies Last reply Reply Quote 0
                                        • M
                                          Michi_Pi @hg6806 last edited by

                                          @hg6806 sagte in Wasserzähler (Funk 868) auslesen.:

                                          ttyACM0

                                          Hallo, nein hat es nicht, da du unter /etc/wmbusmeters.confbei device auto eingetragen hast, hier könnte man auch direkt den Pfad des Dongles eingeben.

                                          Da du ja bereits die Daten deines Zählers hast, kannst du dir die Suche mit dem Befehl wmbusmeters auto:t1 sparen.

                                          Es sollte eigentlich ausreichen den daemon zu starten. evtl. auch mal einen Neustart noch machen.

                                          sudo systemctl daemon-reload
                                          sudo systemctl start wmbusmeters
                                          sudo systemctl enable wmbusmeters
                                          

                                          Danach schau mal ob der Dienst auch läuft und warte ob über mqtt Daten ankommen.

                                          systemctl status wmbusmeters
                                          
                                          hg6806 1 Reply Last reply Reply Quote 0
                                          • hg6806
                                            hg6806 Most Active @Michi_Pi last edited by

                                            @michi_pi sagte in Wasserzähler (Funk 868) auslesen.:

                                            systemctl status wmbusmeters

                                            Ah, hier könnte der Fehler liegen:

                                            pi@raspberrypi:/etc/wmbusmeters.d $ systemctl status wmbusmeters
                                            ● wmbusmeters.service - "wmbusmeters service"
                                               Loaded: loaded (/lib/systemd/system/wmbusmeters.service; enabled; vendor preset: enabled)
                                               Active: active (running) since Fri 2021-06-18 12:40:57 CEST; 4min 8s ago
                                                 Docs: https://github.com/weetmuts/wmbusmeters
                                                       man:wmbusmeters(1)
                                             Main PID: 22708 (wmbusmetersd)
                                                Tasks: 4 (limit: 4915)
                                               CGroup: /system.slice/wmbusmeters.service
                                                       └─22708 /usr/sbin/wmbusmetersd /run/wmbusmeters/wmbusmeters.pid
                                            
                                            Jun 18 12:40:57 raspberrypi systemd[1]: Starting "wmbusmeters service"...
                                            Jun 18 12:40:57 raspberrypi wmbusmetersd[22707]: (wmbusmeters) started /run/wmbusmeters/wmbusmeters.pid
                                            Jun 18 12:40:57 raspberrypi systemd[1]: Started "wmbusmeters service".
                                            Jun 18 12:40:57 raspberrypi wmbusmetersd[22708]: Could not open file /etc/wmbusmeters.d/meinwasserzaehler.save errno=13
                                            Jun 18 12:40:57 raspberrypi wmbusmetersd[22708]: Not a valid meter id nor a valid meter match expression ""
                                            Jun 18 12:40:57 raspberrypi wmbusmetersd[22708]: Not a valid meter id nor a valid meter match expression ""
                                            pi@raspberrypi:/etc/wmbusmeters.d $
                                            
                                            ~
                                            

                                            Das kapiere ich nicht:

                                            Jun 18 12:40:57 raspberrypi wmbusmetersd[22708]: Could not open file /etc/wmbusmeters.d/meinwasserzaehler.save errno=13
                                            

                                            Woher kommt dieses xxx.save?

                                            Thomas Braun M 2 Replies 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

                                            820
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            868 diehl funk oms wasserzähler
                                            23
                                            220
                                            52686
                                            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