Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. PV Datenabfrage von neoom / ntuity

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    PV Datenabfrage von neoom / ntuity

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @Christoph Jahn last edited by

      @christoph-jahn sagte in PV Datenabfrage von neoom / ntuity:

      Was sind Globale Skripte?

      im Expertenmodus befindet sich in dem Skript explorer ein Verzeichnis global
      ist da ein Skript drin?

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

        @homoran Unbenannt.JPG
        Ja da ist tatsächlich was drinnen..

        Homoran paul53 2 Replies Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @Christoph Jahn last edited by Homoran

          @christoph-jahn sagte in PV Datenabfrage von neoom / ntuity:

          Ja da ist tatsächlich was drinnen..

          warum?
          woher?

          und da ist auch der fetch

          1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @Christoph Jahn last edited by paul53

            @christoph-jahn sagte: da ist tatsächlich was drinnen..

            Lösche das Skript unter der Gruppe "global".
            Dann trage in die Konfiguration der JS-Instanz unter "Zusätzliche NPM-Module" ein: api
            Dann erstelle dieses Skript laut Doku unter der Gruppe "common":

            const sdk = require('api')('@ntuity/v1#6m6q34l263sbor');
            
            sdk.auth('token');
            sdk.getSitesIdEnergyFlowLatest({id: 'id'})
              .then(({ data }) => console.log(data))
              .catch(err => console.error(err));
            

            "token" und "id" durch Deine Sachen ersetzen.

            Christoph Jahn 2 Replies Last reply Reply Quote 0
            • Christoph Jahn
              Christoph Jahn @paul53 last edited by Homoran

              @paul53 said in PV Datenabfrage von neoom / ntuity:

              '

              9.6.2023, 19:40:16.839	[info ]: javascript.0 (826423) Stop script script.js.common.ntuity
              9.6.2023, 19:40:16.848	[info ]: javascript.0 (826423) Start javascript script.js.common.ntuity
              9.6.2023, 19:40:16.881	[info ]: javascript.0 (826423) script.js.common.ntuity: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
              9.6.2023, 19:40:17.263	[info ]: javascript.0 (826423) script.js.common.ntuity: {'power_consumption':{'value':null,'time':'2023-06-09T14:59:30.004Z'},'power_consumption_calc':{'value':1727,'time':'2023-06-09T17:40:15.002Z'},'power_production':{'value':1284,'time':'2023-06-09T17:40:15.002Z'},'power_storage':{'value':404,'time':'2023-06-09T17:40:15.002Z'},'power_grid':{'value':39,'time':'2023-06-09T17:40:15.002Z'},'power_charging_stations':{'value':null,'time':'2023-06-09T14:59:30.004Z'},'power_heating':{'value':null,'time':'2023-06-09T14:59:30.004Z'},'power_appliances':{'value':1727,'time':'2023-06-09T14:59:30.004Z'},'state_of_charge':{'value':99,'time':'2023-06-09T16:57:55.002Z'},'self_sufficiency':{'value':98,'time':'2023-06-09T17:40:15.002Z'},'max_network_utilization':20000,'consumers_total_count':0,'consumers_online_count':0,'producers_total_count':1,'producers_online_count':1,'storages_total_count':2,'storages_online_count':2,'heatings_total_count':0,'heatings_online_count':0,'charging_points_total_count':0,'charging_points_online_count':0,'grids_total_count':1,'grids_online_count':1}
              

              MOD-EDIT: Code in code-tags gesetzt!

              Wow klasse, jetzt werden die Daten ausgegeben!

              1 Reply Last reply Reply Quote 0
              • Christoph Jahn
                Christoph Jahn @paul53 last edited by

                @paul53 said in PV Datenabfrage von neoom / ntuity:

                @christoph-jahn sagte: da ist tatsächlich was drinnen..

                Lösche das Skript unter der Gruppe "global".
                Dann trage in die Konfiguration der JS-Instanz unter "Zusätzliche NPM-Module" ein: api
                Dann erstelle dieses Skript laut Doku unter der Gruppe "common":

                const sdk = require('api')('@ntuity/v1#6m6q34l263sbor');
                
                sdk.auth('token');
                sdk.getSitesIdEnergyFlowLatest({id: 'id'})
                  .then(({ data }) => console.log(data))
                  .catch(err => console.error(err));
                

                "token" und "id" durch Deine Sachen ersetzen.

                In den Objekten werden die Leistungswerte noch nicht gelistet, ist da noch eine Anpassung nötig?

                paul53 1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @Christoph Jahn last edited by

                  @christoph-jahn sagte: Leistungswerte noch nicht gelistet, ist da noch eine Anpassung nötig?

                  Weitere Möglichkeiten liefert die Doku nicht. Ist "power_grid" kein Leistungswert?

                  Christoph Jahn 2 Replies Last reply Reply Quote 0
                  • Christoph Jahn
                    Christoph Jahn @paul53 last edited by

                    @paul53 js.JPG

                    ich weis nicht ob ich mich richtig ausgedrückt habe.. Anbei ein Screenshot vom Objekt-Bereich.. hab mal alles von JS geöffnet, finde hier aber keine Messwerte..!

                    paul53 1 Reply Last reply Reply Quote 0
                    • Christoph Jahn
                      Christoph Jahn @paul53 last edited by

                      @paul53 sol.JPG
                      Bei Solax sieht das so aus..

                      paul53 1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 @Christoph Jahn last edited by paul53

                        @christoph-jahn: finde hier aber keine Messwerte..!

                        Die Datenpunkte gibt es auch noch nicht, da sie selbst erstellt werden müssen, vorzugsweise unter "0_userdata.0". Die einzelnen Werte müssen aus dem Objekt, das im Log zu sehen ist, extrahiert werden.

                        Christoph Jahn 1 Reply Last reply Reply Quote 0
                        • Christoph Jahn
                          Christoph Jahn @paul53 last edited by

                          @paul53 Oje oje.. gibts da eine Doku wie man das angeht.. die Lernkurve geht hier etwas sehr steil..

                          Homoran 1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @Christoph Jahn last edited by

                            @christoph-jahn

                            erstmal die Struktur ansehen
                            Screenshot_20230609-222338_Firefox.jpg

                            u d dann die gewünschten Informationen per Blockly und Attribut xy von... in den jeweiligen Datenpunkt schreiben

                            1 Reply Last reply Reply Quote 0
                            • paul53
                              paul53 @Christoph Jahn last edited by

                              @christoph-jahn sagte: Bei Solax sieht das so aus.

                              Das hat wenig Ähnlichkeit mit den Daten, die im API-Objekt übermittelt werden.

                              1 Reply Last reply Reply Quote 0
                              • M
                                Marcolotti @Christoph Jahn last edited by Marcolotti

                                @christoph-jahn

                                Hallo,

                                meine Anlage mit 2 SMA-Wechselrichtern lief über den ModBus Adapter jetzt 10 Jahre wunderbar. Diesen Donnerstag wird bei mir KJUUBE Light S NEA 10 kW/14,2 kWh verbaut und die SMA´s kommen weg.

                                Jetzt hatte ich als Bedingung für das neue System Modbus TCP gestellt und es wurde mir bestätigt.

                                Jetzt die Frage: Hast du es hinbekommen, die Daten direkt und in Echtzeit vom Wechselrichter abzugreifen oder geht das nur über das Portal?

                                Falls nicht, werde ich den Auftrag canceln und auf SMA weitermachen.

                                Viele Grüße
                                Marco

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                323
                                Online

                                31.6k
                                Users

                                79.5k
                                Topics

                                1.3m
                                Posts

                                4
                                31
                                1628
                                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