Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. Support Adapter Energiefluss-erweitert v0.6.2

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    Support Adapter Energiefluss-erweitert v0.6.2

    This topic has been deleted. Only users with topic management privileges can see it.
    • SKB
      SKB Developer Most Active @Yoda last edited by

      @yoda Interessant 🙂

      Läuft ioBroker auf Windows oder Linux/Pi?

      Der Datenpunkt steht aber immernoch auf Wert/Integer, ja?

      Yoda 1 Reply Last reply Reply Quote 0
      • Yoda
        Yoda @SKB last edited by

        @skb auf Linux Raspi 4 vor 2 Monaten neu aufgesetzt.

        Plattform: linux
        Betriebssystem: linux
        Architektur: arm64
        CPUs: 4
        Geschwindigkeit: 1500 MHz
        Modell: Cortex-A72
        RAM: 3.7 GB
        System-Betriebszeit: 5 T. 13:59:30
        Node.js: v20.13.1
        time: 1720006156097
        timeOffset: -120
        NPM: 10.5.2
        Adapter-Anzahl: 538
        Datenträgergröße: 58.0 GB
        Freier Festplattenspeicher: 51.1 GB
        Aktive Instanzen: 28
        Pfad: /opt/iobroker/
        Betriebszeit: 5 T. 15:20:22
        aktiv:

        Eigenschaften vom Test-Datenpunkt:

        {
          "common": {
            "name": "Test-Wert-1",
            "desc": "Manuell erzeugt",
            "role": "state",
            "type": "number",
            "read": true,
            "write": true,
            "def": 0
          },
          "type": "state",
          "native": {},
          "from": "system.adapter.admin.0",
          "user": "system.user.admin",
          "ts": 1720013710798,
          "_id": "0_userdata.0.Solar-Anlage.Test-Wert-1",
          "acl": {
            "object": 1636,
            "state": 1636,
            "owner": "system.user.admin",
            "ownerGroup": "system.group.administrator"
          }
        }
        
        SKB 1 Reply Last reply Reply Quote 0
        • SKB
          SKB Developer Most Active @Yoda last edited by

          @yoda Ok, wie sieht nun der Wert in dem Test-DP aus und wie die Einstellungen der Anzeige in EA?

          Yoda 1 Reply Last reply Reply Quote 0
          • Yoda
            Yoda @SKB last edited by

            @skb a-4.png
            a-5.png
            Anzeige 0
            a-6.png

            SKB 1 Reply Last reply Reply Quote 0
            • SKB
              SKB Developer Most Active @Yoda last edited by

              @yoda Kannst Du im Edit Mode mal die Browser-Konsole mit F12 öffnen und schauen, ob beim Abändern der Nachkommastellen Ausgaben im Log erscheinen? (Muss gestehen, ich weiss aus dem Kopf nicht mehr, ob das bei der 0.4.1 schon drin ist - sollte aber)

              Müsste sowas kommen:

              Requesting new Data with:  
              Object { id: "61", source: "0_userdata.0.Energiefluss_Test.test_new", source_option: -1, source_display: "value", linebreak: 0, type: "text", threshold: 0, calculate_kw: "none", decimal_places: 0, override: undefined }
              
              Yoda 1 Reply Last reply Reply Quote 0
              • Yoda
                Yoda @SKB last edited by

                @skb
                habe hier paar mal gewechselt:

                Requesting new Data with:  {id: '191', source: '0_userdata.0.Solar-Anlage.Test-Wert-1', source_option: '-1', source_display: 'value', type: 'text', …}
                functions.min.js:15 New Update for Elm 191
                functions.min.js:15 Requesting new Data with:  {id: '191', source: '0_userdata.0.Solar-Anlage.Test-Wert-1', source_option: '-1', source_display: 'value', type: 'text', …}
                functions.min.js:15 New Update for Elm 191
                functions.min.js:15 Requesting new Data with:  {id: '191', source: '0_userdata.0.Solar-Anlage.Test-Wert-1', source_option: '-1', source_display: 'value', type: 'text', …}
                functions.min.js:15 New Update for Elm 191
                functions.min.js:15 Requesting new Data with:  {id: '191', source: '0_userdata.0.Solar-Anlage.Test-Wert-1', source_option: '-1', source_display: 'value', type: 'text', …}
                functions.min.js:15 New Update for Elm 191
                functions.min.js:15 Requesting new Data with:  {id: '191', source: '0_userdata.0.Solar-Anlage.Test-Wert-1', source_option: '-1', source_display: 'value', type: 'text', …}
                functions.min.js:15 New Update for Elm 191```
                SKB 1 Reply Last reply Reply Quote 0
                • SKB
                  SKB Developer Most Active @Yoda last edited by

                  @yoda Okay.

                  Irgendwas ist dort nicht richtig - nur was?!

                  Was passiert eigentlich, wenn du den Datenpunkt auf String statt Integer änderst?

                  Yoda 1 Reply Last reply Reply Quote 0
                  • Yoda
                    Yoda @SKB last edited by

                    @skb ui es tut sich was...

                    habe einen neuen Datenpunkt (Test-Wert-2) mit "String" angelegt - im SA die Quelle mit "Wert" gesetzt.
                    Hier wird nun der Wert Angezeigt und die Nachkommastellen wie eingestellt angezeigt.
                    Eingabe des Wertes Erfolgt mit Komma zb. so : 2,789
                    a-7.png
                    a-8.png
                    a-9.png
                    Eingestellt ist 1 Nachkommastelle
                    a-10.png

                    Neuer Datenpunkt mit String

                    {
                      "common": {
                        "name": "Test-Wert-2",
                        "desc": "Manuell erzeugt",
                        "role": "state",
                        "type": "string",
                        "read": true,
                        "write": true,
                        "def": ""
                      },
                      "type": "state",
                      "native": {},
                      "from": "system.adapter.admin.0",
                      "user": "system.user.admin",
                      "ts": 1720020009320,
                      "_id": "0_userdata.0.Solar-Anlage.Test-Wert-2",
                      "acl": {
                        "object": 1636,
                        "state": 1636,
                        "owner": "system.user.admin",
                        "ownerGroup": "system.group.administrator"
                      }
                    }
                    
                    SKB 1 Reply Last reply Reply Quote 0
                    • SKB
                      SKB Developer Most Active @Yoda last edited by

                      @yoda Okay, das ist schonmal nicht schlecht ... jedoch wundert es mich total, warum die Integer Werte nicht klappen.

                      Den Javascript Adapter hast Du installiert, ja?

                      Kannst Du mal ein Skript anlegen, was die Datenpunkte jeweils abfragt?

                      let test = getState('0_userdata.0.Energiefluss_Test.test_new').val;
                      console.log(typeof test)
                      

                      Als Datenpunkt kannst Du dann jeweils den einen oder anderen Datenpunkt nutzen.

                      Skript dann speichern und neustarten. Es kommt dann eine Anzeige unten, die so aussieht:

                      javascript.0	17:39:19.751	info	Start JavaScript script.js.common.Test_Int (Javascript/js)
                      javascript.0	17:39:19.756	info	script.js.common.Test_Int: number
                      javascript.0	17:39:19.756	info	script.js.common.Test_Int: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                      
                      Yoda 1 Reply Last reply Reply Quote 0
                      • Yoda
                        Yoda @SKB last edited by

                        @skb soweit verstanden, nur wird mir unten nichts angezeigt , ist mir letztens schon mal aufgefallen.....

                        a-11.png

                        SKB 1 Reply Last reply Reply Quote 0
                        • SKB
                          SKB Developer Most Active @Yoda last edited by

                          @yoda Okay, dann ändere console.log einfach in log dann erscheint es im ioBroker Log 😉

                          Yoda 1 Reply Last reply Reply Quote 0
                          • Yoda
                            Yoda @SKB last edited by

                            @skb leider ist dort auch nichts zu sehen...

                            let test = getState('0_userdata.0.Solar-Anlage.Test-Wert-2').val;
                            log(typeof test)
                            
                            
                            SKB 1 Reply Last reply Reply Quote 0
                            • SKB
                              SKB Developer Most Active @Yoda last edited by

                              @yoda Ob mit deiner Installation alles stimmt lasse ich mal außen vor 🙂
                              "Normale Ausgaben" im Log erhälst Du aber?

                              Ist aber kein Multihost-System, wo Du auf dem falschen Host anzeigst?

                              Yoda 2 Replies Last reply Reply Quote 1
                              • Yoda
                                Yoda @SKB last edited by

                                @skb sagte in Test Adapter Energiefluss-erweitert v0.4.x GitHub/Latest:

                                @yoda Ob mit deiner Installation alles stimmt lasse ich mal außen vor 🙂
                                "Normale Ausgaben" im Log erhälst Du aber?

                                Ist aber kein Multihost-System, wo Du auf dem falschen Host anzeigst?

                                Normale Ausgaben" im Log erhälst Du aber = Ja
                                Ist aber kein Multihost-System, wo Du auf dem falschen Host anzeigst? = Nein

                                1 Reply Last reply Reply Quote 0
                                • Yoda
                                  Yoda @SKB last edited by

                                  @skb

                                  javascript.0
                                  Zeit
                                  debug
                                  Nachricht
                                  
                                  javascript.0
                                  2024-07-03 18:10:12.570	info	script.js.Strom-EnergieFluss.Test-SKB: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                                  
                                  javascript.0
                                  2024-07-03 18:10:12.570	info	script.js.Strom-EnergieFluss.Test-SKB: string
                                  
                                  javascript.0
                                  2024-07-03 18:10:12.564	info	Start JavaScript script.js.Strom-EnergieFluss.Test-SKB (Javascript/js)
                                  
                                  javascript.0
                                  2024-07-03 18:10:12.515	info	Stopping script script.js.Strom-EnergieFluss.Test-SKB
                                  
                                  javascript.0
                                  2024-07-03 18:10:10.618	info	script.js.Strom-EnergieFluss.Test-SKB: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                                  
                                  javascript.0
                                  2024-07-03 18:10:10.618	info	script.js.Strom-EnergieFluss.Test-SKB: string
                                  
                                  javascript.0
                                  2024-07-03 18:10:10.592	info	Start JavaScript script.js.Strom-EnergieFluss.Test-SKB (Javascript/js)
                                  
                                  javascript.0
                                  2024-07-03 18:10:08.722	info	Stopping script script.js.Strom-EnergieFluss.Test-SKB
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • SKB
                                    SKB Developer Most Active last edited by

                                    @yoda Dann ist es beides Mal ein String, obwohl ein Punkt drin ist, der eigentlich als "Float (Kommazahl)"-Trenner gilt.

                                    Yoda 1 Reply Last reply Reply Quote 0
                                    • Yoda
                                      Yoda @SKB last edited by

                                      @skb heißt nun genau... 🙂
                                      Der Datenpunkt wird vom SA Erzeugt und dort steht halt "Number" .... daher dann auch das Problem

                                      {
                                        "type": "state",
                                        "common": {
                                          "name": "01_currentDay",
                                          "type": "number",
                                          "role": "value",
                                          "read": true,
                                          "write": false,
                                          "unit": "kWh",
                                          "def": 0
                                        },
                                        "native": {},
                                        "from": "system.adapter.sourceanalytix.0",
                                        "user": "system.user.admin",
                                        "ts": 1719907176872,
                                        "_id": "sourceanalytix.0.0_userdata__0__Solar-Energiefluss__Wert-Mqtt-Gesamt-Solar-Input.currentYear.consumed.01_currentDay",
                                        "acl": {
                                          "object": 1636,
                                          "state": 1636,
                                          "owner": "system.user.admin",
                                          "ownerGroup": "system.group.administrator"
                                        }
                                      }
                                      
                                      SKB 1 Reply Last reply Reply Quote 0
                                      • SKB
                                        SKB Developer Most Active @Yoda last edited by

                                        @yoda sagte in Test Adapter Energiefluss-erweitert v0.4.x GitHub/Latest:

                                        sourceanalytix.0.0_userdata__0__Solar-Energiefluss__Wert-Mqtt-Gesamt-Solar-Input.currentYear.consumed.01_currentDay

                                        Kannst Du den Datenpunkt nochmal im Skript abfragen und schauen, was für ein Typ kommt?

                                        Yoda 1 Reply Last reply Reply Quote 0
                                        • Yoda
                                          Yoda @SKB last edited by

                                          @skb

                                          
                                          javascript.0
                                          2024-07-03 18:41:45.640	info	script.js.Strom-EnergieFluss.Test-SKB: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                                          
                                          javascript.0
                                          2024-07-03 18:41:45.640	info	script.js.Strom-EnergieFluss.Test-SKB: number
                                          
                                          javascript.0
                                          2024-07-03 18:41:45.612	info	Start JavaScript script.js.Strom-EnergieFluss.Test-SKB (Javascript/js)
                                          
                                          javascript.0
                                          2024-07-03 18:41:42.164	info	Stopping script script.js.Strom-EnergieFluss.Test-SKB
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • SKB
                                            SKB Developer Most Active last edited by

                                            @yoda Habe mir auf meinem Testsystem mal SA installiert und einfach den Verbrauchswert "geloggt". Diesen habe ich dann in EF-E eingespeist und lasse ihn als Wert mit 2 Nachkommastellen anzeigen.

                                            Funktioniert ohne Probleme.

                                            2024-07-03 20_28_56-.png 2024-07-03 20_28_02-objects - iobrokerDev – Mozilla Firefox.png

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            686
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            vis
                                            179
                                            4109
                                            3628213
                                            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