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.7.7

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Support Adapter Energiefluss-erweitert v0.7.7

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

      @skb doch die Zahl hat eine Überschreibung

      {
          ">2800": {
              "font_family": "RobotoCondensed",
              "font_size": 18,
              "fill": "#FFFFFF"
          },
          ">3500": {
              "font_family": "RobotoCondensed",
              "font_size": 18,
              "fill": "#000000"
          }
      }
      

      aber auch seid anfang an

      "33": {
            "position": 8,
            "type": "rect",
            "id": 33,
            "rx": 0,
            "height": 98,
            "width": 53,
            "pos_x": 57,
            "pos_y": 311,
            "fill": "none",
            "color": "rgba(42, 211, 25, 0.7)",
            "stroke": 1,
            "shadow": "rgba(0, 0, 0, 0.7)",
            "frame": "_overlay",
            "fill_value": "rgba(23,255,15,0.66)",
            "fill_type": "percent",
            "fill_direction": 90,
            "fill_max": 100,
            "border_type": -1,
            "border_direction": "cw",
            "border_style": "round",
            "border_reverse": false,
            "border_start": 180,
            "source": 0,
            "threshold": 0,
            "override": {}
          },
          "35": {
            "position": 37,
            "type": "text",
            "subType": "datasource",
            "id": 35,
            "pos_x": 65,
            "pos_y": 358,
            "color": "none",
            "fill": "rgb(255, 248, 41)",
            "font_family": "Arial, sans-serif",
            "font_size": 14,
            "degree": -90,
            "align": "middle",
            "text": "ID 35",
            "unit": "%",
            "source": 0,
            "source_option": -1,
            "source_display": "text",
            "shadow": "",
            "threshold": 0,
            "calculate_kw": "none",
            "counter_animation": false,
            "convert": false,
            "decimal_places": 0,
            "action": "none",
            "subtract": [
              -1
            ],
            "add": [
              -1
            ],
            "frame": "_overlay",
            "override": {
              ">2800": {
                "font_family": "RobotoCondensed",
                "font_size": 18,
                "fill": "#FFFFFF"
              },
              ">3500": {
                "font_family": "RobotoCondensed",
                "font_size": 18,
                "fill": "#000000"
              }
            }
          },
      

      das sind die 2..nach dem letzten speichern ..

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

        @arteck Stell mal bitte beides ein, bei welchem Speichern es funktioniert und bei welchem nicht.

        Aktuell bin ich tatsächlich etwas ratlos 😔

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

          @skb so hier hab da mal was gebastelt

          config

          {
            "basic": {
              "enable_grid": true,
              "enable_animation": false,
              "enable_area_catch": true,
              "enable_config_icon": true,
              "enable_last_id": false,
              "enable_icon_proxy": false,
              "enable_low_performance": false,
              "height": 540,
              "width": 530,
              "styles": "",
              "font": {
                "family": "\"Arial\", sans-serif",
                "size": "20",
                "color": "",
                "fill": "",
                "align": "middle"
              },
              "rect": {
                "height": 100,
                "width": 100,
                "corners": 10
              },
              "circle": {
                "radius": 50
              },
              "elm": {
                "stroke_width": 5,
                "color": "",
                "fill": "",
                "pos_x": 50,
                "pos_y": 50
              },
              "icon": {
                "height": 24,
                "width": 24,
                "color": ""
              }
            },
            "calculation": {
              "battery": {
                "dod": null,
                "capacity": null,
                "percent": -1,
                "charge": -1,
                "charge_prop": false,
                "charge_kw": false,
                "discharge": -1,
                "discharge_prop": false,
                "discharge_kw": false
              },
              "consumption": {
                "production": [
                  -1
                ],
                "production_kw": false,
                "gridFeed": -1,
                "gridFeed_kw": false,
                "gridFeed_prop": false,
                "gridConsume": -1,
                "gridConsume_kw": false,
                "gridConsume_prop": false,
                "batteryCharge": -1,
                "batteryCharge_kw": false,
                "batteryCharge_prop": false,
                "batteryDischarge": -1,
                "batteryDischarge_kw": false,
                "batteryDischarge_prop": false
              }
            },
            "animation": {
              "stroke": "#ffce4a",
              "stroke_dasharray": "10 17 10 17 10  72",
              "stroke_width": "6",
              "animation_duration": "2000",
              "stroke_linecap": "round",
              "animation_timing_function": "linear"
            },
            "animation_configuration": {
              "dots": "3",
              "distance": "17",
              "length": "10"
            },
            "line": {
              "stroke_width": "8",
              "stroke": "#000000"
            },
            "elements": {
              "2": {
                "position": 5,
                "type": "text",
                "subType": "datasource",
                "id": 2,
                "pos_x": 260,
                "pos_y": 100,
                "color": "none",
                "fill": "rgb(255, 206, 74)",
                "font_family": "Arial, sans-serif",
                "font_size": 18,
                "align": "middle",
                "text": "ID 2",
                "unit": "%",
                "source": "0",
                "source_option": "-1",
                "source_display": "text",
                "shadow": "",
                "threshold": 0,
                "calculate_kw": "calc",
                "counter_animation": false,
                "convert": false,
                "decimal_places": 2,
                "action": "none",
                "subtract": [
                  -1
                ],
                "add": [
                  -1
                ],
                "frame": "_overlay"
              },
              "14": {
                "position": 1,
                "type": "rect",
                "id": 14,
                "rx": 10,
                "height": 100,
                "width": 100,
                "pos_x": 167,
                "pos_y": 422,
                "fill": "none",
                "color": "rgba(97, 104, 122, 0.7)",
                "stroke": 2,
                "shadow": "rgba(0, 0, 0, 0.7)",
                "frame": "_overlay",
                "fill_type": "percent",
                "fill_direction": 90,
                "border_type": -1,
                "border_direction": "cw",
                "border_style": "round",
                "border_reverse": false,
                "border_start": null,
                "source": -1,
                "threshold": 0
              },
              "19": {
                "position": 4,
                "type": "text",
                "subType": "datasource",
                "id": 19,
                "pos_x": 216,
                "pos_y": 461,
                "color": "none",
                "fill": "rgb(97, 104, 122)",
                "font_family": "Arial, sans-serif",
                "font_size": 18,
                "align": "middle",
                "text": "ID 19",
                "unit": "kW",
                "source": -1,
                "source_option": -1,
                "source_display": "value",
                "shadow": "",
                "threshold": 0,
                "calculate_kw": "calc",
                "counter_animation": false,
                "convert": true,
                "decimal_places": 2,
                "action": "none",
                "subtract": [
                  -1
                ],
                "add": [
                  -1
                ],
                "frame": "_overlay"
              },
              "20": {
                "position": 1,
                "type": "icon",
                "id": "20",
                "icon": "mdi:electricity-from-grid",
                "width": 24,
                "height": 24,
                "color": "rgba(0, 0, 0, 0.7)",
                "pos_x": "205",
                "pos_y": "428",
                "shadow": "",
                "source": -1,
                "threshold": 0,
                "frame": "_overlay",
                "action": "none"
              },
              "21": {
                "position": 3,
                "type": "text",
                "id": 21,
                "pos_x": 216,
                "pos_y": 495,
                "color": "none",
                "fill": "rgba(0, 0, 0, 0.7)",
                "font_family": "Arial, sans-serif",
                "font_size": 14,
                "align": "middle",
                "text": "Netz",
                "shadow": "",
                "frame": "_overlay"
              },
              "22": {
                "position": 0,
                "type": "rect",
                "id": 22,
                "rx": 10,
                "height": 100,
                "width": 100,
                "pos_x": 407,
                "pos_y": 422,
                "fill": "none",
                "color": "rgb(197, 144, 46)",
                "stroke": 2,
                "shadow": "rgba(0, 0, 0, 0.7)",
                "frame": "_overlay",
                "fill_type": "percent",
                "fill_direction": 90,
                "border_type": -1,
                "border_direction": "cw",
                "border_style": "round",
                "border_reverse": false,
                "border_start": null,
                "source": -1,
                "threshold": 0
              },
              "23": {
                "position": 0,
                "type": "icon",
                "id": "23",
                "icon": "material-symbols:electric-car",
                "width": 24,
                "height": 24,
                "color": "rgba(0, 0, 0, 0.7)",
                "pos_x": "445",
                "pos_y": "428",
                "shadow": "",
                "source": -1,
                "threshold": 0,
                "frame": "_overlay",
                "action": "none"
              },
              "24": {
                "position": 2,
                "type": "text",
                "id": 24,
                "pos_x": 456,
                "pos_y": 495,
                "color": "none",
                "fill": "rgba(0, 0, 0, 0.7)",
                "font_family": "Arial, sans-serif",
                "font_size": 14,
                "align": "middle",
                "text": "Auto",
                "shadow": "",
                "frame": "_overlay"
              },
              "26": {
                "position": 1,
                "type": "text",
                "subType": "datasource",
                "id": 26,
                "pos_x": 457,
                "pos_y": 463,
                "color": "none",
                "fill": "rgb(197, 144, 46)",
                "font_family": "Arial, sans-serif",
                "font_size": 18,
                "align": "middle",
                "text": "ID 26",
                "unit": "kW",
                "source": -1,
                "source_option": -1,
                "source_display": "value",
                "shadow": "",
                "threshold": 0,
                "calculate_kw": "calc",
                "counter_animation": false,
                "convert": false,
                "decimal_places": 2,
                "action": "none",
                "subtract": [
                  -1
                ],
                "add": [
                  -1
                ],
                "frame": "_overlay"
              },
              "27": {
                "position": 0,
                "type": "text",
                "subType": "datasource",
                "id": 27,
                "pos_x": 457,
                "pos_y": 480,
                "color": "none",
                "fill": "rgb(197, 144, 46)",
                "font_family": "Arial, sans-serif",
                "font_size": 18,
                "align": "middle",
                "text": "ID 27",
                "unit": "%",
                "source": -1,
                "source_option": -1,
                "source_display": "value",
                "shadow": "",
                "threshold": 0,
                "calculate_kw": "none",
                "counter_animation": false,
                "convert": false,
                "decimal_places": 0,
                "action": "none",
                "subtract": [
                  -1
                ],
                "add": [
                  -1
                ],
                "frame": "_overlay"
              }
            },
            "defs": {},
            "lines": {},
            "animations": {},
            "datasources": {
              "0": {
                "source": "modbus.0.inputRegisters.3.30845_Batterie_Prozent",
                "alias": "batterie_proz",
                "factor": 1
              },
              "1": {
                "source": "0_userdata.0.example_state_number",
                "alias": "test_dp",
                "factor": 1
              }
            }
          }
          

          data

          {
            "values": {
              "2": 28
            },
            "unit": {
              "2": "%"
            },
            "animations": {},
            "fillValues": {},
            "borderValues": {},
            "animationProperties": {},
            "prepend": {},
            "append": {},
            "css": {},
            "override": {},
            "img_href": {}
          }
          

          als video
          bug.mp4

          das ist der modbus DP

          {
            "_id": "modbus.0.inputRegisters.3.30845_Batterie_Prozent",
            "type": "state",
            "common": {
              "name": "",
              "role": "value",
              "type": "number",
              "read": true,
              "write": false,
              "def": 0,
              "unit": "%",
              "custom": {    }
            },
            "native": {
              "regType": "inputRegs",
              "address": 30845,
              "deviceId": 3,
              "type": "uint32be",
              "len": 2,
              "offset": 0,
              "factor": 1
            },
            "acl": {
              "object": 1638,
              "state": 1638,
              "owner": "system.user.admin",
              "ownerGroup": "system.group.administrator"
            },
            "from": "system.adapter.modbus.0",
            "user": "system.user.admin",
            "ts": 1713252268861
          }
          

          das ist dei def von dem test DP.. mit dem gehts auch nicht

          {
            "_id": "0_userdata.0.example_state_number",
            "type": "state",
            "common": {
              "name": "Example state",
              "type": "number",
              "role": "value",
              "read": true,
              "write": true,
              "unit": ""
            },
            "acl": {
              "owner": "system.user.admin",
              "ownerGroup": "system.group.administrator",
              "object": 1604
            },
            "from": "system.adapter.admin.0",
            "user": "system.user.admin",
            "ts": 1713333557732
          }
          
          SKB 1 Reply Last reply Reply Quote 0
          • SKB
            SKB Developer Most Active @arteck last edited by

            @arteck ich meinte, das du jeweils den Bereich der Anzeige ID aus dem Speicher Log kopierst, wenn's funktioniert und wenn's nicht funktioniert.

            Die 2 Bereiche werden vermutlich irgendwie unterschiedlich sein.

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

              @skb ich hab dir doch ein Beispiel gemacht..

              erzeuge die 2 DP und kopier die konfigs rein
              dann kannst du es nachvollziehen

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

                @arteck Aktuell habe ich keinen Zugriff auf einen Rechner.

                Daher wäre es tatsächlich einfacher, wenn du die 2 Bereiche beim Speichern einstellen könntest. Ich vermutet, hier ändert sich was.

                Ansonsten schaue ich die nächsten Tage drauf, wenn ich am Rechner bin 😉

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

                  @skb so ich habs

                  es liegt an der Zuordnung im

                  "datasources": {
                      "0": {
                        "source": "modbus.0.inputRegisters.3.30845_Batterie_Prozent",
                        "alias": "Batterie_Prozent",
                        "factor": 1
                      },
                  

                  hab den datasource gelöscht.. und neu erzeugt .. jetzt liegt der

                  "37": {
                        "source": "modbus.0.inputRegisters.3.30845_Batterie_Prozent",
                        "alias": "BatterieProz",
                        "factor": 1
                      }
                  

                  und es funktioniert

                  kannst mal schauen ob du mit dem array ein Problem hast.. mit dem ersten element bei speichern

                  SKB 2 Replies Last reply Reply Quote 0
                  • SKB
                    SKB Developer Most Active @arteck last edited by

                    @arteck Super, danke fürs Testen. Ich denke, es liegt an der ID 0. Die wird vielleicht "falsy" interpretiert.

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

                      @arteck Ich denke, dies hat noch mit den Settings hier zu tun:

                      "calculation": {
                          "battery": {
                            "dod": null,
                            "capacity": null,
                            "percent": -1,
                            "charge": -1,
                            "charge_prop": false,
                            "charge_kw": false,
                            "discharge": -1,
                            "discharge_prop": false,
                            "discharge_kw": false
                          },
                      

                      Hattest Du hier bei dod und capacity nicht noch auf "Bitte wählen..." gestellt? Dann müsst da -1 stehen.

                      1 Reply Last reply Reply Quote 0
                      • B
                        bennohaf last edited by bennohaf

                        Auch ich teste seit heute die Version 0.4.0 aus GitHub, nicht NPM.
                        Folgender Fehler bei mir seit dem Update, vorher 0.3.0

                        Ich habe mich gewundert, dass PV-String 1 auf einmal mit Wert 0 angezeigt wurde und zwar bei allen Instanzen, mit diesem Objekt. Das Objekt im ioB hat aber den aktuellen Wert.

                        Man bekommt es wieder hin, wenn man ein anderes Objekt setzt, z. B. String 2, speichert und dann wieder zurückändert. Aber wenn man dann nochmal was an diesem oder einem anderen!!! Objekt im Adapter ändert, wird der Wert genau in diesem einen Objekt (string1) wieder mit 0 angezeigt. Diese eine Datenquelle scheint korrupt zu sein. Sehr merkwürdig.

                        Hoffe es war verständlich.

                        Nachtrag: es reicht, die Layoutkonfiguration nochmal zu laden und ohne etwas zu ändern wieder anzeigt. Dann wird der Wert wieder auf 0 gesetzt. Wie geschrieben, nur bei diesem Objekt.
                        Nachtrag 2: Ich habe es mal mit Deinem Standardlayout probiert in einer weiteren Instanz. Nur Objekt String1, dann bleibt der Wert stabil. Sobald ein zweites Element hinzukommt, kommt der Wert 0 bei String1
                        Bin mit meinem Latein am Ende 😉

                        U66 1 Reply Last reply Reply Quote 0
                        • U66
                          U66 @bennohaf last edited by

                          @bennohaf
                          Ich schließe mich hier an....
                          Den Fehler konnte ich aber nur auf IOS Geräten nachstellen.

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            bennohaf @U66 last edited by

                            @u66 Ich denke, das hat was mit der Größe des Layouts zu tun und weniger mit IOS. Bei dem Layout für das iPhone ist das Element ganz links außen. Ist aber nur eine Vermutung, zumal der Wert bei mir auch auf dem Windows PC auf 0 geht

                            SKB 1 Reply Last reply Reply Quote 0
                            • P
                              ps1304 last edited by

                              @skb - mit der Version 0.4.0 funktioniert die Überschreibung der Animation nicht mehr. Hintergrund/Linie ist transparent.

                              {
                                  "<0": {
                                      "stroke": "rgb(176,59,244)"
                                  },
                                  ">0": {
                                      "stroke": "rgb(242,14,64)"
                                  }
                              }
                              

                              ändeert die Farben der animation nicht mehr.
                              eb79241d-d7b6-4d56-92a9-f0e3b71eecae-image.png

                              die Überschreibung des Textes funktoniert übrigens noch - da wechsle ich zwischen Netzbezug / Einspeisung

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

                                @ps1304 dafür musst du nochmal installieren. Der Fehler trat gestern oder vorgestern schon auf.

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

                                  @u66 @bennohaf der Fehler liegt an der ID der Dazenquelle. Wenn diese 0 ist, kommt der Fehler. Also betreffende Datenquelle aus Energiefluss löschen und neu anlegen und zuweisen.

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

                                    @skb @U66 Danke, habe ich gemacht und es funktioniert. Frage bleibt, warum diese 0 wurde, wenn man geändert hat, wie ich beschrieben habe.
                                    In 0.3.0 lief ja alles korrekt.

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

                                      @bennohaf sie wurde nicht 0, sondern war vorher 0.

                                      Ich suche bei nächster Gelegenheit den Fehler.

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

                                        @skb Deshalb wird ja getestet 😉
                                        Noch ein Hinweis. Hier war das Objekt, das zu diesem Fehler führt, eingetragen. Da sollte es nicht stehen, hat ja nichts damit zu tun. Ich nutze das bisher auch nicht.
                                        Dankeefa12.JPG

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

                                          @bennohaf das hat mit dem Fehler nichts zu tun.

                                          Es ist nur die automatisch generierte ID 0 betroffen.

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

                                            Hab aktuell auch ein Problem mit dem Überschreiben bei einer Animation.
                                            Hab die 0.4er am laufen, eben nochmal neu aus npm installiert.
                                            Hab bei einer Linie folgende Überschreibung drin:

                                            {
                                                "default": {
                                                    "display": "inline"
                                                },
                                                "<0": {
                                                    "stroke": "rgba(255, 0, 0,1)",
                                                    "display": "inline"
                                                },
                                                ">0": {
                                                    "stroke": "rgba(0, 255, 0,1)",
                                                    "display": "inline"
                                                }
                                            }
                                            
                                            

                                            Der Wert der Datenquelle ist aktuell positiv, trotzdem wird die Linie rot animiert. Hab mal ne Test Datenquelle genommen:
                                            Bei positivem Wert wird rot animiert (das ist die eingestellte Animationsfarbe auf dem Basic Reiter), bei negativ gar nicht.
                                            Für mich sieht das so aus, als ob er die Überschreibung ignoriert.

                                            Ist das das Problem, was oben schonmal angesprochen wurde und eigentlich behoben sein sollte?

                                            Bei Schwellwert steht 0, Animationsabhängigkeit ist deaktiviert. Die restlichen Felder sind leer.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            804
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            vis
                                            180
                                            4132
                                            4701618
                                            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