Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Tester
  4. [Aufruf] G-Homa Adapter testen

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    642

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    5.7k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

[Aufruf] G-Homa Adapter testen

Scheduled Pinned Locked Moved Tester
177 Posts 27 Posters 42.8k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    schittl
    wrote on last edited by
    #76

    @AlCalzone:

    • oldTime und oldVal speichern macht IMO keinen Sinn. `

    jo sorry war noch ein Überbleibsel
    @AlCalzone:

    • Statt lc (last change, bezieht sich auf noch älteren Wert) solltest du die ts-Eigenschaft (timestamp, bezieht sich auf Schreiben des Wertes) verwenden. `
      wurde geändert
      @AlCalzone:
    • change sollte "any" sein, dann wird auch bei gleichbleibender Leistung weitergerechnet. `
      wurde geändert

    Hier mal das neue Skript:

    var instanz = 'javascript.0' + '.'; 
    var pfad =     'Strom.';     
    
    var idGHomaPower1   = 'g-homa.0.XXXXXX.power',
        idGHomaEnergie1 = pfad + 'XXXXXX.ENERGY_COUNTER';
    
    createState(idGHomaEnergie1, 0, {name: 'Energie Counter XXXXXX', type: 'number', unit:'Wh'});
    
    on({id:idGHomaPower1, change:'any'}, function(obj) {
        var Verbrauch = getState(idGHomaEnergie1).val;
        Verbrauch += 0.5 * (obj.state.val + obj.oldState.val) * (obj.state.ts - obj.oldState.ts);
        setState(idGHomaEnergie1, Verbrauch);
    });
    
    

    Danke Dir. Der Verbrauch sind dann Wh oder?

    HW: Lenovo M920q (Proxmox, ioBroker, RaspMatic & Z2M), QNAP (Docker, Influx), Arduino Mega 2560 R3 (I2C DS18B20 + LED)

    SW: CT IoBroker, VM RaspMatic(v3.79.6.20241122)

    1 Reply Last reply
    0
    • AlCalzoneA Offline
      AlCalzoneA Offline
      AlCalzone
      Developer
      wrote on last edited by
      #77

      Fast… Watt*Millisekunden, da der Timestamp Millisekunden sind. Teile den Wert durch 3600000, dann bekommst du Wh.

      Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

      1 Reply Last reply
      0
      • S Offline
        S Offline
        schittl
        wrote on last edited by
        #78

        Funktioniert. Falls es auch jemand verwenden möchte, hier das endgültige Skript:

        ! ````
        var instanz = 'javascript.0.';
        var pfad = instanz + 'Strom.';
        ! var idGHomaPower1 = 'g-homa.0.XXXXXX.power',
        idGHomaEnergie1 = pfad + 'XXXXXX.ENERGY_COUNTER'';
        ! createState(idGHomaEnergie1, 0, {name: 'Energie Counter XXXXXX', type: 'number', unit:'Wh'});
        ! on({id:idGHomaPower1, change:'any'}, function(obj) {
        var Verbrauch = getState(idGHomaEnergie1).val;
        Verbrauch += (0.5 * (obj.state.val + obj.oldState.val) * (obj.state.ts - obj.oldState.ts)) / 3600000;
        setState(idGHomaEnergie1, Verbrauch);
        });

        
        Danke für die Unterstützung @AlCalzone…
        
        vg

        HW: Lenovo M920q (Proxmox, ioBroker, RaspMatic & Z2M), QNAP (Docker, Influx), Arduino Mega 2560 R3 (I2C DS18B20 + LED)

        SW: CT IoBroker, VM RaspMatic(v3.79.6.20241122)

        1 Reply Last reply
        0
        • S Offline
          S Offline
          schittl
          wrote on last edited by
          #79

          Ich habe für das Objekt Power die SQL-History aktiviert. Soweit so gut, nur der Log wird dadurch extrem belastet. Ich habe gelesen, dass die Ursache im Adapter liegen kann. Kannst Du bitte mal schauen/prüfen? viewtopic.php?t=8903

          Diese Meldungen für meine 4 Steckdosen mit Verbrauchsanzeige werden so alle paar Sekunden in die LOG geschrieben…

          sql.0	2018-06-16 21:58:34.589	info	enabled logging of g-homa.0.XXXXXX.power
          

          @AlCalzone

          Danke & vg

          Falk

          HW: Lenovo M920q (Proxmox, ioBroker, RaspMatic & Z2M), QNAP (Docker, Influx), Arduino Mega 2560 R3 (I2C DS18B20 + LED)

          SW: CT IoBroker, VM RaspMatic(v3.79.6.20241122)

          1 Reply Last reply
          0
          • AlCalzoneA Offline
            AlCalzoneA Offline
            AlCalzone
            Developer
            wrote on last edited by
            #80

            Schaue ich mir an, danke für den Report

            @schittl: Bitte mal von Github installieren, Instanz neu starten und testen, ob die Meldungen noch auftauchen.

            Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

            1 Reply Last reply
            0
            • S Offline
              S Offline
              schittl
              wrote on last edited by
              #81

              @AlCalzone:

              @schittl: Bitte mal von Github installieren, Instanz neu starten und testen, ob die Meldungen noch auftauchen. `
              Finde da nur Version 0.3.0, welche ich schon installiert habe oder wurde keine neue Version erstellt?

              HW: Lenovo M920q (Proxmox, ioBroker, RaspMatic & Z2M), QNAP (Docker, Influx), Arduino Mega 2560 R3 (I2C DS18B20 + LED)

              SW: CT IoBroker, VM RaspMatic(v3.79.6.20241122)

              1 Reply Last reply
              0
              • AlCalzoneA Offline
                AlCalzoneA Offline
                AlCalzone
                Developer
                wrote on last edited by
                #82

                Habe die Versionsnummer nicht erhöht, das mach ich dann beim Release auf npm wenn es funktioniert.

                Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  schittl
                  wrote on last edited by
                  #83

                  Ok probiere ich heute abend aus.

                  $ ./iobroker url "https://github.com/AlCalzone/ioBroker.g-homa/tarball/master" g-homa
                  

                  Über iobroker.pro bin ich mir nicht sicher ob er korrekt aktualisiert wird. Ich werde hier berichten.

                  HW: Lenovo M920q (Proxmox, ioBroker, RaspMatic & Z2M), QNAP (Docker, Influx), Arduino Mega 2560 R3 (I2C DS18B20 + LED)

                  SW: CT IoBroker, VM RaspMatic(v3.79.6.20241122)

                  1 Reply Last reply
                  0
                  • AlCalzoneA Offline
                    AlCalzoneA Offline
                    AlCalzone
                    Developer
                    wrote on last edited by
                    #84

                    Den Knopf in der Adapterliste kennst du? Führt zu Dialog mit Dropdown, wo du mit 1-2 Klicks g-homa von Github installieren kannst.

                    Oder meintest du das?

                    Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      schittl
                      wrote on last edited by
                      #85

                      Ja den kenne ich.
                      3116_github.jpg
                      Habe ich über iobroker ausgeführt wobei ich mir dabei nicht sicher bin, ob das zum Erfolg führte, da die Meldungen immer noch erscheinen. Ich teste das heute abend nochmal ;)

                      HW: Lenovo M920q (Proxmox, ioBroker, RaspMatic & Z2M), QNAP (Docker, Influx), Arduino Mega 2560 R3 (I2C DS18B20 + LED)

                      SW: CT IoBroker, VM RaspMatic(v3.79.6.20241122)

                      1 Reply Last reply
                      0
                      • AlCalzoneA Offline
                        AlCalzoneA Offline
                        AlCalzone
                        Developer
                        wrote on last edited by
                        #86

                        @schittl:

                        Habe ich über iobroker ausgeführt wobei ich mir dabei nicht sicher bin, ob das zum Erfolg führte, da die Meldungen immer noch erscheinen. Ich teste das heute abend nochmal ;) `
                        Upload und Instanzneustart nach der Installation gemacht? ;) Kann natürlich auch sein, dass ich noch was übersehen hab.

                        Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          schittl
                          wrote on last edited by
                          #87

                          @AlCalzone:

                          Upload und Instanzneustart nach der Installation gemacht? Kann natürlich auch sein, dass ich noch was übersehen hab. ` Sieht gut aus… Danke

                          HW: Lenovo M920q (Proxmox, ioBroker, RaspMatic & Z2M), QNAP (Docker, Influx), Arduino Mega 2560 R3 (I2C DS18B20 + LED)

                          SW: CT IoBroker, VM RaspMatic(v3.79.6.20241122)

                          1 Reply Last reply
                          0
                          • R Offline
                            R Offline
                            Rotzbubi
                            wrote on last edited by
                            #88

                            Hallo,

                            Habe mir gestern auch eine Homa-Dose mit Verbrauchsmessung zugelegt. Woher bekomme ich den aktuellen Verbrauch. Adapter funktioniert und Dose lässt sich über iobroker schalten. Nur der Datenpunkt für den Verbrauch wird nicht angezeigt. Bei meiner TP-Link habe ich ein ähnliches Problem. Da wird zwat der Datenpunkt angezeigt - ist aber immer 0.

                            Bin langsam am verzweifeln.

                            LG Rainer

                            1 Reply Last reply
                            0
                            • AlCalzoneA Offline
                              AlCalzoneA Offline
                              AlCalzone
                              Developer
                              wrote on last edited by
                              #89

                              @Rotzbubi:

                              Nur der Datenpunkt für den Verbrauch wird nicht angezeigt. `

                              Bitte mal den Adapter auf Loglevel "debug" stellen (Instanzen-Liste/Expertenmodus) und den Log des Adapters hier posten. Im Optimalfall hast du einen Verbraucher an der Dose hängen.

                              Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                              1 Reply Last reply
                              0
                              • R Offline
                                R Offline
                                Rotzbubi
                                wrote on last edited by
                                #90

                                Hallo AlCalzone,

                                mache ich heute Abend, wenn ich wieder daheim bin.

                                Liebe Grüße!

                                Rainer

                                1 Reply Last reply
                                0
                                • R Offline
                                  R Offline
                                  Rotzbubi
                                  wrote on last edited by
                                  #91

                                  Hallo AlCalzone,

                                  anbei die Logs. Vielleicht ist da ja etwas dabei.

                                  LG Rainer

                                  ! undefined2018-06-20 18:19:03.843 - info: host.raspberrypi object change system.adapter.g-homa.0
                                  ! 2018-06-20 18:19:03.850 - info: host.raspberrypi stopInstance system.adapter.g-homa.0
                                  ! 2018-06-20 18:19:03.851 - info: host.raspberrypi stopInstance system.adapter.g-homa.0 killing pid 6635
                                  ! 2018-06-20 18:19:03.873 - info: g-homa.0 terminating
                                  ! 2018-06-20 18:19:03.912 - info: host.raspberrypi instance system.adapter.g-homa.0 terminated with code 0 (OK)
                                  ! 2018-06-20 18:19:06.960 - info: host.raspberrypi object change system.adapter.g-homa.0
                                  ! 2018-06-20 18:19:06.992 - info: host.raspberrypi instance system.adapter.g-homa.0 started with pid 6691
                                  ! 2018-06-20 18:19:08.378 - debug: g-homa.0 objectDB connected
                                  ! 2018-06-20 18:19:08.450 - debug: g-homa.0 statesDB connected
                                  ! 2018-06-20 18:19:08.506 - info: g-homa.0 starting. Version 0.3.1 in /opt/iobroker/node_modules/iobroker.g-homa, node: v6.14.2
                                  ! 2018-06-20 18:19:08.577 - info: g-homa.0 enumerating known plugs…
                                  ! 2018-06-20 18:19:08.647 - info: g-homa.0 found plug with id 4fb956 (online)
                                  ! 2018-06-20 18:19:08.649 - info: g-homa.0 starting server...
                                  ! 2018-06-20 18:19:08.672 - info: g-homa.0 server started on port 50000
                                  ! 2018-06-20 18:19:08.683 - info: g-homa.0 searching plugs
                                  ! 2018-06-20 18:19:43.100 - info: host.raspberrypi object change system.adapter.g-homa.0
                                  ! 2018-06-20 18:19:43.102 - info: host.raspberrypi stopInstance system.adapter.g-homa.0
                                  ! 2018-06-20 18:19:43.103 - info: host.raspberrypi stopInstance system.adapter.g-homa.0 killing pid 6691
                                  ! 2018-06-20 18:19:43.124 - info: g-homa.0 terminating
                                  ! 2018-06-20 18:19:43.171 - info: host.raspberrypi instance system.adapter.g-homa.0 terminated with code 0 (OK)
                                  ! 2018-06-20 18:19:45.642 - info: host.raspberrypi instance system.adapter.g-homa.0 started with pid 6718
                                  ! 2018-06-20 18:19:46.968 - debug: g-homa.0 objectDB connected
                                  ! 2018-06-20 18:19:47.032 - debug: g-homa.0 statesDB connected
                                  ! 2018-06-20 18:19:47.150 - info: g-homa.0 starting. Version 0.3.1 in /opt/iobroker/node_modules/iobroker.g-homa, node: v6.14.2
                                  ! 2018-06-20 18:19:47.255 - info: g-homa.0 enumerating known plugs...
                                  ! 2018-06-20 18:19:47.336 - info: g-homa.0 found plug with id 4fb956 (online)
                                  ! 2018-06-20 18:19:47.338 - info: g-homa.0 starting server...
                                  ! 2018-06-20 18:19:47.360 - info: g-homa.0 server started on port 50000
                                  ! 2018-06-20 18:19:47.372 - info: g-homa.0 searching plugs

                                  1 Reply Last reply
                                  0
                                  • AlCalzoneA Offline
                                    AlCalzoneA Offline
                                    AlCalzone
                                    Developer
                                    wrote on last edited by
                                    #92

                                    Hmm ich dachte, ich hätte mehr Logs eingebaut. Da muss ich nochmal ran. Melde mich, wenn du nochmal testen darfst.

                                    Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                                    1 Reply Last reply
                                    0
                                    • AlCalzoneA Offline
                                      AlCalzoneA Offline
                                      AlCalzone
                                      Developer
                                      wrote on last edited by
                                      #93

                                      @Rotzbubi:

                                      anbei die Logs. Vielleicht ist da ja etwas dabei. `

                                      Kannst du bitte die Version von Github installieren und mir damit nochmal einen Logauszug erstellen?

                                      Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                                      1 Reply Last reply
                                      0
                                      • R Offline
                                        R Offline
                                        Rotzbubi
                                        wrote on last edited by
                                        #94

                                        Guten Abend!

                                        Habe jetzt die Objekte gelöscht und den Adapter gelöscht. Die erneute Instalation über GitHub wird zwar bei meinen Adaptern angezeigt, taucht jedoch nicht mehr bei den Instanzen und Objekten auf…

                                        Jemand einen Tipp?

                                        LG Rainer

                                        1 Reply Last reply
                                        0
                                        • DutchmanD Offline
                                          DutchmanD Offline
                                          Dutchman
                                          Developer Most Active Administrators
                                          wrote on last edited by
                                          #95

                                          Bei Installationen per github danach manuell die Instanz erstellen (bzw updaten).

                                          ( + Zeichen )

                                          Sent from my iPhone using Tapatalk

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          226

                                          Online

                                          32.7k

                                          Users

                                          82.6k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe