Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Smart Meter von Netz Oö (Energie AG)

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Smart Meter von Netz Oö (Energie AG)

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

      @alealdata sagte in Smart Meter von Netz Oö (Energie AG):

      installation von aes-js klappt in NodeRed standalone
      installation von aes-js klappt in der Konsole auf dem System mit IOBroker leider nicht

      Klappt nicht ist keine Fehlerbeschreibung. Höchstens für Toilettendeckel, aber nicht für Programme.

      Homoran 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Thomas Braun last edited by

        @thomas-braun sagte in Smart Meter von Netz Oö (Energie AG):

        Höchstens für Toilettendeckel,

        und für Katzenklappen 🐈

        alealdata 1 Reply Last reply Reply Quote 1
        • alealdata
          alealdata @Homoran last edited by alealdata

          @homoran wenn ich das richtig verstanden hab wären das die 2 Vorschläge gewesen:
          8c916eb6-5a89-42dd-9a5a-604a1776632b-image.png

          Log:
          0 info it worked if it ends with ok
          1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install', 'aes-js' ]
          2 info using npm@6.14.11
          3 info using node@v14.16.0
          4 verbose npm-session 05b2deaf49d7ee14
          5 silly install loadCurrentTree
          6 silly install readLocalPackageData
          7 silly fetchPackageMetaData error for aes-js@file:node_modules/aes-js ELOOP: too many symbolic links encountered, open '/opt/iobroker/node_modules/aes-js/package.json'
          8 timing stage:rollbackFailedOptional Completed in 1ms
          9 timing stage:runTopLevelLifecycles Completed in 12179ms
          10 verbose stack Error: ELOOP: too many symbolic links encountered, open '/opt/iobroker/node_modules/aes-js/package.json'
          11 verbose cwd /opt/iobroker
          12 verbose Linux 5.10.11-v7l+
          13 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "aes-js"
          14 verbose node v14.16.0
          15 verbose npm v6.14.11
          16 error code ELOOP
          17 error syscall open
          18 error path /opt/iobroker/node_modules/aes-js/package.json
          19 error errno -40
          20 error ELOOP: too many symbolic links encountered, open '/opt/iobroker/node_modules/aes-js/package.json'
          21 verbose exit [ -40, true ]

          @Manuel001 hat es bei dir geklappt?

          Homoran Thomas Braun M 3 Replies Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @alealdata last edited by

            @alealdata sagte in Smart Meter von Netz Oö (Energie AG):

            wenn ich das richtig verstanden hab wären das die 2 Vorschläge gewesen:

            ich habe weder die Anleitung gelesen, noch erweiterte Ahnung von node-red.

            Ich weiß daher überhaupt nicht, ob und wie dieses Paket überhaupt installiert werden müsste um das zu tun, was ihr erwartet

            alealdata 1 Reply Last reply Reply Quote 0
            • alealdata
              alealdata @Homoran last edited by

              @homoran ja ohne den läuft leider der ganze Flow nicht
              Trotzdem danke für die Hilfe und ich suche noch weiter.

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

                @alealdata

                Dein nodeJS ist falsch installiert.

                Bitte Konsolentext und sonstige Textausgaben nicht als Screenshot sondern als Text in CodeTags.

                Wobei ich wie Homoran ebenso wenig weiß wo das Modul jetzt genau platziert werden soll. In ioBroker?

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

                  @thomas-braun ok danke für die Info das schau ich mir an!

                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • M
                    Manuel001 @alealdata last edited by Manuel001

                    @alealdata
                    Ich habe es jetzt probiert:

                    pi@iobroker:~ $ cd /opt/iobroker/
                    pi@iobroker:/opt/iobroker $ install aes-js
                    install: Fehlender Zieldatei‐Operand hinter 'aes-js'
                    „install --help“ liefert weitere Informationen.
                    pi@iobroker:/opt/iobroker $ npm install aes-js
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
                    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.7 (node_modules/osx-temperature-sensor):
                    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                    
                    + aes-js@3.1.2
                    added 1 package from 1 contributor in 57.381s
                    
                    33 packages are looking for funding
                      run `npm fund` for details
                    
                    
                    
                       ╭────────────────────────────────────────────────────────────────╮
                       │                                                                │
                       │      New major version of npm available! 6.14.11 → 7.14.0      │
                       │   Changelog: https://github.com/npm/cli/releases/tag/v7.14.0   │
                       │               Run npm install -g npm to update!                │
                       │                                                                │
                       ╰────────────────────────────────────────────────────────────────╯
                    
                    pi@iobroker:/opt/iobroker $
                    
                    

                    Das hat funktioniert, oder?
                    Der nächste Schritt wäre dann das setting.js editieren:
                    6.jpg
                    Aber welche Datei ist die Richtige?:

                    pi@iobroker:/opt/iobroker $ find -iname settings.js
                    ./iobroker-data/node-red/settings.js
                    ./node_modules/iobroker.node-red/settings.js
                    ./node_modules/node-red/settings.js
                    ./node_modules/@node-red/runtime/lib/settings.js
                    ./node_modules/@node-red/runtime/lib/storage/localfilesystem/settings.js
                    ./node_modules/@node-red/runtime/lib/api/settings.js
                    ./node_modules/@node-red/editor-api/lib/editor/settings.js
                    ./node_modules/@node-red/editor-api/lib/admin/settings.js
                    
                    alealdata 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @alealdata last edited by

                      @alealdata Schau in meiner Signatur, da wird's erklärt.

                      1 Reply Last reply Reply Quote 0
                      • alealdata
                        alealdata @Manuel001 last edited by alealdata

                        @manuel001 würde es mit der ./node_modules/iobroker.node-red/settings.js versuchen
                        bei mir hat sich Hoobs Node.js v14.16.0 eingerichtet und läuft auch ohne Mängel und möchte da auch ungern etwas ändern - nur zum Testen

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

                          @alealdata Was auch immer Hoobs ist...

                          Homoran 1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @Thomas Braun last edited by Homoran

                            @thomas-braun sagte in Smart Meter von Netz Oö (Energie AG):

                            @alealdata Was auch immer Hoobs ist...

                            Hab ich mich auch gefragt!

                            HOOBS - a stack that simplifies your smart home.

                            google Ergebnis

                            oder:
                            https://github.com/hoobs-org

                            alealdata 1 Reply Last reply Reply Quote 0
                            • alealdata
                              alealdata @Homoran last edited by alealdata

                              @homoran ähnlich der Homebridge mit einem eigenen Image das etwas leichter einzurichten ist für Siri bzw. Alexa.
                              Liegt es aus eurer Sicht an der Node.js 14.16. da ja die Empfohlene Version v12.22.1 wäre?

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

                                @alealdata Nein, aber an der 'krummen' Installation in /usr/local/bin könnte es liegen. Jedenfalls die Loop-Meldungen lassen darauf schließen. Vermutlich sind da zwei nodeJS-Instanzen auf dem System, eine von Hoobs per Image und die zweite per ioBroker-Installer installiert.
                                Vermute ich jedenfalls ganz stark.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  Manuel001 @alealdata last edited by

                                  @alealdata

                                  Da gibt es aber functionGlobalContext nicht:

                                  // The `https` setting requires the `fs` module. Uncomment the following
                                  // to make it available:
                                  //var fs = require("fs");
                                  
                                  module.exports = {
                                      // the tcp port that the Node-RED web server is listening on
                                      uiPort: '%%port%%',
                                      uiHost: '%%bind%%',
                                  
                                      // By default, the Node-RED UI accepts connections on all IPv4 interfaces.
                                      // The following property can be used to listen on a specific interface. For
                                      // example, the following would only allow connections from the local machine.
                                      //uiHost: "127.0.0.1",
                                      iobrokerInstance: '%%instance%%',
                                      iobrokerConfig: '%%config%%',
                                      allowCreationOfForeignObjects: '%%allowCreationOfForeignObjects%%',
                                  
                                      // Retry time in milliseconds for MQTT connections
                                      mqttReconnectTime: 15000,
                                  
                                      // Retry time in milliseconds for Serial port connections
                                      serialReconnectTime: 15000,
                                  
                                  

                                  Sonst noch eine Idee?

                                  alealdata 1 Reply Last reply Reply Quote 0
                                  • alealdata
                                    alealdata @Manuel001 last edited by alealdata

                                    @manuel001 also hab auch gesucht und bei mir liegt die Datei hier: /opt/ioBroker/node_modules/iobroker.node-red/settings.js

                                    so im unteren Drittel wäre dann
                                    functionGlobalContext:

                                    kann aber auch noch nicht wirklich testen mit NodeRed innerhalb von IOBroker....

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      Manuel001 @alealdata last edited by

                                      @alealdata
                                      Ah danke. Ich war zwar in der richtigen Datei, habe aber nicht gesehen, dass man man da noch umblättern kann.
                                      So, wieder ein Schritt weiter und wieder einiges gelernt...
                                      Die Flows hatte ich ja schon importiert.
                                      Den Key habe ich auch schon hinterlegt.
                                      Werden die Daten eigentlich in einem fixen Intervall ausgelesen oder muss man das irgendwie anstoßen?
                                      Muss die IR Schnittstelle vom Smart Meter nur 1x mit dem Key "freigegeben" werden oder muss das vor jedem Lesevorgang gemacht werden?
                                      Die im Flow hinterlegten Übertragungsparameter (Baudrate usw.) stimmen eh oder muss man da noch was korrigieren?

                                      alealdata 1 Reply Last reply Reply Quote 0
                                      • alealdata
                                        alealdata @Manuel001 last edited by alealdata

                                        @manuel001
                                        den Node Serialport hast du installiert?
                                        Einstellungen kannst auch im Subflow AMIS Meter ändern (bei mir 9600;8;even;1)
                                        Doppelklick auf "AMIS Client" rechts Subflow bearbeiten - Neues Register AMIS CI Client anwählen - Doppelklick "AMIS Zähler" rechts Subflow bearbeiten - Neues Registerblatt AMIS Meter anwählen - Serial Node bearbeiten

                                        beim Intervall brauchst du nichts einstellen

                                        den AES Code kannst du auch in der UI/Weboberfläche eingeben und dann sollte er auch die Daten ausspucken
                                        oder AES Code hinterlegen in Subflow AMIS Client Ci Funktionsnode "Set AES Key"

                                        M 1 Reply Last reply Reply Quote -1
                                        • M
                                          Manuel001 @alealdata last edited by

                                          @alealdata
                                          Ja Serialport habe ich installiert.
                                          Bei mir ist auch 9600;8;even;1 eingestellt. Das sollte für den Netz OÖ Zähler passen, oder?
                                          Irgendwie gibt am IR-Schreib-/Lesekopf nichts ausgegeben.
                                          Normalerweise sieht man das mit der Handykamera. (Zumindest mit einem Windows Testprogram bei dem die Zeichen "Test" ausgegeben werden, sieht man es deutlich)
                                          Wenn ich aber im Dashboard den Key eingebe und bestätigen klicke, tut sich nichts.

                                          alealdata 1 Reply Last reply Reply Quote 0
                                          • alealdata
                                            alealdata @Manuel001 last edited by alealdata

                                            @manuel001 wird die serielle Schnittstelle erkannt?
                                            7d5a6a5f-caa9-4c5b-be8a-4211b4183ea4-image.png

                                            AES Code kannst du auch hier eingeben
                                            a08a9a6b-ec06-4a84-b11c-9af6caf647c1-image.png

                                            Ein Hinweis in den Debugnachrichten?

                                            M 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

                                            914
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            11
                                            108
                                            16392
                                            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