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

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Support Adapter Energiefluss-erweitert v0.6.2

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      andi2055 @SKB last edited by

      @skb
      Ausprobiert mit aktuellem Chrome & FF

      Chrome:
      538801fb-2c03-4a89-8d57-06e4be556025-grafik.png

      60983ffc-6f70-495a-94e3-f4c4d091c140-grafik.png

      FF:
      7289aeab-c50f-4c0a-8dfb-9859f20707d1-grafik.png
      1adb48ea-f2cb-4787-aba1-51bd8ece349a-grafik.png

      Attribut undefined? Welches? Muss ich irgendwas noch ausfüllen in der Config was derzeit leer/0 ist?

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

        @andi2055 Chrome ist etwas empfindlicher. Ist aber nicht tragisch.

        Firefox meldet den 'richtigen' Fehler.
        Die Anzeige wird nicht 'geupdated'.

        Wie sieht der Inhalt von 'data' unterhalb Energiefluss-erweitert aus?

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

          @skb

          {
            "values": {
              "2": "0",
              "9": "388",
              "19": "388",
              "26": "53",
              "33": "335"
            },
            "unit": {
              "2": "W",
              "9": "W",
              "19": "W",
              "26": "W",
              "33": "W"
            },
            "animations": {
              "anim_path_14_7": true,
              "anim_path_34_14": false,
              "anim_path_7_28": true,
              "anim_path_7_22": true,
              "anim_path_7_34": true
            },
            "fillValues": {
              "12": 335,
              "22": 53,
              "28": 335
            },
            "animationProperties": {
              "anim_path_14_7": {
                "option": ""
              },
              "anim_path_34_14": {},
              "anim_path_7_28": {
                "type": "dots",
                "stroke": "",
                "option": ""
              },
              "anim_path_7_22": {
                "option": ""
              },
              "anim_path_7_34": {
                "option": ""
              }
            },
            "prepend": {
              "2": "",
              "9": "",
              "19": "",
              "26": "",
              "33": ""
            },
            "append": {
              "2": "",
              "9": "",
              "19": "",
              "26": "",
              "33": ""
            },
            "css": {
              "2": {
                "actPos": "",
                "inactPos": " ",
                "actNeg": "",
                "inactNeg": " "
              },
              "9": {
                "actPos": "",
                "inactPos": "",
                "actNeg": "",
                "inactNeg": ""
              },
              "12": {
                "actPos": "",
                "inactPos": "",
                "actNeg": "",
                "inactNeg": ""
              },
              "19": {
                "actPos": "",
                "inactPos": "",
                "actNeg": "",
                "inactNeg": ""
              },
              "22": {
                "actPos": "",
                "inactPos": "",
                "actNeg": "",
                "inactNeg": ""
              },
              "26": {
                "actPos": "",
                "inactPos": "",
                "actNeg": "",
                "inactNeg": ""
              },
              "28": {
                "actPos": "",
                "inactPos": "",
                "actNeg": "",
                "inactNeg": ""
              },
              "33": {
                "actPos": "",
                "inactPos": "",
                "actNeg": "",
                "inactNeg": ""
              },
              "anim_path_14_7": {
                "actPos": "",
                "inactPos": "",
                "actNeg": "",
                "inactNeg": ""
              },
              "anim_path_34_14": {
                "actPos": "",
                "inactPos": "",
                "actNeg": "",
                "inactNeg": ""
              },
              "anim_path_7_28": {
                "actPos": "",
                "inactPos": "",
                "actNeg": "",
                "inactNeg": ""
              },
              "anim_path_7_22": {
                "actPos": "",
                "inactPos": "",
                "actNeg": "",
                "inactNeg": ""
              },
              "anim_path_7_34": {
                "actPos": "",
                "inactPos": "",
                "actNeg": "",
                "inactNeg": ""
              }
            }
          }
          
          SKB 1 Reply Last reply Reply Quote 0
          • SKB
            SKB Developer Most Active @andi2055 last edited by

            @andi2055

            "anim_path_34_14": {},
            

            Diese Animation hat keinen Inhalt. Kannst Du hier mal die Einstellungen prüfen?

            Ich stelle die Fehlerausgabe später einmal um, dann können wir besser sehen, wo es klemmt.
            Melde mich dann zurück.

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

              @skb
              Hatte "Animieren wenn negativ" dort gesetzt. Sonst eigentlich kein Unterschied.
              Sieht jetzt so aus. Aber immer noch Fehler

                  "anim_path_34_14": {
                    "option": ""
                  }
              

              Ich habe das Problem ja auch mit meiner neu erzeugten Instanz und meinem Mini-Testfall:
              800b8900-a679-4976-a6e3-4689711f1ef4-grafik.png

              {
                "basic": {
                  "enable_grid": true,
                  "enable_animation": false,
                  "enable_area_catch": true,
                  "enable_config_icon": true,
                  "enable_last_id": false,
                  "enable_icon_proxy": 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": 0,
                    "capacity": 0,
                    "percent": -1,
                    "charge": -1,
                    "charge_prop": false,
                    "charge_kw": false,
                    "discharge": -1,
                    "discharge_prop": false,
                    "discharge_kw": 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": {
                    "type": "text",
                    "subType": "datasource",
                    "id": 2,
                    "pos_x": 216,
                    "pos_y": 42,
                    "color": "none",
                    "fill": "rgb(255, 206, 74)",
                    "font_family": "Arial, sans-serif",
                    "font_size": 18,
                    "degree": 0,
                    "align": "middle",
                    "text": "ID 2",
                    "unit": "W",
                    "append": "",
                    "prepend": "",
                    "source": 1,
                    "source_option": -1,
                    "source_display": "value",
                    "shadow": "",
                    "threshold": 0,
                    "calculate_kw": false,
                    "convert": false,
                    "decimal_places": 2,
                    "subtract": [
                      -1
                    ],
                    "css_general": "",
                    "css_active_positive": "",
                    "css_inactive_positive": "",
                    "css_active_negative": "",
                    "css_inactive_negative": ""
                  },
                  "5": {
                    "type": "rect",
                    "id": 5,
                    "rx": 10,
                    "height": 100,
                    "width": 100,
                    "pos_x": 167,
                    "pos_y": 2,
                    "fill": "none",
                    "color": "rgb(255, 206, 74)",
                    "stroke": 2,
                    "shadow": "rgba(0,0,0,0.7)",
                    "frame": "_overlay",
                    "url": "",
                    "fill_value": null,
                    "fill_type": "percent",
                    "fill_direction": 90,
                    "fill_max": null,
                    "border_value": null,
                    "border_type": -1,
                    "border_direction": "cw",
                    "border_style": "round",
                    "border_max": null,
                    "border_reverse_value": null,
                    "border_reverse": false,
                    "border_start": 180,
                    "source": -1,
                    "threshold": 0,
                    "css_general": "",
                    "css_active_positive": "",
                    "css_inactive_positive": "",
                    "css_active_negative": "",
                    "css_inactive_negative": ""
                  },
                  "6": {
                    "type": "icon",
                    "id": "6",
                    "icon": "mdi:solar-panel",
                    "width": 24,
                    "height": 24,
                    "color": "rgba(0, 0, 0, 0.7)",
                    "pos_x": "205",
                    "pos_y": "6",
                    "shadow": "",
                    "css_general": "",
                    "css_active_positive": "",
                    "css_inactive_positive": "",
                    "css_active_negative": "",
                    "css_inactive_negative": "",
                    "source": -1,
                    "threshold": 0
                  },
                  "7": {
                    "type": "rect",
                    "id": 7,
                    "rx": 10,
                    "height": 100,
                    "width": 100,
                    "pos_x": 407,
                    "pos_y": 212,
                    "fill": "none",
                    "color": "rgb(0, 181, 221)",
                    "stroke": 2,
                    "shadow": "rgba(0,0,0,0.7)",
                    "frame": "_overlay",
                    "url": "",
                    "fill_value": null,
                    "fill_type": "percent",
                    "fill_direction": 90,
                    "fill_max": null,
                    "border_value": null,
                    "border_type": -1,
                    "border_direction": "cw",
                    "border_style": "round",
                    "border_max": null,
                    "border_reverse_value": null,
                    "border_reverse": false,
                    "border_start": 180,
                    "source": -1,
                    "threshold": 0,
                    "css_general": "",
                    "css_active_positive": "",
                    "css_inactive_positive": "",
                    "css_active_negative": "",
                    "css_inactive_negative": ""
                  },
                  "9": {
                    "type": "text",
                    "subType": "datasource",
                    "id": 9,
                    "pos_x": 457,
                    "pos_y": 254,
                    "color": "none",
                    "fill": "rgb(0, 181, 221)",
                    "font_family": "Arial, sans-serif",
                    "font_size": 18,
                    "degree": 0,
                    "align": "middle",
                    "text": "ID 9",
                    "unit": "W",
                    "append": "",
                    "prepend": "",
                    "source": 1,
                    "source_option": -1,
                    "source_display": "value",
                    "shadow": "",
                    "threshold": 0,
                    "calculate_kw": false,
                    "convert": false,
                    "decimal_places": 2,
                    "subtract": [
                      -1
                    ],
                    "css_general": "",
                    "css_active_positive": "",
                    "css_inactive_positive": "",
                    "css_active_negative": "",
                    "css_inactive_negative": ""
                  },
                  "10": {
                    "type": "text",
                    "id": 10,
                    "pos_x": 217,
                    "pos_y": 75,
                    "color": "none",
                    "fill": "rgba(0, 0, 0, 0.7)",
                    "font_family": "Arial, sans-serif",
                    "font_size": 14,
                    "degree": 0,
                    "align": "middle",
                    "text": "Produktion",
                    "shadow": "",
                    "css_general": ""
                  },
                  "11": {
                    "type": "text",
                    "id": 11,
                    "pos_x": 457,
                    "pos_y": 288,
                    "color": "none",
                    "fill": "rgba(0, 0, 0, 0.7)",
                    "font_family": "Arial, sans-serif",
                    "font_size": 14,
                    "degree": 0,
                    "align": "middle",
                    "text": "Verbrauch",
                    "shadow": "",
                    "css_general": ""
                  },
                  "12": {
                    "type": "icon",
                    "id": "12",
                    "icon": "mdi:house-city",
                    "width": 24,
                    "height": 24,
                    "color": "rgba(0, 0, 0, 0.7)",
                    "pos_x": "445",
                    "pos_y": "218",
                    "shadow": "",
                    "css_general": "",
                    "css_active_positive": "",
                    "css_inactive_positive": "",
                    "css_active_negative": "",
                    "css_inactive_negative": "",
                    "source": -1,
                    "threshold": 0
                  }
                },
                "defs": {
                  "path_5_7": {
                    "type": "def",
                    "id": "path_5_7",
                    "d": "M237 103  V 124.6 A 15 15 0 0 0 252 139.6  H 422 A 15 15 0 0 1 437 154.6  V 211",
                    "startSlot": "bottom_right",
                    "endSlot": "top_left"
                  }
                },
                "lines": {
                  "line_path_5_7": {
                    "type": "line",
                    "id": "line_path_5_7",
                    "href": "#path_5_7",
                    "color": "rgb(211, 183, 135)",
                    "shadow": ""
                  }
                },
                "animations": {
                  "anim_path_5_7": {
                    "type": "animation",
                    "id": "anim_path_5_7",
                    "href": "#path_5_7",
                    "color": "rgb(52, 20, 255)",
                    "source": "1",
                    "threshold": "0",
                    "animation_properties": "positive",
                    "animation_option": false,
                    "dots": 0,
                    "duration": 0,
                    "power": 0,
                    "animation_type": "-1",
                    "css_general": "",
                    "css_active_positive": "",
                    "css_inactive_positive": "",
                    "css_active_negative": "",
                    "css_inactive_negative": ""
                  }
                },
                "datasources": {
                  "1": {
                    "source": "0_userdata.0.KG.Stromzähler.Haupt.Power_total",
                    "alias": "Haupt"
                  }
                }
              }
              
              {
                "values": {
                  "2": "248.00",
                  "9": "248.00"
                },
                "unit": {
                  "2": "W",
                  "9": "W"
                },
                "animations": {
                  "anim_path_5_7": true
                },
                "fillValues": {},
                "animationProperties": {
                  "anim_path_5_7": {
                    "option": ""
                  }
                },
                "prepend": {
                  "2": "",
                  "9": ""
                },
                "append": {
                  "2": "",
                  "9": ""
                },
                "css": {
                  "2": {
                    "actPos": "",
                    "inactPos": "",
                    "actNeg": "",
                    "inactNeg": ""
                  },
                  "9": {
                    "actPos": "",
                    "inactPos": "",
                    "actNeg": "",
                    "inactNeg": ""
                  },
                  "anim_path_5_7": {
                    "actPos": "",
                    "inactPos": "",
                    "actNeg": "",
                    "inactNeg": ""
                  }
                }
              }
              
              
              

              Evtl. irgendein anderes Problem noch?

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

                @andi2055 Ich habe das "Error"-Handling einmal etwas angepasst.

                Wenn Du nochmal drüber installierst und dann in die Konsole schaust, müsste immerhin der Fehler kommen, der auftritt.

                Mit diesem kann ich dann weiterarbeiten.

                Wärst Du so freundlich und installierst einmal drüber und schaust dann in die Konsole mit F12?

                Die Alias'se habe ich getestet und es wird etwas angezeigt. Allerdings liefert ioBroker nur die States, welche man auswählen kann. Leere Ordner usw werden nicht übermittelt.

                2023-07-30 10_08_31-Energiefluss - erweitert Configuration.png

                1 Reply Last reply Reply Quote 0
                • A
                  andi2055 last edited by

                  @skb
                  Anbei das Log beim Neuladen

                  Using Instance: energiefluss-erweitert.1 functions.min.js:1:192
                  Ein iframe, der sowohl "allow-scripts" als auch "allow-same-origin" für sein "sandbox"-Attribut gesetzt hat, kann seine Sandbox entfernen. index.html
                  Loading config for instance: 1 functions.min.js:1:9129
                  Using direct load via iconify-API! functions.min.js:1:117511
                  Einige Cookies verwenden das empfohlene "SameSite"-Attribut inkorrekt. 4
                  Loaded additional file: js/iconify.min.js functions.min.js:1:77018
                  Loading User Config ... functions.min.js:1:19992
                  Using direct load via iconify-API! functions.min.js:1:22453
                  [Socket] subscribed to: energiefluss-erweitert.1.configuration,energiefluss-erweitert.1.data,system.adapter.energiefluss-erweitert.1.alive,energiefluss-erweitert.1.backup at 30.7.2023, 10:40:15 functions.min.js:1:3509
                  Loading initial Data. functions.min.js:1:10155
                  An error accured, while refreshing the data! The following Error was thrown: TypeError: can't convert undefined to object functions.min.js:1:8684
                      refreshData http://192.168.3.100:8082/energiefluss-erweitert/js/functions.min.js:1
                      loadConfig http://192.168.3.100:8082/energiefluss-erweitert/js/functions.min.js:1
                      onack http://192.168.3.100:8082/socket.io/socket.io.js:8
                      onpacket http://192.168.3.100:8082/socket.io/socket.io.js:8
                      exports http://192.168.3.100:8082/socket.io/socket.io.js:8
                      emit http://192.168.3.100:8082/socket.io/socket.io.js:6
                      ondecoded http://192.168.3.100:8082/socket.io/socket.io.js:6
                      exports http://192.168.3.100:8082/socket.io/socket.io.js:8
                      emit http://192.168.3.100:8082/socket.io/socket.io.js:6
                      add http://192.168.3.100:8082/socket.io/socket.io.js:6
                      ondata http://192.168.3.100:8082/socket.io/socket.io.js:6
                      exports http://192.168.3.100:8082/socket.io/socket.io.js:8
                      emit http://192.168.3.100:8082/socket.io/socket.io.js:6
                      onPacket http://192.168.3.100:8082/socket.io/socket.io.js:6
                      setTransport http://192.168.3.100:8082/socket.io/socket.io.js:6
                      emit http://192.168.3.100:8082/socket.io/socket.io.js:6
                      onPacket http://192.168.3.100:8082/socket.io/socket.io.js:7
                      n http://192.168.3.100:8082/socket.io/socket.io.js:7
                      decodePayload http://192.168.3.100:8082/socket.io/socket.io.js:7
                      onData http://192.168.3.100:8082/socket.io/socket.io.js:7
                      doPoll http://192.168.3.100:8082/socket.io/socket.io.js:7
                      emit http://192.168.3.100:8082/socket.io/socket.io.js:6
                      onData http://192.168.3.100:8082/socket.io/socket.io.js:7
                      onLoad http://192.168.3.100:8082/socket.io/socket.io.js:7
                      onreadystatechange http://192.168.3.100:8082/socket.io/socket.io.js:7
                  Loaded additional file: js/iconify.min.js functions.min.js:1:77018
                  An error accured, while refreshing the data! The following Error was thrown: TypeError: can't convert undefined to object 5 functions.min.js:1:8684
                      refreshData http://192.168.3.100:8082/energiefluss-erweitert/js/functions.min.js:1
                      displayListener http://192.168.3.100:8082/energiefluss-erweitert/js/functions.min.js:1
                  An error accured, while refreshing the data! The following Error was thrown: TypeError: can't convert undefined to object 35 functions.min.js:1:8684
                      refreshData http://192.168.3.100:8082/energiefluss-erweitert/js/functions.min.js:1
                      displayListener http://192.168.3.100:8082/energiefluss-erweitert/js/functions.min.js:1
                      (Async: setTimeout handler)
                      displayListener http://192.168.3.100:8082/energiefluss-erweitert/js/functions.min.js:1
                      emit http://192.168.3.100:8082/socket.io/socket.io.js:6
                      onevent http://192.168.3.100:8082/socket.io/socket.io.js:8
                      onpacket http://192.168.3.100:8082/socket.io/socket.io.js:8
                      exports http://192.168.3.100:8082/socket.io/socket.io.js:8
                      emit http://192.168.3.100:8082/socket.io/socket.io.js:6
                      ondecoded http://192.168.3.100:8082/socket.io/socket.io.js:6
                      exports http://192.168.3.100:8082/socket.io/socket.io.js:8
                      emit http://192.168.3.100:8082/socket.io/socket.io.js:6
                      add http://192.168.3.100:8082/socket.io/socket.io.js:6
                      ondata http://192.168.3.100:8082/socket.io/socket.io.js:6
                      exports http://192.168.3.100:8082/socket.io/socket.io.js:8
                      emit http://192.168.3.100:8082/socket.io/socket.io.js:6
                      onPacket http://192.168.3.100:8082/socket.io/socket.io.js:6
                      setTransport http://192.168.3.100:8082/socket.io/socket.io.js:6
                      emit http://192.168.3.100:8082/socket.io/socket.io.js:6
                      onPacket http://192.168.3.100:8082/socket.io/socket.io.js:7
                      onData http://192.168.3.100:8082/socket.io/socket.io.js:7
                      onmessage http://192.168.3.100:8082/socket.io/socket.io.js:8
                  

                  Das Problem beim Auswählen betrifft nur "Channel"
                  Wenn ich die manuell auf "Folder" ändere, dann sind die auswählbar
                  f9f6bbb7-8646-4674-936d-b8e0c6efc761-grafik.png

                  3d803dee-d5d0-45cc-ac5f-62f8bbc6b4b6-grafik.png

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

                    @andi2055 Danke für die Rückmeldung. Musste noch etwas erweitern. Kannst Du nochmal drüber installieren?

                    Sorry, dass das jetzt ein "Suchen nach der Nadel wird" ...

                    Nach den Objekten im Browser gucke ich die Tage nochmal.

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

                      @skb
                      jetzt funktioniert es wieder! Danke dir für den Support!

                      PS: super Adapter! und vor allem super flexibel! Habe dich gerade auch zu 2 Bier eingeladen...

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

                        @andi2055 Allerdings komisch. Es sollte ja noch mindestens 1 Fehler in der Konsole auftauchen, da ja eben nichts ging.

                        Eine Funktion müsste einen Fehler werfen. Kannst Du da nochmal ins Log gucken?

                        Prost übrigens 🙂

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

                          @skb
                          hm, keine Ahnung. Ich habe nur neu von Github installiert (so wie davor auch)
                          Direkt danach hat es funktioniert. Kein Fehler mehr...

                          d490f922-133f-46b5-9c6f-d0f02d6c57bd-grafik.png

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

                            @andi2055 Und das Mini-Projekt? Meldet dies einen Fehler?

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

                              @skb
                              das Mini-Projekt funktioniert nun ebenfalls ohne Fehler.
                              Wenn du nun sagst, dass du nichts außer Error-Handling geändert hast, dann weiß ich auch nicht weshalb es nun funktioniert...?

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

                                @andi2055 Das macht mich auch etwas stutzig gerade:D

                                Beim Aktualisieren werden 4 Funktionen aufgerufen, um die Daten (Values, Styles, Animation und Borders) darzustellen. Die habe ich nun in eigene Error-Catcher gesetzt.

                                Anscheinend lieferte eine Funktion keine plausiblen Werte. Man könnte jetzt jede der 4 Funktionen aus dem Error-Handling wieder rausnehmen, um zu schauen, woran es liegt. Aber, das muss ich dir nicht zumuten 🙂

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

                                  @skb
                                  wenn du mir sagst wie ich die 4 hintereinander ausprobieren kann, dann kein Problem. Oder kannst du irgendwas im Log ausgeben je nach catch?

                                  Ich habe gerade noch mit der Anzahl Punkte auf der Line je nach Wert gespielt. Zweimal ist der Adapter in einem Neustart-Loop gesprungen. Neustart hat das Problem wieder gelöst. Fehler im Log:

                                  
                                  energiefluss-erweitert.0
                                  2023-07-30 12:04:58.461	error	uncaught exception: Cannot read properties of undefined (reading 'id')
                                  
                                  energiefluss-erweitert.0
                                  2023-07-30 12:04:58.459	error	Cannot read properties of undefined (reading 'id')
                                  
                                  energiefluss-erweitert.0
                                  2023-07-30 12:04:58.458	error	TypeError: Cannot read properties of undefined (reading 'id') at EnergieflussErweitert.onStateChange (/opt/iobroker/node_modules/iobroker.energiefluss-erweitert/main.js:295:27) at EnergieflussErweitert.emit (node:events:514:28) at Immediate.<anonymous> (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:8382:57) at process.processImmediate (node:internal/timers:476:21)
                                  

                                  So ganz Blicke ich bei der Anzahl Punkte pro Linie auch noch nicht durch.
                                  Hier habe ich nun z.B. Folgendes eingetragen
                                  d10b3017-113a-421c-a449-a4d32665fced-grafik.png

                                  Bedeutet: bei 13000 Leistung (Wert der Linie ist nun zum Testen dem Wert oben im gelben Kreis - Bild unten) werden knapp die maximale Anzahl Punkte dargestellt? Weshalb sehe ich dann nur 6?
                                  Versuch 2: In der Konfig 6 Punkte + 13000 eingetragen - es werden auch 6 angezeigt
                                  69aef876-59cb-42ad-bb11-58a847e52a22-grafik.png

                                  Hier sind 6 Punkte und 3000 in der Konfig. Obwahl nur 25W werden 3 angezeigt?
                                  22c26414-af2b-4973-87a1-394340a3f004-grafik.png

                                  Oder hängt das noch mit dem Aktualisierungs-Bug vom Anfang zusammen?

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

                                    @andi2055 Die Animationen werden passend zu dem sich ändernden Wert ausgewertet. Also zum Zeitpunkt der Änderung.

                                    Dann wird die Linie mit neuen Punkten versehen. Heisst, wenn Du das Testen möchtest, Konfig abspeichern, Seite aufrufen und gucken - dann den Wert im DP ändern (lassen).

                                    Hier könnte allerdings, wie du sagst, vielleicht der Fehler in der Aktualisierung vorliegen. Erscheint denn ein Fehler im Log, wenn sich die Werte ändern?

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

                                      @skb
                                      in welchem Log. Also im Browser F12 habe ich nichts gesehen.
                                      Im ioB habe ich auf Warnung stehen und da sehe ich auch nichts.

                                      Manchmal werden auch die vollen Punkte (wie erwartet) angezeigt. Rechts bei LWP allerdings nicht. Die 25W sind allerdings auch teilweise stundenlang konstant solange die Wärmepumpe aus ist.

                                      9519f9f3-7dd7-4bd7-9a1a-e7a90547ce83-grafik.png

                                      Startet die Grafik also immer mit 3 Punkten und erst bei Änderung wird das angepasst?
                                      Teilweise habe ich beobachtet, dass 3 angezeigt werden und diese dann bei nur minimaler Änderung des Wertes auf 1 reduziert werden (so wie ich das erwarten würde bei kleinen Werten) - danach aber wieder auf 3 springen und manchmal dann nochmal auf 1 angepasst werden usw.

                                      So ich bin nun erst wieder heute Abend am PC...

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

                                        @andi2055 können wir uns gerne noch genauer anschauen, damit es zuverlässig(er) funktioniert.

                                        Ich nutze die Punkte auch und habe damit aktuell keine Probleme.

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

                                          @skb
                                          So habe nun herausgefunden, weshalb die animierten Punkte auf den Linien bei mir nicht immer so perfekt angezeigt werden.

                                          -"Maximale Punkte auf der Linie" -> mehr als 5 machen keinen Sinn, weil mit 5 ist die Linie voll. Ich dachte auf lange Linien passen auch 10. Feld auf max 5 beschränken?

                                          -Wenn der berechnete Wert wahrscheinlich unter 0,5 fällt, dann werden 3 Punkte anstatt 1 angezeigt. Beispiel: Max Punkte 5, Max Wert 2000, Wert des Datenpunkt = 50 -> es werden 3 angezeigt, beim Wert 500 wird 1 Punkt angezeigt was ok ist. Ich hatte den Defaultwert "3 Punkte" unter "Animation" eingestellt.
                                          Workaround: unter "Animation" nun "1 Punkt" ausgewählt. Nun passt es. Aber vielleicht trotzdem irgendwas anpassen. Neueinsteiger wird das sicherlich wie mich irritieren.

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

                                            @andi2055 Du kannst mehr Punkte verwenden, wenn die Abstände (Distanz) kleiner sind.
                                            Allerdings hast Du mit der Beschreibung Recht - ich schaue mir eine neue Formulierung an bzw ergänze sie.

                                            Schau hier:
                                            Screenshot_20230730-223050.png Screenshot_20230730-222957.png

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            941
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

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