Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter sma-em v1.2.x Latest

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test Adapter sma-em v1.2.x Latest

    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pi_noob15 @Matze1909 last edited by

      @matze1909
      ich habe im Modbus Adapter der die Werte von den Wechselrichter abholt die Abfragezeit von 5s auf 1s geändert. Jetzt sieht das ganze schon besser aus 👍

      1 Reply Last reply Reply Quote 0
      • Z
        Zimbl @Thomas Braun last edited by

        @thomas-braun said in Test Adapter sma-em v0.6.x Latest:

        sudo netstat -tulpen

        udp        0      0 0.0.0.0:9522            0.0.0.0:*                           1001       1112111    93591/node-red
        
        

        ich habe wirklich etwas gefunden, obwohl der Adapter de-installiert ist....wie bekomme ich das nun weg?

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

          @zimbl

          Da lauscht nicht der sma-em-Adapter sondern node-red.

          Z 2 Replies Last reply Reply Quote 0
          • Z
            Zimbl @Thomas Braun last edited by

            @thomas-braun

            ja ich habe jetzt node-red auch mal de-installiert....verstehe nur noch nicht so richtig, wieso das so ist

            1 Reply Last reply Reply Quote 0
            • Z
              Zimbl @Thomas Braun last edited by

              @thomas-braun

              diesen Befehl werde ich mir mal merken.
              Jetzt geht auch der Adapter....

              Vielen Dank Thomas...

              Wollte schon den Pi wieder Platt machen...

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

                @zimbl

                Auf einem Port kann nur immer ein Dienst laufen.
                Wenn es da Doppelbelegungen gibt muss einer der beiden umziehen.

                Z 1 Reply Last reply Reply Quote 0
                • Z
                  Zimbl @Thomas Braun last edited by

                  @thomas-braun

                  ja keine Ahnung....warum der auf den Port zugegriffen hat...habe das jetzt gelöscht...
                  jetzt funktioniert der Adapter wieder...

                  Vielen Dank nochmal

                  1 Reply Last reply Reply Quote 0
                  • H
                    HEINDUSA last edited by

                    Hallo zusammen,

                    ich bin leider völlig neu auf dem Pi und versuche iobroker mit dem SMA-EM zum laufen zu bekommen.

                    Bekomme immer wieder folgende meldungen:
                    78224076-25fe-41f1-9755-345497b29fa6-image.png

                    Zufällig jemand eine Idee was ich tun muss?

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

                      @heindusa

                      Log file als Text in CodeTags Posten, nicht als Screenshot.
                      Dann die empfohlene NodeJS Version 14 einsetzen. Wie kommt man 'ganz neu' an die 12?

                      1 Reply Last reply Reply Quote 0
                      • H
                        HEINDUSA last edited by

                        Sehr gute Frage...
                        Ich werde es versuchen...

                        Vielen Dank!

                        1 Reply Last reply Reply Quote 0
                        • P
                          pdbjjens @HEINDUSA last edited by pdbjjens

                          @heindusa said in Test Adapter sma-em v0.6.x Latest:

                          Zufällig jemand eine Idee was ich tun muss?

                          Bitte auf der Konfigurationsseite der Instanz die Multicastadresse und Port (239.12.255.254:9522) NICHT ändern. Also die Instanz sma-em.0 löschen und neue Instanz sma-em.0 generieren mit den Standardeinstellungen der Konfigurationsseite. Sma-em läuft mit NodeJS 12. Daher wäre dafür kein Upgrade nötig.

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

                            @pdbjjens

                            Node.js 12.22.5	Erbium	2021-08-11
                            

                            Das ist auch im 12er-Zweig nicht aktuell. Da ist also bei nodeJS irgendwas 'krumm' und/oder total veraltet. Das sollte auf stabile Füße gestellt werden.

                            @HEINDUSA
                            Aus der README des Adapters:

                            Multicast IP: The default setting is 239.12.255.254.

                            Multicast Port: The default setting for the UDP port is 9522. (Both should not be changed, as SMA devices always use this IP address and port)

                            Und ohne Not würde ich auch keine Version aus dem git fischen. Der Adapter ist im Beta-Bereich vorhanden:

                            sma-em
                            github:	0.6.5
                            latest:	0.6.5 for 96 days
                            stable:	-.-.-
                            
                            1 Reply Last reply Reply Quote 0
                            • H
                              HEINDUSA last edited by

                              Danke!
                              Lag wirklich daran das ist automatisch davon ausgegangen bin, meine IP muss rein!

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

                                @heindusa

                                Hast du denn dein System jetzt auch auf Stand?

                                Was sagt

                                sudo ln -s /usr/bin/node /usr/bin/nodejs
                                uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                
                                1 Reply Last reply Reply Quote 0
                                • Philipp Dorn
                                  Philipp Dorn @lessthanmore last edited by Philipp Dorn

                                  Hallo liebe Community,

                                  folgendes: Wir haben seit gestern eine Anlage mit SHM 2. Direkt mal den Adapter von Github installiert und siehe da, er funktioniert, findet aber keine Verbindung mit dem Gerät 😄

                                  Da ich finde, dass die Doku sehr dezent gehalten ist über den Adapter, hier mal meine Frage:

                                  Mein iobroker läuft in zwei Netzten, Haushalt 1 mit Netz 1 über ETH0 und Haushalt 2 mit Netz 2 über wlan0. Der SHM läuft in Netz 2 im Haushalt 2. Erreichen kann ich dort alle Geräte per Ping, aber er sagt mir halt, dass er keine Verbindung per MC zu dem SHM hat. Jemand eine Idee? Gibts es eine Möglichkeit per CLI den MC zu joinen und zu testen, ob er überhaupt ankommt?

                                  Danke euch und LG,
                                  Philipp

                                  //------------\

                                  Plattform: linux
                                  Betriebssystem: linux
                                  Architektur: arm
                                  CPUs: 4
                                  Geschwindigkeit: 1200 MHz
                                  Modell: ARMv7 Processor rev 4 (v7l)
                                  RAM: 972.7 MB
                                  System-Betriebszeit: 07:18:37
                                  Node.js: v14.19.0
                                  time: 1654244335118
                                  timeOffset: -60
                                  Adapter-Anzahl: 415
                                  NPM: 6.14.16
                                  Datenträgergröße: 117.0 GB
                                  freier Festplattenspeicher: 104.1 GB
                                  Betriebszeit: 07:18:25
                                  Aktive Instanzen: 20
                                  Pfad: /opt/iobroker/
                                  

                                  EDIT:

                                  Habe mal Wireshark laufen lassen und finde auch über den Raspi den SHM mit der Adresse .5. Pingen geht auch, somit scheint das Ding ja vorhanden zu sein. Muss ich ggf. irgendetwas in der App einstellen, damit er per MC auch Pakete sendet?

                                  EDIT2:

                                  Selbstverständlich auch schon per

                                  pi@homeserver:~ $ sudo netstat -tulpen
                                  

                                  überprüft, ob was horcht, aber hier horcht nur der EM Adapter:

                                  Active Internet connections (only servers)
                                  Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
                                  tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      1001       18851      590/iobroker.js-con
                                  tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      1001       18844      590/iobroker.js-con
                                  tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          17505      597/sshd
                                  tcp        0      0 0.0.0.0:631             0.0.0.0:*               LISTEN      0          50292      9322/cupsd
                                  tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      1001       17773      767/io.mqtt.0
                                  tcp        0      0 0.0.0.0:1884            0.0.0.0:*               LISTEN      1001       17774      767/io.mqtt.0
                                  tcp6       0      0 :::3500                 :::*                    LISTEN      1001       19531      913/io.sonos.0
                                  tcp6       0      0 :::8081                 :::*                    LISTEN      1001       17637      688/io.admin.0
                                  tcp6       0      0 :::8082                 :::*                    LISTEN      1001       19737      998/io.web.0
                                  tcp6       0      0 :::22                   :::*                    LISTEN      0          17507      597/sshd
                                  tcp6       0      0 :::631                  :::*                    LISTEN      0          50293      9322/cupsd
                                  tcp6       0      0 :::8087                 :::*                    LISTEN      1001       17916      898/io.simple-api.0
                                  udp        0      0 0.0.0.0:54335           0.0.0.0:*                           108        16533      343/avahi-daemon: r
                                  udp        0      0 0.0.0.0:68              0.0.0.0:*                           0          14279      586/dhcpcd
                                  udp        0      0 0.0.0.0:631             0.0.0.0:*                           0          50296      9323/cups-browsed
                                  udp        0      0 0.0.0.0:5353            0.0.0.0:*                           108        16531      343/avahi-daemon: r
                                  udp        0      0 0.0.0.0:9522            0.0.0.0:*                           1001       108411     6832/io.sma-em.0
                                  udp6       0      0 :::546                  :::*                                0          16683      586/dhcpcd
                                  udp6       0      0 :::5353                 :::*                                108        16532      343/avahi-daemon: r
                                  udp6       0      0 :::49532                :::*                                108        16534      343/avahi-daemon: r
                                  
                                  

                                  EDIT3:

                                  Fehler gefunden:

                                  Listen via UDP on Device eth0 with IP 192.168.0.196 on Port 9522 for Multicast IP 239.12.255.254
                                  

                                  Irgend eine Lösung, wie ich auf den wlan0 umstellen kann?

                                  P 1 Reply Last reply Reply Quote 0
                                  • P
                                    pdbjjens @Philipp Dorn last edited by

                                    @philipp-dorn
                                    Der sma-em horcht automatisch auf Multicasts auf sämtlichen verfügbaren externen IPv4 Interfaces. Es sollte also im iobroker log auch eine Meldung kommen:

                                    Listen via UDP on Device wlan0 with IP 192.168.0.xxx on Port 9522 for Multicast IP 239.12.255.254
                                    

                                    Wenn das nicht der Fall ist, muss mit Deinem wlan0 interface irgendwas nicht stimmen.
                                    Was sagt ifconfig -a
                                    Gibt es noch andere Fehlermeldungen im log?

                                    1 Reply Last reply Reply Quote 0
                                    • Fenriswolf
                                      Fenriswolf last edited by

                                      Guten Morgen,

                                      ich stehe anscheinend mächtig auf den Schlauch oder sehe einfach die Zusammenhänge nicht.
                                      Ich habe den aktuellen Adapter sma-en von Github in der Version 0.6.5 installiert und bekomme auch jede Menge Werte angezeigt. Allerdings verstehe ich momentan noch nicht, welcher Wert denen in der SMA-Website Anzeige entspricht.
                                      Ich denke, ich habe verstanden, das ich teilweise bestimmte Werte addieren muss, aber wie ich auf welchen Wert komme, verstehe ich noch nicht.
                                      Details für L1, L2 und L3 sind aktiv.
                                      Bildschirmfoto 2022-06-23 um 09.20.10.png

                                      Bildschirmfoto 2022-06-23 um 09.18.39.png

                                      Bildschirmfoto 2022-06-23 um 09.21.21.png

                                      Kann mir bitte jemand sagen, wie ich welchen Wert berechnen muss ??

                                      bis denne
                                      Marc

                                      Axel Koeneke P 2 Replies Last reply Reply Quote 0
                                      • Axel Koeneke
                                        Axel Koeneke @Fenriswolf last edited by

                                        @fenriswolf
                                        98e09dd2-e5fa-400a-9473-5cc0afe6fd03-image.png
                                        Das sind die Wert die ich benutze. Die Counter kannst du dann mit dem Sourceanalytix-Adapter verarbeiten.
                                        Hier ein Beispiel für die Einspeisung:
                                        d6086cc9-057f-4e9e-8af6-dc675afd60d3-image.png
                                        VG
                                        Axel

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          pdbjjens @Fenriswolf last edited by

                                          @fenriswolf
                                          Schau mal weiter oben: https://forum.iobroker.net/topic/43011/test-adapter-sma-em-v0-6-x-latest/139#.
                                          Zusätzlich zu den Daten des sma-em werden Werte aus den PV-Wechselrichtern bzw. falls vorhanden dem Batterie Wechselrichter benötigt. Diese Daten sind über den modbus-Adapter zu bekommen.

                                          1 Reply Last reply Reply Quote 1
                                          • K
                                            kevinaus last edited by kevinaus

                                            Hallo zusammen,

                                            kann mir jemand bei der Installation helfen. Ich bekomme immer diesen Fehler. Egal ob ich von GitHub oder NPM installiere.

                                            
                                            install iobroker-community-adapters/ioBroker.sma-em
                                            
                                            NPM version: 8.11.0
                                            
                                            Installing iobroker-community-adapters/ioBroker.sma-em... (System call)
                                            
                                            npm WARN old lockfile
                                            
                                            npm WARN old lockfile The package-lock.json file was created with an old version of npm,npm WARN old lockfile so supplemental metadata must be fetched from the registry.npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient...npm WARN old lockfile
                                            
                                            npm ERR! code ENOENT
                                            
                                            npm ERR! syscall spawn gitnpm ERR! path git
                                            
                                            npm ERR! errno -2
                                            
                                            npm ERR! enoent An unknown git error occurrednpm ERR! enoent This is related to npm not being able to find a file.npm ERR! enoent
                                            
                                            npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2022-07-06T12_13_57_764Z-debug-0.log
                                            
                                            host.iobroker1 Cannot install iobroker-community-adapters/ioBroker.sma-em: 254
                                            
                                            ERROR: Process exited with code 25
                                            
                                            

                                            D3ebug Log

                                            1 info using npm@8.11.0
                                            2 info using node@v16.15.1
                                            3 timing npm:load:whichnode Completed in 2ms
                                            4 timing config:load:defaults Completed in 8ms
                                            5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 51ms
                                            6 timing config:load:builtin Completed in 52ms
                                            7 timing config:load:cli Completed in 8ms
                                            8 timing config:load:env Completed in 1ms
                                            9 timing config:load:file:/opt/iobroker/.npmrc Completed in 22ms
                                            10 timing config:load:project Completed in 68ms
                                            11 timing config:load:file:/home/iobroker/.npmrc Completed in 1ms
                                            12 timing config:load:user Completed in 2ms
                                            13 timing config:load:file:/usr/etc/npmrc Completed in 0ms
                                            14 timing config:load:global Completed in 1ms
                                            15 timing config:load:validate Completed in 2ms
                                            16 timing config:load:credentials Completed in 3ms
                                            17 timing config:load:setEnvs Completed in 4ms
                                            18 timing config:load Completed in 155ms
                                            19 timing npm:load:configload Completed in 155ms
                                            20 timing npm:load:mkdirpcache Completed in 4ms
                                            21 timing npm:load:mkdirplogs Completed in 2ms
                                            22 verbose title npm install iobroker-community-adapters/ioBroker.sma-em
                                            23 verbose argv "install" "iobroker-community-adapters/ioBroker.sma-em"
                                            24 timing npm:load:setTitle Completed in 4ms
                                            25 timing config:load:flatten Completed in 12ms
                                            26 timing npm:load:display Completed in 17ms
                                            27 verbose logfile logs-max:10 dir:/home/iobroker/.npm/_logs
                                            28 verbose logfile /home/iobroker/.npm/_logs/2022-07-06T12_13_57_764Z-debug-0.log
                                            29 timing npm:load:logFile Completed in 20ms
                                            30 timing npm:load:timers Completed in 0ms
                                            31 timing npm:load:configScope Completed in 0ms
                                            32 timing npm:load Completed in 209ms
                                            33 timing arborist:ctor Completed in 3ms
                                            34 silly logfile done cleaning log files
                                            35 timing idealTree:init Completed in 2836ms
                                            36 warn old lockfile
                                            36 warn old lockfile The package-lock.json file was created with an old version of npm,
                                            36 warn old lockfile so supplemental metadata must be fetched from the registry.
                                            36 warn old lockfile
                                            36 warn old lockfile This is a one-time fix-up, please be patient...
                                            36 warn old lockfile
                                            37 silly inflate node_modules/@alcalzone/esbuild-register
                                            38 silly inflate node_modules/@alcalzone/jsonl-db
                                            39 silly inflate node_modules/@alcalzone/pak
                                            40 silly inflate node_modules/@alcalzone/pak/node_modules/axios
                                            41 http fetch GET 200 https://registry.npmjs.org/@alcalzone%2fesbuild-register 2877ms (cache hit)
                                            42 silly inflate node_modules/@alcalzone/pak/node_modules/fs-extra
                                            43 http fetch GET 200 https://registry.npmjs.org/@alcalzone%2fjsonl-db 2891ms (cache hit)
                                            44 silly inflate node_modules/@colors/colors
                                            45 http fetch GET 200 https://registry.npmjs.org/@alcalzone%2fpak 2901ms (cache hit)
                                            46 silly inflate node_modules/@dabh/diagnostics
                                            47 http fetch GET 200 https://registry.npmjs.org/axios 2911ms (cache hit)
                                            48 silly inflate node_modules/@datalust/winston-seq
                                            49 http fetch GET 200 https://registry.npmjs.org/@datalust%2fwinston-seq 102ms (cache hit)
                                            50 silly inflate node_modules/@googleapis/drive
                                            51 http fetch GET 200 https://registry.npmjs.org/fs-extra 155ms (cache hit)
                                            52 silly inflate node_modules/@greenlock/manager
                                            53 http fetch GET 200 https://registry.npmjs.org/@dabh%2fdiagnostics 142ms (cache hit)
                                            54 silly inflate node_modules/@iobroker/adapter-core
                                            55 http fetch GET 200 https://registry.npmjs.org/@colors%2fcolors 162ms (cache hit)
                                            56 silly inflate node_modules/@iobroker/db-base
                                            57 http fetch GET 200 https://registry.npmjs.org/@iobroker%2fadapter-core 102ms (cache hit)
                                            58 silly inflate node_modules/@iobroker/db-objects-file
                                            59 http fetch GET 200 https://registry.npmjs.org/@iobroker%2fdb-base 124ms (cache hit)
                                            60 silly inflate node_modules/@iobroker/db-objects-jsonl
                                            61 http fetch GET 200 https://registry.npmjs.org/@googleapis%2fdrive 202ms (cache hit)
                                            62 silly inflate node_modules/@iobroker/db-objects-redis
                                            63 http fetch GET 200 https://registry.npmjs.org/@greenlock%2fmanager 200ms (cache hit)
                                            64 silly inflate node_modules/@iobroker/db-states-file
                                            65 http fetch GET 200 https://registry.npmjs.org/@iobroker%2fdb-objects-jsonl 135ms (cache hit)
                                            66 silly inflate node_modules/@iobroker/db-states-jsonl
                                            67 http fetch GET 200 https://registry.npmjs.org/@iobroker%2fdb-objects-file 182ms (cache hit)
                                            68 silly inflate node_modules/@iobroker/db-states-redis
                                            69 http fetch GET 200 https://registry.npmjs.org/@iobroker%2fdb-states-file 137ms (cache hit)
                                            70 silly inflate node_modules/@iobroker/js-controller-adapter
                                            71 http fetch GET 200 https://registry.npmjs.org/@iobroker%2fdb-objects-redis 167ms (cache hit)
                                            72 silly inflate node_modules/@iobroker/js-controller-cli
                                            73 http fetch GET 200 https://registry.npmjs.org/@iobroker%2fjs-controller-cli 66ms (cache hit)
                                            74 silly inflate node_modules/@iobroker/js-controller-cli/node_modules/debug
                                            75 http fetch GET 200 https://registry.npmjs.org/@iobroker%2fjs-controller-adapter 111ms (cache hit)
                                            76 silly inflate node_modules/@iobroker/js-controller-cli/node_modules/ms
                                            77 http fetch GET 200 https://registry.npmjs.org/@iobroker%2fdb-states-jsonl 194ms (cache hit)
                                            78 silly inflate node_modules/@iobroker/js-controller-common
                                            79 http fetch GET 200 https://registry.npmjs.org/@iobroker%2fdb-states-redis 191ms (cache hit)
                                            "/home/iobroker/.npm/_logs/2022-07-06T12_13_57_764Z-debug-0.log" [readonly] 1022 lines, 62977 bytes
                                            991 timing idealTree:inflate Completed in 20605ms
                                            992 timing idealTree Completed in 23535ms
                                            993 timing command:install Completed in 23560ms
                                            994 verbose stack Error: An unknown git error occurred
                                            994 verbose stack     at makeError (/usr/lib/node_modules/npm/node_modules/@npmcli/git/lib/make-error.js:28:13)
                                            994 verbose stack     at /usr/lib/node_modules/npm/node_modules/@npmcli/git/lib/spawn.js:37:26
                                            994 verbose stack     at processTicksAndRejections (node:internal/process/task_queues:96:5)
                                            995 verbose cwd /opt/iobroker
                                            996 verbose Linux 5.10.0-15-amd64
                                            997 verbose node v16.15.1
                                            998 verbose npm  v8.11.0
                                            999 error code ENOENT
                                            1000 error syscall spawn git
                                            1001 error path git
                                            1002 error errno -2
                                            1003 error enoent An unknown git error occurred
                                            1004 error enoent This is related to npm not being able to find a file.
                                            1004 error enoent
                                            1005 verbose exit -2
                                            1006 timing npm Completed in 24194ms
                                            1007 verbose unfinished npm timer reify 1657109638387
                                            1008 verbose unfinished npm timer reify:loadTrees 1657109638399
                                            1009 verbose unfinished npm timer idealTree:userRequests 1657109661844
                                            1010 verbose code -2
                                            1011 error A complete log of this run can be found in:
                                            
                                            
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            529
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            47
                                            378
                                            80845
                                            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