Weiter zum Inhalt
  • Home
  • Aktuell
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Tester
  4. Test Widget vis-jsontemplate (vis1 und vis2 widget)

NEWS

  • iobroker.click: Visualisierungen und Vorlagen für ioBroker
    BluefoxB
    Bluefox
    16
    2
    1.0k

  • Monatsrückblick Oktober 2026 ist online!
    BluefoxB
    Bluefox
    11
    1
    527

  • Mitmachen: Sprich „ioBroker“ ein – für ein lokales Aktivierungswort
    BluefoxB
    Bluefox
    6
    1
    660

Test Widget vis-jsontemplate (vis1 und vis2 widget)

Geplant Angeheftet Gesperrt Verschoben Tester
adapterjson widgetrssfeedviswidget
121 Beiträge 9 Kommentatoren 19.0k Aufrufe 15 Beobachtet
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • mcm1957M mcm1957

    Das widget jsontemplate im Adapter vis-2-widgets-ovarious wird nicht mehr weiterentwickelt.

    Ist das Widget mit der aktuellen Stable vis-2 2.20.x noch kompatibel?
    Wenn nein dann sollte m.E. aus dem Repo fliegen. (Installierte Versionen werden dadurch ja nicht gelöscht und funktionieren weiter - solange VIS nicht aktualisisert wird,)

    Bitte um Rückmeldung

    OliverIOO
    OliverIOO
    OliverIO
    schrieb am zuletzt editiert von OliverIO
    #101

    @mcm1957

    nein vis-2-widgets-ovarious ist nicht mehr kompatibel und wird auch nicht mehr angepasst.
    Was muss ich tun?

    Meine Adapter und Widgets
    TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
    Links im Profil

    1 Antwort Letzte Antwort
    0
    • mcm1957M
      mcm1957M
      mcm1957
      Developer Most Active
      schrieb am zuletzt editiert von mcm1957
      #102

      Ich habs schon mal aus dem STABLE rausgenommen.

      Pers. würd ich's auch aus latest entfernen. Ebenso das rssfeed (oder so ähnlich) widget das ja auch deprecated ist.
      Wenn's für dich ok ist, kann ich das jederzeit machen.

      Wichtig für Mitleser:
      Das Entfernen aus dem Repo DEINSTALLIERT nichts auf euren Systemen. Die Adapter scheinen nu nicht mehr in der Repo Liste auf. Ob / wielange die Widgets mit welcher Umgebung laufen ist davon unabhängig. Aktualisisert und an vis-2 react 19 (>= 2.20.x) werden sie - nach meinem Kenntnisstand -. nicht mehr.

      EDIT:
      Ev. kannst die Repos auch auf Github archivieren wenn du dort nichts mehr planst zu tun. Dann sollte es für jedermann klar sein auch wenn er das Repo im Netz findet

      Entwicklung u Betreuung: envertech-pv, hoymiles-ms, ns-client, pid, snmp Adapter;
      Support Repositoryverwaltung.

      Wer 'nen Kaffee spendieren will: https://paypal.me

      LESEN - gute Forenbeitrage

      OliverIOO 1 Antwort Letzte Antwort
      0
      • mcm1957M mcm1957

        Ich habs schon mal aus dem STABLE rausgenommen.

        Pers. würd ich's auch aus latest entfernen. Ebenso das rssfeed (oder so ähnlich) widget das ja auch deprecated ist.
        Wenn's für dich ok ist, kann ich das jederzeit machen.

        Wichtig für Mitleser:
        Das Entfernen aus dem Repo DEINSTALLIERT nichts auf euren Systemen. Die Adapter scheinen nu nicht mehr in der Repo Liste auf. Ob / wielange die Widgets mit welcher Umgebung laufen ist davon unabhängig. Aktualisisert und an vis-2 react 19 (>= 2.20.x) werden sie - nach meinem Kenntnisstand -. nicht mehr.

        EDIT:
        Ev. kannst die Repos auch auf Github archivieren wenn du dort nichts mehr planst zu tun. Dann sollte es für jedermann klar sein auch wenn er das Repo im Netz findet

        OliverIOO
        OliverIOO
        OliverIO
        schrieb am zuletzt editiert von OliverIO
        #103

        @mcm1957

        ok,
        der aktive adapter mit den angepassten vis-2 widgets
        ist der adapter rssfeed. in diesem sind vis1 UND Vis2 widgets zusammen drin.

        was man rausnehmen kann wäre der adapter

        vis-2-widgets-rssfeed

        archivieren mach ich

        Meine Adapter und Widgets
        TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
        Links im Profil

        1 Antwort Letzte Antwort
        0
        • mcm1957M
          mcm1957M
          mcm1957
          Developer Most Active
          schrieb am zuletzt editiert von
          #104

          Ja dachte eh an widgets-rssfeed nicht den aktiven :-) code

          Entwicklung u Betreuung: envertech-pv, hoymiles-ms, ns-client, pid, snmp Adapter;
          Support Repositoryverwaltung.

          Wer 'nen Kaffee spendieren will: https://paypal.me

          LESEN - gute Forenbeitrage

          1 Antwort Letzte Antwort
          0
          • CyberraphC
            CyberraphC
            Cyberraph
            schrieb am zuletzt editiert von Cyberraph
            #105

            Hallo Zusammen!

            Nachfolgend ein paar Beispiele, wie ich nun meine VIS-2 am Handy komplettiert habe.

            Das ganze aufgebaut nur mit:

            • Navigation mit aufklappbarer Seitenleiste + Buttons (rot) mit vis2-materialdesign
              -> "Top App Bar"
              -> "Advanced View in Widget 8"
              -> lokalem DP = local_..., damit man lokal via Browser einen DP hat, der nur bei sich die Navigation die Ansicht steuert
              -> zzgl. "Icon Button State" der zzgl. zur Top App Bar den local_... DP beschreibt und eine ergänzende Navigation erlaubt

            • Rest zur gänze mit dem hier diskutierten JSON-Template Widget

            Ich habe im JSON-Template Widget nur mit
            "Allgemein" -> "Vorlage" (den gesamten, generierten Code dort reinkopiert)
            und
            "Datenpunkte: [##]" (darin die DPs hinterlegt, mit denen gearbeitet wird)
            gearbeitet.

            KI habe ich genommen: ChatGPT mit dem kostenlosen Probemonat vom "Plus" Abo.
            (das "Pro" hatte zumindest den Vorteil, dass man unbegrenzt Fotos, Dateien ect. anhängen durfte)

            Wichtig war immer die laut Doku beschriebenen "Regeln" der KI vorzugeben.
            (Dies am besten immer wieder explizit zu schreiben, damit sie es auch immer wieder einhält und nicht vergisst)
            Danach konnte ich durch mehrere Durchläufe und nur Andeutung
            von dem was nicht gefällt oder nicht sauber dargestellt wird / funktioniert, eine Korrektur bewirken bis zur finalen Lösung.
            (Natürlich ohne mein Detailwissen, ob es 100% im Hintergrund / im Code sauber ist
            -> aber solange alles flüssig läuft und im ioBroker Protokoll keine Fehlermeldungen ausgibt, war ich soweit zufrieden)

            Sehr hilfreich war auch immer der KI den Objekt-Baum (z.B. speziell die Alias-Objekte) zu geben.
            So konnte sie sauber alles analysieren und mir die DPs, die ich im JSON-Widget einpflegen soll, mitteilen.

            Nachfolgend meine Handy-Visualisierung per visu-App via VIS-2 und zuvor genannten Widgets:

            Alles was eine schwarze "Card" im Hintergrund hat ist jeweils ein JSON-Template Widget.

            1.jpeg 2.jpeg 3.jpeg 4.jpeg
            5.jpeg 6.jpeg 7.jpeg 8.jpeg
            9.jpeg

            ... Fortsetzung nachfolgender Post:

            Beste Grüße!

            io-Broker Neuling 2024 :-)

            Bislang jedoch einiges an Beiträgen und Grundlagen eingeflößt, um etwas besser empor zu irren.

            1 Antwort Letzte Antwort
            0
            • CyberraphC
              CyberraphC
              Cyberraph
              schrieb am zuletzt editiert von
              #106

              Fortsetzung Post#105

              10.jpeg 11.jpeg 12.jpeg 13.jpeg
              14.jpeg 15.jpeg 16.jpeg 17.jpeg
              18.jpeg 19.jpeg

              Fortsetzung nachfolgender Post:

              Beste Grüße!

              io-Broker Neuling 2024 :-)

              Bislang jedoch einiges an Beiträgen und Grundlagen eingeflößt, um etwas besser empor zu irren.

              1 Antwort Letzte Antwort
              0
              • CyberraphC
                CyberraphC
                Cyberraph
                schrieb am zuletzt editiert von
                #107

                Fortsetzung Post#106
                20.jpeg 21.jpeg 22.jpeg 23.jpeg
                24.jpeg

                Beste Grüße!

                io-Broker Neuling 2024 :-)

                Bislang jedoch einiges an Beiträgen und Grundlagen eingeflößt, um etwas besser empor zu irren.

                OliverIOO 1 Antwort Letzte Antwort
                1
                • CyberraphC Cyberraph

                  Fortsetzung Post#106
                  20.jpeg 21.jpeg 22.jpeg 23.jpeg
                  24.jpeg

                  OliverIOO
                  OliverIOO
                  OliverIO
                  schrieb am zuletzt editiert von OliverIO
                  #108

                  @Cyberraph

                  Sieht gut aus.
                  Wie ist es mit der Aktualisierung von widgets wen dort mehrere Datenpunkte enthalten sind? Flackert da was?
                  Ein Nachteil ist es ja, das wenn sich ein Datenpunkt ändert, das komplette widget neu aufgebaut wird. Bei häufigen Änderungen oder aufwändigerem Aufbau, kann das zu flackern führen. Ist aber beim html widget genauso.
                  Aber bei den meisten Anwendungsfällen sieht man da nix, weil der browser schnell genug ist.

                  Sind weitere javascript bibliotheken in den widgets mit referenziert, gerade bei den grafischen widgets? oder wird alles nativ gebaut?

                  Meine Adapter und Widgets
                  TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
                  Links im Profil

                  CyberraphC 1 Antwort Letzte Antwort
                  0
                  • OliverIOO OliverIO

                    @Cyberraph

                    Sieht gut aus.
                    Wie ist es mit der Aktualisierung von widgets wen dort mehrere Datenpunkte enthalten sind? Flackert da was?
                    Ein Nachteil ist es ja, das wenn sich ein Datenpunkt ändert, das komplette widget neu aufgebaut wird. Bei häufigen Änderungen oder aufwändigerem Aufbau, kann das zu flackern führen. Ist aber beim html widget genauso.
                    Aber bei den meisten Anwendungsfällen sieht man da nix, weil der browser schnell genug ist.

                    Sind weitere javascript bibliotheken in den widgets mit referenziert, gerade bei den grafischen widgets? oder wird alles nativ gebaut?

                    CyberraphC
                    CyberraphC
                    Cyberraph
                    schrieb am zuletzt editiert von Cyberraph
                    #109

                    @OliverIO
                    Damit gab es hier und da Probleme, ja.
                    Das es flackerte und das JSON-Widget eben neu renderte.

                    Das hatte dann zur Folge,
                    dass man z.B. ein scrollbares Menü nicht gut bedienen konnte. Es dann z.B. wieder auf den Anfang scrollte.

                    Oder, dass Scrollbalken flimmerten und nicht flüssig zu bedienen waren.
                    Z.B. bei dem "Online-Status" Widget, wo ich wirklich viele Datenpunkte hinterlegt hatte.

                    Oder bei den Linien-Diagrammen, hatte das neue Rendern dann das Problem verursacht,
                    dass man das Diagramm nicht vernünftig "abstasten" konnte.

                    Diese "Probleme" konnte ich ChatGPT per kurzem Video zeigen und es konnte mir dann den "Fehler" "ausbügeln".
                    Soweit ich das als Laie verstehe, lädt er es in den Browser-Cache zwischen und lässt das Widget nicht ständig neu rendern.

                    Und nein, ich habe nicht extra mit zusätzlichen Eingaben der Felder "Javascripts:[#"] und "CCS: [#] gearbeitet.
                    Den kompetten Code habe ich in "Allgemein" -> "Vorlage:" reinkopiert und fertig.

                    Nachfolgend das "Online-Status" JSON-Template Widget von mir herausgezogen:

                    [
                     {
                       "tpl": "tplJSONTemplate4",
                       "data": {
                         "bindings": [],
                         "oid": "nothing_selected",
                         "dpcount": 86,
                         "g_common": true,
                         "scriptcount": 1,
                         "csscount": 1,
                         "json_dp2": "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable2": null,
                         "g_datapoints-2": true,
                         "json_dp3": "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable3": null,
                         "g_datapoints-3": true,
                         "template": "<%\nconst devices = [\n[\"Aussensensor\", \"Aussen\", \"Nordost\", [[\"Zigbee\", \"alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Aussensensor\", \"Aussen\", \"Nordwest\", [[\"Homematic\", \"alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Aussensensor\", \"Aussen\", \"Südwest\", [[\"Zigbee\", \"alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"PV\", \"DG\", \"Dachboden\", [[\"LAN / WLAN\", \"alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"DG\", \"Dachboden\", [[\"Zigbee\", \"alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Abstellzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Hama LED-Leuchte\", \"EG\", \"Arbeitszimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Arbeitszimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Surface Angela\", \"EG\", \"Arbeitszimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive\"]], null, true, null],\n[\"Licht 01\", \"EG\", \"Bad\", [[\"Homematic\", \"alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Bad\", [[\"Zigbee\", \"alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Licht 01\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Plug 01 (Küche / Lagerraum)\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Schalter 01\", \"EG\", \"Küche\", [[\"Homematic\", \"alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"WC\", [[\"Zigbee\", \"alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"DLAN Verteiler\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive\"]], null, false, null],\n[\"Handy Corinna\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive\"]], null, true, null],\n[\"Handy Mutti\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive\"]], null, true, null],\n[\"Handy Raphael\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive\"]], null, true, null],\n[\"Homematic Zentrale\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive\"]], null, false, null],\n[\"FRITZ!Box 7530\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Easylog Sensor\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1\"]], null, false, null],\n[\"Smarthomeserver\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive\"]], null, false, null],\n[\"Zigbee Coordinator\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive\"]], null, false, null],\n[\"DLAN Wohnzimmer\", \"EG\", \"Wohnzimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive\"]], null, false, null],\n[\"Laptop Corinna\", \"EG\", \"Wohnzimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive\"]], null, true, null],\n[\"Plug 01\", \"EG\", \"Wohnzimmer\", [[\"Homematic\", \"alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Wohnzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Anlegefuehler D1-Mini-V3-Sensor-01-06\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive\"]], null, false, null],\n[\"Anlegefuehler D1-Mini-V3-Sensor-07-10\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive\"]], null, false, null],\n[\"E Heizer Boiler Leistungsdaten\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH\"]], null, false, null],\n[\"E Heizer Boiler Thermostat\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH\"]], null, false, null],\n[\"Wasserzähler\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive\"]], null, false, null],\n[\"Raumsensor\", \"KG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Plug 01\", \"KG\", \"Waschraum\", [[\"Homematic\", \"alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Waschmaschine\", \"KG\", \"Waschraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive\"]], null, true, null],\n[\"Raumsensor\", \"OG\", \"WC\", [[\"Zigbee\", \"alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"DLAN Zimmer Corinna\", \"OG\", \"Zimmer Corinna\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Zimmer Corinna\", [[\"Zigbee\", \"alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"TV\", \"OG\", \"Zimmer Corinna\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive\"]], null, true, null],\n[\"Raumsensor\", \"OG\", \"Schlafzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"BWM Wand 01\", \"OG\", \"Vorhaus\", [[\"Homematic\", \"alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Schalter 01\", \"OG\", \"Vorhaus\", [[\"Homematic\", \"alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive\"]], null, false, null],\n[\"Denon AV-Receiver\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Amazon Echo Dot\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive\"]], null, false, null],\n[\"DLAN Zimmer Raphael\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive\"]], null, false, null],\n[\"HP Laserdrucker\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"],\n[\"Licht 01\", \"OG\", \"Zimmer Raphael\", [[\"Homematic\", \"alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Nanoleaf LEDs\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive\"]], null, false, null],\n[\"Nintendo Switch 2\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Nintendo Switch OLED\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Stand-PC\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\"],\n[\"PS5\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Plug 01\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Plug 02\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH\"]], null, false, null],\n[\"Plug 03\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH\"]], null, false, null],\n[\"Plug 04\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Zimmer Raphael\", [[\"Homematic\", \"alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Stckleiste 1\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 2\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 3\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 4\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"]], null, false, null],\n[\"Surface Raphael\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive\"]], null, true, null],\n[\"LG TV\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Tablet Amazon Fire HD 10\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive\"]], null, true, null],\n[\"Ulanzi AWTRIX\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET\", false, \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"]];\nfunction read(id)\n{\n    if (!id || typeof dp === 'undefined' || !dp) return null;\n    let v = dp[id];\n    if (v !== null && typeof v === 'object') v = v.val;\n    if (v === true || v === 1 || v === 'true' || v === '1' || v === 'online') return true;\n    if (v === false || v === 0 || v === 'false' || v === '0' || v === 'offline') return false;\n    return null;\n}\nconst systems = ['LAN / WLAN','Zigbee','Homematic','Tuya','ioBroker-Adapter'];\nconst labels = ['Online','Störung','Offline','Ausgeschaltet','Unbekannt'];\nconst colors = ['#4ade80','#ef7777','#f6b55c','#687481','#8996a3'];\nfunction classify(values, power, trusted, optional)\n{\n    if (trusted && power === false && !values.includes(true)) return 3;\n    if (trusted && power === false && values.includes(true)) return 4;\n    if (values.includes(false)) return optional ? 2 : 1;\n    if (values.includes(null)) return 4;\n    return values.length && values.every(v => v === true) ? 0 : 4;\n}\nconst entries = devices.map(function(d)\n{\n    const checks = d[3].map(c => [c[0],read(c[1]),c[1]]);\n    const power = read(d[4]);\n    const trusted = !!d[4] && read(d[6]) === true;\n    const bySystem = systems.filter(s => checks.some(c => c[0] === s)).map(function(s)\n    {\n        let values = checks.filter(c => c[0] === s).map(c => c[1]);\n        if (s === 'LAN / WLAN' && values.length > 1)\n        {\n            values = [values.includes(true) ? true : values.includes(null) ? null : false];\n        }\n        return [s,classify(values,power,trusted,d[5])];\n    });\n    const states = bySystem.map(c => c[1]);\n    const status = [1,4,2,3,0].find(s => states.includes(s));\n    return [d[0],d[1],d[2],checks,power,trusted,bySystem,status,d[4]];\n});\nconst counts = labels.map((l,i) => entries.filter(e => e[7] === i).length);\nconst pct = entries.length ? Math.round(counts[0]*100/entries.length) : 0;\n%>\n<style>\n#net-<%- widgetid %>\n{\n width:382.9px; max-width:100%; height:729.8px; box-sizing:border-box; background:#1c222b; color:#edf2f7; border-radius:16px; padding:14px 10px 10px; font:13px Arial,sans-serif; display:flex; flex-direction:column; gap:8px; overflow:hidden;\n}\n#net-<%- widgetid %> *\n{\n box-sizing:border-box;\n}\n#net-<%- widgetid %> .head, #net-<%- widgetid %> .line\n{\n display:flex; align-items:center; justify-content:space-between; gap:6px;\n}\n#net-<%- widgetid %> .head\n{\n padding:2px 6px; height:24px; flex-shrink:0; font-weight:bold;\n}\n#net-<%- widgetid %> .panel\n{\n background:#26313d; border-radius:12px; padding:10px;\n}\n#net-<%- widgetid %> .tiles\n{\n display:grid; grid-template-columns:1fr 1fr; gap:6px;\n}\n#net-<%- widgetid %> .tiles > button:last-child\n{\n grid-column:1 / -1;\n}\n#net-<%- widgetid %> button\n{\n background:#26313d; color:#edf2f7; border:1px solid #465260; border-radius:7px; padding:7px; font:inherit; min-width:0;\n}\n#net-<%- widgetid %> button\n{\n cursor:pointer; text-align:left;\n}\n#net-<%- widgetid %> button.active\n{\n border-color:#78bde2; background:#34414f;\n}\n#net-<%- widgetid %> .bar\n{\n display:flex; height:4px; overflow:hidden; border-radius:3px; margin-top:5px;\n}\n#net-<%- widgetid %> .filters\n{\n display:flex; flex-wrap:wrap; gap:4px;\n}\n#net-<%- widgetid %> .filters button\n{\n flex:1; font-size:11px; text-align:center;\n}\n#net-<%- widgetid %> .list\n{\n flex:1; min-height:0; overflow-x:hidden; overflow-y:auto; overflow-anchor:none; scrollbar-width:none; overscroll-behavior:contain; background:#26313d; border-radius:10px; padding:7px;\n}\n#net-<%- widgetid %> .list::-webkit-scrollbar\n{\n display:none;\n}\n#net-<%- widgetid %> details\n{\n background:#1c222b; border-radius:6px; margin:4px 0; padding:7px;\n}\n#net-<%- widgetid %> summary\n{\n cursor:pointer; list-style:none;\n}\n#net-<%- widgetid %> .muted\n{\n color:#8996a3; font-size:10px;\n}\n#net-<%- widgetid %> .group\n{\n color:#78bde2; font-weight:bold; padding:7px 2px 2px;\n}\n</style>\n<div id=\"net-<%- widgetid %>\">\n<div class=\"head\"><span style=\"font-size:18px\"> <span style=\"color:<%- counts[4] === entries.length ? '#687481' : '#4ade80' %>\">●</span> Live</span><span>Netzwerkübersicht</span></div>\n<div class=\"panel line\">\n<svg viewBox=\"0 0 110 110\" width=\"105\" height=\"105\" style=\"flex-shrink:0\">\n<circle cx=\"55\" cy=\"55\" r=\"44\" fill=\"none\" stroke=\"#414d5a\" stroke-width=\"9\"/>\n<% let offset=0; for(let i=0;i<5;i++) { %>\n<% const len=entries.length ? counts[i]/entries.length*276.46 : 0; %>\n<circle cx=\"55\" cy=\"55\" r=\"44\" fill=\"none\" stroke=\"<%- colors[i] %>\" stroke-width=\"9\" stroke-dasharray=\"<%- len %> 276.46\" stroke-dashoffset=\"<%- -offset %>\" transform=\"rotate(-90 55 55)\"/>\n<% offset+=len; } %>\n<text x=\"55\" y=\"54\" text-anchor=\"middle\" fill=\"#edf2f7\" font-size=\"25\" font-weight=\"bold\"><%- pct %>%</text><text x=\"55\" y=\"69\" text-anchor=\"middle\" fill=\"#8996a3\" font-size=\"11\">Online</text>\n</svg>\n<div style=\"flex:1\"><div class=\"line\"><b>Geräte / Einheiten</b><b><%- entries.length %></b></div>\n<% for(let i=0;i<5;i++) { %>\n<button type=\"button\" data-status=\"<%- i %>\" class=\"line\" style=\"width:100%;padding:2px 4px;border:0\"><span style=\"color:<%- colors[i] %>\">● <%- labels[i] %></span><b><%- counts[i] %></b></button>\n<% } %>\n</div></div>\n<div class=\"tiles\">\n<% for(const s of systems) { %>\n<% const list=entries.flatMap(e=>e[6].filter(c=>c[0]===s)); const n=list.length; const cc=labels.map((l,i)=>list.filter(c=>c[1]===i).length); %>\n<button type=\"button\" data-system=\"<%- s %>\"><div class=\"line\"><b><%- s %></b><span class=\"muted\"><%- n %></span></div><div class=\"line\"><b style=\"color:#4ade80;font-size:17px\"><%- cc[0] %> / <%- n %></b><span style=\"color:<%- cc[1] ? '#ef7777' : '#8996a3' %>;font-size:10px\"><%- cc[1] %> Störung</span></div><div class=\"bar\">\n<% for(let i=0;i<5;i++) { %>\n<span style=\"width:<%- n ? cc[i]*100/n : 0 %>%;background:<%- colors[i] %>\"></span>\n<% } %>\n</div></button>\n<% } %>\n</div>\n<div class=\"filters\"><button type=\"button\" data-group=\"system\">Nach System</button><button type=\"button\" data-group=\"floor\">Nach Geschoss</button><button type=\"button\" data-reset>Alle / Reset</button></div>\n<div class=\"filters\"><button type=\"button\" data-status=\"1\">Störungen</button><button type=\"button\" data-status=\"2\">Offline</button><button type=\"button\" data-status=\"3\">Aus</button><button type=\"button\" data-status=\"4\">Unbekannt</button></div>\n<div class=\"muted\" data-caption></div>\n<div class=\"list\" data-list></div>\n<div class=\"muted\">Nur lesend · Status gemäß Alias-Datenpunkten</div>\n</div>\n<script>\n(function()\n{\n const key='net-<%- widgetid %>';\n const incoming=document.getElementById(key);\n if(!incoming) return;\n let root=incoming;\n if(!root) return;\n let entries=<%- JSON.stringify(entries).replace(/</g,'\\\\u003c') %>;\n const labels=<%- JSON.stringify(labels) %>;\n const colors=<%- JSON.stringify(colors) %>;\n const systems=<%- JSON.stringify(systems) %>;\n const stateKey=key+'-filters-v2';\n if(!window[stateKey])\n {\n  window[stateKey]=\n  {\n   system:'',status:-1,group:'system',scroll:0,open:[]\n  };\n }\n const st=window[stateKey];\n if(st.system==='Adapter') st.system='ioBroker-Adapter';\n if(st.system==='MQTT') st.system='LAN / WLAN';\n if(st.system && !systems.includes(st.system)) st.system='';\n const signature=JSON.stringify(entries);\n if(st.root && st.root!==incoming && typeof st.update==='function' && !st.root.isConnected && st.root.querySelectorAll('[data-system]').length===systems.length)\n {\n  const savedScroll=st.scroll;\n  incoming.replaceWith(st.root);\n  st.scroll=savedScroll;\n  st.update(entries, incoming, signature);\n  return;\n }\n st.root=root;\n const list=root.querySelector('[data-list]');\n function el(tag,text,cls)\n {\n  const node=document.createElement(tag);\n  if(text!==null) node.textContent=text;\n  if(cls) node.className=cls;\n  return node;\n }\n function restoreScroll()\n {\n  if(!root.isConnected || list.clientHeight===0) return;\n  list.scrollTop=Math.min(st.scroll,Math.max(0,list.scrollHeight-list.clientHeight));\n  st.scroll=list.scrollTop;\n }\n function render()\n {\n  if(!root.isConnected) return;\n  const fragment=document.createDocumentFragment();\n  let count=0;\n  const gs=st.group==='system' ? systems : ['Aussen','DG','OG','EG','KG'];\n  gs.forEach(function(g)\n  {\n   if(st.group==='system' && st.system && st.system!==g) return;\n   const rows=entries.filter(function(e)\n   {\n    if(st.system && !e[6].some(c=>c[0]===st.system)) return false;\n    if(st.group==='system' ? !e[6].some(c=>c[0]===g) : e[1]!==g) return false;\n    const s=st.group==='system' ? e[6].find(c=>c[0]===g)[1] : st.system ? e[6].find(c=>c[0]===st.system)[1] : e[7];\n    if(st.status>=0 && s!==st.status) return false;\n    return true;\n   });\n   if(!rows.length) return;\n   fragment.appendChild(el('div',g+' · '+rows.length,'group'));\n   rows.forEach(function(e)\n   {\n    count++;\n    const s=st.group==='system' ? e[6].find(c=>c[0]===g)[1] : st.system ? e[6].find(c=>c[0]===st.system)[1] : e[7];\n    const id=g+'|'+e[3][0][2];\n    const detail=el('details',null);\n    detail.open=st.open.includes(id);\n    const summary=el('summary',null,'line');\n    const name=el('div',null);\n    name.appendChild(el('b',e[0]));\n    name.appendChild(el('div',e[1]+' · '+e[2],'muted'));\n    summary.appendChild(name);\n    const status=el('span','● '+labels[s]); status.style.color=colors[s]; status.style.fontSize='11px';\n    summary.appendChild(status); detail.appendChild(summary);\n    e[3].forEach(function(c)\n    {\n     let connectionName=c[0];\n     if(c[0]==='ioBroker-Adapter')\n     {\n      if(e[0]==='Denon AV-Receiver') connectionName='Denon-Adapter';\n      if(e[0]==='LG TV') connectionName='LG-TV-Adapter';\n      if(e[0]==='Ulanzi AWTRIX') connectionName='AWTRIX-Adapter';\n      if(e[0]==='Nanoleaf LEDs') connectionName='Nanoleaf-Adapter';\n     }\n     if(c[2].endsWith('Wasserzaehler-Zuleitung-Bestand.status.alive')) connectionName='LAN / WLAN (MQTT-Status)';\n     const line=el('div',connectionName+': '+(c[1]===true?'Online':c[1]===false?'Offline':'Unbekannt'),'muted');\n     line.style.marginTop='5px'; detail.appendChild(line);\n    });\n    if(e[8]) detail.appendChild(el('div','Stromversorgung: '+(!e[5]?'Nicht verlässlich':e[4]===true?'EIN':e[4]===false?'AUS':'Unbekannt'),'muted'));\n    detail.ontoggle=function()\n    {\n     if(!detail.isConnected || st.root!==root) return;\n     if(detail.open && !st.open.includes(id)) st.open.push(id);\n     if(!detail.open) st.open=st.open.filter(x=>x!==id);\n    };\n    fragment.appendChild(detail);\n   });\n  });\n  if(!count) fragment.appendChild(el('div','Keine passenden Einträge','muted'));\n  root.querySelector('[data-caption]').textContent=count+' Listeneinträge'+(st.system?' · '+st.system:'');\n  root.querySelectorAll('button').forEach(function(b)\n  {\n   b.classList.toggle('active',b.dataset.system===st.system || b.dataset.group===st.group || (b.dataset.status!==undefined && Number(b.dataset.status)===st.status));\n  });\n  const markup=Array.from(fragment.childNodes).map(node=>node.outerHTML).join('');\n  if(list.innerHTML!==markup)\n  {\n   list.replaceChildren(fragment);\n  }\n  restoreScroll();\n }\n list.onscroll=function()\n {\n  if(st.root===root && root.isConnected && list.clientHeight>0) st.scroll=list.scrollTop;\n };\n root.onclick=function(event)\n {\n  const b=event.target.closest('button');\n  if(!b || !root.contains(b)) return;\n  event.preventDefault(); event.stopPropagation();\n  if(b.dataset.system!==undefined) st.system=st.system===b.dataset.system?'':b.dataset.system;\n  if(b.dataset.status!==undefined)\n  {\n   const s=Number(b.dataset.status); st.status=st.status===s?-1:s;\n  }\n  if(b.dataset.group!==undefined) st.group=b.dataset.group;\n  if(b.dataset.reset!==undefined)\n  {\n   st.system=''; st.status=-1;\n  }\n  st.scroll=0; render();\n };\n let lastSignature=signature;\n st.update=function(nextEntries, nextRoot, nextSignature)\n {\n  if(st.root!==root || !root.isConnected) return;\n  if(lastSignature===nextSignature)\n  {\n   restoreScroll();\n   return;\n  }\n  lastSignature=nextSignature;\n  entries=nextEntries;\n  // Update the fixed overview without replacing its clickable elements.\n  const oldParts=root.querySelectorAll('.head, .panel, .tiles');\n  const newParts=nextRoot.querySelectorAll('.head, .panel, .tiles');\n  function sync(a,b)\n  {\n   if(a.nodeType===3)\n   {\n    if(a.nodeValue!==b.nodeValue) a.nodeValue=b.nodeValue;\n    return;\n   }\n   if(a.nodeType!==1) return;\n   Array.from(b.attributes).forEach(function(attr)\n   {\n    if(attr.name!=='class' && a.getAttribute(attr.name)!==attr.value) a.setAttribute(attr.name,attr.value);\n   });\n   if(a.childNodes.length===b.childNodes.length)\n   {\n    Array.from(a.childNodes).forEach(function(child,i)\n    {\n     sync(child,b.childNodes[i]);\n    });\n   }\n  }\n  oldParts.forEach(function(part,i)\n  {\n   if(newParts[i]) sync(part,newParts[i]);\n  });\n  render();\n };\n render();\n})();\n</script>\n",
                         "scriptfile1": null,
                         "g_scriptfiles-1": true,
                         "cssfile1": null,
                         "g_cssfiles-1": true,
                         "json_dp1": "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable1": null,
                         "g_datapoints-1": true,
                         "json_dp4": "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive",
                         "json_dp_variable4": null,
                         "g_datapoints-4": true,
                         "json_dp5": "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable5": null,
                         "g_datapoints-5": true,
                         "json_dp6": "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable6": null,
                         "g_datapoints-6": true,
                         "json_dp7": "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH",
                         "json_dp_variable7": null,
                         "g_datapoints-7": true,
                         "json_dp8": "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable8": null,
                         "g_datapoints-8": true,
                         "json_dp9": "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive",
                         "json_dp_variable9": null,
                         "g_datapoints-9": true,
                         "json_dp10": "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH",
                         "json_dp_variable10": null,
                         "g_datapoints-10": true,
                         "json_dp11": "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable11": null,
                         "g_datapoints-11": true,
                         "json_dp12": "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH",
                         "json_dp_variable12": null,
                         "g_datapoints-12": true,
                         "json_dp13": "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH",
                         "json_dp_variable13": null,
                         "g_datapoints-13": true,
                         "json_dp14": "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable14": null,
                         "g_datapoints-14": true,
                         "json_dp15": "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive",
                         "json_dp_variable15": null,
                         "g_datapoints-15": true,
                         "json_dp16": "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable16": null,
                         "g_datapoints-16": true,
                         "json_dp17": "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive",
                         "json_dp_variable17": null,
                         "g_datapoints-17": true,
                         "json_dp18": "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive",
                         "json_dp_variable18": null,
                         "g_datapoints-18": true,
                         "json_dp19": "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive",
                         "json_dp_variable19": null,
                         "g_datapoints-19": true,
                         "json_dp20": "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive",
                         "json_dp_variable20": null,
                         "g_datapoints-20": true,
                         "json_dp21": "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive",
                         "json_dp_variable21": null,
                         "g_datapoints-21": true,
                         "json_dp22": "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive",
                         "json_dp_variable22": null,
                         "g_datapoints-22": true,
                         "json_dp23": "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable23": null,
                         "g_datapoints-23": true,
                         "json_dp24": "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1",
                         "json_dp_variable24": null,
                         "g_datapoints-24": true,
                         "json_dp25": "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive",
                         "json_dp_variable25": null,
                         "g_datapoints-25": true,
                         "json_dp26": "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive",
                         "json_dp_variable26": null,
                         "g_datapoints-26": true,
                         "json_dp27": "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive",
                         "json_dp_variable27": null,
                         "g_datapoints-27": true,
                         "json_dp28": "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive",
                         "json_dp_variable28": null,
                         "g_datapoints-28": true,
                         "json_dp29": "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH",
                         "json_dp_variable29": null,
                         "g_datapoints-29": true,
                         "json_dp30": "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable30": null,
                         "g_datapoints-30": true,
                         "json_dp31": "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive",
                         "json_dp_variable31": null,
                         "g_datapoints-31": true,
                         "json_dp32": "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive",
                         "json_dp_variable32": null,
                         "g_datapoints-32": true,
                         "json_dp33": "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH",
                         "json_dp_variable33": null,
                         "g_datapoints-33": true,
                         "json_dp34": "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH",
                         "json_dp_variable34": null,
                         "g_datapoints-34": true,
                         "json_dp35": "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive",
                         "json_dp_variable35": null,
                         "g_datapoints-35": true,
                         "json_dp36": "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable36": null,
                         "g_datapoints-36": true,
                         "json_dp37": "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH",
                         "json_dp_variable37": null,
                         "g_datapoints-37": true,
                         "json_dp38": "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive",
                         "json_dp_variable38": null,
                         "g_datapoints-38": true,
                         "json_dp39": "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable39": null,
                         "g_datapoints-39": true,
                         "json_dp40": "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive",
                         "json_dp_variable40": null,
                         "g_datapoints-40": true,
                         "json_dp41": "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable41": null,
                         "g_datapoints-41": true,
                         "json_dp42": "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive",
                         "json_dp_variable42": null,
                         "g_datapoints-42": true,
                         "json_dp43": "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable43": null,
                         "g_datapoints-43": true,
                         "json_dp44": "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive",
                         "json_dp_variable44": null,
                         "g_datapoints-44": true,
                         "json_dp45": "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable45": null,
                         "g_datapoints-45": true,
                         "json_dp46": "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive",
                         "json_dp_variable46": null,
                         "g_datapoints-46": true,
                         "json_dp47": "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH",
                         "json_dp_variable47": null,
                         "g_datapoints-47": true,
                         "json_dp48": "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive",
                         "json_dp_variable48": null,
                         "g_datapoints-48": true,
                         "json_dp49": "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive",
                         "json_dp_variable49": null,
                         "g_datapoints-49": true,
                         "json_dp50": "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive",
                         "json_dp_variable50": null,
                         "g_datapoints-50": true,
                         "json_dp51": "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive",
                         "json_dp_variable51": null,
                         "g_datapoints-51": true,
                         "json_dp52": "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH",
                         "json_dp_variable52": null,
                         "g_datapoints-52": true,
                         "json_dp53": "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH",
                         "json_dp_variable53": null,
                         "g_datapoints-53": true,
                         "json_dp54": "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive",
                         "json_dp_variable54": null,
                         "g_datapoints-54": true,
                         "json_dp55": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive",
                         "json_dp_variable55": null,
                         "g_datapoints-55": true,
                         "json_dp56": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2",
                         "json_dp_variable56": null,
                         "g_datapoints-56": true,
                         "json_dp57": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive",
                         "json_dp_variable57": null,
                         "g_datapoints-57": true,
                         "json_dp58": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2",
                         "json_dp_variable58": null,
                         "g_datapoints-58": true,
                         "json_dp59": "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive",
                         "json_dp_variable59": null,
                         "g_datapoints-59": true,
                         "json_dp60": "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive",
                         "json_dp_variable60": null,
                         "g_datapoints-60": true,
                         "json_dp61": "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH",
                         "json_dp_variable61": null,
                         "g_datapoints-61": true,
                         "json_dp62": "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH",
                         "json_dp_variable62": null,
                         "g_datapoints-62": true,
                         "json_dp63": "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH",
                         "json_dp_variable63": null,
                         "g_datapoints-63": true,
                         "json_dp64": "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive",
                         "json_dp_variable64": null,
                         "g_datapoints-64": true,
                         "json_dp65": "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive",
                         "json_dp_variable65": null,
                         "g_datapoints-65": true,
                         "json_dp66": "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online",
                         "json_dp_variable66": null,
                         "g_datapoints-66": true,
                         "json_dp67": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET",
                         "json_dp_variable67": null,
                         "g_datapoints-67": true,
                         "json_dp68": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET",
                         "json_dp_variable68": null,
                         "g_datapoints-68": true,
                         "json_dp69": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET",
                         "json_dp_variable69": null,
                         "g_datapoints-69": true,
                         "json_dp70": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive",
                         "json_dp_variable70": null,
                         "g_datapoints-70": true,
                         "json_dp71": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online",
                         "json_dp_variable71": null,
                         "g_datapoints-71": true,
                         "json_dp72": "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET",
                         "json_dp_variable72": null,
                         "g_datapoints-72": true,
                         "json_dp73": "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive",
                         "json_dp_variable73": null,
                         "g_datapoints-73": true,
                         "json_dp74": "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online",
                         "json_dp_variable74": null,
                         "g_datapoints-74": true,
                         "json_dp75": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET",
                         "json_dp_variable75": null,
                         "g_datapoints-75": true,
                         "json_dp76": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET",
                         "json_dp_variable76": null,
                         "g_datapoints-76": true,
                         "json_dp77": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive",
                         "json_dp_variable77": null,
                         "g_datapoints-77": true,
                         "json_dp78": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online",
                         "json_dp_variable78": null,
                         "g_datapoints-78": true,
                         "json_dp79": "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive",
                         "json_dp_variable79": null,
                         "g_datapoints-79": true,
                         "json_dp80": "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH",
                         "json_dp_variable80": null,
                         "g_datapoints-80": true,
                         "json_dp81": "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive",
                         "json_dp_variable81": null,
                         "g_datapoints-81": true,
                         "json_dp82": "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive",
                         "json_dp_variable82": null,
                         "g_datapoints-82": true,
                         "json_dp83": "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH",
                         "json_dp_variable83": null,
                         "g_datapoints-83": true,
                         "json_dp84": "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive",
                         "json_dp_variable84": null,
                         "g_datapoints-84": true,
                         "json_dp85": "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online",
                         "json_dp_variable85": null,
                         "g_datapoints-85": true,
                         "json_dp86": "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH",
                         "json_dp_variable86": null,
                         "g_datapoints-86": true
                       },
                       "style": {
                         "bindings": [],
                         "left": "5",
                         "top": "53px",
                         "width": "382.9",
                         "height": "729.8",
                         "z-index": 20
                       },
                       "widgetSet": "vis-jsontemplate",
                       "_id": "i000001"
                     }
                    ]
                    

                    Ergänzung - noch zwei Videos zu den "animierten" Widgets:
                    1.mp4
                    2.mp4

                    Beste Grüße!

                    io-Broker Neuling 2024 :-)

                    Bislang jedoch einiges an Beiträgen und Grundlagen eingeflößt, um etwas besser empor zu irren.

                    OliverIOO 2 Antworten Letzte Antwort
                    0
                    • CyberraphC Cyberraph

                      @OliverIO
                      Damit gab es hier und da Probleme, ja.
                      Das es flackerte und das JSON-Widget eben neu renderte.

                      Das hatte dann zur Folge,
                      dass man z.B. ein scrollbares Menü nicht gut bedienen konnte. Es dann z.B. wieder auf den Anfang scrollte.

                      Oder, dass Scrollbalken flimmerten und nicht flüssig zu bedienen waren.
                      Z.B. bei dem "Online-Status" Widget, wo ich wirklich viele Datenpunkte hinterlegt hatte.

                      Oder bei den Linien-Diagrammen, hatte das neue Rendern dann das Problem verursacht,
                      dass man das Diagramm nicht vernünftig "abstasten" konnte.

                      Diese "Probleme" konnte ich ChatGPT per kurzem Video zeigen und es konnte mir dann den "Fehler" "ausbügeln".
                      Soweit ich das als Laie verstehe, lädt er es in den Browser-Cache zwischen und lässt das Widget nicht ständig neu rendern.

                      Und nein, ich habe nicht extra mit zusätzlichen Eingaben der Felder "Javascripts:[#"] und "CCS: [#] gearbeitet.
                      Den kompetten Code habe ich in "Allgemein" -> "Vorlage:" reinkopiert und fertig.

                      Nachfolgend das "Online-Status" JSON-Template Widget von mir herausgezogen:

                      [
                       {
                         "tpl": "tplJSONTemplate4",
                         "data": {
                           "bindings": [],
                           "oid": "nothing_selected",
                           "dpcount": 86,
                           "g_common": true,
                           "scriptcount": 1,
                           "csscount": 1,
                           "json_dp2": "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable2": null,
                           "g_datapoints-2": true,
                           "json_dp3": "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable3": null,
                           "g_datapoints-3": true,
                           "template": "<%\nconst devices = [\n[\"Aussensensor\", \"Aussen\", \"Nordost\", [[\"Zigbee\", \"alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Aussensensor\", \"Aussen\", \"Nordwest\", [[\"Homematic\", \"alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Aussensensor\", \"Aussen\", \"Südwest\", [[\"Zigbee\", \"alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"PV\", \"DG\", \"Dachboden\", [[\"LAN / WLAN\", \"alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"DG\", \"Dachboden\", [[\"Zigbee\", \"alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Abstellzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Hama LED-Leuchte\", \"EG\", \"Arbeitszimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Arbeitszimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Surface Angela\", \"EG\", \"Arbeitszimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive\"]], null, true, null],\n[\"Licht 01\", \"EG\", \"Bad\", [[\"Homematic\", \"alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Bad\", [[\"Zigbee\", \"alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Licht 01\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Plug 01 (Küche / Lagerraum)\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Schalter 01\", \"EG\", \"Küche\", [[\"Homematic\", \"alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"WC\", [[\"Zigbee\", \"alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"DLAN Verteiler\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive\"]], null, false, null],\n[\"Handy Corinna\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive\"]], null, true, null],\n[\"Handy Mutti\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive\"]], null, true, null],\n[\"Handy Raphael\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive\"]], null, true, null],\n[\"Homematic Zentrale\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive\"]], null, false, null],\n[\"FRITZ!Box 7530\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Easylog Sensor\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1\"]], null, false, null],\n[\"Smarthomeserver\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive\"]], null, false, null],\n[\"Zigbee Coordinator\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive\"]], null, false, null],\n[\"DLAN Wohnzimmer\", \"EG\", \"Wohnzimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive\"]], null, false, null],\n[\"Laptop Corinna\", \"EG\", \"Wohnzimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive\"]], null, true, null],\n[\"Plug 01\", \"EG\", \"Wohnzimmer\", [[\"Homematic\", \"alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Wohnzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Anlegefuehler D1-Mini-V3-Sensor-01-06\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive\"]], null, false, null],\n[\"Anlegefuehler D1-Mini-V3-Sensor-07-10\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive\"]], null, false, null],\n[\"E Heizer Boiler Leistungsdaten\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH\"]], null, false, null],\n[\"E Heizer Boiler Thermostat\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH\"]], null, false, null],\n[\"Wasserzähler\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive\"]], null, false, null],\n[\"Raumsensor\", \"KG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Plug 01\", \"KG\", \"Waschraum\", [[\"Homematic\", \"alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Waschmaschine\", \"KG\", \"Waschraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive\"]], null, true, null],\n[\"Raumsensor\", \"OG\", \"WC\", [[\"Zigbee\", \"alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"DLAN Zimmer Corinna\", \"OG\", \"Zimmer Corinna\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Zimmer Corinna\", [[\"Zigbee\", \"alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"TV\", \"OG\", \"Zimmer Corinna\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive\"]], null, true, null],\n[\"Raumsensor\", \"OG\", \"Schlafzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"BWM Wand 01\", \"OG\", \"Vorhaus\", [[\"Homematic\", \"alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Schalter 01\", \"OG\", \"Vorhaus\", [[\"Homematic\", \"alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive\"]], null, false, null],\n[\"Denon AV-Receiver\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Amazon Echo Dot\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive\"]], null, false, null],\n[\"DLAN Zimmer Raphael\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive\"]], null, false, null],\n[\"HP Laserdrucker\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"],\n[\"Licht 01\", \"OG\", \"Zimmer Raphael\", [[\"Homematic\", \"alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Nanoleaf LEDs\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive\"]], null, false, null],\n[\"Nintendo Switch 2\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Nintendo Switch OLED\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Stand-PC\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\"],\n[\"PS5\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Plug 01\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Plug 02\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH\"]], null, false, null],\n[\"Plug 03\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH\"]], null, false, null],\n[\"Plug 04\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Zimmer Raphael\", [[\"Homematic\", \"alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Stckleiste 1\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 2\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 3\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 4\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"]], null, false, null],\n[\"Surface Raphael\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive\"]], null, true, null],\n[\"LG TV\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Tablet Amazon Fire HD 10\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive\"]], null, true, null],\n[\"Ulanzi AWTRIX\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET\", false, \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"]];\nfunction read(id)\n{\n    if (!id || typeof dp === 'undefined' || !dp) return null;\n    let v = dp[id];\n    if (v !== null && typeof v === 'object') v = v.val;\n    if (v === true || v === 1 || v === 'true' || v === '1' || v === 'online') return true;\n    if (v === false || v === 0 || v === 'false' || v === '0' || v === 'offline') return false;\n    return null;\n}\nconst systems = ['LAN / WLAN','Zigbee','Homematic','Tuya','ioBroker-Adapter'];\nconst labels = ['Online','Störung','Offline','Ausgeschaltet','Unbekannt'];\nconst colors = ['#4ade80','#ef7777','#f6b55c','#687481','#8996a3'];\nfunction classify(values, power, trusted, optional)\n{\n    if (trusted && power === false && !values.includes(true)) return 3;\n    if (trusted && power === false && values.includes(true)) return 4;\n    if (values.includes(false)) return optional ? 2 : 1;\n    if (values.includes(null)) return 4;\n    return values.length && values.every(v => v === true) ? 0 : 4;\n}\nconst entries = devices.map(function(d)\n{\n    const checks = d[3].map(c => [c[0],read(c[1]),c[1]]);\n    const power = read(d[4]);\n    const trusted = !!d[4] && read(d[6]) === true;\n    const bySystem = systems.filter(s => checks.some(c => c[0] === s)).map(function(s)\n    {\n        let values = checks.filter(c => c[0] === s).map(c => c[1]);\n        if (s === 'LAN / WLAN' && values.length > 1)\n        {\n            values = [values.includes(true) ? true : values.includes(null) ? null : false];\n        }\n        return [s,classify(values,power,trusted,d[5])];\n    });\n    const states = bySystem.map(c => c[1]);\n    const status = [1,4,2,3,0].find(s => states.includes(s));\n    return [d[0],d[1],d[2],checks,power,trusted,bySystem,status,d[4]];\n});\nconst counts = labels.map((l,i) => entries.filter(e => e[7] === i).length);\nconst pct = entries.length ? Math.round(counts[0]*100/entries.length) : 0;\n%>\n<style>\n#net-<%- widgetid %>\n{\n width:382.9px; max-width:100%; height:729.8px; box-sizing:border-box; background:#1c222b; color:#edf2f7; border-radius:16px; padding:14px 10px 10px; font:13px Arial,sans-serif; display:flex; flex-direction:column; gap:8px; overflow:hidden;\n}\n#net-<%- widgetid %> *\n{\n box-sizing:border-box;\n}\n#net-<%- widgetid %> .head, #net-<%- widgetid %> .line\n{\n display:flex; align-items:center; justify-content:space-between; gap:6px;\n}\n#net-<%- widgetid %> .head\n{\n padding:2px 6px; height:24px; flex-shrink:0; font-weight:bold;\n}\n#net-<%- widgetid %> .panel\n{\n background:#26313d; border-radius:12px; padding:10px;\n}\n#net-<%- widgetid %> .tiles\n{\n display:grid; grid-template-columns:1fr 1fr; gap:6px;\n}\n#net-<%- widgetid %> .tiles > button:last-child\n{\n grid-column:1 / -1;\n}\n#net-<%- widgetid %> button\n{\n background:#26313d; color:#edf2f7; border:1px solid #465260; border-radius:7px; padding:7px; font:inherit; min-width:0;\n}\n#net-<%- widgetid %> button\n{\n cursor:pointer; text-align:left;\n}\n#net-<%- widgetid %> button.active\n{\n border-color:#78bde2; background:#34414f;\n}\n#net-<%- widgetid %> .bar\n{\n display:flex; height:4px; overflow:hidden; border-radius:3px; margin-top:5px;\n}\n#net-<%- widgetid %> .filters\n{\n display:flex; flex-wrap:wrap; gap:4px;\n}\n#net-<%- widgetid %> .filters button\n{\n flex:1; font-size:11px; text-align:center;\n}\n#net-<%- widgetid %> .list\n{\n flex:1; min-height:0; overflow-x:hidden; overflow-y:auto; overflow-anchor:none; scrollbar-width:none; overscroll-behavior:contain; background:#26313d; border-radius:10px; padding:7px;\n}\n#net-<%- widgetid %> .list::-webkit-scrollbar\n{\n display:none;\n}\n#net-<%- widgetid %> details\n{\n background:#1c222b; border-radius:6px; margin:4px 0; padding:7px;\n}\n#net-<%- widgetid %> summary\n{\n cursor:pointer; list-style:none;\n}\n#net-<%- widgetid %> .muted\n{\n color:#8996a3; font-size:10px;\n}\n#net-<%- widgetid %> .group\n{\n color:#78bde2; font-weight:bold; padding:7px 2px 2px;\n}\n</style>\n<div id=\"net-<%- widgetid %>\">\n<div class=\"head\"><span style=\"font-size:18px\"> <span style=\"color:<%- counts[4] === entries.length ? '#687481' : '#4ade80' %>\">●</span> Live</span><span>Netzwerkübersicht</span></div>\n<div class=\"panel line\">\n<svg viewBox=\"0 0 110 110\" width=\"105\" height=\"105\" style=\"flex-shrink:0\">\n<circle cx=\"55\" cy=\"55\" r=\"44\" fill=\"none\" stroke=\"#414d5a\" stroke-width=\"9\"/>\n<% let offset=0; for(let i=0;i<5;i++) { %>\n<% const len=entries.length ? counts[i]/entries.length*276.46 : 0; %>\n<circle cx=\"55\" cy=\"55\" r=\"44\" fill=\"none\" stroke=\"<%- colors[i] %>\" stroke-width=\"9\" stroke-dasharray=\"<%- len %> 276.46\" stroke-dashoffset=\"<%- -offset %>\" transform=\"rotate(-90 55 55)\"/>\n<% offset+=len; } %>\n<text x=\"55\" y=\"54\" text-anchor=\"middle\" fill=\"#edf2f7\" font-size=\"25\" font-weight=\"bold\"><%- pct %>%</text><text x=\"55\" y=\"69\" text-anchor=\"middle\" fill=\"#8996a3\" font-size=\"11\">Online</text>\n</svg>\n<div style=\"flex:1\"><div class=\"line\"><b>Geräte / Einheiten</b><b><%- entries.length %></b></div>\n<% for(let i=0;i<5;i++) { %>\n<button type=\"button\" data-status=\"<%- i %>\" class=\"line\" style=\"width:100%;padding:2px 4px;border:0\"><span style=\"color:<%- colors[i] %>\">● <%- labels[i] %></span><b><%- counts[i] %></b></button>\n<% } %>\n</div></div>\n<div class=\"tiles\">\n<% for(const s of systems) { %>\n<% const list=entries.flatMap(e=>e[6].filter(c=>c[0]===s)); const n=list.length; const cc=labels.map((l,i)=>list.filter(c=>c[1]===i).length); %>\n<button type=\"button\" data-system=\"<%- s %>\"><div class=\"line\"><b><%- s %></b><span class=\"muted\"><%- n %></span></div><div class=\"line\"><b style=\"color:#4ade80;font-size:17px\"><%- cc[0] %> / <%- n %></b><span style=\"color:<%- cc[1] ? '#ef7777' : '#8996a3' %>;font-size:10px\"><%- cc[1] %> Störung</span></div><div class=\"bar\">\n<% for(let i=0;i<5;i++) { %>\n<span style=\"width:<%- n ? cc[i]*100/n : 0 %>%;background:<%- colors[i] %>\"></span>\n<% } %>\n</div></button>\n<% } %>\n</div>\n<div class=\"filters\"><button type=\"button\" data-group=\"system\">Nach System</button><button type=\"button\" data-group=\"floor\">Nach Geschoss</button><button type=\"button\" data-reset>Alle / Reset</button></div>\n<div class=\"filters\"><button type=\"button\" data-status=\"1\">Störungen</button><button type=\"button\" data-status=\"2\">Offline</button><button type=\"button\" data-status=\"3\">Aus</button><button type=\"button\" data-status=\"4\">Unbekannt</button></div>\n<div class=\"muted\" data-caption></div>\n<div class=\"list\" data-list></div>\n<div class=\"muted\">Nur lesend · Status gemäß Alias-Datenpunkten</div>\n</div>\n<script>\n(function()\n{\n const key='net-<%- widgetid %>';\n const incoming=document.getElementById(key);\n if(!incoming) return;\n let root=incoming;\n if(!root) return;\n let entries=<%- JSON.stringify(entries).replace(/</g,'\\\\u003c') %>;\n const labels=<%- JSON.stringify(labels) %>;\n const colors=<%- JSON.stringify(colors) %>;\n const systems=<%- JSON.stringify(systems) %>;\n const stateKey=key+'-filters-v2';\n if(!window[stateKey])\n {\n  window[stateKey]=\n  {\n   system:'',status:-1,group:'system',scroll:0,open:[]\n  };\n }\n const st=window[stateKey];\n if(st.system==='Adapter') st.system='ioBroker-Adapter';\n if(st.system==='MQTT') st.system='LAN / WLAN';\n if(st.system && !systems.includes(st.system)) st.system='';\n const signature=JSON.stringify(entries);\n if(st.root && st.root!==incoming && typeof st.update==='function' && !st.root.isConnected && st.root.querySelectorAll('[data-system]').length===systems.length)\n {\n  const savedScroll=st.scroll;\n  incoming.replaceWith(st.root);\n  st.scroll=savedScroll;\n  st.update(entries, incoming, signature);\n  return;\n }\n st.root=root;\n const list=root.querySelector('[data-list]');\n function el(tag,text,cls)\n {\n  const node=document.createElement(tag);\n  if(text!==null) node.textContent=text;\n  if(cls) node.className=cls;\n  return node;\n }\n function restoreScroll()\n {\n  if(!root.isConnected || list.clientHeight===0) return;\n  list.scrollTop=Math.min(st.scroll,Math.max(0,list.scrollHeight-list.clientHeight));\n  st.scroll=list.scrollTop;\n }\n function render()\n {\n  if(!root.isConnected) return;\n  const fragment=document.createDocumentFragment();\n  let count=0;\n  const gs=st.group==='system' ? systems : ['Aussen','DG','OG','EG','KG'];\n  gs.forEach(function(g)\n  {\n   if(st.group==='system' && st.system && st.system!==g) return;\n   const rows=entries.filter(function(e)\n   {\n    if(st.system && !e[6].some(c=>c[0]===st.system)) return false;\n    if(st.group==='system' ? !e[6].some(c=>c[0]===g) : e[1]!==g) return false;\n    const s=st.group==='system' ? e[6].find(c=>c[0]===g)[1] : st.system ? e[6].find(c=>c[0]===st.system)[1] : e[7];\n    if(st.status>=0 && s!==st.status) return false;\n    return true;\n   });\n   if(!rows.length) return;\n   fragment.appendChild(el('div',g+' · '+rows.length,'group'));\n   rows.forEach(function(e)\n   {\n    count++;\n    const s=st.group==='system' ? e[6].find(c=>c[0]===g)[1] : st.system ? e[6].find(c=>c[0]===st.system)[1] : e[7];\n    const id=g+'|'+e[3][0][2];\n    const detail=el('details',null);\n    detail.open=st.open.includes(id);\n    const summary=el('summary',null,'line');\n    const name=el('div',null);\n    name.appendChild(el('b',e[0]));\n    name.appendChild(el('div',e[1]+' · '+e[2],'muted'));\n    summary.appendChild(name);\n    const status=el('span','● '+labels[s]); status.style.color=colors[s]; status.style.fontSize='11px';\n    summary.appendChild(status); detail.appendChild(summary);\n    e[3].forEach(function(c)\n    {\n     let connectionName=c[0];\n     if(c[0]==='ioBroker-Adapter')\n     {\n      if(e[0]==='Denon AV-Receiver') connectionName='Denon-Adapter';\n      if(e[0]==='LG TV') connectionName='LG-TV-Adapter';\n      if(e[0]==='Ulanzi AWTRIX') connectionName='AWTRIX-Adapter';\n      if(e[0]==='Nanoleaf LEDs') connectionName='Nanoleaf-Adapter';\n     }\n     if(c[2].endsWith('Wasserzaehler-Zuleitung-Bestand.status.alive')) connectionName='LAN / WLAN (MQTT-Status)';\n     const line=el('div',connectionName+': '+(c[1]===true?'Online':c[1]===false?'Offline':'Unbekannt'),'muted');\n     line.style.marginTop='5px'; detail.appendChild(line);\n    });\n    if(e[8]) detail.appendChild(el('div','Stromversorgung: '+(!e[5]?'Nicht verlässlich':e[4]===true?'EIN':e[4]===false?'AUS':'Unbekannt'),'muted'));\n    detail.ontoggle=function()\n    {\n     if(!detail.isConnected || st.root!==root) return;\n     if(detail.open && !st.open.includes(id)) st.open.push(id);\n     if(!detail.open) st.open=st.open.filter(x=>x!==id);\n    };\n    fragment.appendChild(detail);\n   });\n  });\n  if(!count) fragment.appendChild(el('div','Keine passenden Einträge','muted'));\n  root.querySelector('[data-caption]').textContent=count+' Listeneinträge'+(st.system?' · '+st.system:'');\n  root.querySelectorAll('button').forEach(function(b)\n  {\n   b.classList.toggle('active',b.dataset.system===st.system || b.dataset.group===st.group || (b.dataset.status!==undefined && Number(b.dataset.status)===st.status));\n  });\n  const markup=Array.from(fragment.childNodes).map(node=>node.outerHTML).join('');\n  if(list.innerHTML!==markup)\n  {\n   list.replaceChildren(fragment);\n  }\n  restoreScroll();\n }\n list.onscroll=function()\n {\n  if(st.root===root && root.isConnected && list.clientHeight>0) st.scroll=list.scrollTop;\n };\n root.onclick=function(event)\n {\n  const b=event.target.closest('button');\n  if(!b || !root.contains(b)) return;\n  event.preventDefault(); event.stopPropagation();\n  if(b.dataset.system!==undefined) st.system=st.system===b.dataset.system?'':b.dataset.system;\n  if(b.dataset.status!==undefined)\n  {\n   const s=Number(b.dataset.status); st.status=st.status===s?-1:s;\n  }\n  if(b.dataset.group!==undefined) st.group=b.dataset.group;\n  if(b.dataset.reset!==undefined)\n  {\n   st.system=''; st.status=-1;\n  }\n  st.scroll=0; render();\n };\n let lastSignature=signature;\n st.update=function(nextEntries, nextRoot, nextSignature)\n {\n  if(st.root!==root || !root.isConnected) return;\n  if(lastSignature===nextSignature)\n  {\n   restoreScroll();\n   return;\n  }\n  lastSignature=nextSignature;\n  entries=nextEntries;\n  // Update the fixed overview without replacing its clickable elements.\n  const oldParts=root.querySelectorAll('.head, .panel, .tiles');\n  const newParts=nextRoot.querySelectorAll('.head, .panel, .tiles');\n  function sync(a,b)\n  {\n   if(a.nodeType===3)\n   {\n    if(a.nodeValue!==b.nodeValue) a.nodeValue=b.nodeValue;\n    return;\n   }\n   if(a.nodeType!==1) return;\n   Array.from(b.attributes).forEach(function(attr)\n   {\n    if(attr.name!=='class' && a.getAttribute(attr.name)!==attr.value) a.setAttribute(attr.name,attr.value);\n   });\n   if(a.childNodes.length===b.childNodes.length)\n   {\n    Array.from(a.childNodes).forEach(function(child,i)\n    {\n     sync(child,b.childNodes[i]);\n    });\n   }\n  }\n  oldParts.forEach(function(part,i)\n  {\n   if(newParts[i]) sync(part,newParts[i]);\n  });\n  render();\n };\n render();\n})();\n</script>\n",
                           "scriptfile1": null,
                           "g_scriptfiles-1": true,
                           "cssfile1": null,
                           "g_cssfiles-1": true,
                           "json_dp1": "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable1": null,
                           "g_datapoints-1": true,
                           "json_dp4": "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive",
                           "json_dp_variable4": null,
                           "g_datapoints-4": true,
                           "json_dp5": "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable5": null,
                           "g_datapoints-5": true,
                           "json_dp6": "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable6": null,
                           "g_datapoints-6": true,
                           "json_dp7": "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH",
                           "json_dp_variable7": null,
                           "g_datapoints-7": true,
                           "json_dp8": "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable8": null,
                           "g_datapoints-8": true,
                           "json_dp9": "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive",
                           "json_dp_variable9": null,
                           "g_datapoints-9": true,
                           "json_dp10": "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH",
                           "json_dp_variable10": null,
                           "g_datapoints-10": true,
                           "json_dp11": "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable11": null,
                           "g_datapoints-11": true,
                           "json_dp12": "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH",
                           "json_dp_variable12": null,
                           "g_datapoints-12": true,
                           "json_dp13": "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH",
                           "json_dp_variable13": null,
                           "g_datapoints-13": true,
                           "json_dp14": "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable14": null,
                           "g_datapoints-14": true,
                           "json_dp15": "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive",
                           "json_dp_variable15": null,
                           "g_datapoints-15": true,
                           "json_dp16": "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable16": null,
                           "g_datapoints-16": true,
                           "json_dp17": "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive",
                           "json_dp_variable17": null,
                           "g_datapoints-17": true,
                           "json_dp18": "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive",
                           "json_dp_variable18": null,
                           "g_datapoints-18": true,
                           "json_dp19": "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive",
                           "json_dp_variable19": null,
                           "g_datapoints-19": true,
                           "json_dp20": "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive",
                           "json_dp_variable20": null,
                           "g_datapoints-20": true,
                           "json_dp21": "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive",
                           "json_dp_variable21": null,
                           "g_datapoints-21": true,
                           "json_dp22": "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive",
                           "json_dp_variable22": null,
                           "g_datapoints-22": true,
                           "json_dp23": "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable23": null,
                           "g_datapoints-23": true,
                           "json_dp24": "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1",
                           "json_dp_variable24": null,
                           "g_datapoints-24": true,
                           "json_dp25": "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive",
                           "json_dp_variable25": null,
                           "g_datapoints-25": true,
                           "json_dp26": "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive",
                           "json_dp_variable26": null,
                           "g_datapoints-26": true,
                           "json_dp27": "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive",
                           "json_dp_variable27": null,
                           "g_datapoints-27": true,
                           "json_dp28": "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive",
                           "json_dp_variable28": null,
                           "g_datapoints-28": true,
                           "json_dp29": "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH",
                           "json_dp_variable29": null,
                           "g_datapoints-29": true,
                           "json_dp30": "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable30": null,
                           "g_datapoints-30": true,
                           "json_dp31": "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive",
                           "json_dp_variable31": null,
                           "g_datapoints-31": true,
                           "json_dp32": "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive",
                           "json_dp_variable32": null,
                           "g_datapoints-32": true,
                           "json_dp33": "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH",
                           "json_dp_variable33": null,
                           "g_datapoints-33": true,
                           "json_dp34": "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH",
                           "json_dp_variable34": null,
                           "g_datapoints-34": true,
                           "json_dp35": "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive",
                           "json_dp_variable35": null,
                           "g_datapoints-35": true,
                           "json_dp36": "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable36": null,
                           "g_datapoints-36": true,
                           "json_dp37": "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH",
                           "json_dp_variable37": null,
                           "g_datapoints-37": true,
                           "json_dp38": "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive",
                           "json_dp_variable38": null,
                           "g_datapoints-38": true,
                           "json_dp39": "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable39": null,
                           "g_datapoints-39": true,
                           "json_dp40": "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive",
                           "json_dp_variable40": null,
                           "g_datapoints-40": true,
                           "json_dp41": "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable41": null,
                           "g_datapoints-41": true,
                           "json_dp42": "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive",
                           "json_dp_variable42": null,
                           "g_datapoints-42": true,
                           "json_dp43": "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable43": null,
                           "g_datapoints-43": true,
                           "json_dp44": "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive",
                           "json_dp_variable44": null,
                           "g_datapoints-44": true,
                           "json_dp45": "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable45": null,
                           "g_datapoints-45": true,
                           "json_dp46": "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive",
                           "json_dp_variable46": null,
                           "g_datapoints-46": true,
                           "json_dp47": "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH",
                           "json_dp_variable47": null,
                           "g_datapoints-47": true,
                           "json_dp48": "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive",
                           "json_dp_variable48": null,
                           "g_datapoints-48": true,
                           "json_dp49": "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive",
                           "json_dp_variable49": null,
                           "g_datapoints-49": true,
                           "json_dp50": "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive",
                           "json_dp_variable50": null,
                           "g_datapoints-50": true,
                           "json_dp51": "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive",
                           "json_dp_variable51": null,
                           "g_datapoints-51": true,
                           "json_dp52": "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH",
                           "json_dp_variable52": null,
                           "g_datapoints-52": true,
                           "json_dp53": "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH",
                           "json_dp_variable53": null,
                           "g_datapoints-53": true,
                           "json_dp54": "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive",
                           "json_dp_variable54": null,
                           "g_datapoints-54": true,
                           "json_dp55": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive",
                           "json_dp_variable55": null,
                           "g_datapoints-55": true,
                           "json_dp56": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2",
                           "json_dp_variable56": null,
                           "g_datapoints-56": true,
                           "json_dp57": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive",
                           "json_dp_variable57": null,
                           "g_datapoints-57": true,
                           "json_dp58": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2",
                           "json_dp_variable58": null,
                           "g_datapoints-58": true,
                           "json_dp59": "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive",
                           "json_dp_variable59": null,
                           "g_datapoints-59": true,
                           "json_dp60": "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive",
                           "json_dp_variable60": null,
                           "g_datapoints-60": true,
                           "json_dp61": "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH",
                           "json_dp_variable61": null,
                           "g_datapoints-61": true,
                           "json_dp62": "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH",
                           "json_dp_variable62": null,
                           "g_datapoints-62": true,
                           "json_dp63": "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH",
                           "json_dp_variable63": null,
                           "g_datapoints-63": true,
                           "json_dp64": "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive",
                           "json_dp_variable64": null,
                           "g_datapoints-64": true,
                           "json_dp65": "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive",
                           "json_dp_variable65": null,
                           "g_datapoints-65": true,
                           "json_dp66": "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online",
                           "json_dp_variable66": null,
                           "g_datapoints-66": true,
                           "json_dp67": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET",
                           "json_dp_variable67": null,
                           "g_datapoints-67": true,
                           "json_dp68": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET",
                           "json_dp_variable68": null,
                           "g_datapoints-68": true,
                           "json_dp69": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET",
                           "json_dp_variable69": null,
                           "g_datapoints-69": true,
                           "json_dp70": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive",
                           "json_dp_variable70": null,
                           "g_datapoints-70": true,
                           "json_dp71": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online",
                           "json_dp_variable71": null,
                           "g_datapoints-71": true,
                           "json_dp72": "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET",
                           "json_dp_variable72": null,
                           "g_datapoints-72": true,
                           "json_dp73": "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive",
                           "json_dp_variable73": null,
                           "g_datapoints-73": true,
                           "json_dp74": "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online",
                           "json_dp_variable74": null,
                           "g_datapoints-74": true,
                           "json_dp75": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET",
                           "json_dp_variable75": null,
                           "g_datapoints-75": true,
                           "json_dp76": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET",
                           "json_dp_variable76": null,
                           "g_datapoints-76": true,
                           "json_dp77": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive",
                           "json_dp_variable77": null,
                           "g_datapoints-77": true,
                           "json_dp78": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online",
                           "json_dp_variable78": null,
                           "g_datapoints-78": true,
                           "json_dp79": "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive",
                           "json_dp_variable79": null,
                           "g_datapoints-79": true,
                           "json_dp80": "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH",
                           "json_dp_variable80": null,
                           "g_datapoints-80": true,
                           "json_dp81": "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive",
                           "json_dp_variable81": null,
                           "g_datapoints-81": true,
                           "json_dp82": "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive",
                           "json_dp_variable82": null,
                           "g_datapoints-82": true,
                           "json_dp83": "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH",
                           "json_dp_variable83": null,
                           "g_datapoints-83": true,
                           "json_dp84": "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive",
                           "json_dp_variable84": null,
                           "g_datapoints-84": true,
                           "json_dp85": "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online",
                           "json_dp_variable85": null,
                           "g_datapoints-85": true,
                           "json_dp86": "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH",
                           "json_dp_variable86": null,
                           "g_datapoints-86": true
                         },
                         "style": {
                           "bindings": [],
                           "left": "5",
                           "top": "53px",
                           "width": "382.9",
                           "height": "729.8",
                           "z-index": 20
                         },
                         "widgetSet": "vis-jsontemplate",
                         "_id": "i000001"
                       }
                      ]
                      

                      Ergänzung - noch zwei Videos zu den "animierten" Widgets:
                      1.mp4
                      2.mp4

                      OliverIOO
                      OliverIOO
                      OliverIO
                      schrieb am zuletzt editiert von OliverIO
                      #110

                      @Cyberraph

                      Sehr gut.
                      Wenn man ein Account hat, geht es bei openAI mit codes oder Antrophic mit claude sogar noch besser.
                      Da kann sich codex bspw direkt mit dem iobroker verbinden und sogar noch besser selbst kontrollieren, da es dann bspw im zweifel playright herunterladen kann (ein scriptbarer browser auf chromium-basis).
                      Wenn man dann sagt, die Seite ist unter http://..... verfügbarsieht codex alles was im browser ankommt und kann entscheiden was er sich da ansieht. Das kostet dann auch weniger tokens (auch die Abos kosten irgendwie tokens), wie gleich ein ganzes video analysieren zu lassen.
                      Aber das ist schon etwas für fortgeschrittene.

                      videos finde ich auch gut
                      und auch das dezente animieren.

                      Ist zwar etwas off-topic, aber hier ein Beispiel was claude mit nur minimalen vorgaben machen kann
                      https://thelastboringslide.com/de/
                      prompt ist hier, claude hatte freie Hand
                      Hat dann auch umgerechnet in APi tokens 90$ gekostet
                      Hier der link zum prompt, welcher aber recht unspektakuläre ist.
                      https://x.com/fluxxrider/status/2125701190872915996?a=Ech2oLvAIMl6bKCf5Fg&s=61

                      Meine Adapter und Widgets
                      TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
                      Links im Profil

                      1 Antwort Letzte Antwort
                      1
                      • CyberraphC Cyberraph

                        @OliverIO
                        Damit gab es hier und da Probleme, ja.
                        Das es flackerte und das JSON-Widget eben neu renderte.

                        Das hatte dann zur Folge,
                        dass man z.B. ein scrollbares Menü nicht gut bedienen konnte. Es dann z.B. wieder auf den Anfang scrollte.

                        Oder, dass Scrollbalken flimmerten und nicht flüssig zu bedienen waren.
                        Z.B. bei dem "Online-Status" Widget, wo ich wirklich viele Datenpunkte hinterlegt hatte.

                        Oder bei den Linien-Diagrammen, hatte das neue Rendern dann das Problem verursacht,
                        dass man das Diagramm nicht vernünftig "abstasten" konnte.

                        Diese "Probleme" konnte ich ChatGPT per kurzem Video zeigen und es konnte mir dann den "Fehler" "ausbügeln".
                        Soweit ich das als Laie verstehe, lädt er es in den Browser-Cache zwischen und lässt das Widget nicht ständig neu rendern.

                        Und nein, ich habe nicht extra mit zusätzlichen Eingaben der Felder "Javascripts:[#"] und "CCS: [#] gearbeitet.
                        Den kompetten Code habe ich in "Allgemein" -> "Vorlage:" reinkopiert und fertig.

                        Nachfolgend das "Online-Status" JSON-Template Widget von mir herausgezogen:

                        [
                         {
                           "tpl": "tplJSONTemplate4",
                           "data": {
                             "bindings": [],
                             "oid": "nothing_selected",
                             "dpcount": 86,
                             "g_common": true,
                             "scriptcount": 1,
                             "csscount": 1,
                             "json_dp2": "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable2": null,
                             "g_datapoints-2": true,
                             "json_dp3": "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable3": null,
                             "g_datapoints-3": true,
                             "template": "<%\nconst devices = [\n[\"Aussensensor\", \"Aussen\", \"Nordost\", [[\"Zigbee\", \"alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Aussensensor\", \"Aussen\", \"Nordwest\", [[\"Homematic\", \"alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Aussensensor\", \"Aussen\", \"Südwest\", [[\"Zigbee\", \"alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"PV\", \"DG\", \"Dachboden\", [[\"LAN / WLAN\", \"alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"DG\", \"Dachboden\", [[\"Zigbee\", \"alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Abstellzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Hama LED-Leuchte\", \"EG\", \"Arbeitszimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Arbeitszimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Surface Angela\", \"EG\", \"Arbeitszimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive\"]], null, true, null],\n[\"Licht 01\", \"EG\", \"Bad\", [[\"Homematic\", \"alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Bad\", [[\"Zigbee\", \"alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Licht 01\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Plug 01 (Küche / Lagerraum)\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Schalter 01\", \"EG\", \"Küche\", [[\"Homematic\", \"alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"WC\", [[\"Zigbee\", \"alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"DLAN Verteiler\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive\"]], null, false, null],\n[\"Handy Corinna\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive\"]], null, true, null],\n[\"Handy Mutti\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive\"]], null, true, null],\n[\"Handy Raphael\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive\"]], null, true, null],\n[\"Homematic Zentrale\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive\"]], null, false, null],\n[\"FRITZ!Box 7530\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Easylog Sensor\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1\"]], null, false, null],\n[\"Smarthomeserver\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive\"]], null, false, null],\n[\"Zigbee Coordinator\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive\"]], null, false, null],\n[\"DLAN Wohnzimmer\", \"EG\", \"Wohnzimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive\"]], null, false, null],\n[\"Laptop Corinna\", \"EG\", \"Wohnzimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive\"]], null, true, null],\n[\"Plug 01\", \"EG\", \"Wohnzimmer\", [[\"Homematic\", \"alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Wohnzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Anlegefuehler D1-Mini-V3-Sensor-01-06\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive\"]], null, false, null],\n[\"Anlegefuehler D1-Mini-V3-Sensor-07-10\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive\"]], null, false, null],\n[\"E Heizer Boiler Leistungsdaten\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH\"]], null, false, null],\n[\"E Heizer Boiler Thermostat\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH\"]], null, false, null],\n[\"Wasserzähler\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive\"]], null, false, null],\n[\"Raumsensor\", \"KG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Plug 01\", \"KG\", \"Waschraum\", [[\"Homematic\", \"alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Waschmaschine\", \"KG\", \"Waschraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive\"]], null, true, null],\n[\"Raumsensor\", \"OG\", \"WC\", [[\"Zigbee\", \"alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"DLAN Zimmer Corinna\", \"OG\", \"Zimmer Corinna\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Zimmer Corinna\", [[\"Zigbee\", \"alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"TV\", \"OG\", \"Zimmer Corinna\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive\"]], null, true, null],\n[\"Raumsensor\", \"OG\", \"Schlafzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"BWM Wand 01\", \"OG\", \"Vorhaus\", [[\"Homematic\", \"alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Schalter 01\", \"OG\", \"Vorhaus\", [[\"Homematic\", \"alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive\"]], null, false, null],\n[\"Denon AV-Receiver\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Amazon Echo Dot\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive\"]], null, false, null],\n[\"DLAN Zimmer Raphael\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive\"]], null, false, null],\n[\"HP Laserdrucker\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"],\n[\"Licht 01\", \"OG\", \"Zimmer Raphael\", [[\"Homematic\", \"alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Nanoleaf LEDs\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive\"]], null, false, null],\n[\"Nintendo Switch 2\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Nintendo Switch OLED\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Stand-PC\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\"],\n[\"PS5\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Plug 01\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Plug 02\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH\"]], null, false, null],\n[\"Plug 03\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH\"]], null, false, null],\n[\"Plug 04\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Zimmer Raphael\", [[\"Homematic\", \"alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Stckleiste 1\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 2\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 3\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 4\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"]], null, false, null],\n[\"Surface Raphael\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive\"]], null, true, null],\n[\"LG TV\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Tablet Amazon Fire HD 10\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive\"]], null, true, null],\n[\"Ulanzi AWTRIX\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET\", false, \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"]];\nfunction read(id)\n{\n    if (!id || typeof dp === 'undefined' || !dp) return null;\n    let v = dp[id];\n    if (v !== null && typeof v === 'object') v = v.val;\n    if (v === true || v === 1 || v === 'true' || v === '1' || v === 'online') return true;\n    if (v === false || v === 0 || v === 'false' || v === '0' || v === 'offline') return false;\n    return null;\n}\nconst systems = ['LAN / WLAN','Zigbee','Homematic','Tuya','ioBroker-Adapter'];\nconst labels = ['Online','Störung','Offline','Ausgeschaltet','Unbekannt'];\nconst colors = ['#4ade80','#ef7777','#f6b55c','#687481','#8996a3'];\nfunction classify(values, power, trusted, optional)\n{\n    if (trusted && power === false && !values.includes(true)) return 3;\n    if (trusted && power === false && values.includes(true)) return 4;\n    if (values.includes(false)) return optional ? 2 : 1;\n    if (values.includes(null)) return 4;\n    return values.length && values.every(v => v === true) ? 0 : 4;\n}\nconst entries = devices.map(function(d)\n{\n    const checks = d[3].map(c => [c[0],read(c[1]),c[1]]);\n    const power = read(d[4]);\n    const trusted = !!d[4] && read(d[6]) === true;\n    const bySystem = systems.filter(s => checks.some(c => c[0] === s)).map(function(s)\n    {\n        let values = checks.filter(c => c[0] === s).map(c => c[1]);\n        if (s === 'LAN / WLAN' && values.length > 1)\n        {\n            values = [values.includes(true) ? true : values.includes(null) ? null : false];\n        }\n        return [s,classify(values,power,trusted,d[5])];\n    });\n    const states = bySystem.map(c => c[1]);\n    const status = [1,4,2,3,0].find(s => states.includes(s));\n    return [d[0],d[1],d[2],checks,power,trusted,bySystem,status,d[4]];\n});\nconst counts = labels.map((l,i) => entries.filter(e => e[7] === i).length);\nconst pct = entries.length ? Math.round(counts[0]*100/entries.length) : 0;\n%>\n<style>\n#net-<%- widgetid %>\n{\n width:382.9px; max-width:100%; height:729.8px; box-sizing:border-box; background:#1c222b; color:#edf2f7; border-radius:16px; padding:14px 10px 10px; font:13px Arial,sans-serif; display:flex; flex-direction:column; gap:8px; overflow:hidden;\n}\n#net-<%- widgetid %> *\n{\n box-sizing:border-box;\n}\n#net-<%- widgetid %> .head, #net-<%- widgetid %> .line\n{\n display:flex; align-items:center; justify-content:space-between; gap:6px;\n}\n#net-<%- widgetid %> .head\n{\n padding:2px 6px; height:24px; flex-shrink:0; font-weight:bold;\n}\n#net-<%- widgetid %> .panel\n{\n background:#26313d; border-radius:12px; padding:10px;\n}\n#net-<%- widgetid %> .tiles\n{\n display:grid; grid-template-columns:1fr 1fr; gap:6px;\n}\n#net-<%- widgetid %> .tiles > button:last-child\n{\n grid-column:1 / -1;\n}\n#net-<%- widgetid %> button\n{\n background:#26313d; color:#edf2f7; border:1px solid #465260; border-radius:7px; padding:7px; font:inherit; min-width:0;\n}\n#net-<%- widgetid %> button\n{\n cursor:pointer; text-align:left;\n}\n#net-<%- widgetid %> button.active\n{\n border-color:#78bde2; background:#34414f;\n}\n#net-<%- widgetid %> .bar\n{\n display:flex; height:4px; overflow:hidden; border-radius:3px; margin-top:5px;\n}\n#net-<%- widgetid %> .filters\n{\n display:flex; flex-wrap:wrap; gap:4px;\n}\n#net-<%- widgetid %> .filters button\n{\n flex:1; font-size:11px; text-align:center;\n}\n#net-<%- widgetid %> .list\n{\n flex:1; min-height:0; overflow-x:hidden; overflow-y:auto; overflow-anchor:none; scrollbar-width:none; overscroll-behavior:contain; background:#26313d; border-radius:10px; padding:7px;\n}\n#net-<%- widgetid %> .list::-webkit-scrollbar\n{\n display:none;\n}\n#net-<%- widgetid %> details\n{\n background:#1c222b; border-radius:6px; margin:4px 0; padding:7px;\n}\n#net-<%- widgetid %> summary\n{\n cursor:pointer; list-style:none;\n}\n#net-<%- widgetid %> .muted\n{\n color:#8996a3; font-size:10px;\n}\n#net-<%- widgetid %> .group\n{\n color:#78bde2; font-weight:bold; padding:7px 2px 2px;\n}\n</style>\n<div id=\"net-<%- widgetid %>\">\n<div class=\"head\"><span style=\"font-size:18px\"> <span style=\"color:<%- counts[4] === entries.length ? '#687481' : '#4ade80' %>\">●</span> Live</span><span>Netzwerkübersicht</span></div>\n<div class=\"panel line\">\n<svg viewBox=\"0 0 110 110\" width=\"105\" height=\"105\" style=\"flex-shrink:0\">\n<circle cx=\"55\" cy=\"55\" r=\"44\" fill=\"none\" stroke=\"#414d5a\" stroke-width=\"9\"/>\n<% let offset=0; for(let i=0;i<5;i++) { %>\n<% const len=entries.length ? counts[i]/entries.length*276.46 : 0; %>\n<circle cx=\"55\" cy=\"55\" r=\"44\" fill=\"none\" stroke=\"<%- colors[i] %>\" stroke-width=\"9\" stroke-dasharray=\"<%- len %> 276.46\" stroke-dashoffset=\"<%- -offset %>\" transform=\"rotate(-90 55 55)\"/>\n<% offset+=len; } %>\n<text x=\"55\" y=\"54\" text-anchor=\"middle\" fill=\"#edf2f7\" font-size=\"25\" font-weight=\"bold\"><%- pct %>%</text><text x=\"55\" y=\"69\" text-anchor=\"middle\" fill=\"#8996a3\" font-size=\"11\">Online</text>\n</svg>\n<div style=\"flex:1\"><div class=\"line\"><b>Geräte / Einheiten</b><b><%- entries.length %></b></div>\n<% for(let i=0;i<5;i++) { %>\n<button type=\"button\" data-status=\"<%- i %>\" class=\"line\" style=\"width:100%;padding:2px 4px;border:0\"><span style=\"color:<%- colors[i] %>\">● <%- labels[i] %></span><b><%- counts[i] %></b></button>\n<% } %>\n</div></div>\n<div class=\"tiles\">\n<% for(const s of systems) { %>\n<% const list=entries.flatMap(e=>e[6].filter(c=>c[0]===s)); const n=list.length; const cc=labels.map((l,i)=>list.filter(c=>c[1]===i).length); %>\n<button type=\"button\" data-system=\"<%- s %>\"><div class=\"line\"><b><%- s %></b><span class=\"muted\"><%- n %></span></div><div class=\"line\"><b style=\"color:#4ade80;font-size:17px\"><%- cc[0] %> / <%- n %></b><span style=\"color:<%- cc[1] ? '#ef7777' : '#8996a3' %>;font-size:10px\"><%- cc[1] %> Störung</span></div><div class=\"bar\">\n<% for(let i=0;i<5;i++) { %>\n<span style=\"width:<%- n ? cc[i]*100/n : 0 %>%;background:<%- colors[i] %>\"></span>\n<% } %>\n</div></button>\n<% } %>\n</div>\n<div class=\"filters\"><button type=\"button\" data-group=\"system\">Nach System</button><button type=\"button\" data-group=\"floor\">Nach Geschoss</button><button type=\"button\" data-reset>Alle / Reset</button></div>\n<div class=\"filters\"><button type=\"button\" data-status=\"1\">Störungen</button><button type=\"button\" data-status=\"2\">Offline</button><button type=\"button\" data-status=\"3\">Aus</button><button type=\"button\" data-status=\"4\">Unbekannt</button></div>\n<div class=\"muted\" data-caption></div>\n<div class=\"list\" data-list></div>\n<div class=\"muted\">Nur lesend · Status gemäß Alias-Datenpunkten</div>\n</div>\n<script>\n(function()\n{\n const key='net-<%- widgetid %>';\n const incoming=document.getElementById(key);\n if(!incoming) return;\n let root=incoming;\n if(!root) return;\n let entries=<%- JSON.stringify(entries).replace(/</g,'\\\\u003c') %>;\n const labels=<%- JSON.stringify(labels) %>;\n const colors=<%- JSON.stringify(colors) %>;\n const systems=<%- JSON.stringify(systems) %>;\n const stateKey=key+'-filters-v2';\n if(!window[stateKey])\n {\n  window[stateKey]=\n  {\n   system:'',status:-1,group:'system',scroll:0,open:[]\n  };\n }\n const st=window[stateKey];\n if(st.system==='Adapter') st.system='ioBroker-Adapter';\n if(st.system==='MQTT') st.system='LAN / WLAN';\n if(st.system && !systems.includes(st.system)) st.system='';\n const signature=JSON.stringify(entries);\n if(st.root && st.root!==incoming && typeof st.update==='function' && !st.root.isConnected && st.root.querySelectorAll('[data-system]').length===systems.length)\n {\n  const savedScroll=st.scroll;\n  incoming.replaceWith(st.root);\n  st.scroll=savedScroll;\n  st.update(entries, incoming, signature);\n  return;\n }\n st.root=root;\n const list=root.querySelector('[data-list]');\n function el(tag,text,cls)\n {\n  const node=document.createElement(tag);\n  if(text!==null) node.textContent=text;\n  if(cls) node.className=cls;\n  return node;\n }\n function restoreScroll()\n {\n  if(!root.isConnected || list.clientHeight===0) return;\n  list.scrollTop=Math.min(st.scroll,Math.max(0,list.scrollHeight-list.clientHeight));\n  st.scroll=list.scrollTop;\n }\n function render()\n {\n  if(!root.isConnected) return;\n  const fragment=document.createDocumentFragment();\n  let count=0;\n  const gs=st.group==='system' ? systems : ['Aussen','DG','OG','EG','KG'];\n  gs.forEach(function(g)\n  {\n   if(st.group==='system' && st.system && st.system!==g) return;\n   const rows=entries.filter(function(e)\n   {\n    if(st.system && !e[6].some(c=>c[0]===st.system)) return false;\n    if(st.group==='system' ? !e[6].some(c=>c[0]===g) : e[1]!==g) return false;\n    const s=st.group==='system' ? e[6].find(c=>c[0]===g)[1] : st.system ? e[6].find(c=>c[0]===st.system)[1] : e[7];\n    if(st.status>=0 && s!==st.status) return false;\n    return true;\n   });\n   if(!rows.length) return;\n   fragment.appendChild(el('div',g+' · '+rows.length,'group'));\n   rows.forEach(function(e)\n   {\n    count++;\n    const s=st.group==='system' ? e[6].find(c=>c[0]===g)[1] : st.system ? e[6].find(c=>c[0]===st.system)[1] : e[7];\n    const id=g+'|'+e[3][0][2];\n    const detail=el('details',null);\n    detail.open=st.open.includes(id);\n    const summary=el('summary',null,'line');\n    const name=el('div',null);\n    name.appendChild(el('b',e[0]));\n    name.appendChild(el('div',e[1]+' · '+e[2],'muted'));\n    summary.appendChild(name);\n    const status=el('span','● '+labels[s]); status.style.color=colors[s]; status.style.fontSize='11px';\n    summary.appendChild(status); detail.appendChild(summary);\n    e[3].forEach(function(c)\n    {\n     let connectionName=c[0];\n     if(c[0]==='ioBroker-Adapter')\n     {\n      if(e[0]==='Denon AV-Receiver') connectionName='Denon-Adapter';\n      if(e[0]==='LG TV') connectionName='LG-TV-Adapter';\n      if(e[0]==='Ulanzi AWTRIX') connectionName='AWTRIX-Adapter';\n      if(e[0]==='Nanoleaf LEDs') connectionName='Nanoleaf-Adapter';\n     }\n     if(c[2].endsWith('Wasserzaehler-Zuleitung-Bestand.status.alive')) connectionName='LAN / WLAN (MQTT-Status)';\n     const line=el('div',connectionName+': '+(c[1]===true?'Online':c[1]===false?'Offline':'Unbekannt'),'muted');\n     line.style.marginTop='5px'; detail.appendChild(line);\n    });\n    if(e[8]) detail.appendChild(el('div','Stromversorgung: '+(!e[5]?'Nicht verlässlich':e[4]===true?'EIN':e[4]===false?'AUS':'Unbekannt'),'muted'));\n    detail.ontoggle=function()\n    {\n     if(!detail.isConnected || st.root!==root) return;\n     if(detail.open && !st.open.includes(id)) st.open.push(id);\n     if(!detail.open) st.open=st.open.filter(x=>x!==id);\n    };\n    fragment.appendChild(detail);\n   });\n  });\n  if(!count) fragment.appendChild(el('div','Keine passenden Einträge','muted'));\n  root.querySelector('[data-caption]').textContent=count+' Listeneinträge'+(st.system?' · '+st.system:'');\n  root.querySelectorAll('button').forEach(function(b)\n  {\n   b.classList.toggle('active',b.dataset.system===st.system || b.dataset.group===st.group || (b.dataset.status!==undefined && Number(b.dataset.status)===st.status));\n  });\n  const markup=Array.from(fragment.childNodes).map(node=>node.outerHTML).join('');\n  if(list.innerHTML!==markup)\n  {\n   list.replaceChildren(fragment);\n  }\n  restoreScroll();\n }\n list.onscroll=function()\n {\n  if(st.root===root && root.isConnected && list.clientHeight>0) st.scroll=list.scrollTop;\n };\n root.onclick=function(event)\n {\n  const b=event.target.closest('button');\n  if(!b || !root.contains(b)) return;\n  event.preventDefault(); event.stopPropagation();\n  if(b.dataset.system!==undefined) st.system=st.system===b.dataset.system?'':b.dataset.system;\n  if(b.dataset.status!==undefined)\n  {\n   const s=Number(b.dataset.status); st.status=st.status===s?-1:s;\n  }\n  if(b.dataset.group!==undefined) st.group=b.dataset.group;\n  if(b.dataset.reset!==undefined)\n  {\n   st.system=''; st.status=-1;\n  }\n  st.scroll=0; render();\n };\n let lastSignature=signature;\n st.update=function(nextEntries, nextRoot, nextSignature)\n {\n  if(st.root!==root || !root.isConnected) return;\n  if(lastSignature===nextSignature)\n  {\n   restoreScroll();\n   return;\n  }\n  lastSignature=nextSignature;\n  entries=nextEntries;\n  // Update the fixed overview without replacing its clickable elements.\n  const oldParts=root.querySelectorAll('.head, .panel, .tiles');\n  const newParts=nextRoot.querySelectorAll('.head, .panel, .tiles');\n  function sync(a,b)\n  {\n   if(a.nodeType===3)\n   {\n    if(a.nodeValue!==b.nodeValue) a.nodeValue=b.nodeValue;\n    return;\n   }\n   if(a.nodeType!==1) return;\n   Array.from(b.attributes).forEach(function(attr)\n   {\n    if(attr.name!=='class' && a.getAttribute(attr.name)!==attr.value) a.setAttribute(attr.name,attr.value);\n   });\n   if(a.childNodes.length===b.childNodes.length)\n   {\n    Array.from(a.childNodes).forEach(function(child,i)\n    {\n     sync(child,b.childNodes[i]);\n    });\n   }\n  }\n  oldParts.forEach(function(part,i)\n  {\n   if(newParts[i]) sync(part,newParts[i]);\n  });\n  render();\n };\n render();\n})();\n</script>\n",
                             "scriptfile1": null,
                             "g_scriptfiles-1": true,
                             "cssfile1": null,
                             "g_cssfiles-1": true,
                             "json_dp1": "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable1": null,
                             "g_datapoints-1": true,
                             "json_dp4": "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive",
                             "json_dp_variable4": null,
                             "g_datapoints-4": true,
                             "json_dp5": "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable5": null,
                             "g_datapoints-5": true,
                             "json_dp6": "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable6": null,
                             "g_datapoints-6": true,
                             "json_dp7": "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH",
                             "json_dp_variable7": null,
                             "g_datapoints-7": true,
                             "json_dp8": "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable8": null,
                             "g_datapoints-8": true,
                             "json_dp9": "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive",
                             "json_dp_variable9": null,
                             "g_datapoints-9": true,
                             "json_dp10": "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH",
                             "json_dp_variable10": null,
                             "g_datapoints-10": true,
                             "json_dp11": "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable11": null,
                             "g_datapoints-11": true,
                             "json_dp12": "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH",
                             "json_dp_variable12": null,
                             "g_datapoints-12": true,
                             "json_dp13": "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH",
                             "json_dp_variable13": null,
                             "g_datapoints-13": true,
                             "json_dp14": "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable14": null,
                             "g_datapoints-14": true,
                             "json_dp15": "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive",
                             "json_dp_variable15": null,
                             "g_datapoints-15": true,
                             "json_dp16": "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable16": null,
                             "g_datapoints-16": true,
                             "json_dp17": "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive",
                             "json_dp_variable17": null,
                             "g_datapoints-17": true,
                             "json_dp18": "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive",
                             "json_dp_variable18": null,
                             "g_datapoints-18": true,
                             "json_dp19": "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive",
                             "json_dp_variable19": null,
                             "g_datapoints-19": true,
                             "json_dp20": "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive",
                             "json_dp_variable20": null,
                             "g_datapoints-20": true,
                             "json_dp21": "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive",
                             "json_dp_variable21": null,
                             "g_datapoints-21": true,
                             "json_dp22": "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive",
                             "json_dp_variable22": null,
                             "g_datapoints-22": true,
                             "json_dp23": "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable23": null,
                             "g_datapoints-23": true,
                             "json_dp24": "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1",
                             "json_dp_variable24": null,
                             "g_datapoints-24": true,
                             "json_dp25": "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive",
                             "json_dp_variable25": null,
                             "g_datapoints-25": true,
                             "json_dp26": "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive",
                             "json_dp_variable26": null,
                             "g_datapoints-26": true,
                             "json_dp27": "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive",
                             "json_dp_variable27": null,
                             "g_datapoints-27": true,
                             "json_dp28": "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive",
                             "json_dp_variable28": null,
                             "g_datapoints-28": true,
                             "json_dp29": "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH",
                             "json_dp_variable29": null,
                             "g_datapoints-29": true,
                             "json_dp30": "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable30": null,
                             "g_datapoints-30": true,
                             "json_dp31": "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive",
                             "json_dp_variable31": null,
                             "g_datapoints-31": true,
                             "json_dp32": "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive",
                             "json_dp_variable32": null,
                             "g_datapoints-32": true,
                             "json_dp33": "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH",
                             "json_dp_variable33": null,
                             "g_datapoints-33": true,
                             "json_dp34": "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH",
                             "json_dp_variable34": null,
                             "g_datapoints-34": true,
                             "json_dp35": "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive",
                             "json_dp_variable35": null,
                             "g_datapoints-35": true,
                             "json_dp36": "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable36": null,
                             "g_datapoints-36": true,
                             "json_dp37": "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH",
                             "json_dp_variable37": null,
                             "g_datapoints-37": true,
                             "json_dp38": "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive",
                             "json_dp_variable38": null,
                             "g_datapoints-38": true,
                             "json_dp39": "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable39": null,
                             "g_datapoints-39": true,
                             "json_dp40": "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive",
                             "json_dp_variable40": null,
                             "g_datapoints-40": true,
                             "json_dp41": "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable41": null,
                             "g_datapoints-41": true,
                             "json_dp42": "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive",
                             "json_dp_variable42": null,
                             "g_datapoints-42": true,
                             "json_dp43": "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable43": null,
                             "g_datapoints-43": true,
                             "json_dp44": "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive",
                             "json_dp_variable44": null,
                             "g_datapoints-44": true,
                             "json_dp45": "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable45": null,
                             "g_datapoints-45": true,
                             "json_dp46": "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive",
                             "json_dp_variable46": null,
                             "g_datapoints-46": true,
                             "json_dp47": "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH",
                             "json_dp_variable47": null,
                             "g_datapoints-47": true,
                             "json_dp48": "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive",
                             "json_dp_variable48": null,
                             "g_datapoints-48": true,
                             "json_dp49": "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive",
                             "json_dp_variable49": null,
                             "g_datapoints-49": true,
                             "json_dp50": "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive",
                             "json_dp_variable50": null,
                             "g_datapoints-50": true,
                             "json_dp51": "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive",
                             "json_dp_variable51": null,
                             "g_datapoints-51": true,
                             "json_dp52": "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH",
                             "json_dp_variable52": null,
                             "g_datapoints-52": true,
                             "json_dp53": "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH",
                             "json_dp_variable53": null,
                             "g_datapoints-53": true,
                             "json_dp54": "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive",
                             "json_dp_variable54": null,
                             "g_datapoints-54": true,
                             "json_dp55": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive",
                             "json_dp_variable55": null,
                             "g_datapoints-55": true,
                             "json_dp56": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2",
                             "json_dp_variable56": null,
                             "g_datapoints-56": true,
                             "json_dp57": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive",
                             "json_dp_variable57": null,
                             "g_datapoints-57": true,
                             "json_dp58": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2",
                             "json_dp_variable58": null,
                             "g_datapoints-58": true,
                             "json_dp59": "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive",
                             "json_dp_variable59": null,
                             "g_datapoints-59": true,
                             "json_dp60": "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive",
                             "json_dp_variable60": null,
                             "g_datapoints-60": true,
                             "json_dp61": "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH",
                             "json_dp_variable61": null,
                             "g_datapoints-61": true,
                             "json_dp62": "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH",
                             "json_dp_variable62": null,
                             "g_datapoints-62": true,
                             "json_dp63": "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH",
                             "json_dp_variable63": null,
                             "g_datapoints-63": true,
                             "json_dp64": "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive",
                             "json_dp_variable64": null,
                             "g_datapoints-64": true,
                             "json_dp65": "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive",
                             "json_dp_variable65": null,
                             "g_datapoints-65": true,
                             "json_dp66": "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online",
                             "json_dp_variable66": null,
                             "g_datapoints-66": true,
                             "json_dp67": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET",
                             "json_dp_variable67": null,
                             "g_datapoints-67": true,
                             "json_dp68": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET",
                             "json_dp_variable68": null,
                             "g_datapoints-68": true,
                             "json_dp69": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET",
                             "json_dp_variable69": null,
                             "g_datapoints-69": true,
                             "json_dp70": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive",
                             "json_dp_variable70": null,
                             "g_datapoints-70": true,
                             "json_dp71": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online",
                             "json_dp_variable71": null,
                             "g_datapoints-71": true,
                             "json_dp72": "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET",
                             "json_dp_variable72": null,
                             "g_datapoints-72": true,
                             "json_dp73": "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive",
                             "json_dp_variable73": null,
                             "g_datapoints-73": true,
                             "json_dp74": "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online",
                             "json_dp_variable74": null,
                             "g_datapoints-74": true,
                             "json_dp75": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET",
                             "json_dp_variable75": null,
                             "g_datapoints-75": true,
                             "json_dp76": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET",
                             "json_dp_variable76": null,
                             "g_datapoints-76": true,
                             "json_dp77": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive",
                             "json_dp_variable77": null,
                             "g_datapoints-77": true,
                             "json_dp78": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online",
                             "json_dp_variable78": null,
                             "g_datapoints-78": true,
                             "json_dp79": "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive",
                             "json_dp_variable79": null,
                             "g_datapoints-79": true,
                             "json_dp80": "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH",
                             "json_dp_variable80": null,
                             "g_datapoints-80": true,
                             "json_dp81": "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive",
                             "json_dp_variable81": null,
                             "g_datapoints-81": true,
                             "json_dp82": "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive",
                             "json_dp_variable82": null,
                             "g_datapoints-82": true,
                             "json_dp83": "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH",
                             "json_dp_variable83": null,
                             "g_datapoints-83": true,
                             "json_dp84": "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive",
                             "json_dp_variable84": null,
                             "g_datapoints-84": true,
                             "json_dp85": "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online",
                             "json_dp_variable85": null,
                             "g_datapoints-85": true,
                             "json_dp86": "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH",
                             "json_dp_variable86": null,
                             "g_datapoints-86": true
                           },
                           "style": {
                             "bindings": [],
                             "left": "5",
                             "top": "53px",
                             "width": "382.9",
                             "height": "729.8",
                             "z-index": 20
                           },
                           "widgetSet": "vis-jsontemplate",
                           "_id": "i000001"
                         }
                        ]
                        

                        Ergänzung - noch zwei Videos zu den "animierten" Widgets:
                        1.mp4
                        2.mp4

                        OliverIOO
                        OliverIOO
                        OliverIO
                        schrieb am zuletzt editiert von
                        #111

                        @Cyberraph

                        Ich habe den Link mal in die Readme gepackt
                        https://github.com/oweitman/ioBroker.vis-jsontemplate#more-use-cases

                        Meine Adapter und Widgets
                        TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
                        Links im Profil

                        CyberraphC 1 Antwort Letzte Antwort
                        1
                        • OliverIOO OliverIO

                          @Cyberraph

                          Ich habe den Link mal in die Readme gepackt
                          https://github.com/oweitman/ioBroker.vis-jsontemplate#more-use-cases

                          CyberraphC
                          CyberraphC
                          Cyberraph
                          schrieb am zuletzt editiert von
                          #112

                          @OliverIO
                          Hab mich nochmal an mein "Netzwerkübersicht" Widget gesetzt (was eine der größten Anzahl an DPs hat).

                          Da es einerseits noch holprig war beim Durchscrollen.

                          Das holprige Scrollen konnte ich (besser gesagt die KI) nach längerem hin und her Probieren lösen.

                          (zuerst hätte er es per direkter HTTP Abfrage gelöst. Das war aber nicht der hinderliche Grund)

                          Nachfolgend zur Info Auszug KI-Chat (falls es was hilft als Ideengeber für andere Projekte).


                          1.png

                          2.png

                          3.png

                          4.png

                          5.png

                          6.png

                          7.png

                          8.png

                          9.png

                          10.png

                          Und als zweites wollte ich noch die Instanzen überwachen.
                          Es kamen noch zzgl. DPs dadurch hinzu. - - - > von zuvor 86 - - > auf nun satte 148

                          Es scheint wohl eine Grenze an DPs zu geben, die das JSON Widget auslesen kann.
                          Man kann zwar mehr in den Einstellungen hinterlegen, aber Live übernimmt es nicht alle.
                          Das fand ich (und meine KI) heraus, als man den zuerst "Unbekannt" also nicht gefundenen DP
                          von z.B. Index 102 -> auf Index 1 nach oben schob in den Widget Einstellungen.
                          Auf Platz 1 kamen die Datenpunkte dann "online".

                          Meine FRAGE:
                          -> Welche Grenze an DP-Anzahl ist hinterlegt?

                          Ich muss noch zugeben, ich habe aktuell noch die JSON-Template Adapter Version 4.6.3.
                          Da ich zuerst noch meine neue Visualisierung komplett aufbauen wollte,
                          bevor ich auf die neue VIS-2 und dazugehörige andere neue Adapter-Versionen wechsel.
                          Das werde ich wohl kommendes Wochenende anpacken.

                          grafik.jpeg

                          Beste Grüße!

                          io-Broker Neuling 2024 :-)

                          Bislang jedoch einiges an Beiträgen und Grundlagen eingeflößt, um etwas besser empor zu irren.

                          OliverIOO 1 Antwort Letzte Antwort
                          0
                          • CyberraphC Cyberraph

                            @OliverIO
                            Hab mich nochmal an mein "Netzwerkübersicht" Widget gesetzt (was eine der größten Anzahl an DPs hat).

                            Da es einerseits noch holprig war beim Durchscrollen.

                            Das holprige Scrollen konnte ich (besser gesagt die KI) nach längerem hin und her Probieren lösen.

                            (zuerst hätte er es per direkter HTTP Abfrage gelöst. Das war aber nicht der hinderliche Grund)

                            Nachfolgend zur Info Auszug KI-Chat (falls es was hilft als Ideengeber für andere Projekte).


                            1.png

                            2.png

                            3.png

                            4.png

                            5.png

                            6.png

                            7.png

                            8.png

                            9.png

                            10.png

                            Und als zweites wollte ich noch die Instanzen überwachen.
                            Es kamen noch zzgl. DPs dadurch hinzu. - - - > von zuvor 86 - - > auf nun satte 148

                            Es scheint wohl eine Grenze an DPs zu geben, die das JSON Widget auslesen kann.
                            Man kann zwar mehr in den Einstellungen hinterlegen, aber Live übernimmt es nicht alle.
                            Das fand ich (und meine KI) heraus, als man den zuerst "Unbekannt" also nicht gefundenen DP
                            von z.B. Index 102 -> auf Index 1 nach oben schob in den Widget Einstellungen.
                            Auf Platz 1 kamen die Datenpunkte dann "online".

                            Meine FRAGE:
                            -> Welche Grenze an DP-Anzahl ist hinterlegt?

                            Ich muss noch zugeben, ich habe aktuell noch die JSON-Template Adapter Version 4.6.3.
                            Da ich zuerst noch meine neue Visualisierung komplett aufbauen wollte,
                            bevor ich auf die neue VIS-2 und dazugehörige andere neue Adapter-Versionen wechsel.
                            Das werde ich wohl kommendes Wochenende anpacken.

                            grafik.jpeg

                            OliverIOO
                            OliverIOO
                            OliverIO
                            schrieb am zuletzt editiert von OliverIO
                            #113

                            @Cyberraph

                            hm tricky, um den refresh zu umgehen legt das template ausserhalb des widgets eigene html elemente an. Das template verwaltet diesen separaten html code selbst, cached und überwacht nur noch, solange die Seite nicht komplett neu geladen wird.

                            Das jsontemplate hat selbst keine Begrenzung.
                            vis-2 macht bei bindings (ein anderer vis1/2 Mechanismus (den ich nicht verwende), wie man sie bspw. in einem html widget verwenden kann) eine grenze von glaube ich 50 datenpunkte je widget.
                            Hast du eine ungefähre Zahl bei dem der Effekt auftritt?
                            Dann könnte ich hier mal tests machen.

                            da müsste ich mal das template sehen, was da wirklich gemacht wird.
                            Kannst du das mal in ein verschachtelten spoiler/code-tag hier posten?

                            Richtige http-requests nicht zu nutzen ist gut. Das erzeugt zu viel overhead.
                            vis2 nutzt eine websocket Verbindung zum iobroker. Darüber werden datenpunkte abonniert und proaktiv dann zurück über Änderungen informiert, ohne ständig pollen zu müssen.

                            Meine Adapter und Widgets
                            TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
                            Links im Profil

                            CyberraphC 1 Antwort Letzte Antwort
                            0
                            • OliverIOO OliverIO

                              @Cyberraph

                              hm tricky, um den refresh zu umgehen legt das template ausserhalb des widgets eigene html elemente an. Das template verwaltet diesen separaten html code selbst, cached und überwacht nur noch, solange die Seite nicht komplett neu geladen wird.

                              Das jsontemplate hat selbst keine Begrenzung.
                              vis-2 macht bei bindings (ein anderer vis1/2 Mechanismus (den ich nicht verwende), wie man sie bspw. in einem html widget verwenden kann) eine grenze von glaube ich 50 datenpunkte je widget.
                              Hast du eine ungefähre Zahl bei dem der Effekt auftritt?
                              Dann könnte ich hier mal tests machen.

                              da müsste ich mal das template sehen, was da wirklich gemacht wird.
                              Kannst du das mal in ein verschachtelten spoiler/code-tag hier posten?

                              Richtige http-requests nicht zu nutzen ist gut. Das erzeugt zu viel overhead.
                              vis2 nutzt eine websocket Verbindung zum iobroker. Darüber werden datenpunkte abonniert und proaktiv dann zurück über Änderungen informiert, ohne ständig pollen zu müssen.

                              CyberraphC
                              CyberraphC
                              Cyberraph
                              schrieb am zuletzt editiert von
                              #114

                              @OliverIO
                              Sorry, wollte es vorhin eigentlich schon anhängen.

                              Hier (falls es hilft) die aktuelle Version mit 148 DPs. (zuvor mit 86 DPs schien alles korrekt zu funktionieren).
                              Gefühlt über 100 fängt es an, dass es die DPs nicht mehr ausliest und somit den "online / offline" Zustand nicht mehr erkennt.

                              Genaue Grenze muss ich nochmal prüfen demnächst. :-)

                              Nachfolgend komplettes JSON-Template Widget:

                              [
                                {
                                  "tpl": "tplJSONTemplate4",
                                  "data": {
                                    "bindings": [],
                                    "oid": "nothing_selected",
                                    "dpcount": 148,
                                    "g_common": true,
                                    "scriptcount": 1,
                                    "csscount": 1,
                                    "json_dp2": "system.adapter.discord.0.connected",
                                    "json_dp_variable2": null,
                                    "g_datapoints-2": true,
                                    "json_dp3": "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable3": null,
                                    "g_datapoints-3": true,
                                    "template": "<%\nconst devices = [\n[\"Aussensensor\", \"Aussen\", \"Nordost\", [[\"Zigbee\", \"alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Aussensensor\", \"Aussen\", \"Nordwest\", [[\"Homematic\", \"alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Aussensensor\", \"Aussen\", \"Südwest\", [[\"Zigbee\", \"alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"PV\", \"DG\", \"Dachboden\", [[\"LAN / WLAN\", \"alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"DG\", \"Dachboden\", [[\"Zigbee\", \"alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Abstellzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Hama LED-Leuchte\", \"EG\", \"Arbeitszimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Arbeitszimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Surface Angela\", \"EG\", \"Arbeitszimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive\"]], null, true, null],\n[\"Licht 01\", \"EG\", \"Bad\", [[\"Homematic\", \"alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Bad\", [[\"Zigbee\", \"alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Licht 01\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Plug 01 (Küche / Lagerraum)\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Schalter 01\", \"EG\", \"Küche\", [[\"Homematic\", \"alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"WC\", [[\"Zigbee\", \"alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"DLAN Verteiler\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive\"]], null, false, null],\n[\"Handy Corinna\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive\"]], null, true, null],\n[\"Handy Mutti\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive\"]], null, true, null],\n[\"Handy Raphael\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive\"]], null, true, null],\n[\"Homematic Zentrale\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive\"]], null, false, null],\n[\"FRITZ!Box 7530\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Easylog Sensor\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1\"]], null, false, null],\n[\"Smarthomeserver\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive\"]], null, false, null],\n[\"Zigbee Coordinator\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive\"]], null, false, null],\n[\"DLAN Wohnzimmer\", \"EG\", \"Wohnzimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive\"]], null, false, null],\n[\"Laptop Corinna\", \"EG\", \"Wohnzimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive\"]], null, true, null],\n[\"Plug 01\", \"EG\", \"Wohnzimmer\", [[\"Homematic\", \"alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Wohnzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Anlegefuehler D1-Mini-V3-Sensor-01-06\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive\"]], null, false, null],\n[\"Anlegefuehler D1-Mini-V3-Sensor-07-10\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive\"]], null, false, null],\n[\"E Heizer Boiler Leistungsdaten\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH\"]], null, false, null],\n[\"E Heizer Boiler Thermostat\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH\"]], null, false, null],\n[\"Wasserzähler\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive\"]], null, false, null],\n[\"Raumsensor\", \"KG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Plug 01\", \"KG\", \"Waschraum\", [[\"Homematic\", \"alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Waschmaschine\", \"KG\", \"Waschraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive\"]], null, true, null],\n[\"Raumsensor\", \"OG\", \"WC\", [[\"Zigbee\", \"alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"DLAN Zimmer Corinna\", \"OG\", \"Zimmer Corinna\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Zimmer Corinna\", [[\"Zigbee\", \"alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"TV\", \"OG\", \"Zimmer Corinna\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive\"]], null, true, null],\n[\"Raumsensor\", \"OG\", \"Schlafzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"BWM Wand 01\", \"OG\", \"Vorhaus\", [[\"Homematic\", \"alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Schalter 01\", \"OG\", \"Vorhaus\", [[\"Homematic\", \"alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive\"]], null, false, null],\n[\"Denon AV-Receiver\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Amazon Echo Dot\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive\"]], null, false, null],\n[\"DLAN Zimmer Raphael\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive\"]], null, false, null],\n[\"HP Laserdrucker\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"],\n[\"Licht 01\", \"OG\", \"Zimmer Raphael\", [[\"Homematic\", \"alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Nanoleaf LEDs\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive\"]], null, false, null],\n[\"Nintendo Switch 2\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Nintendo Switch OLED\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Stand-PC\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\"],\n[\"PS5\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Plug 01\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Plug 02\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH\"]], null, false, null],\n[\"Plug 03\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH\"]], null, false, null],\n[\"Plug 04\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Zimmer Raphael\", [[\"Homematic\", \"alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Stckleiste 1\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 2\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 3\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 4\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"]], null, false, null],\n[\"Surface Raphael\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive\"]], null, true, null],\n[\"LG TV\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Tablet Amazon Fire HD 10\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive\"]], null, true, null],\n[\"Ulanzi AWTRIX\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET\", false, \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"]];\n\nconst instanceNames = [\"admin.0\", \"alexa2.0\", \"awtrix-light.0\", \"backitup.0\", \"cloud.0\", \"denon.0\", \"devices.0\", \"discord.0\", \"discovery.0\", \"echarts.0\", \"fronius-solarweb.0\", \"fronius.0\", \"fullybrowser.0\", \"history.0\", \"hm-rega.0\", \"hm-rpc.0\", \"iot.0\", \"javascript.0\", \"lgtv.0\", \"matter.0\", \"moma.0\", \"mqtt.0\", \"mytime.0\", \"nanoleaf-lightpanels.0\", \"ping.0\", \"shelly.0\", \"tuya.0\", \"vis-2.0\", \"web.0\", \"web.1\", \"zigbee2mqtt.0\"];\nconst dependencies = [\n  [\n    \"alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive\",\n    \"mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH\",\n    \"denon.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH\",\n    \"nanoleaf-lightpanels.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH\",\n    \"lgtv.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH\",\n    \"awtrix-light.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET\",\n    \"tuya.0\"\n  ]\n];\nconst ids=[\n  \"alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive\",\n  \"alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH\",\n  \"alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH\",\n  \"alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH\",\n  \"alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH\",\n  \"alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1\",\n  \"alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH\",\n  \"alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive\",\n  \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive\",\n  \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH\",\n  \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH\",\n  \"alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive\",\n  \"alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH\",\n  \"alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive\",\n  \"alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\",\n  \"alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\",\n  \"alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\",\n  \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2\",\n  \"alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\",\n  \"alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online\",\n  \"alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET\",\n  \"alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET\",\n  \"system.adapter.admin.0.alive\",\n  \"system.adapter.admin.0.connected\",\n  \"system.adapter.alexa2.0.alive\",\n  \"system.adapter.alexa2.0.connected\",\n  \"system.adapter.awtrix-light.0.alive\",\n  \"system.adapter.awtrix-light.0.connected\",\n  \"system.adapter.backitup.0.alive\",\n  \"system.adapter.backitup.0.connected\",\n  \"system.adapter.cloud.0.alive\",\n  \"system.adapter.cloud.0.connected\",\n  \"system.adapter.denon.0.alive\",\n  \"system.adapter.denon.0.connected\",\n  \"system.adapter.devices.0.alive\",\n  \"system.adapter.devices.0.connected\",\n  \"system.adapter.discord.0.alive\",\n  \"system.adapter.discord.0.connected\",\n  \"system.adapter.discovery.0.alive\",\n  \"system.adapter.discovery.0.connected\",\n  \"system.adapter.echarts.0.alive\",\n  \"system.adapter.echarts.0.connected\",\n  \"system.adapter.fronius-solarweb.0.alive\",\n  \"system.adapter.fronius-solarweb.0.connected\",\n  \"system.adapter.fronius.0.alive\",\n  \"system.adapter.fronius.0.connected\",\n  \"system.adapter.fullybrowser.0.alive\",\n  \"system.adapter.fullybrowser.0.connected\",\n  \"system.adapter.history.0.alive\",\n  \"system.adapter.history.0.connected\",\n  \"system.adapter.hm-rega.0.alive\",\n  \"system.adapter.hm-rega.0.connected\",\n  \"system.adapter.hm-rpc.0.alive\",\n  \"system.adapter.hm-rpc.0.connected\",\n  \"system.adapter.iot.0.alive\",\n  \"system.adapter.iot.0.connected\",\n  \"system.adapter.javascript.0.alive\",\n  \"system.adapter.javascript.0.connected\",\n  \"system.adapter.lgtv.0.alive\",\n  \"system.adapter.lgtv.0.connected\",\n  \"system.adapter.matter.0.alive\",\n  \"system.adapter.matter.0.connected\",\n  \"system.adapter.moma.0.alive\",\n  \"system.adapter.moma.0.connected\",\n  \"system.adapter.mqtt.0.alive\",\n  \"system.adapter.mqtt.0.connected\",\n  \"system.adapter.mytime.0.alive\",\n  \"system.adapter.mytime.0.connected\",\n  \"system.adapter.nanoleaf-lightpanels.0.alive\",\n  \"system.adapter.nanoleaf-lightpanels.0.connected\",\n  \"system.adapter.ping.0.alive\",\n  \"system.adapter.ping.0.connected\",\n  \"system.adapter.shelly.0.alive\",\n  \"system.adapter.shelly.0.connected\",\n  \"system.adapter.tuya.0.alive\",\n  \"system.adapter.tuya.0.connected\",\n  \"system.adapter.vis-2.0.alive\",\n  \"system.adapter.vis-2.0.connected\",\n  \"system.adapter.web.0.alive\",\n  \"system.adapter.web.0.connected\",\n  \"system.adapter.web.1.alive\",\n  \"system.adapter.web.1.connected\",\n  \"system.adapter.zigbee2mqtt.0.alive\",\n  \"system.adapter.zigbee2mqtt.0.connected\"\n];\nconst snapshot=Object.create(null);\nids.forEach(function(id)\n{\n    if(typeof dp==='undefined' || !dp) return;\n    let v=dp[id];\n    if(v!==null && typeof v==='object' && 'val' in v) v=v.val;\n    if(v===undefined) return;\n    snapshot[id]=v===true || v===1 || v==='true' || v==='1' || v==='online' ? true : v===false || v===0 || v==='false' || v==='0' || v==='offline' ? false : null;\n});\nfunction read(id)\n{\n    if (!id || true) return null;\n    let v = null;\n    if (v !== null && typeof v === 'object') v = v.val;\n    if (v === true || v === 1 || v === 'true' || v === '1' || v === 'online') return true;\n    if (v === false || v === 0 || v === 'false' || v === '0' || v === 'offline') return false;\n    return null;\n}\nconst systems = ['LAN / WLAN','Zigbee','Homematic','Tuya','ioBroker-Instanzen'];\nconst checkSystems = systems.concat('ioBroker-Adapter');\nfunction instanceState(name)\n{\n    const alive=read('system.adapter.'+name+'.alive');\n    const connected=read('system.adapter.'+name+'.connected');\n    if(alive===false || connected===false) return false;\n    if(alive===true && connected===true) return true;\n    return null;\n}\nfunction dependencyState(id)\n{\n    const dep=dependencies.find(d=>d[0]===id);\n    return dep && instanceState(dep[1])===false ? dep[1] : '';\n}\ninstanceNames.forEach(function(name)\n{\n    devices.push([name,'ioBroker','Instanz',[['ioBroker-Instanzen','system.adapter.'+name+'.alive'],['ioBroker-Instanzen','system.adapter.'+name+'.connected']],null,false,null]);\n});\nconst labels = ['Online','Störung','Offline','Ausgeschaltet','Unbekannt'];\nconst colors = ['#4ade80','#ef7777','#f6b55c','#687481','#8996a3'];\nfunction classify(values, power, trusted, optional)\n{\n    if (trusted && power === false && !values.includes(true)) return 3;\n    if (trusted && power === false && values.includes(true)) return 4;\n    if (values.includes(false)) return optional ? 2 : 1;\n    if (values.includes(null)) return 4;\n    return values.length && values.every(v => v === true) ? 0 : 4;\n}\nconst entries = devices.map(function(d)\n{\n    const checks = d[3].map(function(c)\n    {\n        const failed=dependencyState(c[1]);\n        return [c[0],failed ? null : read(c[1]),c[1],failed];\n    });\n    const power = dependencyState(d[4]) ? null : read(d[4]);\n    const trusted = !!d[4] && !dependencyState(d[6]) && read(d[6]) === true;\n    const bySystem = checkSystems.filter(s => checks.some(c => c[0] === s)).map(function(s)\n    {\n        let values = checks.filter(c => c[0] === s).map(c => c[1]);\n        if (s === 'LAN / WLAN' && values.length > 1)\n        {\n            values = [values.includes(true) ? true : values.includes(null) ? null : false];\n        }\n        return [s,classify(values,power,trusted,d[5])];\n    });\n    const states = bySystem.map(c => c[1]);\n    const status = [1,4,2,3,0].find(s => states.includes(s));\n    return [d[0],d[1],d[2],checks,power,trusted,bySystem,status,d[4]];\n});\nconst counts = labels.map((l,i) => entries.filter(e => e[7] === i).length);\nconst pct = entries.length ? Math.round(counts[0]*100/entries.length) : 0;\n%>\n<style id=\"net-style-<%- widgetid %>\">\n#net-<%- widgetid %>-persistent\n{\n width:382.9px; max-width:100%; height:729.8px; box-sizing:border-box; background:#1c222b; color:#edf2f7; border-radius:16px; padding:14px 10px 10px; font:13px Arial,sans-serif; display:flex; flex-direction:column; gap:8px; overflow:hidden;\n}\n#net-<%- widgetid %>-persistent *\n{\n box-sizing:border-box;\n}\n#net-<%- widgetid %>-persistent .head, #net-<%- widgetid %>-persistent .line\n{\n display:flex; align-items:center; justify-content:space-between; gap:6px;\n}\n#net-<%- widgetid %>-persistent .head\n{\n padding:2px 6px; height:24px; flex-shrink:0; font-weight:bold;\n}\n#net-<%- widgetid %>-persistent .panel\n{\n background:#26313d; border-radius:12px; padding:10px;\n}\n#net-<%- widgetid %>-persistent .tiles\n{\n display:grid; grid-template-columns:1fr 1fr; gap:6px;\n}\n#net-<%- widgetid %>-persistent .tiles > button:last-child\n{\n grid-column:1 / -1;\n}\n#net-<%- widgetid %>-persistent button\n{\n background:#26313d; color:#edf2f7; border:1px solid #465260; border-radius:7px; padding:7px; font:inherit; min-width:0;\n}\n#net-<%- widgetid %>-persistent button\n{\n cursor:pointer; text-align:left;\n}\n#net-<%- widgetid %>-persistent button.active\n{\n border-color:#78bde2; background:#34414f;\n}\n#net-<%- widgetid %>-persistent .bar\n{\n display:flex; height:4px; overflow:hidden; border-radius:3px; margin-top:5px;\n}\n#net-<%- widgetid %>-persistent .filters\n{\n display:flex; flex-wrap:wrap; gap:4px;\n}\n#net-<%- widgetid %>-persistent .filters button\n{\n flex:1; font-size:11px; text-align:center;\n}\n#net-<%- widgetid %>-persistent .list\n{\n flex:1; min-height:0; overflow-x:hidden; overflow-y:auto; overflow-anchor:none; touch-action:pan-y; -webkit-overflow-scrolling:touch; scrollbar-width:none; overscroll-behavior:contain; background:#26313d; border-radius:10px; padding:7px;\n}\n#net-<%- widgetid %>-persistent .list::-webkit-scrollbar\n{\n display:none;\n}\n#net-<%- widgetid %>-persistent details\n{\n background:#1c222b; border-radius:6px; margin:4px 0; padding:7px;\n}\n#net-<%- widgetid %>-persistent summary\n{\n cursor:pointer; list-style:none;\n}\n#net-<%- widgetid %>-persistent .muted\n{\n color:#8996a3; font-size:10px;\n}\n#net-<%- widgetid %>-persistent .group\n{\n color:#78bde2; font-weight:bold; padding:7px 2px 2px;\n}\n</style>\n<div id=\"net-<%- widgetid %>\" style=\"width:382.9px;max-width:100%;height:729.8px;\">\n<div data-source style=\"display:none\">\n<div class=\"head\"><span style=\"font-size:18px\"> <span style=\"color:<%- counts[4] === entries.length ? '#687481' : '#4ade80' %>\">●</span> Status</span><span>Netzwerkübersicht</span></div>\n<div class=\"panel line\">\n<svg viewBox=\"0 0 110 110\" width=\"105\" height=\"105\" style=\"flex-shrink:0\">\n<circle cx=\"55\" cy=\"55\" r=\"44\" fill=\"none\" stroke=\"#414d5a\" stroke-width=\"9\"/>\n<% let offset=0; for(let i=0;i<5;i++) { %>\n<% const len=entries.length ? counts[i]/entries.length*276.46 : 0; %>\n<circle data-ring=\"<%- i %>\" cx=\"55\" cy=\"55\" r=\"44\" fill=\"none\" stroke=\"<%- colors[i] %>\" stroke-width=\"9\" stroke-dasharray=\"<%- len %> 276.46\" stroke-dashoffset=\"<%- -offset %>\" transform=\"rotate(-90 55 55)\"/>\n<% offset+=len; } %>\n<text data-pct x=\"55\" y=\"54\" text-anchor=\"middle\" fill=\"#edf2f7\" font-size=\"25\" font-weight=\"bold\"><%- pct %>%</text><text x=\"55\" y=\"69\" text-anchor=\"middle\" fill=\"#8996a3\" font-size=\"11\">Online</text>\n</svg>\n<div style=\"flex:1\"><div class=\"line\"><b>Geräte / Instanzen</b><b><%- entries.length %></b></div>\n<% for(let i=0;i<5;i++) { %>\n<button type=\"button\" data-status=\"<%- i %>\" class=\"line\" style=\"width:100%;padding:2px 4px;border:0\"><span style=\"color:<%- colors[i] %>\">● <%- labels[i] %></span><b data-count=\"<%- i %>\"><%- counts[i] %></b></button>\n<% } %>\n</div></div>\n<div class=\"tiles\">\n<% for(const s of systems) { %>\n<% const list=entries.flatMap(e=>e[6].filter(c=>c[0]===s)); const n=list.length; const cc=labels.map((l,i)=>list.filter(c=>c[1]===i).length); %>\n<button type=\"button\" data-system=\"<%- s %>\"><div class=\"line\"><b><%- s %></b><span class=\"muted\"><%- n %></span></div><div class=\"line\"><b style=\"color:#4ade80;font-size:17px\"><%- cc[0] %> / <%- n %></b><span style=\"color:<%- cc[1] ? '#ef7777' : '#8996a3' %>;font-size:10px\"><%- cc[1] %> Störung</span></div><div class=\"bar\">\n<% for(let i=0;i<5;i++) { %>\n<span style=\"width:<%- n ? cc[i]*100/n : 0 %>%;background:<%- colors[i] %>\"></span>\n<% } %>\n</div></button>\n<% } %>\n</div>\n<div class=\"filters\"><button type=\"button\" data-group=\"system\">Nach System</button><button type=\"button\" data-group=\"floor\">Nach Geschoss</button><button type=\"button\" data-reset>Alle / Reset</button></div>\n<div class=\"filters\"><button type=\"button\" data-status=\"1\">Störungen</button><button type=\"button\" data-status=\"2\">Offline</button><button type=\"button\" data-status=\"3\">Aus</button><button type=\"button\" data-status=\"4\">Unbekannt</button></div>\n<div class=\"muted\" data-caption></div>\n<div class=\"list\" data-list></div>\n</div>\n</div>\n<script>\n(function()\n{\n const key='net-<%- widgetid %>';\n const snapshot=<%- JSON.stringify(snapshot,null,2) %>;\n const incoming=document.getElementById(key);\n if(!incoming) return;\n const portalKey=key+'-portal-live-v1';\n const existing=window[portalKey];\n if(existing && existing.root.isConnected)\n {\n  existing.anchor=incoming;\n  existing.position();\n  if(typeof existing.receive==='function') existing.receive(snapshot);\n  return;\n }\n const source=incoming.querySelector('[data-source]');\n const sourceStyle=document.getElementById('net-style-<%- widgetid %>');\n if(!source || !sourceStyle) return;\n const root=source.cloneNode(true);\n root.removeAttribute('data-source');\n root.removeAttribute('style');\n root.id=key+'-persistent';\n const css=sourceStyle.cloneNode(true);\n css.removeAttribute('id');\n document.head.appendChild(css);\n root.style.position='fixed';\n root.style.margin='0';\n root.style.maxWidth='none';\n root.style.transformOrigin='top left';\n root.style.zIndex='20';\n root.style.visibility='hidden';\n document.body.appendChild(root);\n const portal=\n {\n  root:root,anchor:incoming,visible:false,position:null\n };\n window[portalKey]=portal;\n function put(prop,value)\n {\n  if(root.style[prop]!==value) root.style[prop]=value;\n }\n function position()\n {\n  const anchor=portal.anchor;\n  let visible=!!anchor && anchor.isConnected && anchor.getClientRects().length>0;\n  let r=null;\n  if(visible)\n  {\n   r=anchor.getBoundingClientRect();\n   visible=r.width>0 && r.height>0;\n   for(let node=anchor;visible && node;node=node.parentElement)\n   {\n    const style=getComputedStyle(node);\n    if(style.display==='none' || style.visibility==='hidden' || style.visibility==='collapse' || Number(style.opacity)===0) visible=false;\n   }\n  }\n  if(visible)\n  {\n   const sx=r.width/382.9, sy=r.height/729.8;\n   let left=Math.max(0,r.left),top=Math.max(0,r.top),right=Math.min(innerWidth,r.right),bottom=Math.min(innerHeight,r.bottom);\n   for(let node=anchor.parentElement;node && node!==document.body;node=node.parentElement)\n   {\n    const style=getComputedStyle(node);\n    const bounds=node.getBoundingClientRect();\n    if(/hidden|clip|auto|scroll/.test(style.overflowX))\n    {\n     left=Math.max(left,bounds.left); right=Math.min(right,bounds.right);\n    }\n    if(/hidden|clip|auto|scroll/.test(style.overflowY))\n    {\n     top=Math.max(top,bounds.top); bottom=Math.min(bottom,bounds.bottom);\n    }\n   }\n   visible=right>left && bottom>top;\n   if(visible)\n   {\n    put('left',r.left+'px'); put('top',r.top+'px');\n    put('transform','scale('+sx+','+sy+')');\n    put('clipPath','inset('+Math.max(0,(top-r.top)/sy)+'px '+Math.max(0,(r.right-right)/sx)+'px '+Math.max(0,(r.bottom-bottom)/sy)+'px '+Math.max(0,(left-r.left)/sx)+'px)');\n   }\n  }\n  put('visibility',visible?'visible':'hidden');\n  if(portal.visible!==visible)\n  {\n   portal.visible=visible;\n   if(typeof portal.changed==='function') portal.changed();\n  }\n }\n portal.position=position;\n position();\n // Only observe the host lifecycle, never changes inside the dashboard.\n const observer=new MutationObserver(function(records)\n {\n  const anchor=portal.anchor;\n  if(!anchor || !anchor.isConnected)\n  {\n   const next=document.getElementById(key);\n   if(next) portal.anchor=next;\n   position(); return;\n  }\n  if(records.some(record=>record.target===anchor || (record.target.nodeType===1 && record.target.contains(anchor)))) position();\n });\n observer.observe(document.body,\n {\n  childList:true,subtree:true,attributes:true,attributeFilter:['style','class','hidden']\n });\n window.addEventListener('resize',position);\n window.addEventListener('scroll',function(event)\n {\n  if(!event.target || !event.target.nodeType || !root.contains(event.target)) position();\n },true);\n let entries=<%- JSON.stringify(entries).replace(/</g,'\\\\u003c') %>;\n const labels=<%- JSON.stringify(labels) %>;\n const colors=<%- JSON.stringify(colors) %>;\n const systems=<%- JSON.stringify(systems) %>;\n const stateKey=key+'-live-persistent-v1';\n if(!window[stateKey])\n {\n  window[stateKey]=\n  {\n   system:'',status:-1,group:'system',scroll:0,open:[],values:Object.create(null),seen:Object.create(null)\n  };\n }\n const st=window[stateKey];\n if(st.system==='Adapter') st.system='ioBroker-Adapter';\n if(st.system==='MQTT') st.system='LAN / WLAN';\n if(st.system && !systems.includes(st.system)) st.system='';\n const savedInitialScroll=st.scroll;\n if(st.root===root && typeof portal.receive==='function')\n {\n  return;\n }\n if(typeof st.stop==='function') st.stop();\n st.root=root;\n const list=root.querySelector('[data-list]');\n function el(tag,text,cls)\n {\n  const node=document.createElement(tag);\n  if(text!==null) node.textContent=text;\n  if(cls) node.className=cls;\n  return node;\n }\n function restoreScroll(saved)\n {\n  if(!root.isConnected || list.clientHeight===0) return;\n  const target=Math.min(typeof saved==='number'?saved:st.scroll,Math.max(0,list.scrollHeight-list.clientHeight));\n  if(Math.abs(list.scrollTop-target)>1) list.scrollTop=target;\n  st.scroll=list.scrollTop;\n }\n st.restore=restoreScroll;\n function patch(a,b)\n {\n  if(a.nodeType===3)\n  {\n   if(a.nodeValue!==b.nodeValue) a.nodeValue=b.nodeValue;\n   return;\n  }\n  if(a.nodeType!==1) return;\n  if(a.getAttribute('style')!==b.getAttribute('style'))\n  {\n   if(b.hasAttribute('style')) a.setAttribute('style',b.getAttribute('style'));\n   else a.removeAttribute('style');\n  }\n  if(a.childNodes.length!==b.childNodes.length)\n  {\n   a.replaceChildren(...Array.from(b.childNodes));\n   return;\n  }\n  Array.from(a.childNodes).forEach((n,i)=>patch(n,b.childNodes[i]));\n }\n function render()\n {\n  if(!root.isConnected) return;\n  const fragment=document.createDocumentFragment();\n  let count=0;\n  const gs=st.group==='system' ? systems : ['Aussen','DG','OG','EG','KG','ioBroker'];\n  gs.forEach(function(g)\n  {\n   if(st.group==='system' && st.system && st.system!==g) return;\n   const rows=entries.filter(function(e)\n   {\n    if(st.system && !e[6].some(c=>c[0]===st.system)) return false;\n    if(st.group==='system' ? !e[6].some(c=>c[0]===g) : e[1]!==g) return false;\n    const s=st.group==='system' ? e[6].find(c=>c[0]===g)[1] : st.system ? e[6].find(c=>c[0]===st.system)[1] : e[7];\n    if(st.status>=0 && s!==st.status) return false;\n    return true;\n   });\n   if(!rows.length) return;\n   const heading=el('div',g+' · '+rows.length,'group');\n   heading.dataset.row='group|'+g;\n   fragment.appendChild(heading);\n   rows.forEach(function(e)\n   {\n    count++;\n    const s=st.group==='system' ? e[6].find(c=>c[0]===g)[1] : st.system ? e[6].find(c=>c[0]===st.system)[1] : e[7];\n    const id=g+'|'+e[3][0][2];\n    const detail=el('details',null);\n    detail.dataset.row=id;\n    detail.open=st.open.includes(id);\n    const summary=el('summary',null,'line');\n    const name=el('div',null);\n    name.appendChild(el('b',e[0]));\n    name.appendChild(el('div',e[1]+' · '+e[2],'muted'));\n    summary.appendChild(name);\n    const status=el('span','● '+labels[s]); status.style.color=colors[s]; status.style.fontSize='11px';\n    summary.appendChild(status); detail.appendChild(summary);\n    e[3].forEach(function(c)\n    {\n     let connectionName=c[0];\n     if(c[0]==='ioBroker-Adapter')\n     {\n      if(e[0]==='Denon AV-Receiver') connectionName='Denon-Adapter';\n      if(e[0]==='LG TV') connectionName='LG-TV-Adapter';\n      if(e[0]==='Ulanzi AWTRIX') connectionName='AWTRIX-Adapter';\n      if(e[0]==='Nanoleaf LEDs') connectionName='Nanoleaf-Adapter';\n     }\n     if(c[0]==='ioBroker-Instanzen') connectionName=c[2].endsWith('.alive')?'Instanz läuft':'Controller verbunden';\n      if(c[2].endsWith('Wasserzaehler-Zuleitung-Bestand.status.alive')) connectionName='LAN / WLAN (MQTT-Status)';\n     const line=el('div',connectionName+': '+(c[3]?'Unbekannt – '+c[3]+' gestört':c[1]===true?'Online':c[1]===false?'Offline':'Unbekannt'),'muted');\n     line.style.marginTop='5px'; detail.appendChild(line);\n    });\n    if(e[8]) detail.appendChild(el('div','Stromversorgung: '+(!e[5]?'Nicht verlässlich':e[4]===true?'EIN':e[4]===false?'AUS':'Unbekannt'),'muted'));\n    detail.ontoggle=function()\n    {\n     if(!detail.isConnected || st.root!==root) return;\n     if(detail.open && !st.open.includes(id)) st.open.push(id);\n     if(!detail.open) st.open=st.open.filter(x=>x!==id);\n    };\n    fragment.appendChild(detail);\n   });\n  });\n  if(!count) fragment.appendChild(el('div','Keine passenden Einträge','muted'));\n  root.querySelector('[data-caption]').textContent=count+' Listeneinträge'+(st.system?' · '+st.system:'');\n  root.querySelectorAll('button').forEach(function(b)\n  {\n   b.classList.toggle('active',b.dataset.system===st.system || b.dataset.group===st.group || (b.dataset.status!==undefined && Number(b.dataset.status)===st.status));\n  });\n  const old=Array.from(list.children);\n  const next=Array.from(fragment.children);\n  const same=old.length===next.length && old.every((node,i)=>node.dataset.row===next[i].dataset.row && node.tagName===next[i].tagName);\n  if(same)\n  {\n   old.forEach((node,i)=>patch(node,next[i]));\n  }\n  else\n  {\n   const saved=list.scrollTop;\n   list.replaceChildren(fragment);\n   restoreScroll(saved);\n  }\n }\n list.onscroll=function()\n {\n  if(st.root===root && root.isConnected && list.clientHeight>0) st.scroll=list.scrollTop;\n };\n root.onclick=function(event)\n {\n  const b=event.target.closest('button');\n  if(!b || !root.contains(b)) return;\n  event.preventDefault(); event.stopPropagation();\n  if(b.dataset.system!==undefined) st.system=st.system===b.dataset.system?'':b.dataset.system;\n  if(b.dataset.status!==undefined)\n  {\n   const s=Number(b.dataset.status); st.status=st.status===s?-1:s;\n  }\n  if(b.dataset.group!==undefined) st.group=b.dataset.group;\n  if(b.dataset.reset!==undefined)\n  {\n   st.system=''; st.status=-1;\n  }\n  st.scroll=0; render(); restoreScroll(0);\n };\n\n\nconst devices = [\n[\"Aussensensor\", \"Aussen\", \"Nordost\", [[\"Zigbee\", \"alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Aussensensor\", \"Aussen\", \"Nordwest\", [[\"Homematic\", \"alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Aussensensor\", \"Aussen\", \"Südwest\", [[\"Zigbee\", \"alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"PV\", \"DG\", \"Dachboden\", [[\"LAN / WLAN\", \"alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"DG\", \"Dachboden\", [[\"Zigbee\", \"alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Abstellzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Hama LED-Leuchte\", \"EG\", \"Arbeitszimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Arbeitszimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Surface Angela\", \"EG\", \"Arbeitszimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive\"]], null, true, null],\n[\"Licht 01\", \"EG\", \"Bad\", [[\"Homematic\", \"alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Bad\", [[\"Zigbee\", \"alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Licht 01\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Plug 01 (Küche / Lagerraum)\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Küche\", [[\"Zigbee\", \"alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Schalter 01\", \"EG\", \"Küche\", [[\"Homematic\", \"alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"WC\", [[\"Zigbee\", \"alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"DLAN Verteiler\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive\"]], null, false, null],\n[\"Handy Corinna\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive\"]], null, true, null],\n[\"Handy Mutti\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive\"]], null, true, null],\n[\"Handy Raphael\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive\"]], null, true, null],\n[\"Homematic Zentrale\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive\"]], null, false, null],\n[\"FRITZ!Box 7530\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Easylog Sensor\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1\"]], null, false, null],\n[\"Smarthomeserver\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive\"]], null, false, null],\n[\"Zigbee Coordinator\", \"EG\", \"Vorhaus\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive\"]], null, false, null],\n[\"DLAN Wohnzimmer\", \"EG\", \"Wohnzimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive\"]], null, false, null],\n[\"Laptop Corinna\", \"EG\", \"Wohnzimmer\", [[\"LAN / WLAN\", \"alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive\"]], null, true, null],\n[\"Plug 01\", \"EG\", \"Wohnzimmer\", [[\"Homematic\", \"alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Raumsensor\", \"EG\", \"Wohnzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Anlegefuehler D1-Mini-V3-Sensor-01-06\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive\"]], null, false, null],\n[\"Anlegefuehler D1-Mini-V3-Sensor-07-10\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive\"]], null, false, null],\n[\"E Heizer Boiler Leistungsdaten\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH\"]], null, false, null],\n[\"E Heizer Boiler Thermostat\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH\"]], null, false, null],\n[\"Wasserzähler\", \"KG\", \"Heizraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive\"]], null, false, null],\n[\"Raumsensor\", \"KG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Plug 01\", \"KG\", \"Waschraum\", [[\"Homematic\", \"alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Waschmaschine\", \"KG\", \"Waschraum\", [[\"LAN / WLAN\", \"alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive\"]], null, true, null],\n[\"Raumsensor\", \"OG\", \"WC\", [[\"Zigbee\", \"alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"DLAN Zimmer Corinna\", \"OG\", \"Zimmer Corinna\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Zimmer Corinna\", [[\"Zigbee\", \"alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"TV\", \"OG\", \"Zimmer Corinna\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive\"]], null, true, null],\n[\"Raumsensor\", \"OG\", \"Schlafzimmer\", [[\"Zigbee\", \"alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"BWM Wand 01\", \"OG\", \"Vorhaus\", [[\"Homematic\", \"alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Vorhaus\", [[\"Zigbee\", \"alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Schalter 01\", \"OG\", \"Vorhaus\", [[\"Homematic\", \"alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive\"]], null, false, null],\n[\"Denon AV-Receiver\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Amazon Echo Dot\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive\"]], null, false, null],\n[\"DLAN Zimmer Raphael\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive\"]], null, false, null],\n[\"HP Laserdrucker\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"],\n[\"Licht 01\", \"OG\", \"Zimmer Raphael\", [[\"Homematic\", \"alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH\"]], null, false, null],\n[\"Nanoleaf LEDs\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive\"]], null, false, null],\n[\"Nintendo Switch 2\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Nintendo Switch OLED\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Stand-PC\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\"],\n[\"PS5\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Plug 01\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH\"]], null, false, null],\n[\"Plug 02\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH\"]], null, false, null],\n[\"Plug 03\", \"OG\", \"Zimmer Raphael\", [[\"Zigbee\", \"alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH\"]], null, false, null],\n[\"Plug 04\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online\"]], null, false, null],\n[\"Raumsensor\", \"OG\", \"Zimmer Raphael\", [[\"Homematic\", \"alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive\"]], null, false, null],\n[\"Stckleiste 1\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 2\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 3\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\"]], null, false, null],\n[\"Stckleiste 4\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive\"], [\"Tuya\", \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"]], null, false, null],\n[\"Surface Raphael\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive\"]], null, true, null],\n[\"LG TV\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET\", true, \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\"],\n[\"Tablet Amazon Fire HD 10\", \"OG\", \"Zimmer Raphael\", [[\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive\"]], null, true, null],\n[\"Ulanzi AWTRIX\", \"OG\", \"Zimmer Raphael\", [[\"ioBroker-Adapter\", \"alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH\"], [\"LAN / WLAN\", \"alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive\"]], \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET\", false, \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\"]];\n\nconst instanceNames = [\"admin.0\", \"alexa2.0\", \"awtrix-light.0\", \"backitup.0\", \"cloud.0\", \"denon.0\", \"devices.0\", \"discord.0\", \"discovery.0\", \"echarts.0\", \"fronius-solarweb.0\", \"fronius.0\", \"fullybrowser.0\", \"history.0\", \"hm-rega.0\", \"hm-rpc.0\", \"iot.0\", \"javascript.0\", \"lgtv.0\", \"matter.0\", \"moma.0\", \"mqtt.0\", \"mytime.0\", \"nanoleaf-lightpanels.0\", \"ping.0\", \"shelly.0\", \"tuya.0\", \"vis-2.0\", \"web.0\", \"web.1\", \"zigbee2mqtt.0\"];\nconst dependencies = [\n  [\n    \"alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive\",\n    \"mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH\",\n    \"denon.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH\",\n    \"nanoleaf-lightpanels.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH\",\n    \"zigbee2mqtt.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive\",\n    \"hm-rpc.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH\",\n    \"lgtv.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET\",\n    \"tuya.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH\",\n    \"awtrix-light.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive\",\n    \"ping.0\"\n  ],\n  [\n    \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET\",\n    \"tuya.0\"\n  ]\n];\n\ninstanceNames.forEach(function(name)\n{\n    devices.push([name,'ioBroker','Instanz',[['ioBroker-Instanzen','system.adapter.'+name+'.alive'],['ioBroker-Instanzen','system.adapter.'+name+'.connected']],null,false,null]);\n});\n\nconst ids=[\n  \"alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive\",\n  \"alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH\",\n  \"alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH\",\n  \"alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH\",\n  \"alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH\",\n  \"alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1\",\n  \"alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH\",\n  \"alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive\",\n  \"alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive\",\n  \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH\",\n  \"alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH\",\n  \"alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive\",\n  \"alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH\",\n  \"alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive\",\n  \"alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online\",\n  \"alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online\",\n  \"alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET\",\n  \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2\",\n  \"alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online\",\n  \"alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online\",\n  \"alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET\",\n  \"alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH\",\n  \"alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive\",\n  \"alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET\",\n  \"system.adapter.admin.0.alive\",\n  \"system.adapter.admin.0.connected\",\n  \"system.adapter.alexa2.0.alive\",\n  \"system.adapter.alexa2.0.connected\",\n  \"system.adapter.awtrix-light.0.alive\",\n  \"system.adapter.awtrix-light.0.connected\",\n  \"system.adapter.backitup.0.alive\",\n  \"system.adapter.backitup.0.connected\",\n  \"system.adapter.cloud.0.alive\",\n  \"system.adapter.cloud.0.connected\",\n  \"system.adapter.denon.0.alive\",\n  \"system.adapter.denon.0.connected\",\n  \"system.adapter.devices.0.alive\",\n  \"system.adapter.devices.0.connected\",\n  \"system.adapter.discord.0.alive\",\n  \"system.adapter.discord.0.connected\",\n  \"system.adapter.discovery.0.alive\",\n  \"system.adapter.discovery.0.connected\",\n  \"system.adapter.echarts.0.alive\",\n  \"system.adapter.echarts.0.connected\",\n  \"system.adapter.fronius-solarweb.0.alive\",\n  \"system.adapter.fronius-solarweb.0.connected\",\n  \"system.adapter.fronius.0.alive\",\n  \"system.adapter.fronius.0.connected\",\n  \"system.adapter.fullybrowser.0.alive\",\n  \"system.adapter.fullybrowser.0.connected\",\n  \"system.adapter.history.0.alive\",\n  \"system.adapter.history.0.connected\",\n  \"system.adapter.hm-rega.0.alive\",\n  \"system.adapter.hm-rega.0.connected\",\n  \"system.adapter.hm-rpc.0.alive\",\n  \"system.adapter.hm-rpc.0.connected\",\n  \"system.adapter.iot.0.alive\",\n  \"system.adapter.iot.0.connected\",\n  \"system.adapter.javascript.0.alive\",\n  \"system.adapter.javascript.0.connected\",\n  \"system.adapter.lgtv.0.alive\",\n  \"system.adapter.lgtv.0.connected\",\n  \"system.adapter.matter.0.alive\",\n  \"system.adapter.matter.0.connected\",\n  \"system.adapter.moma.0.alive\",\n  \"system.adapter.moma.0.connected\",\n  \"system.adapter.mqtt.0.alive\",\n  \"system.adapter.mqtt.0.connected\",\n  \"system.adapter.mytime.0.alive\",\n  \"system.adapter.mytime.0.connected\",\n  \"system.adapter.nanoleaf-lightpanels.0.alive\",\n  \"system.adapter.nanoleaf-lightpanels.0.connected\",\n  \"system.adapter.ping.0.alive\",\n  \"system.adapter.ping.0.connected\",\n  \"system.adapter.shelly.0.alive\",\n  \"system.adapter.shelly.0.connected\",\n  \"system.adapter.tuya.0.alive\",\n  \"system.adapter.tuya.0.connected\",\n  \"system.adapter.vis-2.0.alive\",\n  \"system.adapter.vis-2.0.connected\",\n  \"system.adapter.web.0.alive\",\n  \"system.adapter.web.0.connected\",\n  \"system.adapter.web.1.alive\",\n  \"system.adapter.web.1.connected\",\n  \"system.adapter.zigbee2mqtt.0.alive\",\n  \"system.adapter.zigbee2mqtt.0.connected\"\n];\nfunction evaluate(dp)\n{\nfunction read(id)\n{\n    if (!id || typeof dp === 'undefined' || !dp) return null;\n    let v = dp[id];\n    if (v !== null && typeof v === 'object') v = v.val;\n    if (v === true || v === 1 || v === 'true' || v === '1' || v === 'online') return true;\n    if (v === false || v === 0 || v === 'false' || v === '0' || v === 'offline') return false;\n    return null;\n}\n\nconst checkSystems = systems.concat('ioBroker-Adapter');\nfunction instanceState(name)\n{\n    const alive=read('system.adapter.'+name+'.alive');\n    const connected=read('system.adapter.'+name+'.connected');\n    if(alive===false || connected===false) return false;\n    if(alive===true && connected===true) return true;\n    return null;\n}\nfunction dependencyState(id)\n{\n    const dep=dependencies.find(d=>d[0]===id);\n    return dep && instanceState(dep[1])===false ? dep[1] : '';\n}\n\n\nfunction classify(values, power, trusted, optional)\n{\n    if (trusted && power === false && !values.includes(true)) return 3;\n    if (trusted && power === false && values.includes(true)) return 4;\n    if (values.includes(false)) return optional ? 2 : 1;\n    if (values.includes(null)) return 4;\n    return values.length && values.every(v => v === true) ? 0 : 4;\n}\nreturn devices.map(function(d)\n{\n    const checks = d[3].map(function(c)\n    {\n        const failed=dependencyState(c[1]);\n        return [c[0],failed ? null : read(c[1]),c[1],failed];\n    });\n    const power = dependencyState(d[4]) ? null : read(d[4]);\n    const trusted = !!d[4] && !dependencyState(d[6]) && read(d[6]) === true;\n    const bySystem = checkSystems.filter(s => checks.some(c => c[0] === s)).map(function(s)\n    {\n        let values = checks.filter(c => c[0] === s).map(c => c[1]);\n        if (s === 'LAN / WLAN' && values.length > 1)\n        {\n            values = [values.includes(true) ? true : values.includes(null) ? null : false];\n        }\n        return [s,classify(values,power,trusted,d[5])];\n    });\n    const states = bySystem.map(c => c[1]);\n    const status = [1,4,2,3,0].find(s => states.includes(s));\n    return [d[0],d[1],d[2],checks,power,trusted,bySystem,status,d[4]];\n});\n\n}\n\n let pending=null;\n function apply()\n {\n  if(!root.isConnected || !pending) return;\n  const next=pending; pending=null;\n  if(JSON.stringify(entries)===JSON.stringify(next)) return;\n  entries=next;\n  const counts=labels.map((l,i)=>entries.filter(e=>e[7]===i).length);\n  let offset=0;\n  counts.forEach(function(n,i)\n  {\n   const len=n/entries.length*276.46;\n   const ring=root.querySelector('[data-ring=\"'+i+'\"]');\n   ring.setAttribute('stroke-dasharray',len+' 276.46');\n   ring.setAttribute('stroke-dashoffset',-offset);\n   offset+=len;\n   root.querySelector('[data-count=\"'+i+'\"]').textContent=n;\n  });\n  root.querySelector('[data-pct]').textContent=Math.round(counts[0]*100/entries.length)+'%';\n  root.querySelector('.head span span').style.color=counts[4]===entries.length?'#687481':'#4ade80';\n  root.querySelectorAll('[data-system]').forEach(function(b)\n  {\n   const rows=entries.flatMap(e=>e[6].filter(c=>c[0]===b.dataset.system));\n   const cc=labels.map((l,i)=>rows.filter(c=>c[1]===i).length);\n   const lines=b.querySelectorAll('.line');\n   lines[0].lastElementChild.textContent=rows.length;\n   lines[1].firstElementChild.textContent=cc[0]+' / '+rows.length;\n   lines[1].lastElementChild.textContent=cc[1]+' Störung';\n   lines[1].lastElementChild.style.color=cc[1]?'#ef7777':'#8996a3';\n   b.querySelectorAll('.bar span').forEach(function(span,i)\n   {\n    span.style.width=(rows.length?cc[i]*100/rows.length:0)+'%';\n   });\n  });\n  render();\n }\n portal.receive=function(values)\n {\n  const now=Date.now();\n  let changed=false;\n  ids.forEach(function(id)\n  {\n   const present=Object.prototype.hasOwnProperty.call(values,id);\n   let v=null;\n   if(present)\n   {\n    v=values[id];\n    st.seen[id]=now;\n   }\n   else if(st.seen[id] && now-st.seen[id]<=300000)\n   {\n    v=st.values[id];\n   }\n   if(st.values[id]!==v)\n   {\n    st.values[id]=v; changed=true;\n   }\n  });\n  if(changed)\n  {\n   pending=evaluate(st.values);\n   apply();\n  }\n };\n portal.receive(snapshot);\n if(!list.children.length) render();\n restoreScroll(savedInitialScroll);\n})();\n</script>\n",
                                    "scriptfile1": null,
                                    "g_scriptfiles-1": true,
                                    "cssfile1": null,
                                    "g_cssfiles-1": true,
                                    "json_dp4": "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable4": null,
                                    "g_datapoints-4": true,
                                    "json_dp5": "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable5": null,
                                    "g_datapoints-5": true,
                                    "json_dp6": "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive",
                                    "json_dp_variable6": null,
                                    "g_datapoints-6": true,
                                    "json_dp7": "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable7": null,
                                    "g_datapoints-7": true,
                                    "json_dp8": "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable8": null,
                                    "g_datapoints-8": true,
                                    "json_dp9": "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH",
                                    "json_dp_variable9": null,
                                    "g_datapoints-9": true,
                                    "json_dp10": "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable10": null,
                                    "g_datapoints-10": true,
                                    "json_dp11": "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive",
                                    "json_dp_variable11": null,
                                    "g_datapoints-11": true,
                                    "json_dp12": "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH",
                                    "json_dp_variable12": null,
                                    "g_datapoints-12": true,
                                    "json_dp13": "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable13": null,
                                    "g_datapoints-13": true,
                                    "json_dp14": "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH",
                                    "json_dp_variable14": null,
                                    "g_datapoints-14": true,
                                    "json_dp15": "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH",
                                    "json_dp_variable15": null,
                                    "g_datapoints-15": true,
                                    "json_dp16": "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable16": null,
                                    "g_datapoints-16": true,
                                    "json_dp17": "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive",
                                    "json_dp_variable17": null,
                                    "g_datapoints-17": true,
                                    "json_dp18": "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable18": null,
                                    "g_datapoints-18": true,
                                    "json_dp19": "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive",
                                    "json_dp_variable19": null,
                                    "g_datapoints-19": true,
                                    "json_dp20": "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive",
                                    "json_dp_variable20": null,
                                    "g_datapoints-20": true,
                                    "json_dp21": "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive",
                                    "json_dp_variable21": null,
                                    "g_datapoints-21": true,
                                    "json_dp22": "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive",
                                    "json_dp_variable22": null,
                                    "g_datapoints-22": true,
                                    "json_dp23": "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive",
                                    "json_dp_variable23": null,
                                    "g_datapoints-23": true,
                                    "json_dp24": "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive",
                                    "json_dp_variable24": null,
                                    "g_datapoints-24": true,
                                    "json_dp25": "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable25": null,
                                    "g_datapoints-25": true,
                                    "json_dp26": "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1",
                                    "json_dp_variable26": null,
                                    "g_datapoints-26": true,
                                    "json_dp27": "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive",
                                    "json_dp_variable27": null,
                                    "g_datapoints-27": true,
                                    "json_dp28": "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive",
                                    "json_dp_variable28": null,
                                    "g_datapoints-28": true,
                                    "json_dp29": "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive",
                                    "json_dp_variable29": null,
                                    "g_datapoints-29": true,
                                    "json_dp30": "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive",
                                    "json_dp_variable30": null,
                                    "g_datapoints-30": true,
                                    "json_dp31": "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH",
                                    "json_dp_variable31": null,
                                    "g_datapoints-31": true,
                                    "json_dp32": "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable32": null,
                                    "g_datapoints-32": true,
                                    "json_dp33": "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive",
                                    "json_dp_variable33": null,
                                    "g_datapoints-33": true,
                                    "json_dp34": "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive",
                                    "json_dp_variable34": null,
                                    "g_datapoints-34": true,
                                    "json_dp35": "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH",
                                    "json_dp_variable35": null,
                                    "g_datapoints-35": true,
                                    "json_dp36": "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH",
                                    "json_dp_variable36": null,
                                    "g_datapoints-36": true,
                                    "json_dp37": "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive",
                                    "json_dp_variable37": null,
                                    "g_datapoints-37": true,
                                    "json_dp38": "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable38": null,
                                    "g_datapoints-38": true,
                                    "json_dp39": "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH",
                                    "json_dp_variable39": null,
                                    "g_datapoints-39": true,
                                    "json_dp40": "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive",
                                    "json_dp_variable40": null,
                                    "g_datapoints-40": true,
                                    "json_dp41": "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable41": null,
                                    "g_datapoints-41": true,
                                    "json_dp42": "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive",
                                    "json_dp_variable42": null,
                                    "g_datapoints-42": true,
                                    "json_dp43": "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable43": null,
                                    "g_datapoints-43": true,
                                    "json_dp44": "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive",
                                    "json_dp_variable44": null,
                                    "g_datapoints-44": true,
                                    "json_dp45": "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable45": null,
                                    "g_datapoints-45": true,
                                    "json_dp46": "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive",
                                    "json_dp_variable46": null,
                                    "g_datapoints-46": true,
                                    "json_dp47": "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable47": null,
                                    "g_datapoints-47": true,
                                    "json_dp48": "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive",
                                    "json_dp_variable48": null,
                                    "g_datapoints-48": true,
                                    "json_dp49": "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH",
                                    "json_dp_variable49": null,
                                    "g_datapoints-49": true,
                                    "json_dp50": "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive",
                                    "json_dp_variable50": null,
                                    "g_datapoints-50": true,
                                    "json_dp51": "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive",
                                    "json_dp_variable51": null,
                                    "g_datapoints-51": true,
                                    "json_dp52": "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive",
                                    "json_dp_variable52": null,
                                    "g_datapoints-52": true,
                                    "json_dp53": "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive",
                                    "json_dp_variable53": null,
                                    "g_datapoints-53": true,
                                    "json_dp54": "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH",
                                    "json_dp_variable54": null,
                                    "g_datapoints-54": true,
                                    "json_dp55": "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH",
                                    "json_dp_variable55": null,
                                    "g_datapoints-55": true,
                                    "json_dp56": "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive",
                                    "json_dp_variable56": null,
                                    "g_datapoints-56": true,
                                    "json_dp57": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive",
                                    "json_dp_variable57": null,
                                    "g_datapoints-57": true,
                                    "json_dp58": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2",
                                    "json_dp_variable58": null,
                                    "g_datapoints-58": true,
                                    "json_dp59": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive",
                                    "json_dp_variable59": null,
                                    "g_datapoints-59": true,
                                    "json_dp60": "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2",
                                    "json_dp_variable60": null,
                                    "g_datapoints-60": true,
                                    "json_dp61": "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive",
                                    "json_dp_variable61": null,
                                    "g_datapoints-61": true,
                                    "json_dp62": "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive",
                                    "json_dp_variable62": null,
                                    "g_datapoints-62": true,
                                    "json_dp63": "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH",
                                    "json_dp_variable63": null,
                                    "g_datapoints-63": true,
                                    "json_dp64": "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH",
                                    "json_dp_variable64": null,
                                    "g_datapoints-64": true,
                                    "json_dp65": "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH",
                                    "json_dp_variable65": null,
                                    "g_datapoints-65": true,
                                    "json_dp66": "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive",
                                    "json_dp_variable66": null,
                                    "g_datapoints-66": true,
                                    "json_dp67": "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive",
                                    "json_dp_variable67": null,
                                    "g_datapoints-67": true,
                                    "json_dp68": "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online",
                                    "json_dp_variable68": null,
                                    "g_datapoints-68": true,
                                    "json_dp69": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET",
                                    "json_dp_variable69": null,
                                    "g_datapoints-69": true,
                                    "json_dp70": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET",
                                    "json_dp_variable70": null,
                                    "g_datapoints-70": true,
                                    "json_dp71": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET",
                                    "json_dp_variable71": null,
                                    "g_datapoints-71": true,
                                    "json_dp72": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive",
                                    "json_dp_variable72": null,
                                    "g_datapoints-72": true,
                                    "json_dp73": "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online",
                                    "json_dp_variable73": null,
                                    "g_datapoints-73": true,
                                    "json_dp74": "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET",
                                    "json_dp_variable74": null,
                                    "g_datapoints-74": true,
                                    "json_dp75": "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive",
                                    "json_dp_variable75": null,
                                    "g_datapoints-75": true,
                                    "json_dp76": "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online",
                                    "json_dp_variable76": null,
                                    "g_datapoints-76": true,
                                    "json_dp77": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET",
                                    "json_dp_variable77": null,
                                    "g_datapoints-77": true,
                                    "json_dp78": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET",
                                    "json_dp_variable78": null,
                                    "g_datapoints-78": true,
                                    "json_dp79": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive",
                                    "json_dp_variable79": null,
                                    "g_datapoints-79": true,
                                    "json_dp80": "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online",
                                    "json_dp_variable80": null,
                                    "g_datapoints-80": true,
                                    "json_dp81": "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive",
                                    "json_dp_variable81": null,
                                    "g_datapoints-81": true,
                                    "json_dp82": "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH",
                                    "json_dp_variable82": null,
                                    "g_datapoints-82": true,
                                    "json_dp83": "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive",
                                    "json_dp_variable83": null,
                                    "g_datapoints-83": true,
                                    "json_dp84": "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive",
                                    "json_dp_variable84": null,
                                    "g_datapoints-84": true,
                                    "json_dp85": "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH",
                                    "json_dp_variable85": null,
                                    "g_datapoints-85": true,
                                    "json_dp86": "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive",
                                    "json_dp_variable86": null,
                                    "g_datapoints-86": true,
                                    "json_dp87": "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online",
                                    "json_dp_variable87": null,
                                    "g_datapoints-87": true,
                                    "json_dp88": "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH",
                                    "json_dp_variable88": null,
                                    "g_datapoints-88": true,
                                    "json_dp89": "system.adapter.admin.0.alive",
                                    "json_dp_variable89": null,
                                    "g_datapoints-89": true,
                                    "json_dp90": "system.adapter.admin.0.connected",
                                    "json_dp_variable90": null,
                                    "g_datapoints-90": true,
                                    "json_dp91": "system.adapter.alexa2.0.alive",
                                    "json_dp_variable91": null,
                                    "g_datapoints-91": true,
                                    "json_dp92": "system.adapter.alexa2.0.connected",
                                    "json_dp_variable92": null,
                                    "g_datapoints-92": true,
                                    "json_dp93": "system.adapter.awtrix-light.0.alive",
                                    "json_dp_variable93": null,
                                    "g_datapoints-93": true,
                                    "json_dp94": "system.adapter.awtrix-light.0.connected",
                                    "json_dp_variable94": null,
                                    "g_datapoints-94": true,
                                    "json_dp95": "system.adapter.backitup.0.alive",
                                    "json_dp_variable95": null,
                                    "g_datapoints-95": true,
                                    "json_dp96": "system.adapter.backitup.0.connected",
                                    "json_dp_variable96": null,
                                    "g_datapoints-96": true,
                                    "json_dp97": "system.adapter.cloud.0.alive",
                                    "json_dp_variable97": null,
                                    "g_datapoints-97": true,
                                    "json_dp98": "system.adapter.cloud.0.connected",
                                    "json_dp_variable98": null,
                                    "g_datapoints-98": true,
                                    "json_dp99": "system.adapter.denon.0.alive",
                                    "json_dp_variable99": null,
                                    "g_datapoints-99": true,
                                    "json_dp100": "system.adapter.denon.0.connected",
                                    "json_dp_variable100": null,
                                    "g_datapoints-100": true,
                                    "json_dp101": "system.adapter.devices.0.alive",
                                    "json_dp_variable101": null,
                                    "g_datapoints-101": true,
                                    "json_dp102": "system.adapter.devices.0.connected",
                                    "json_dp_variable102": null,
                                    "g_datapoints-102": true,
                                    "json_dp103": "system.adapter.discovery.0.alive",
                                    "json_dp_variable103": null,
                                    "g_datapoints-103": true,
                                    "json_dp104": "system.adapter.discovery.0.connected",
                                    "json_dp_variable104": null,
                                    "g_datapoints-104": true,
                                    "json_dp105": "system.adapter.echarts.0.alive",
                                    "json_dp_variable105": null,
                                    "g_datapoints-105": true,
                                    "json_dp106": "system.adapter.echarts.0.connected",
                                    "json_dp_variable106": null,
                                    "g_datapoints-106": true,
                                    "json_dp107": "system.adapter.fronius-solarweb.0.alive",
                                    "json_dp_variable107": null,
                                    "g_datapoints-107": true,
                                    "json_dp108": "system.adapter.fronius-solarweb.0.connected",
                                    "json_dp_variable108": null,
                                    "g_datapoints-108": true,
                                    "json_dp109": "system.adapter.fronius.0.alive",
                                    "json_dp_variable109": null,
                                    "g_datapoints-109": true,
                                    "json_dp110": "system.adapter.fronius.0.connected",
                                    "json_dp_variable110": null,
                                    "g_datapoints-110": true,
                                    "json_dp111": "system.adapter.fullybrowser.0.alive",
                                    "json_dp_variable111": null,
                                    "g_datapoints-111": true,
                                    "json_dp112": "system.adapter.fullybrowser.0.connected",
                                    "json_dp_variable112": null,
                                    "g_datapoints-112": true,
                                    "json_dp113": "system.adapter.history.0.alive",
                                    "json_dp_variable113": null,
                                    "g_datapoints-113": true,
                                    "json_dp114": "system.adapter.history.0.connected",
                                    "json_dp_variable114": null,
                                    "g_datapoints-114": true,
                                    "json_dp115": "system.adapter.hm-rega.0.alive",
                                    "json_dp_variable115": null,
                                    "g_datapoints-115": true,
                                    "json_dp116": "system.adapter.hm-rega.0.connected",
                                    "json_dp_variable116": null,
                                    "g_datapoints-116": true,
                                    "json_dp117": "system.adapter.hm-rpc.0.alive",
                                    "json_dp_variable117": null,
                                    "g_datapoints-117": true,
                                    "json_dp118": "system.adapter.hm-rpc.0.connected",
                                    "json_dp_variable118": null,
                                    "g_datapoints-118": true,
                                    "json_dp119": "system.adapter.iot.0.alive",
                                    "json_dp_variable119": null,
                                    "g_datapoints-119": true,
                                    "json_dp120": "system.adapter.iot.0.connected",
                                    "json_dp_variable120": null,
                                    "g_datapoints-120": true,
                                    "json_dp121": "system.adapter.javascript.0.alive",
                                    "json_dp_variable121": null,
                                    "g_datapoints-121": true,
                                    "json_dp122": "system.adapter.javascript.0.connected",
                                    "json_dp_variable122": null,
                                    "g_datapoints-122": true,
                                    "json_dp123": "system.adapter.lgtv.0.alive",
                                    "json_dp_variable123": null,
                                    "g_datapoints-123": true,
                                    "json_dp124": "system.adapter.lgtv.0.connected",
                                    "json_dp_variable124": null,
                                    "g_datapoints-124": true,
                                    "json_dp125": "system.adapter.matter.0.alive",
                                    "json_dp_variable125": null,
                                    "g_datapoints-125": true,
                                    "json_dp126": "system.adapter.matter.0.connected",
                                    "json_dp_variable126": null,
                                    "g_datapoints-126": true,
                                    "json_dp127": "system.adapter.moma.0.alive",
                                    "json_dp_variable127": null,
                                    "g_datapoints-127": true,
                                    "json_dp128": "system.adapter.moma.0.connected",
                                    "json_dp_variable128": null,
                                    "g_datapoints-128": true,
                                    "json_dp129": "system.adapter.mqtt.0.alive",
                                    "json_dp_variable129": null,
                                    "g_datapoints-129": true,
                                    "json_dp130": "system.adapter.mqtt.0.connected",
                                    "json_dp_variable130": null,
                                    "g_datapoints-130": true,
                                    "json_dp131": "system.adapter.mytime.0.alive",
                                    "json_dp_variable131": null,
                                    "g_datapoints-131": true,
                                    "json_dp132": "system.adapter.mytime.0.connected",
                                    "json_dp_variable132": null,
                                    "g_datapoints-132": true,
                                    "json_dp133": "system.adapter.nanoleaf-lightpanels.0.alive",
                                    "json_dp_variable133": null,
                                    "g_datapoints-133": true,
                                    "json_dp134": "system.adapter.nanoleaf-lightpanels.0.connected",
                                    "json_dp_variable134": null,
                                    "g_datapoints-134": true,
                                    "json_dp135": "system.adapter.ping.0.alive",
                                    "json_dp_variable135": null,
                                    "g_datapoints-135": true,
                                    "json_dp136": "system.adapter.ping.0.connected",
                                    "json_dp_variable136": null,
                                    "g_datapoints-136": true,
                                    "json_dp137": "system.adapter.shelly.0.alive",
                                    "json_dp_variable137": null,
                                    "g_datapoints-137": true,
                                    "json_dp138": "system.adapter.shelly.0.connected",
                                    "json_dp_variable138": null,
                                    "g_datapoints-138": true,
                                    "json_dp139": "system.adapter.tuya.0.alive",
                                    "json_dp_variable139": null,
                                    "g_datapoints-139": true,
                                    "json_dp140": "system.adapter.tuya.0.connected",
                                    "json_dp_variable140": null,
                                    "g_datapoints-140": true,
                                    "json_dp141": "system.adapter.vis-2.0.alive",
                                    "json_dp_variable141": null,
                                    "g_datapoints-141": true,
                                    "json_dp142": "system.adapter.vis-2.0.connected",
                                    "json_dp_variable142": null,
                                    "g_datapoints-142": true,
                                    "json_dp143": "system.adapter.web.0.alive",
                                    "json_dp_variable143": null,
                                    "g_datapoints-143": true,
                                    "json_dp144": "system.adapter.web.0.connected",
                                    "json_dp_variable144": null,
                                    "g_datapoints-144": true,
                                    "json_dp145": "system.adapter.web.1.alive",
                                    "json_dp_variable145": null,
                                    "g_datapoints-145": true,
                                    "json_dp146": "system.adapter.web.1.connected",
                                    "json_dp_variable146": null,
                                    "g_datapoints-146": true,
                                    "json_dp147": "system.adapter.zigbee2mqtt.0.alive",
                                    "json_dp_variable147": null,
                                    "g_datapoints-147": true,
                                    "g_datapoints-1": true,
                                    "json_dp1": "system.adapter.discord.0.connected",
                                    "json_dp_variable1": null,
                                    "json_dp148": "system.adapter.zigbee2mqtt.0.connected",
                                    "json_dp_variable148": null,
                                    "g_datapoints-148": true
                                  },
                                  "style": {
                                    "bindings": [],
                                    "left": "5",
                                    "top": "53px",
                                    "width": "382.9",
                                    "height": "729.8",
                                    "z-index": 20
                                  },
                                  "widgetSet": "vis-jsontemplate",
                                  "_id": "i000001"
                                }
                              ]
                              

                              Beste Grüße!

                              io-Broker Neuling 2024 :-)

                              Bislang jedoch einiges an Beiträgen und Grundlagen eingeflößt, um etwas besser empor zu irren.

                              1 Antwort Letzte Antwort
                              0
                              • CyberraphC
                                CyberraphC
                                Cyberraph
                                schrieb am zuletzt editiert von
                                #115

                                Fortsetzung Post#114

                                Nachfolgend der reinkopierte Code:

                                <%
                                const devices = [
                                ["Aussensensor", "Aussen", "Nordost", [["Zigbee", "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Aussensensor", "Aussen", "Nordwest", [["Homematic", "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Aussensensor", "Aussen", "Südwest", [["Zigbee", "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["PV", "DG", "Dachboden", [["LAN / WLAN", "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive"]], null, false, null],
                                ["Raumsensor", "DG", "Dachboden", [["Zigbee", "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Raumsensor", "EG", "Abstellzimmer", [["Zigbee", "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Hama LED-Leuchte", "EG", "Arbeitszimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH"]], null, false, null],
                                ["Raumsensor", "EG", "Arbeitszimmer", [["Zigbee", "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Surface Angela", "EG", "Arbeitszimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive"]], null, true, null],
                                ["Licht 01", "EG", "Bad", [["Homematic", "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH"]], null, false, null],
                                ["Raumsensor", "EG", "Bad", [["Zigbee", "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Licht 01", "EG", "Küche", [["Zigbee", "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH"]], null, false, null],
                                ["Plug 01 (Küche / Lagerraum)", "EG", "Küche", [["Zigbee", "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH"]], null, false, null],
                                ["Raumsensor", "EG", "Küche", [["Zigbee", "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Schalter 01", "EG", "Küche", [["Homematic", "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive"]], null, false, null],
                                ["Raumsensor", "EG", "WC", [["Zigbee", "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["DLAN Verteiler", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive"]], null, false, null],
                                ["Handy Corinna", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive"]], null, true, null],
                                ["Handy Mutti", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive"]], null, true, null],
                                ["Handy Raphael", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive"]], null, true, null],
                                ["Homematic Zentrale", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive"]], null, false, null],
                                ["FRITZ!Box 7530", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive"]], null, false, null],
                                ["Raumsensor", "EG", "Vorhaus", [["Zigbee", "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Easylog Sensor", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1"]], null, false, null],
                                ["Smarthomeserver", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive"]], null, false, null],
                                ["Zigbee Coordinator", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive"]], null, false, null],
                                ["DLAN Wohnzimmer", "EG", "Wohnzimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive"]], null, false, null],
                                ["Laptop Corinna", "EG", "Wohnzimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive"]], null, true, null],
                                ["Plug 01", "EG", "Wohnzimmer", [["Homematic", "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH"]], null, false, null],
                                ["Raumsensor", "EG", "Wohnzimmer", [["Zigbee", "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Anlegefuehler D1-Mini-V3-Sensor-01-06", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive"]], null, false, null],
                                ["Anlegefuehler D1-Mini-V3-Sensor-07-10", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive"]], null, false, null],
                                ["E Heizer Boiler Leistungsdaten", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH"]], null, false, null],
                                ["E Heizer Boiler Thermostat", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH"]], null, false, null],
                                ["Wasserzähler", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive"]], null, false, null],
                                ["Raumsensor", "KG", "Vorhaus", [["Zigbee", "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Plug 01", "KG", "Waschraum", [["Homematic", "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH"]], null, false, null],
                                ["Waschmaschine", "KG", "Waschraum", [["LAN / WLAN", "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive"]], null, true, null],
                                ["Raumsensor", "OG", "WC", [["Zigbee", "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["DLAN Zimmer Corinna", "OG", "Zimmer Corinna", [["LAN / WLAN", "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive"]], null, false, null],
                                ["Raumsensor", "OG", "Zimmer Corinna", [["Zigbee", "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["TV", "OG", "Zimmer Corinna", [["LAN / WLAN", "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive"]], null, true, null],
                                ["Raumsensor", "OG", "Schlafzimmer", [["Zigbee", "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["BWM Wand 01", "OG", "Vorhaus", [["Homematic", "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive"]], null, false, null],
                                ["Raumsensor", "OG", "Vorhaus", [["Zigbee", "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Schalter 01", "OG", "Vorhaus", [["Homematic", "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive"]], null, false, null],
                                ["Denon AV-Receiver", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                ["Amazon Echo Dot", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive"]], null, false, null],
                                ["DLAN Zimmer Raphael", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive"]], null, false, null],
                                ["HP Laserdrucker", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online"],
                                ["Licht 01", "OG", "Zimmer Raphael", [["Homematic", "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH"]], null, false, null],
                                ["Nanoleaf LEDs", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive"]], null, false, null],
                                ["Nintendo Switch 2", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                ["Nintendo Switch OLED", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                ["Stand-PC", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online"],
                                ["PS5", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                ["Plug 01", "OG", "Zimmer Raphael", [["Zigbee", "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH"]], null, false, null],
                                ["Plug 02", "OG", "Zimmer Raphael", [["Zigbee", "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH"]], null, false, null],
                                ["Plug 03", "OG", "Zimmer Raphael", [["Zigbee", "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH"]], null, false, null],
                                ["Plug 04", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online"]], null, false, null],
                                ["Raumsensor", "OG", "Zimmer Raphael", [["Homematic", "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Stckleiste 1", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online"]], null, false, null],
                                ["Stckleiste 2", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"]], null, false, null],
                                ["Stckleiste 3", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online"]], null, false, null],
                                ["Stckleiste 4", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online"]], null, false, null],
                                ["Surface Raphael", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive"]], null, true, null],
                                ["LG TV", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                ["Tablet Amazon Fire HD 10", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive"]], null, true, null],
                                ["Ulanzi AWTRIX", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET", false, "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online"]];
                                
                                const instanceNames = ["admin.0", "alexa2.0", "awtrix-light.0", "backitup.0", "cloud.0", "denon.0", "devices.0", "discord.0", "discovery.0", "echarts.0", "fronius-solarweb.0", "fronius.0", "fullybrowser.0", "history.0", "hm-rega.0", "hm-rpc.0", "iot.0", "javascript.0", "lgtv.0", "matter.0", "moma.0", "mqtt.0", "mytime.0", "nanoleaf-lightpanels.0", "ping.0", "shelly.0", "tuya.0", "vis-2.0", "web.0", "web.1", "zigbee2mqtt.0"];
                                const dependencies = [
                                 [
                                   "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive",
                                   "mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH",
                                   "denon.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH",
                                   "nanoleaf-lightpanels.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH",
                                   "lgtv.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH",
                                   "awtrix-light.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET",
                                   "tuya.0"
                                 ]
                                ];
                                const ids=[
                                 "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive",
                                 "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH",
                                 "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH",
                                 "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH",
                                 "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH",
                                 "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1",
                                 "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH",
                                 "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive",
                                 "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive",
                                 "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH",
                                 "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH",
                                 "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive",
                                 "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH",
                                 "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive",
                                 "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online",
                                 "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online",
                                 "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET",
                                 "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2",
                                 "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online",
                                 "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online",
                                 "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET",
                                 "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET",
                                 "system.adapter.admin.0.alive",
                                 "system.adapter.admin.0.connected",
                                 "system.adapter.alexa2.0.alive",
                                 "system.adapter.alexa2.0.connected",
                                 "system.adapter.awtrix-light.0.alive",
                                 "system.adapter.awtrix-light.0.connected",
                                 "system.adapter.backitup.0.alive",
                                 "system.adapter.backitup.0.connected",
                                 "system.adapter.cloud.0.alive",
                                 "system.adapter.cloud.0.connected",
                                 "system.adapter.denon.0.alive",
                                 "system.adapter.denon.0.connected",
                                 "system.adapter.devices.0.alive",
                                 "system.adapter.devices.0.connected",
                                 "system.adapter.discord.0.alive",
                                 "system.adapter.discord.0.connected",
                                 "system.adapter.discovery.0.alive",
                                 "system.adapter.discovery.0.connected",
                                 "system.adapter.echarts.0.alive",
                                 "system.adapter.echarts.0.connected",
                                 "system.adapter.fronius-solarweb.0.alive",
                                 "system.adapter.fronius-solarweb.0.connected",
                                 "system.adapter.fronius.0.alive",
                                 "system.adapter.fronius.0.connected",
                                 "system.adapter.fullybrowser.0.alive",
                                 "system.adapter.fullybrowser.0.connected",
                                 "system.adapter.history.0.alive",
                                 "system.adapter.history.0.connected",
                                 "system.adapter.hm-rega.0.alive",
                                 "system.adapter.hm-rega.0.connected",
                                 "system.adapter.hm-rpc.0.alive",
                                 "system.adapter.hm-rpc.0.connected",
                                 "system.adapter.iot.0.alive",
                                 "system.adapter.iot.0.connected",
                                 "system.adapter.javascript.0.alive",
                                 "system.adapter.javascript.0.connected",
                                 "system.adapter.lgtv.0.alive",
                                 "system.adapter.lgtv.0.connected",
                                 "system.adapter.matter.0.alive",
                                 "system.adapter.matter.0.connected",
                                 "system.adapter.moma.0.alive",
                                 "system.adapter.moma.0.connected",
                                 "system.adapter.mqtt.0.alive",
                                 "system.adapter.mqtt.0.connected",
                                 "system.adapter.mytime.0.alive",
                                 "system.adapter.mytime.0.connected",
                                 "system.adapter.nanoleaf-lightpanels.0.alive",
                                 "system.adapter.nanoleaf-lightpanels.0.connected",
                                 "system.adapter.ping.0.alive",
                                 "system.adapter.ping.0.connected",
                                 "system.adapter.shelly.0.alive",
                                 "system.adapter.shelly.0.connected",
                                 "system.adapter.tuya.0.alive",
                                 "system.adapter.tuya.0.connected",
                                 "system.adapter.vis-2.0.alive",
                                 "system.adapter.vis-2.0.connected",
                                 "system.adapter.web.0.alive",
                                 "system.adapter.web.0.connected",
                                 "system.adapter.web.1.alive",
                                 "system.adapter.web.1.connected",
                                 "system.adapter.zigbee2mqtt.0.alive",
                                 "system.adapter.zigbee2mqtt.0.connected"
                                ];
                                const snapshot=Object.create(null);
                                ids.forEach(function(id)
                                {
                                   if(typeof dp==='undefined' || !dp) return;
                                   let v=dp[id];
                                   if(v!==null && typeof v==='object' && 'val' in v) v=v.val;
                                   if(v===undefined) return;
                                   snapshot[id]=v===true || v===1 || v==='true' || v==='1' || v==='online' ? true : v===false || v===0 || v==='false' || v==='0' || v==='offline' ? false : null;
                                });
                                function read(id)
                                {
                                   if (!id || true) return null;
                                   let v = null;
                                   if (v !== null && typeof v === 'object') v = v.val;
                                   if (v === true || v === 1 || v === 'true' || v === '1' || v === 'online') return true;
                                   if (v === false || v === 0 || v === 'false' || v === '0' || v === 'offline') return false;
                                   return null;
                                }
                                const systems = ['LAN / WLAN','Zigbee','Homematic','Tuya','ioBroker-Instanzen'];
                                const checkSystems = systems.concat('ioBroker-Adapter');
                                function instanceState(name)
                                {
                                   const alive=read('system.adapter.'+name+'.alive');
                                   const connected=read('system.adapter.'+name+'.connected');
                                   if(alive===false || connected===false) return false;
                                   if(alive===true && connected===true) return true;
                                   return null;
                                }
                                function dependencyState(id)
                                {
                                   const dep=dependencies.find(d=>d[0]===id);
                                   return dep && instanceState(dep[1])===false ? dep[1] : '';
                                }
                                instanceNames.forEach(function(name)
                                {
                                   devices.push([name,'ioBroker','Instanz',[['ioBroker-Instanzen','system.adapter.'+name+'.alive'],['ioBroker-Instanzen','system.adapter.'+name+'.connected']],null,false,null]);
                                });
                                const labels = ['Online','Störung','Offline','Ausgeschaltet','Unbekannt'];
                                const colors = ['#4ade80','#ef7777','#f6b55c','#687481','#8996a3'];
                                function classify(values, power, trusted, optional)
                                {
                                   if (trusted && power === false && !values.includes(true)) return 3;
                                   if (trusted && power === false && values.includes(true)) return 4;
                                   if (values.includes(false)) return optional ? 2 : 1;
                                   if (values.includes(null)) return 4;
                                   return values.length && values.every(v => v === true) ? 0 : 4;
                                }
                                const entries = devices.map(function(d)
                                {
                                   const checks = d[3].map(function(c)
                                   {
                                       const failed=dependencyState(c[1]);
                                       return [c[0],failed ? null : read(c[1]),c[1],failed];
                                   });
                                   const power = dependencyState(d[4]) ? null : read(d[4]);
                                   const trusted = !!d[4] && !dependencyState(d[6]) && read(d[6]) === true;
                                   const bySystem = checkSystems.filter(s => checks.some(c => c[0] === s)).map(function(s)
                                   {
                                       let values = checks.filter(c => c[0] === s).map(c => c[1]);
                                       if (s === 'LAN / WLAN' && values.length > 1)
                                       {
                                           values = [values.includes(true) ? true : values.includes(null) ? null : false];
                                       }
                                       return [s,classify(values,power,trusted,d[5])];
                                   });
                                   const states = bySystem.map(c => c[1]);
                                   const status = [1,4,2,3,0].find(s => states.includes(s));
                                   return [d[0],d[1],d[2],checks,power,trusted,bySystem,status,d[4]];
                                });
                                const counts = labels.map((l,i) => entries.filter(e => e[7] === i).length);
                                const pct = entries.length ? Math.round(counts[0]*100/entries.length) : 0;
                                %>
                                <style id="net-style-<%- widgetid %>">
                                #net-<%- widgetid %>-persistent
                                {
                                width:382.9px; max-width:100%; height:729.8px; box-sizing:border-box; background:#1c222b; color:#edf2f7; border-radius:16px; padding:14px 10px 10px; font:13px Arial,sans-serif; display:flex; flex-direction:column; gap:8px; overflow:hidden;
                                }
                                #net-<%- widgetid %>-persistent *
                                {
                                box-sizing:border-box;
                                }
                                #net-<%- widgetid %>-persistent .head, #net-<%- widgetid %>-persistent .line
                                {
                                display:flex; align-items:center; justify-content:space-between; gap:6px;
                                }
                                #net-<%- widgetid %>-persistent .head
                                {
                                padding:2px 6px; height:24px; flex-shrink:0; font-weight:bold;
                                }
                                #net-<%- widgetid %>-persistent .panel
                                {
                                background:#26313d; border-radius:12px; padding:10px;
                                }
                                #net-<%- widgetid %>-persistent .tiles
                                {
                                display:grid; grid-template-columns:1fr 1fr; gap:6px;
                                }
                                #net-<%- widgetid %>-persistent .tiles > button:last-child
                                {
                                grid-column:1 / -1;
                                }
                                #net-<%- widgetid %>-persistent button
                                {
                                background:#26313d; color:#edf2f7; border:1px solid #465260; border-radius:7px; padding:7px; font:inherit; min-width:0;
                                }
                                #net-<%- widgetid %>-persistent button
                                {
                                cursor:pointer; text-align:left;
                                }
                                #net-<%- widgetid %>-persistent button.active
                                {
                                border-color:#78bde2; background:#34414f;
                                }
                                #net-<%- widgetid %>-persistent .bar
                                {
                                display:flex; height:4px; overflow:hidden; border-radius:3px; margin-top:5px;
                                }
                                #net-<%- widgetid %>-persistent .filters
                                {
                                display:flex; flex-wrap:wrap; gap:4px;
                                }
                                #net-<%- widgetid %>-persistent .filters button
                                {
                                flex:1; font-size:11px; text-align:center;
                                }
                                #net-<%- widgetid %>-persistent .list
                                {
                                flex:1; min-height:0; overflow-x:hidden; overflow-y:auto; overflow-anchor:none; touch-action:pan-y; -webkit-overflow-scrolling:touch; scrollbar-width:none; overscroll-behavior:contain; background:#26313d; border-radius:10px; padding:7px;
                                }
                                #net-<%- widgetid %>-persistent .list::-webkit-scrollbar
                                {
                                display:none;
                                }
                                #net-<%- widgetid %>-persistent details
                                {
                                background:#1c222b; border-radius:6px; margin:4px 0; padding:7px;
                                }
                                #net-<%- widgetid %>-persistent summary
                                {
                                cursor:pointer; list-style:none;
                                }
                                #net-<%- widgetid %>-persistent .muted
                                {
                                color:#8996a3; font-size:10px;
                                }
                                #net-<%- widgetid %>-persistent .group
                                {
                                color:#78bde2; font-weight:bold; padding:7px 2px 2px;
                                }
                                </style>
                                <div id="net-<%- widgetid %>" style="width:382.9px;max-width:100%;height:729.8px;">
                                <div data-source style="display:none">
                                <div class="head"><span style="font-size:18px"> <span style="color:<%- counts[4] === entries.length ? '#687481' : '#4ade80' %>">●</span> Status</span><span>Netzwerkübersicht</span></div>
                                <div class="panel line">
                                <svg viewBox="0 0 110 110" width="105" height="105" style="flex-shrink:0">
                                <circle cx="55" cy="55" r="44" fill="none" stroke="#414d5a" stroke-width="9"/>
                                <% let offset=0; for(let i=0;i<5;i++) { %>
                                <% const len=entries.length ? counts[i]/entries.length*276.46 : 0; %>
                                <circle data-ring="<%- i %>" cx="55" cy="55" r="44" fill="none" stroke="<%- colors[i] %>" stroke-width="9" stroke-dasharray="<%- len %> 276.46" stroke-dashoffset="<%- -offset %>" transform="rotate(-90 55 55)"/>
                                <% offset+=len; } %>
                                <text data-pct x="55" y="54" text-anchor="middle" fill="#edf2f7" font-size="25" font-weight="bold"><%- pct %>%</text><text x="55" y="69" text-anchor="middle" fill="#8996a3" font-size="11">Online</text>
                                </svg>
                                <div style="flex:1"><div class="line"><b>Geräte / Instanzen</b><b><%- entries.length %></b></div>
                                <% for(let i=0;i<5;i++) { %>
                                <button type="button" data-status="<%- i %>" class="line" style="width:100%;padding:2px 4px;border:0"><span style="color:<%- colors[i] %>">● <%- labels[i] %></span><b data-count="<%- i %>"><%- counts[i] %></b></button>
                                <% } %>
                                </div></div>
                                <div class="tiles">
                                <% for(const s of systems) { %>
                                <% const list=entries.flatMap(e=>e[6].filter(c=>c[0]===s)); const n=list.length; const cc=labels.map((l,i)=>list.filter(c=>c[1]===i).length); %>
                                <button type="button" data-system="<%- s %>"><div class="line"><b><%- s %></b><span class="muted"><%- n %></span></div><div class="line"><b style="color:#4ade80;font-size:17px"><%- cc[0] %> / <%- n %></b><span style="color:<%- cc[1] ? '#ef7777' : '#8996a3' %>;font-size:10px"><%- cc[1] %> Störung</span></div><div class="bar">
                                <% for(let i=0;i<5;i++) { %>
                                <span style="width:<%- n ? cc[i]*100/n : 0 %>%;background:<%- colors[i] %>"></span>
                                <% } %>
                                </div></button>
                                <% } %>
                                </div>
                                <div class="filters"><button type="button" data-group="system">Nach System</button><button type="button" data-group="floor">Nach Geschoss</button><button type="button" data-reset>Alle / Reset</button></div>
                                <div class="filters"><button type="button" data-status="1">Störungen</button><button type="button" data-status="2">Offline</button><button type="button" data-status="3">Aus</button><button type="button" data-status="4">Unbekannt</button></div>
                                <div class="muted" data-caption></div>
                                <div class="list" data-list></div>
                                </div>
                                </div>
                                <script>
                                (function()
                                {
                                const key='net-<%- widgetid %>';
                                const snapshot=<%- JSON.stringify(snapshot,null,2) %>;
                                const incoming=document.getElementById(key);
                                if(!incoming) return;
                                const portalKey=key+'-portal-live-v1';
                                const existing=window[portalKey];
                                if(existing && existing.root.isConnected)
                                {
                                 existing.anchor=incoming;
                                 existing.position();
                                 if(typeof existing.receive==='function') existing.receive(snapshot);
                                 return;
                                }
                                const source=incoming.querySelector('[data-source]');
                                const sourceStyle=document.getElementById('net-style-<%- widgetid %>');
                                if(!source || !sourceStyle) return;
                                const root=source.cloneNode(true);
                                root.removeAttribute('data-source');
                                root.removeAttribute('style');
                                root.id=key+'-persistent';
                                const css=sourceStyle.cloneNode(true);
                                css.removeAttribute('id');
                                document.head.appendChild(css);
                                root.style.position='fixed';
                                root.style.margin='0';
                                root.style.maxWidth='none';
                                root.style.transformOrigin='top left';
                                root.style.zIndex='20';
                                root.style.visibility='hidden';
                                document.body.appendChild(root);
                                const portal=
                                {
                                 root:root,anchor:incoming,visible:false,position:null
                                };
                                window[portalKey]=portal;
                                function put(prop,value)
                                {
                                 if(root.style[prop]!==value) root.style[prop]=value;
                                }
                                function position()
                                {
                                 const anchor=portal.anchor;
                                 let visible=!!anchor && anchor.isConnected && anchor.getClientRects().length>0;
                                 let r=null;
                                 if(visible)
                                 {
                                  r=anchor.getBoundingClientRect();
                                  visible=r.width>0 && r.height>0;
                                  for(let node=anchor;visible && node;node=node.parentElement)
                                  {
                                   const style=getComputedStyle(node);
                                   if(style.display==='none' || style.visibility==='hidden' || style.visibility==='collapse' || Number(style.opacity)===0) visible=false;
                                  }
                                 }
                                 if(visible)
                                 {
                                  const sx=r.width/382.9, sy=r.height/729.8;
                                  let left=Math.max(0,r.left),top=Math.max(0,r.top),right=Math.min(innerWidth,r.right),bottom=Math.min(innerHeight,r.bottom);
                                  for(let node=anchor.parentElement;node && node!==document.body;node=node.parentElement)
                                  {
                                   const style=getComputedStyle(node);
                                   const bounds=node.getBoundingClientRect();
                                   if(/hidden|clip|auto|scroll/.test(style.overflowX))
                                   {
                                    left=Math.max(left,bounds.left); right=Math.min(right,bounds.right);
                                   }
                                   if(/hidden|clip|auto|scroll/.test(style.overflowY))
                                   {
                                    top=Math.max(top,bounds.top); bottom=Math.min(bottom,bounds.bottom);
                                   }
                                  }
                                  visible=right>left && bottom>top;
                                  if(visible)
                                  {
                                   put('left',r.left+'px'); put('top',r.top+'px');
                                   put('transform','scale('+sx+','+sy+')');
                                   put('clipPath','inset('+Math.max(0,(top-r.top)/sy)+'px '+Math.max(0,(r.right-right)/sx)+'px '+Math.max(0,(r.bottom-bottom)/sy)+'px '+Math.max(0,(left-r.left)/sx)+'px)');
                                  }
                                 }
                                 put('visibility',visible?'visible':'hidden');
                                 if(portal.visible!==visible)
                                 {
                                  portal.visible=visible;
                                  if(typeof portal.changed==='function') portal.changed();
                                 }
                                }
                                portal.position=position;
                                position();
                                // Only observe the host lifecycle, never changes inside the dashboard.
                                const observer=new MutationObserver(function(records)
                                {
                                 const anchor=portal.anchor;
                                 if(!anchor || !anchor.isConnected)
                                 {
                                  const next=document.getElementById(key);
                                  if(next) portal.anchor=next;
                                  position(); return;
                                 }
                                 if(records.some(record=>record.target===anchor || (record.target.nodeType===1 && record.target.contains(anchor)))) position();
                                });
                                observer.observe(document.body,
                                {
                                 childList:true,subtree:true,attributes:true,attributeFilter:['style','class','hidden']
                                });
                                window.addEventListener('resize',position);
                                window.addEventListener('scroll',function(event)
                                {
                                 if(!event.target || !event.target.nodeType || !root.contains(event.target)) position();
                                },true);
                                let entries=<%- JSON.stringify(entries).replace(/</g,'\\u003c') %>;
                                const labels=<%- JSON.stringify(labels) %>;
                                const colors=<%- JSON.stringify(colors) %>;
                                const systems=<%- JSON.stringify(systems) %>;
                                const stateKey=key+'-live-persistent-v1';
                                if(!window[stateKey])
                                {
                                 window[stateKey]=
                                 {
                                  system:'',status:-1,group:'system',scroll:0,open:[],values:Object.create(null),seen:Object.create(null)
                                 };
                                }
                                const st=window[stateKey];
                                if(st.system==='Adapter') st.system='ioBroker-Adapter';
                                if(st.system==='MQTT') st.system='LAN / WLAN';
                                if(st.system && !systems.includes(st.system)) st.system='';
                                const savedInitialScroll=st.scroll;
                                if(st.root===root && typeof portal.receive==='function')
                                {
                                 return;
                                }
                                if(typeof st.stop==='function') st.stop();
                                st.root=root;
                                const list=root.querySelector('[data-list]');
                                function el(tag,text,cls)
                                {
                                 const node=document.createElement(tag);
                                 if(text!==null) node.textContent=text;
                                 if(cls) node.className=cls;
                                 return node;
                                }
                                function restoreScroll(saved)
                                {
                                 if(!root.isConnected || list.clientHeight===0) return;
                                 const target=Math.min(typeof saved==='number'?saved:st.scroll,Math.max(0,list.scrollHeight-list.clientHeight));
                                 if(Math.abs(list.scrollTop-target)>1) list.scrollTop=target;
                                 st.scroll=list.scrollTop;
                                }
                                st.restore=restoreScroll;
                                function patch(a,b)
                                {
                                 if(a.nodeType===3)
                                 {
                                  if(a.nodeValue!==b.nodeValue) a.nodeValue=b.nodeValue;
                                  return;
                                 }
                                 if(a.nodeType!==1) return;
                                 if(a.getAttribute('style')!==b.getAttribute('style'))
                                 {
                                  if(b.hasAttribute('style')) a.setAttribute('style',b.getAttribute('style'));
                                  else a.removeAttribute('style');
                                 }
                                 if(a.childNodes.length!==b.childNodes.length)
                                 {
                                  a.replaceChildren(...Array.from(b.childNodes));
                                  return;
                                 }
                                 Array.from(a.childNodes).forEach((n,i)=>patch(n,b.childNodes[i]));
                                }
                                function render()
                                {
                                 if(!root.isConnected) return;
                                 const fragment=document.createDocumentFragment();
                                 let count=0;
                                 const gs=st.group==='system' ? systems : ['Aussen','DG','OG','EG','KG','ioBroker'];
                                 gs.forEach(function(g)
                                 {
                                  if(st.group==='system' && st.system && st.system!==g) return;
                                  const rows=entries.filter(function(e)
                                  {
                                   if(st.system && !e[6].some(c=>c[0]===st.system)) return false;
                                   if(st.group==='system' ? !e[6].some(c=>c[0]===g) : e[1]!==g) return false;
                                   const s=st.group==='system' ? e[6].find(c=>c[0]===g)[1] : st.system ? e[6].find(c=>c[0]===st.system)[1] : e[7];
                                   if(st.status>=0 && s!==st.status) return false;
                                   return true;
                                  });
                                  if(!rows.length) return;
                                  const heading=el('div',g+' · '+rows.length,'group');
                                  heading.dataset.row='group|'+g;
                                  fragment.appendChild(heading);
                                  rows.forEach(function(e)
                                  {
                                   count++;
                                   const s=st.group==='system' ? e[6].find(c=>c[0]===g)[1] : st.system ? e[6].find(c=>c[0]===st.system)[1] : e[7];
                                   const id=g+'|'+e[3][0][2];
                                   const detail=el('details',null);
                                   detail.dataset.row=id;
                                   detail.open=st.open.includes(id);
                                   const summary=el('summary',null,'line');
                                   const name=el('div',null);
                                   name.appendChild(el('b',e[0]));
                                   name.appendChild(el('div',e[1]+' · '+e[2],'muted'));
                                   summary.appendChild(name);
                                   const status=el('span','● '+labels[s]); status.style.color=colors[s]; status.style.fontSize='11px';
                                   summary.appendChild(status); detail.appendChild(summary);
                                   e[3].forEach(function(c)
                                   {
                                    let connectionName=c[0];
                                    if(c[0]==='ioBroker-Adapter')
                                    {
                                     if(e[0]==='Denon AV-Receiver') connectionName='Denon-Adapter';
                                     if(e[0]==='LG TV') connectionName='LG-TV-Adapter';
                                     if(e[0]==='Ulanzi AWTRIX') connectionName='AWTRIX-Adapter';
                                     if(e[0]==='Nanoleaf LEDs') connectionName='Nanoleaf-Adapter';
                                    }
                                    if(c[0]==='ioBroker-Instanzen') connectionName=c[2].endsWith('.alive')?'Instanz läuft':'Controller verbunden';
                                     if(c[2].endsWith('Wasserzaehler-Zuleitung-Bestand.status.alive')) connectionName='LAN / WLAN (MQTT-Status)';
                                    const line=el('div',connectionName+': '+(c[3]?'Unbekannt – '+c[3]+' gestört':c[1]===true?'Online':c[1]===false?'Offline':'Unbekannt'),'muted');
                                    line.style.marginTop='5px'; detail.appendChild(line);
                                   });
                                   if(e[8]) detail.appendChild(el('div','Stromversorgung: '+(!e[5]?'Nicht verlässlich':e[4]===true?'EIN':e[4]===false?'AUS':'Unbekannt'),'muted'));
                                   detail.ontoggle=function()
                                   {
                                    if(!detail.isConnected || st.root!==root) return;
                                    if(detail.open && !st.open.includes(id)) st.open.push(id);
                                    if(!detail.open) st.open=st.open.filter(x=>x!==id);
                                   };
                                   fragment.appendChild(detail);
                                  });
                                 });
                                 if(!count) fragment.appendChild(el('div','Keine passenden Einträge','muted'));
                                 root.querySelector('[data-caption]').textContent=count+' Listeneinträge'+(st.system?' · '+st.system:'');
                                 root.querySelectorAll('button').forEach(function(b)
                                 {
                                  b.classList.toggle('active',b.dataset.system===st.system || b.dataset.group===st.group || (b.dataset.status!==undefined && Number(b.dataset.status)===st.status));
                                 });
                                 const old=Array.from(list.children);
                                 const next=Array.from(fragment.children);
                                 const same=old.length===next.length && old.every((node,i)=>node.dataset.row===next[i].dataset.row && node.tagName===next[i].tagName);
                                 if(same)
                                 {
                                  old.forEach((node,i)=>patch(node,next[i]));
                                 }
                                 else
                                 {
                                  const saved=list.scrollTop;
                                  list.replaceChildren(fragment);
                                  restoreScroll(saved);
                                 }
                                }
                                list.onscroll=function()
                                {
                                 if(st.root===root && root.isConnected && list.clientHeight>0) st.scroll=list.scrollTop;
                                };
                                root.onclick=function(event)
                                {
                                 const b=event.target.closest('button');
                                 if(!b || !root.contains(b)) return;
                                 event.preventDefault(); event.stopPropagation();
                                 if(b.dataset.system!==undefined) st.system=st.system===b.dataset.system?'':b.dataset.system;
                                 if(b.dataset.status!==undefined)
                                 {
                                  const s=Number(b.dataset.status); st.status=st.status===s?-1:s;
                                 }
                                 if(b.dataset.group!==undefined) st.group=b.dataset.group;
                                 if(b.dataset.reset!==undefined)
                                 {
                                  st.system=''; st.status=-1;
                                 }
                                 st.scroll=0; render(); restoreScroll(0);
                                };
                                
                                
                                const devices = [
                                ["Aussensensor", "Aussen", "Nordost", [["Zigbee", "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Aussensensor", "Aussen", "Nordwest", [["Homematic", "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Aussensensor", "Aussen", "Südwest", [["Zigbee", "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["PV", "DG", "Dachboden", [["LAN / WLAN", "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive"]], null, false, null],
                                ["Raumsensor", "DG", "Dachboden", [["Zigbee", "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Raumsensor", "EG", "Abstellzimmer", [["Zigbee", "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Hama LED-Leuchte", "EG", "Arbeitszimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH"]], null, false, null],
                                ["Raumsensor", "EG", "Arbeitszimmer", [["Zigbee", "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Surface Angela", "EG", "Arbeitszimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive"]], null, true, null],
                                ["Licht 01", "EG", "Bad", [["Homematic", "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH"]], null, false, null],
                                ["Raumsensor", "EG", "Bad", [["Zigbee", "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Licht 01", "EG", "Küche", [["Zigbee", "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH"]], null, false, null],
                                ["Plug 01 (Küche / Lagerraum)", "EG", "Küche", [["Zigbee", "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH"]], null, false, null],
                                ["Raumsensor", "EG", "Küche", [["Zigbee", "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Schalter 01", "EG", "Küche", [["Homematic", "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive"]], null, false, null],
                                ["Raumsensor", "EG", "WC", [["Zigbee", "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["DLAN Verteiler", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive"]], null, false, null],
                                ["Handy Corinna", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive"]], null, true, null],
                                ["Handy Mutti", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive"]], null, true, null],
                                ["Handy Raphael", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive"]], null, true, null],
                                ["Homematic Zentrale", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive"]], null, false, null],
                                ["FRITZ!Box 7530", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive"]], null, false, null],
                                ["Raumsensor", "EG", "Vorhaus", [["Zigbee", "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Easylog Sensor", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1"]], null, false, null],
                                ["Smarthomeserver", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive"]], null, false, null],
                                ["Zigbee Coordinator", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive"]], null, false, null],
                                ["DLAN Wohnzimmer", "EG", "Wohnzimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive"]], null, false, null],
                                ["Laptop Corinna", "EG", "Wohnzimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive"]], null, true, null],
                                ["Plug 01", "EG", "Wohnzimmer", [["Homematic", "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH"]], null, false, null],
                                ["Raumsensor", "EG", "Wohnzimmer", [["Zigbee", "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Anlegefuehler D1-Mini-V3-Sensor-01-06", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive"]], null, false, null],
                                ["Anlegefuehler D1-Mini-V3-Sensor-07-10", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive"]], null, false, null],
                                ["E Heizer Boiler Leistungsdaten", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH"]], null, false, null],
                                ["E Heizer Boiler Thermostat", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH"]], null, false, null],
                                ["Wasserzähler", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive"]], null, false, null],
                                ["Raumsensor", "KG", "Vorhaus", [["Zigbee", "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Plug 01", "KG", "Waschraum", [["Homematic", "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH"]], null, false, null],
                                ["Waschmaschine", "KG", "Waschraum", [["LAN / WLAN", "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive"]], null, true, null],
                                ["Raumsensor", "OG", "WC", [["Zigbee", "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["DLAN Zimmer Corinna", "OG", "Zimmer Corinna", [["LAN / WLAN", "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive"]], null, false, null],
                                ["Raumsensor", "OG", "Zimmer Corinna", [["Zigbee", "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["TV", "OG", "Zimmer Corinna", [["LAN / WLAN", "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive"]], null, true, null],
                                ["Raumsensor", "OG", "Schlafzimmer", [["Zigbee", "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["BWM Wand 01", "OG", "Vorhaus", [["Homematic", "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive"]], null, false, null],
                                ["Raumsensor", "OG", "Vorhaus", [["Zigbee", "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Schalter 01", "OG", "Vorhaus", [["Homematic", "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive"]], null, false, null],
                                ["Denon AV-Receiver", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                ["Amazon Echo Dot", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive"]], null, false, null],
                                ["DLAN Zimmer Raphael", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive"]], null, false, null],
                                ["HP Laserdrucker", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online"],
                                ["Licht 01", "OG", "Zimmer Raphael", [["Homematic", "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH"]], null, false, null],
                                ["Nanoleaf LEDs", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive"]], null, false, null],
                                ["Nintendo Switch 2", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                ["Nintendo Switch OLED", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                ["Stand-PC", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online"],
                                ["PS5", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                ["Plug 01", "OG", "Zimmer Raphael", [["Zigbee", "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH"]], null, false, null],
                                ["Plug 02", "OG", "Zimmer Raphael", [["Zigbee", "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH"]], null, false, null],
                                ["Plug 03", "OG", "Zimmer Raphael", [["Zigbee", "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH"]], null, false, null],
                                ["Plug 04", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online"]], null, false, null],
                                ["Raumsensor", "OG", "Zimmer Raphael", [["Homematic", "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                ["Stckleiste 1", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online"]], null, false, null],
                                ["Stckleiste 2", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"]], null, false, null],
                                ["Stckleiste 3", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online"]], null, false, null],
                                ["Stckleiste 4", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online"]], null, false, null],
                                ["Surface Raphael", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive"]], null, true, null],
                                ["LG TV", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                ["Tablet Amazon Fire HD 10", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive"]], null, true, null],
                                ["Ulanzi AWTRIX", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET", false, "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online"]];
                                
                                const instanceNames = ["admin.0", "alexa2.0", "awtrix-light.0", "backitup.0", "cloud.0", "denon.0", "devices.0", "discord.0", "discovery.0", "echarts.0", "fronius-solarweb.0", "fronius.0", "fullybrowser.0", "history.0", "hm-rega.0", "hm-rpc.0", "iot.0", "javascript.0", "lgtv.0", "matter.0", "moma.0", "mqtt.0", "mytime.0", "nanoleaf-lightpanels.0", "ping.0", "shelly.0", "tuya.0", "vis-2.0", "web.0", "web.1", "zigbee2mqtt.0"];
                                const dependencies = [
                                 [
                                   "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive",
                                   "mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH",
                                   "denon.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH",
                                   "nanoleaf-lightpanels.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH",
                                   "zigbee2mqtt.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive",
                                   "hm-rpc.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH",
                                   "lgtv.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET",
                                   "tuya.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH",
                                   "awtrix-light.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive",
                                   "ping.0"
                                 ],
                                 [
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET",
                                   "tuya.0"
                                 ]
                                ];
                                
                                instanceNames.forEach(function(name)
                                {
                                   devices.push([name,'ioBroker','Instanz',[['ioBroker-Instanzen','system.adapter.'+name+'.alive'],['ioBroker-Instanzen','system.adapter.'+name+'.connected']],null,false,null]);
                                });
                                
                                const ids=[
                                 "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive",
                                 "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH",
                                 "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH",
                                 "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH",
                                 "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH",
                                 "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1",
                                 "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH",
                                 "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive",
                                 "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive",
                                 "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH",
                                 "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH",
                                 "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive",
                                 "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH",
                                 "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive",
                                 "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online",
                                 "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online",
                                 "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET",
                                 "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2",
                                 "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online",
                                 "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online",
                                 "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET",
                                 "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH",
                                 "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive",
                                 "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET",
                                 "system.adapter.admin.0.alive",
                                 "system.adapter.admin.0.connected",
                                 "system.adapter.alexa2.0.alive",
                                 "system.adapter.alexa2.0.connected",
                                 "system.adapter.awtrix-light.0.alive",
                                 "system.adapter.awtrix-light.0.connected",
                                 "system.adapter.backitup.0.alive",
                                 "system.adapter.backitup.0.connected",
                                 "system.adapter.cloud.0.alive",
                                 "system.adapter.cloud.0.connected",
                                 "system.adapter.denon.0.alive",
                                 "system.adapter.denon.0.connected",
                                 "system.adapter.devices.0.alive",
                                 "system.adapter.devices.0.connected",
                                 "system.adapter.discord.0.alive",
                                 "system.adapter.discord.0.connected",
                                 "system.adapter.discovery.0.alive",
                                 "system.adapter.discovery.0.connected",
                                 "system.adapter.echarts.0.alive",
                                 "system.adapter.echarts.0.connected",
                                 "system.adapter.fronius-solarweb.0.alive",
                                 "system.adapter.fronius-solarweb.0.connected",
                                 "system.adapter.fronius.0.alive",
                                 "system.adapter.fronius.0.connected",
                                 "system.adapter.fullybrowser.0.alive",
                                 "system.adapter.fullybrowser.0.connected",
                                 "system.adapter.history.0.alive",
                                 "system.adapter.history.0.connected",
                                 "system.adapter.hm-rega.0.alive",
                                 "system.adapter.hm-rega.0.connected",
                                 "system.adapter.hm-rpc.0.alive",
                                 "system.adapter.hm-rpc.0.connected",
                                 "system.adapter.iot.0.alive",
                                 "system.adapter.iot.0.connected",
                                 "system.adapter.javascript.0.alive",
                                 "system.adapter.javascript.0.connected",
                                 "system.adapter.lgtv.0.alive",
                                 "system.adapter.lgtv.0.connected",
                                 "system.adapter.matter.0.alive",
                                 "system.adapter.matter.0.connected",
                                 "system.adapter.moma.0.alive",
                                 "system.adapter.moma.0.connected",
                                 "system.adapter.mqtt.0.alive",
                                 "system.adapter.mqtt.0.connected",
                                 "system.adapter.mytime.0.alive",
                                 "system.adapter.mytime.0.connected",
                                 "system.adapter.nanoleaf-lightpanels.0.alive",
                                 "system.adapter.nanoleaf-lightpanels.0.connected",
                                 "system.adapter.ping.0.alive",
                                 "system.adapter.ping.0.connected",
                                 "system.adapter.shelly.0.alive",
                                 "system.adapter.shelly.0.connected",
                                 "system.adapter.tuya.0.alive",
                                 "system.adapter.tuya.0.connected",
                                 "system.adapter.vis-2.0.alive",
                                 "system.adapter.vis-2.0.connected",
                                 "system.adapter.web.0.alive",
                                 "system.adapter.web.0.connected",
                                 "system.adapter.web.1.alive",
                                 "system.adapter.web.1.connected",
                                 "system.adapter.zigbee2mqtt.0.alive",
                                 "system.adapter.zigbee2mqtt.0.connected"
                                ];
                                function evaluate(dp)
                                {
                                function read(id)
                                {
                                   if (!id || typeof dp === 'undefined' || !dp) return null;
                                   let v = dp[id];
                                   if (v !== null && typeof v === 'object') v = v.val;
                                   if (v === true || v === 1 || v === 'true' || v === '1' || v === 'online') return true;
                                   if (v === false || v === 0 || v === 'false' || v === '0' || v === 'offline') return false;
                                   return null;
                                }
                                
                                const checkSystems = systems.concat('ioBroker-Adapter');
                                function instanceState(name)
                                {
                                   const alive=read('system.adapter.'+name+'.alive');
                                   const connected=read('system.adapter.'+name+'.connected');
                                   if(alive===false || connected===false) return false;
                                   if(alive===true && connected===true) return true;
                                   return null;
                                }
                                function dependencyState(id)
                                {
                                   const dep=dependencies.find(d=>d[0]===id);
                                   return dep && instanceState(dep[1])===false ? dep[1] : '';
                                }
                                
                                
                                function classify(values, power, trusted, optional)
                                {
                                   if (trusted && power === false && !values.includes(true)) return 3;
                                   if (trusted && power === false && values.includes(true)) return 4;
                                   if (values.includes(false)) return optional ? 2 : 1;
                                   if (values.includes(null)) return 4;
                                   return values.length && values.every(v => v === true) ? 0 : 4;
                                }
                                return devices.map(function(d)
                                {
                                   const checks = d[3].map(function(c)
                                   {
                                       const failed=dependencyState(c[1]);
                                       return [c[0],failed ? null : read(c[1]),c[1],failed];
                                   });
                                   const power = dependencyState(d[4]) ? null : read(d[4]);
                                   const trusted = !!d[4] && !dependencyState(d[6]) && read(d[6]) === true;
                                   const bySystem = checkSystems.filter(s => checks.some(c => c[0] === s)).map(function(s)
                                   {
                                       let values = checks.filter(c => c[0] === s).map(c => c[1]);
                                       if (s === 'LAN / WLAN' && values.length > 1)
                                       {
                                           values = [values.includes(true) ? true : values.includes(null) ? null : false];
                                       }
                                       return [s,classify(values,power,trusted,d[5])];
                                   });
                                   const states = bySystem.map(c => c[1]);
                                   const status = [1,4,2,3,0].find(s => states.includes(s));
                                   return [d[0],d[1],d[2],checks,power,trusted,bySystem,status,d[4]];
                                });
                                
                                }
                                
                                let pending=null;
                                function apply()
                                {
                                 if(!root.isConnected || !pending) return;
                                 const next=pending; pending=null;
                                 if(JSON.stringify(entries)===JSON.stringify(next)) return;
                                 entries=next;
                                 const counts=labels.map((l,i)=>entries.filter(e=>e[7]===i).length);
                                 let offset=0;
                                 counts.forEach(function(n,i)
                                 {
                                  const len=n/entries.length*276.46;
                                  const ring=root.querySelector('[data-ring="'+i+'"]');
                                  ring.setAttribute('stroke-dasharray',len+' 276.46');
                                  ring.setAttribute('stroke-dashoffset',-offset);
                                  offset+=len;
                                  root.querySelector('[data-count="'+i+'"]').textContent=n;
                                 });
                                 root.querySelector('[data-pct]').textContent=Math.round(counts[0]*100/entries.length)+'%';
                                 root.querySelector('.head span span').style.color=counts[4]===entries.length?'#687481':'#4ade80';
                                 root.querySelectorAll('[data-system]').forEach(function(b)
                                 {
                                  const rows=entries.flatMap(e=>e[6].filter(c=>c[0]===b.dataset.system));
                                  const cc=labels.map((l,i)=>rows.filter(c=>c[1]===i).length);
                                  const lines=b.querySelectorAll('.line');
                                  lines[0].lastElementChild.textContent=rows.length;
                                  lines[1].firstElementChild.textContent=cc[0]+' / '+rows.length;
                                  lines[1].lastElementChild.textContent=cc[1]+' Störung';
                                  lines[1].lastElementChild.style.color=cc[1]?'#ef7777':'#8996a3';
                                  b.querySelectorAll('.bar span').forEach(function(span,i)
                                  {
                                   span.style.width=(rows.length?cc[i]*100/rows.length:0)+'%';
                                  });
                                 });
                                 render();
                                }
                                portal.receive=function(values)
                                {
                                 const now=Date.now();
                                 let changed=false;
                                 ids.forEach(function(id)
                                 {
                                  const present=Object.prototype.hasOwnProperty.call(values,id);
                                  let v=null;
                                  if(present)
                                  {
                                   v=values[id];
                                   st.seen[id]=now;
                                  }
                                  else if(st.seen[id] && now-st.seen[id]<=300000)
                                  {
                                   v=st.values[id];
                                  }
                                  if(st.values[id]!==v)
                                  {
                                   st.values[id]=v; changed=true;
                                  }
                                 });
                                 if(changed)
                                 {
                                  pending=evaluate(st.values);
                                  apply();
                                 }
                                };
                                portal.receive(snapshot);
                                if(!list.children.length) render();
                                restoreScroll(savedInitialScroll);
                                })();
                                </script>
                                
                                

                                Ist aber nicht schlimm.
                                Ich denke ich werde das dann einfach mit 2 separaten Widgets lösen.
                                Das ganze Ding mit 148 DPs ist natürlich auch im Editor dann auch etwas holprig und kommt schon ins Schwitzen.

                                Beste Grüße!

                                io-Broker Neuling 2024 :-)

                                Bislang jedoch einiges an Beiträgen und Grundlagen eingeflößt, um etwas besser empor zu irren.

                                OliverIOO 1 Antwort Letzte Antwort
                                0
                                • CyberraphC Cyberraph

                                  Fortsetzung Post#114

                                  Nachfolgend der reinkopierte Code:

                                  <%
                                  const devices = [
                                  ["Aussensensor", "Aussen", "Nordost", [["Zigbee", "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Aussensensor", "Aussen", "Nordwest", [["Homematic", "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Aussensensor", "Aussen", "Südwest", [["Zigbee", "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["PV", "DG", "Dachboden", [["LAN / WLAN", "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive"]], null, false, null],
                                  ["Raumsensor", "DG", "Dachboden", [["Zigbee", "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Raumsensor", "EG", "Abstellzimmer", [["Zigbee", "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Hama LED-Leuchte", "EG", "Arbeitszimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH"]], null, false, null],
                                  ["Raumsensor", "EG", "Arbeitszimmer", [["Zigbee", "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Surface Angela", "EG", "Arbeitszimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive"]], null, true, null],
                                  ["Licht 01", "EG", "Bad", [["Homematic", "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH"]], null, false, null],
                                  ["Raumsensor", "EG", "Bad", [["Zigbee", "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Licht 01", "EG", "Küche", [["Zigbee", "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH"]], null, false, null],
                                  ["Plug 01 (Küche / Lagerraum)", "EG", "Küche", [["Zigbee", "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH"]], null, false, null],
                                  ["Raumsensor", "EG", "Küche", [["Zigbee", "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Schalter 01", "EG", "Küche", [["Homematic", "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive"]], null, false, null],
                                  ["Raumsensor", "EG", "WC", [["Zigbee", "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["DLAN Verteiler", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive"]], null, false, null],
                                  ["Handy Corinna", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive"]], null, true, null],
                                  ["Handy Mutti", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive"]], null, true, null],
                                  ["Handy Raphael", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive"]], null, true, null],
                                  ["Homematic Zentrale", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive"]], null, false, null],
                                  ["FRITZ!Box 7530", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive"]], null, false, null],
                                  ["Raumsensor", "EG", "Vorhaus", [["Zigbee", "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Easylog Sensor", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1"]], null, false, null],
                                  ["Smarthomeserver", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive"]], null, false, null],
                                  ["Zigbee Coordinator", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive"]], null, false, null],
                                  ["DLAN Wohnzimmer", "EG", "Wohnzimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive"]], null, false, null],
                                  ["Laptop Corinna", "EG", "Wohnzimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive"]], null, true, null],
                                  ["Plug 01", "EG", "Wohnzimmer", [["Homematic", "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH"]], null, false, null],
                                  ["Raumsensor", "EG", "Wohnzimmer", [["Zigbee", "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Anlegefuehler D1-Mini-V3-Sensor-01-06", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive"]], null, false, null],
                                  ["Anlegefuehler D1-Mini-V3-Sensor-07-10", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive"]], null, false, null],
                                  ["E Heizer Boiler Leistungsdaten", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH"]], null, false, null],
                                  ["E Heizer Boiler Thermostat", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH"]], null, false, null],
                                  ["Wasserzähler", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive"]], null, false, null],
                                  ["Raumsensor", "KG", "Vorhaus", [["Zigbee", "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Plug 01", "KG", "Waschraum", [["Homematic", "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH"]], null, false, null],
                                  ["Waschmaschine", "KG", "Waschraum", [["LAN / WLAN", "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive"]], null, true, null],
                                  ["Raumsensor", "OG", "WC", [["Zigbee", "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["DLAN Zimmer Corinna", "OG", "Zimmer Corinna", [["LAN / WLAN", "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive"]], null, false, null],
                                  ["Raumsensor", "OG", "Zimmer Corinna", [["Zigbee", "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["TV", "OG", "Zimmer Corinna", [["LAN / WLAN", "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive"]], null, true, null],
                                  ["Raumsensor", "OG", "Schlafzimmer", [["Zigbee", "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["BWM Wand 01", "OG", "Vorhaus", [["Homematic", "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive"]], null, false, null],
                                  ["Raumsensor", "OG", "Vorhaus", [["Zigbee", "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Schalter 01", "OG", "Vorhaus", [["Homematic", "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive"]], null, false, null],
                                  ["Denon AV-Receiver", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                  ["Amazon Echo Dot", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive"]], null, false, null],
                                  ["DLAN Zimmer Raphael", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive"]], null, false, null],
                                  ["HP Laserdrucker", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online"],
                                  ["Licht 01", "OG", "Zimmer Raphael", [["Homematic", "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH"]], null, false, null],
                                  ["Nanoleaf LEDs", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive"]], null, false, null],
                                  ["Nintendo Switch 2", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                  ["Nintendo Switch OLED", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                  ["Stand-PC", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online"],
                                  ["PS5", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                  ["Plug 01", "OG", "Zimmer Raphael", [["Zigbee", "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH"]], null, false, null],
                                  ["Plug 02", "OG", "Zimmer Raphael", [["Zigbee", "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH"]], null, false, null],
                                  ["Plug 03", "OG", "Zimmer Raphael", [["Zigbee", "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH"]], null, false, null],
                                  ["Plug 04", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online"]], null, false, null],
                                  ["Raumsensor", "OG", "Zimmer Raphael", [["Homematic", "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Stckleiste 1", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online"]], null, false, null],
                                  ["Stckleiste 2", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"]], null, false, null],
                                  ["Stckleiste 3", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online"]], null, false, null],
                                  ["Stckleiste 4", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online"]], null, false, null],
                                  ["Surface Raphael", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive"]], null, true, null],
                                  ["LG TV", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                  ["Tablet Amazon Fire HD 10", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive"]], null, true, null],
                                  ["Ulanzi AWTRIX", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET", false, "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online"]];
                                  
                                  const instanceNames = ["admin.0", "alexa2.0", "awtrix-light.0", "backitup.0", "cloud.0", "denon.0", "devices.0", "discord.0", "discovery.0", "echarts.0", "fronius-solarweb.0", "fronius.0", "fullybrowser.0", "history.0", "hm-rega.0", "hm-rpc.0", "iot.0", "javascript.0", "lgtv.0", "matter.0", "moma.0", "mqtt.0", "mytime.0", "nanoleaf-lightpanels.0", "ping.0", "shelly.0", "tuya.0", "vis-2.0", "web.0", "web.1", "zigbee2mqtt.0"];
                                  const dependencies = [
                                   [
                                     "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive",
                                     "mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH",
                                     "denon.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH",
                                     "nanoleaf-lightpanels.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH",
                                     "lgtv.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH",
                                     "awtrix-light.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET",
                                     "tuya.0"
                                   ]
                                  ];
                                  const ids=[
                                   "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive",
                                   "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH",
                                   "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH",
                                   "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH",
                                   "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH",
                                   "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1",
                                   "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH",
                                   "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive",
                                   "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive",
                                   "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH",
                                   "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH",
                                   "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive",
                                   "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH",
                                   "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive",
                                   "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online",
                                   "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online",
                                   "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET",
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2",
                                   "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online",
                                   "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online",
                                   "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET",
                                   "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET",
                                   "system.adapter.admin.0.alive",
                                   "system.adapter.admin.0.connected",
                                   "system.adapter.alexa2.0.alive",
                                   "system.adapter.alexa2.0.connected",
                                   "system.adapter.awtrix-light.0.alive",
                                   "system.adapter.awtrix-light.0.connected",
                                   "system.adapter.backitup.0.alive",
                                   "system.adapter.backitup.0.connected",
                                   "system.adapter.cloud.0.alive",
                                   "system.adapter.cloud.0.connected",
                                   "system.adapter.denon.0.alive",
                                   "system.adapter.denon.0.connected",
                                   "system.adapter.devices.0.alive",
                                   "system.adapter.devices.0.connected",
                                   "system.adapter.discord.0.alive",
                                   "system.adapter.discord.0.connected",
                                   "system.adapter.discovery.0.alive",
                                   "system.adapter.discovery.0.connected",
                                   "system.adapter.echarts.0.alive",
                                   "system.adapter.echarts.0.connected",
                                   "system.adapter.fronius-solarweb.0.alive",
                                   "system.adapter.fronius-solarweb.0.connected",
                                   "system.adapter.fronius.0.alive",
                                   "system.adapter.fronius.0.connected",
                                   "system.adapter.fullybrowser.0.alive",
                                   "system.adapter.fullybrowser.0.connected",
                                   "system.adapter.history.0.alive",
                                   "system.adapter.history.0.connected",
                                   "system.adapter.hm-rega.0.alive",
                                   "system.adapter.hm-rega.0.connected",
                                   "system.adapter.hm-rpc.0.alive",
                                   "system.adapter.hm-rpc.0.connected",
                                   "system.adapter.iot.0.alive",
                                   "system.adapter.iot.0.connected",
                                   "system.adapter.javascript.0.alive",
                                   "system.adapter.javascript.0.connected",
                                   "system.adapter.lgtv.0.alive",
                                   "system.adapter.lgtv.0.connected",
                                   "system.adapter.matter.0.alive",
                                   "system.adapter.matter.0.connected",
                                   "system.adapter.moma.0.alive",
                                   "system.adapter.moma.0.connected",
                                   "system.adapter.mqtt.0.alive",
                                   "system.adapter.mqtt.0.connected",
                                   "system.adapter.mytime.0.alive",
                                   "system.adapter.mytime.0.connected",
                                   "system.adapter.nanoleaf-lightpanels.0.alive",
                                   "system.adapter.nanoleaf-lightpanels.0.connected",
                                   "system.adapter.ping.0.alive",
                                   "system.adapter.ping.0.connected",
                                   "system.adapter.shelly.0.alive",
                                   "system.adapter.shelly.0.connected",
                                   "system.adapter.tuya.0.alive",
                                   "system.adapter.tuya.0.connected",
                                   "system.adapter.vis-2.0.alive",
                                   "system.adapter.vis-2.0.connected",
                                   "system.adapter.web.0.alive",
                                   "system.adapter.web.0.connected",
                                   "system.adapter.web.1.alive",
                                   "system.adapter.web.1.connected",
                                   "system.adapter.zigbee2mqtt.0.alive",
                                   "system.adapter.zigbee2mqtt.0.connected"
                                  ];
                                  const snapshot=Object.create(null);
                                  ids.forEach(function(id)
                                  {
                                     if(typeof dp==='undefined' || !dp) return;
                                     let v=dp[id];
                                     if(v!==null && typeof v==='object' && 'val' in v) v=v.val;
                                     if(v===undefined) return;
                                     snapshot[id]=v===true || v===1 || v==='true' || v==='1' || v==='online' ? true : v===false || v===0 || v==='false' || v==='0' || v==='offline' ? false : null;
                                  });
                                  function read(id)
                                  {
                                     if (!id || true) return null;
                                     let v = null;
                                     if (v !== null && typeof v === 'object') v = v.val;
                                     if (v === true || v === 1 || v === 'true' || v === '1' || v === 'online') return true;
                                     if (v === false || v === 0 || v === 'false' || v === '0' || v === 'offline') return false;
                                     return null;
                                  }
                                  const systems = ['LAN / WLAN','Zigbee','Homematic','Tuya','ioBroker-Instanzen'];
                                  const checkSystems = systems.concat('ioBroker-Adapter');
                                  function instanceState(name)
                                  {
                                     const alive=read('system.adapter.'+name+'.alive');
                                     const connected=read('system.adapter.'+name+'.connected');
                                     if(alive===false || connected===false) return false;
                                     if(alive===true && connected===true) return true;
                                     return null;
                                  }
                                  function dependencyState(id)
                                  {
                                     const dep=dependencies.find(d=>d[0]===id);
                                     return dep && instanceState(dep[1])===false ? dep[1] : '';
                                  }
                                  instanceNames.forEach(function(name)
                                  {
                                     devices.push([name,'ioBroker','Instanz',[['ioBroker-Instanzen','system.adapter.'+name+'.alive'],['ioBroker-Instanzen','system.adapter.'+name+'.connected']],null,false,null]);
                                  });
                                  const labels = ['Online','Störung','Offline','Ausgeschaltet','Unbekannt'];
                                  const colors = ['#4ade80','#ef7777','#f6b55c','#687481','#8996a3'];
                                  function classify(values, power, trusted, optional)
                                  {
                                     if (trusted && power === false && !values.includes(true)) return 3;
                                     if (trusted && power === false && values.includes(true)) return 4;
                                     if (values.includes(false)) return optional ? 2 : 1;
                                     if (values.includes(null)) return 4;
                                     return values.length && values.every(v => v === true) ? 0 : 4;
                                  }
                                  const entries = devices.map(function(d)
                                  {
                                     const checks = d[3].map(function(c)
                                     {
                                         const failed=dependencyState(c[1]);
                                         return [c[0],failed ? null : read(c[1]),c[1],failed];
                                     });
                                     const power = dependencyState(d[4]) ? null : read(d[4]);
                                     const trusted = !!d[4] && !dependencyState(d[6]) && read(d[6]) === true;
                                     const bySystem = checkSystems.filter(s => checks.some(c => c[0] === s)).map(function(s)
                                     {
                                         let values = checks.filter(c => c[0] === s).map(c => c[1]);
                                         if (s === 'LAN / WLAN' && values.length > 1)
                                         {
                                             values = [values.includes(true) ? true : values.includes(null) ? null : false];
                                         }
                                         return [s,classify(values,power,trusted,d[5])];
                                     });
                                     const states = bySystem.map(c => c[1]);
                                     const status = [1,4,2,3,0].find(s => states.includes(s));
                                     return [d[0],d[1],d[2],checks,power,trusted,bySystem,status,d[4]];
                                  });
                                  const counts = labels.map((l,i) => entries.filter(e => e[7] === i).length);
                                  const pct = entries.length ? Math.round(counts[0]*100/entries.length) : 0;
                                  %>
                                  <style id="net-style-<%- widgetid %>">
                                  #net-<%- widgetid %>-persistent
                                  {
                                  width:382.9px; max-width:100%; height:729.8px; box-sizing:border-box; background:#1c222b; color:#edf2f7; border-radius:16px; padding:14px 10px 10px; font:13px Arial,sans-serif; display:flex; flex-direction:column; gap:8px; overflow:hidden;
                                  }
                                  #net-<%- widgetid %>-persistent *
                                  {
                                  box-sizing:border-box;
                                  }
                                  #net-<%- widgetid %>-persistent .head, #net-<%- widgetid %>-persistent .line
                                  {
                                  display:flex; align-items:center; justify-content:space-between; gap:6px;
                                  }
                                  #net-<%- widgetid %>-persistent .head
                                  {
                                  padding:2px 6px; height:24px; flex-shrink:0; font-weight:bold;
                                  }
                                  #net-<%- widgetid %>-persistent .panel
                                  {
                                  background:#26313d; border-radius:12px; padding:10px;
                                  }
                                  #net-<%- widgetid %>-persistent .tiles
                                  {
                                  display:grid; grid-template-columns:1fr 1fr; gap:6px;
                                  }
                                  #net-<%- widgetid %>-persistent .tiles > button:last-child
                                  {
                                  grid-column:1 / -1;
                                  }
                                  #net-<%- widgetid %>-persistent button
                                  {
                                  background:#26313d; color:#edf2f7; border:1px solid #465260; border-radius:7px; padding:7px; font:inherit; min-width:0;
                                  }
                                  #net-<%- widgetid %>-persistent button
                                  {
                                  cursor:pointer; text-align:left;
                                  }
                                  #net-<%- widgetid %>-persistent button.active
                                  {
                                  border-color:#78bde2; background:#34414f;
                                  }
                                  #net-<%- widgetid %>-persistent .bar
                                  {
                                  display:flex; height:4px; overflow:hidden; border-radius:3px; margin-top:5px;
                                  }
                                  #net-<%- widgetid %>-persistent .filters
                                  {
                                  display:flex; flex-wrap:wrap; gap:4px;
                                  }
                                  #net-<%- widgetid %>-persistent .filters button
                                  {
                                  flex:1; font-size:11px; text-align:center;
                                  }
                                  #net-<%- widgetid %>-persistent .list
                                  {
                                  flex:1; min-height:0; overflow-x:hidden; overflow-y:auto; overflow-anchor:none; touch-action:pan-y; -webkit-overflow-scrolling:touch; scrollbar-width:none; overscroll-behavior:contain; background:#26313d; border-radius:10px; padding:7px;
                                  }
                                  #net-<%- widgetid %>-persistent .list::-webkit-scrollbar
                                  {
                                  display:none;
                                  }
                                  #net-<%- widgetid %>-persistent details
                                  {
                                  background:#1c222b; border-radius:6px; margin:4px 0; padding:7px;
                                  }
                                  #net-<%- widgetid %>-persistent summary
                                  {
                                  cursor:pointer; list-style:none;
                                  }
                                  #net-<%- widgetid %>-persistent .muted
                                  {
                                  color:#8996a3; font-size:10px;
                                  }
                                  #net-<%- widgetid %>-persistent .group
                                  {
                                  color:#78bde2; font-weight:bold; padding:7px 2px 2px;
                                  }
                                  </style>
                                  <div id="net-<%- widgetid %>" style="width:382.9px;max-width:100%;height:729.8px;">
                                  <div data-source style="display:none">
                                  <div class="head"><span style="font-size:18px"> <span style="color:<%- counts[4] === entries.length ? '#687481' : '#4ade80' %>">●</span> Status</span><span>Netzwerkübersicht</span></div>
                                  <div class="panel line">
                                  <svg viewBox="0 0 110 110" width="105" height="105" style="flex-shrink:0">
                                  <circle cx="55" cy="55" r="44" fill="none" stroke="#414d5a" stroke-width="9"/>
                                  <% let offset=0; for(let i=0;i<5;i++) { %>
                                  <% const len=entries.length ? counts[i]/entries.length*276.46 : 0; %>
                                  <circle data-ring="<%- i %>" cx="55" cy="55" r="44" fill="none" stroke="<%- colors[i] %>" stroke-width="9" stroke-dasharray="<%- len %> 276.46" stroke-dashoffset="<%- -offset %>" transform="rotate(-90 55 55)"/>
                                  <% offset+=len; } %>
                                  <text data-pct x="55" y="54" text-anchor="middle" fill="#edf2f7" font-size="25" font-weight="bold"><%- pct %>%</text><text x="55" y="69" text-anchor="middle" fill="#8996a3" font-size="11">Online</text>
                                  </svg>
                                  <div style="flex:1"><div class="line"><b>Geräte / Instanzen</b><b><%- entries.length %></b></div>
                                  <% for(let i=0;i<5;i++) { %>
                                  <button type="button" data-status="<%- i %>" class="line" style="width:100%;padding:2px 4px;border:0"><span style="color:<%- colors[i] %>">● <%- labels[i] %></span><b data-count="<%- i %>"><%- counts[i] %></b></button>
                                  <% } %>
                                  </div></div>
                                  <div class="tiles">
                                  <% for(const s of systems) { %>
                                  <% const list=entries.flatMap(e=>e[6].filter(c=>c[0]===s)); const n=list.length; const cc=labels.map((l,i)=>list.filter(c=>c[1]===i).length); %>
                                  <button type="button" data-system="<%- s %>"><div class="line"><b><%- s %></b><span class="muted"><%- n %></span></div><div class="line"><b style="color:#4ade80;font-size:17px"><%- cc[0] %> / <%- n %></b><span style="color:<%- cc[1] ? '#ef7777' : '#8996a3' %>;font-size:10px"><%- cc[1] %> Störung</span></div><div class="bar">
                                  <% for(let i=0;i<5;i++) { %>
                                  <span style="width:<%- n ? cc[i]*100/n : 0 %>%;background:<%- colors[i] %>"></span>
                                  <% } %>
                                  </div></button>
                                  <% } %>
                                  </div>
                                  <div class="filters"><button type="button" data-group="system">Nach System</button><button type="button" data-group="floor">Nach Geschoss</button><button type="button" data-reset>Alle / Reset</button></div>
                                  <div class="filters"><button type="button" data-status="1">Störungen</button><button type="button" data-status="2">Offline</button><button type="button" data-status="3">Aus</button><button type="button" data-status="4">Unbekannt</button></div>
                                  <div class="muted" data-caption></div>
                                  <div class="list" data-list></div>
                                  </div>
                                  </div>
                                  <script>
                                  (function()
                                  {
                                  const key='net-<%- widgetid %>';
                                  const snapshot=<%- JSON.stringify(snapshot,null,2) %>;
                                  const incoming=document.getElementById(key);
                                  if(!incoming) return;
                                  const portalKey=key+'-portal-live-v1';
                                  const existing=window[portalKey];
                                  if(existing && existing.root.isConnected)
                                  {
                                   existing.anchor=incoming;
                                   existing.position();
                                   if(typeof existing.receive==='function') existing.receive(snapshot);
                                   return;
                                  }
                                  const source=incoming.querySelector('[data-source]');
                                  const sourceStyle=document.getElementById('net-style-<%- widgetid %>');
                                  if(!source || !sourceStyle) return;
                                  const root=source.cloneNode(true);
                                  root.removeAttribute('data-source');
                                  root.removeAttribute('style');
                                  root.id=key+'-persistent';
                                  const css=sourceStyle.cloneNode(true);
                                  css.removeAttribute('id');
                                  document.head.appendChild(css);
                                  root.style.position='fixed';
                                  root.style.margin='0';
                                  root.style.maxWidth='none';
                                  root.style.transformOrigin='top left';
                                  root.style.zIndex='20';
                                  root.style.visibility='hidden';
                                  document.body.appendChild(root);
                                  const portal=
                                  {
                                   root:root,anchor:incoming,visible:false,position:null
                                  };
                                  window[portalKey]=portal;
                                  function put(prop,value)
                                  {
                                   if(root.style[prop]!==value) root.style[prop]=value;
                                  }
                                  function position()
                                  {
                                   const anchor=portal.anchor;
                                   let visible=!!anchor && anchor.isConnected && anchor.getClientRects().length>0;
                                   let r=null;
                                   if(visible)
                                   {
                                    r=anchor.getBoundingClientRect();
                                    visible=r.width>0 && r.height>0;
                                    for(let node=anchor;visible && node;node=node.parentElement)
                                    {
                                     const style=getComputedStyle(node);
                                     if(style.display==='none' || style.visibility==='hidden' || style.visibility==='collapse' || Number(style.opacity)===0) visible=false;
                                    }
                                   }
                                   if(visible)
                                   {
                                    const sx=r.width/382.9, sy=r.height/729.8;
                                    let left=Math.max(0,r.left),top=Math.max(0,r.top),right=Math.min(innerWidth,r.right),bottom=Math.min(innerHeight,r.bottom);
                                    for(let node=anchor.parentElement;node && node!==document.body;node=node.parentElement)
                                    {
                                     const style=getComputedStyle(node);
                                     const bounds=node.getBoundingClientRect();
                                     if(/hidden|clip|auto|scroll/.test(style.overflowX))
                                     {
                                      left=Math.max(left,bounds.left); right=Math.min(right,bounds.right);
                                     }
                                     if(/hidden|clip|auto|scroll/.test(style.overflowY))
                                     {
                                      top=Math.max(top,bounds.top); bottom=Math.min(bottom,bounds.bottom);
                                     }
                                    }
                                    visible=right>left && bottom>top;
                                    if(visible)
                                    {
                                     put('left',r.left+'px'); put('top',r.top+'px');
                                     put('transform','scale('+sx+','+sy+')');
                                     put('clipPath','inset('+Math.max(0,(top-r.top)/sy)+'px '+Math.max(0,(r.right-right)/sx)+'px '+Math.max(0,(r.bottom-bottom)/sy)+'px '+Math.max(0,(left-r.left)/sx)+'px)');
                                    }
                                   }
                                   put('visibility',visible?'visible':'hidden');
                                   if(portal.visible!==visible)
                                   {
                                    portal.visible=visible;
                                    if(typeof portal.changed==='function') portal.changed();
                                   }
                                  }
                                  portal.position=position;
                                  position();
                                  // Only observe the host lifecycle, never changes inside the dashboard.
                                  const observer=new MutationObserver(function(records)
                                  {
                                   const anchor=portal.anchor;
                                   if(!anchor || !anchor.isConnected)
                                   {
                                    const next=document.getElementById(key);
                                    if(next) portal.anchor=next;
                                    position(); return;
                                   }
                                   if(records.some(record=>record.target===anchor || (record.target.nodeType===1 && record.target.contains(anchor)))) position();
                                  });
                                  observer.observe(document.body,
                                  {
                                   childList:true,subtree:true,attributes:true,attributeFilter:['style','class','hidden']
                                  });
                                  window.addEventListener('resize',position);
                                  window.addEventListener('scroll',function(event)
                                  {
                                   if(!event.target || !event.target.nodeType || !root.contains(event.target)) position();
                                  },true);
                                  let entries=<%- JSON.stringify(entries).replace(/</g,'\\u003c') %>;
                                  const labels=<%- JSON.stringify(labels) %>;
                                  const colors=<%- JSON.stringify(colors) %>;
                                  const systems=<%- JSON.stringify(systems) %>;
                                  const stateKey=key+'-live-persistent-v1';
                                  if(!window[stateKey])
                                  {
                                   window[stateKey]=
                                   {
                                    system:'',status:-1,group:'system',scroll:0,open:[],values:Object.create(null),seen:Object.create(null)
                                   };
                                  }
                                  const st=window[stateKey];
                                  if(st.system==='Adapter') st.system='ioBroker-Adapter';
                                  if(st.system==='MQTT') st.system='LAN / WLAN';
                                  if(st.system && !systems.includes(st.system)) st.system='';
                                  const savedInitialScroll=st.scroll;
                                  if(st.root===root && typeof portal.receive==='function')
                                  {
                                   return;
                                  }
                                  if(typeof st.stop==='function') st.stop();
                                  st.root=root;
                                  const list=root.querySelector('[data-list]');
                                  function el(tag,text,cls)
                                  {
                                   const node=document.createElement(tag);
                                   if(text!==null) node.textContent=text;
                                   if(cls) node.className=cls;
                                   return node;
                                  }
                                  function restoreScroll(saved)
                                  {
                                   if(!root.isConnected || list.clientHeight===0) return;
                                   const target=Math.min(typeof saved==='number'?saved:st.scroll,Math.max(0,list.scrollHeight-list.clientHeight));
                                   if(Math.abs(list.scrollTop-target)>1) list.scrollTop=target;
                                   st.scroll=list.scrollTop;
                                  }
                                  st.restore=restoreScroll;
                                  function patch(a,b)
                                  {
                                   if(a.nodeType===3)
                                   {
                                    if(a.nodeValue!==b.nodeValue) a.nodeValue=b.nodeValue;
                                    return;
                                   }
                                   if(a.nodeType!==1) return;
                                   if(a.getAttribute('style')!==b.getAttribute('style'))
                                   {
                                    if(b.hasAttribute('style')) a.setAttribute('style',b.getAttribute('style'));
                                    else a.removeAttribute('style');
                                   }
                                   if(a.childNodes.length!==b.childNodes.length)
                                   {
                                    a.replaceChildren(...Array.from(b.childNodes));
                                    return;
                                   }
                                   Array.from(a.childNodes).forEach((n,i)=>patch(n,b.childNodes[i]));
                                  }
                                  function render()
                                  {
                                   if(!root.isConnected) return;
                                   const fragment=document.createDocumentFragment();
                                   let count=0;
                                   const gs=st.group==='system' ? systems : ['Aussen','DG','OG','EG','KG','ioBroker'];
                                   gs.forEach(function(g)
                                   {
                                    if(st.group==='system' && st.system && st.system!==g) return;
                                    const rows=entries.filter(function(e)
                                    {
                                     if(st.system && !e[6].some(c=>c[0]===st.system)) return false;
                                     if(st.group==='system' ? !e[6].some(c=>c[0]===g) : e[1]!==g) return false;
                                     const s=st.group==='system' ? e[6].find(c=>c[0]===g)[1] : st.system ? e[6].find(c=>c[0]===st.system)[1] : e[7];
                                     if(st.status>=0 && s!==st.status) return false;
                                     return true;
                                    });
                                    if(!rows.length) return;
                                    const heading=el('div',g+' · '+rows.length,'group');
                                    heading.dataset.row='group|'+g;
                                    fragment.appendChild(heading);
                                    rows.forEach(function(e)
                                    {
                                     count++;
                                     const s=st.group==='system' ? e[6].find(c=>c[0]===g)[1] : st.system ? e[6].find(c=>c[0]===st.system)[1] : e[7];
                                     const id=g+'|'+e[3][0][2];
                                     const detail=el('details',null);
                                     detail.dataset.row=id;
                                     detail.open=st.open.includes(id);
                                     const summary=el('summary',null,'line');
                                     const name=el('div',null);
                                     name.appendChild(el('b',e[0]));
                                     name.appendChild(el('div',e[1]+' · '+e[2],'muted'));
                                     summary.appendChild(name);
                                     const status=el('span','● '+labels[s]); status.style.color=colors[s]; status.style.fontSize='11px';
                                     summary.appendChild(status); detail.appendChild(summary);
                                     e[3].forEach(function(c)
                                     {
                                      let connectionName=c[0];
                                      if(c[0]==='ioBroker-Adapter')
                                      {
                                       if(e[0]==='Denon AV-Receiver') connectionName='Denon-Adapter';
                                       if(e[0]==='LG TV') connectionName='LG-TV-Adapter';
                                       if(e[0]==='Ulanzi AWTRIX') connectionName='AWTRIX-Adapter';
                                       if(e[0]==='Nanoleaf LEDs') connectionName='Nanoleaf-Adapter';
                                      }
                                      if(c[0]==='ioBroker-Instanzen') connectionName=c[2].endsWith('.alive')?'Instanz läuft':'Controller verbunden';
                                       if(c[2].endsWith('Wasserzaehler-Zuleitung-Bestand.status.alive')) connectionName='LAN / WLAN (MQTT-Status)';
                                      const line=el('div',connectionName+': '+(c[3]?'Unbekannt – '+c[3]+' gestört':c[1]===true?'Online':c[1]===false?'Offline':'Unbekannt'),'muted');
                                      line.style.marginTop='5px'; detail.appendChild(line);
                                     });
                                     if(e[8]) detail.appendChild(el('div','Stromversorgung: '+(!e[5]?'Nicht verlässlich':e[4]===true?'EIN':e[4]===false?'AUS':'Unbekannt'),'muted'));
                                     detail.ontoggle=function()
                                     {
                                      if(!detail.isConnected || st.root!==root) return;
                                      if(detail.open && !st.open.includes(id)) st.open.push(id);
                                      if(!detail.open) st.open=st.open.filter(x=>x!==id);
                                     };
                                     fragment.appendChild(detail);
                                    });
                                   });
                                   if(!count) fragment.appendChild(el('div','Keine passenden Einträge','muted'));
                                   root.querySelector('[data-caption]').textContent=count+' Listeneinträge'+(st.system?' · '+st.system:'');
                                   root.querySelectorAll('button').forEach(function(b)
                                   {
                                    b.classList.toggle('active',b.dataset.system===st.system || b.dataset.group===st.group || (b.dataset.status!==undefined && Number(b.dataset.status)===st.status));
                                   });
                                   const old=Array.from(list.children);
                                   const next=Array.from(fragment.children);
                                   const same=old.length===next.length && old.every((node,i)=>node.dataset.row===next[i].dataset.row && node.tagName===next[i].tagName);
                                   if(same)
                                   {
                                    old.forEach((node,i)=>patch(node,next[i]));
                                   }
                                   else
                                   {
                                    const saved=list.scrollTop;
                                    list.replaceChildren(fragment);
                                    restoreScroll(saved);
                                   }
                                  }
                                  list.onscroll=function()
                                  {
                                   if(st.root===root && root.isConnected && list.clientHeight>0) st.scroll=list.scrollTop;
                                  };
                                  root.onclick=function(event)
                                  {
                                   const b=event.target.closest('button');
                                   if(!b || !root.contains(b)) return;
                                   event.preventDefault(); event.stopPropagation();
                                   if(b.dataset.system!==undefined) st.system=st.system===b.dataset.system?'':b.dataset.system;
                                   if(b.dataset.status!==undefined)
                                   {
                                    const s=Number(b.dataset.status); st.status=st.status===s?-1:s;
                                   }
                                   if(b.dataset.group!==undefined) st.group=b.dataset.group;
                                   if(b.dataset.reset!==undefined)
                                   {
                                    st.system=''; st.status=-1;
                                   }
                                   st.scroll=0; render(); restoreScroll(0);
                                  };
                                  
                                  
                                  const devices = [
                                  ["Aussensensor", "Aussen", "Nordost", [["Zigbee", "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Aussensensor", "Aussen", "Nordwest", [["Homematic", "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Aussensensor", "Aussen", "Südwest", [["Zigbee", "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["PV", "DG", "Dachboden", [["LAN / WLAN", "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive"]], null, false, null],
                                  ["Raumsensor", "DG", "Dachboden", [["Zigbee", "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Raumsensor", "EG", "Abstellzimmer", [["Zigbee", "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Hama LED-Leuchte", "EG", "Arbeitszimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH"]], null, false, null],
                                  ["Raumsensor", "EG", "Arbeitszimmer", [["Zigbee", "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Surface Angela", "EG", "Arbeitszimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive"]], null, true, null],
                                  ["Licht 01", "EG", "Bad", [["Homematic", "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH"]], null, false, null],
                                  ["Raumsensor", "EG", "Bad", [["Zigbee", "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Licht 01", "EG", "Küche", [["Zigbee", "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH"]], null, false, null],
                                  ["Plug 01 (Küche / Lagerraum)", "EG", "Küche", [["Zigbee", "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH"]], null, false, null],
                                  ["Raumsensor", "EG", "Küche", [["Zigbee", "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Schalter 01", "EG", "Küche", [["Homematic", "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive"]], null, false, null],
                                  ["Raumsensor", "EG", "WC", [["Zigbee", "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["DLAN Verteiler", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive"]], null, false, null],
                                  ["Handy Corinna", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive"]], null, true, null],
                                  ["Handy Mutti", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive"]], null, true, null],
                                  ["Handy Raphael", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive"]], null, true, null],
                                  ["Homematic Zentrale", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive"]], null, false, null],
                                  ["FRITZ!Box 7530", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive"]], null, false, null],
                                  ["Raumsensor", "EG", "Vorhaus", [["Zigbee", "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Easylog Sensor", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1"]], null, false, null],
                                  ["Smarthomeserver", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive"]], null, false, null],
                                  ["Zigbee Coordinator", "EG", "Vorhaus", [["LAN / WLAN", "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive"]], null, false, null],
                                  ["DLAN Wohnzimmer", "EG", "Wohnzimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive"]], null, false, null],
                                  ["Laptop Corinna", "EG", "Wohnzimmer", [["LAN / WLAN", "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive"]], null, true, null],
                                  ["Plug 01", "EG", "Wohnzimmer", [["Homematic", "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH"]], null, false, null],
                                  ["Raumsensor", "EG", "Wohnzimmer", [["Zigbee", "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Anlegefuehler D1-Mini-V3-Sensor-01-06", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive"]], null, false, null],
                                  ["Anlegefuehler D1-Mini-V3-Sensor-07-10", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive"]], null, false, null],
                                  ["E Heizer Boiler Leistungsdaten", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH"]], null, false, null],
                                  ["E Heizer Boiler Thermostat", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH"]], null, false, null],
                                  ["Wasserzähler", "KG", "Heizraum", [["LAN / WLAN", "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive"]], null, false, null],
                                  ["Raumsensor", "KG", "Vorhaus", [["Zigbee", "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Plug 01", "KG", "Waschraum", [["Homematic", "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH"]], null, false, null],
                                  ["Waschmaschine", "KG", "Waschraum", [["LAN / WLAN", "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive"]], null, true, null],
                                  ["Raumsensor", "OG", "WC", [["Zigbee", "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["DLAN Zimmer Corinna", "OG", "Zimmer Corinna", [["LAN / WLAN", "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive"]], null, false, null],
                                  ["Raumsensor", "OG", "Zimmer Corinna", [["Zigbee", "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["TV", "OG", "Zimmer Corinna", [["LAN / WLAN", "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive"]], null, true, null],
                                  ["Raumsensor", "OG", "Schlafzimmer", [["Zigbee", "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["BWM Wand 01", "OG", "Vorhaus", [["Homematic", "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive"]], null, false, null],
                                  ["Raumsensor", "OG", "Vorhaus", [["Zigbee", "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Schalter 01", "OG", "Vorhaus", [["Homematic", "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive"]], null, false, null],
                                  ["Denon AV-Receiver", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                  ["Amazon Echo Dot", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive"]], null, false, null],
                                  ["DLAN Zimmer Raphael", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive"]], null, false, null],
                                  ["HP Laserdrucker", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online"],
                                  ["Licht 01", "OG", "Zimmer Raphael", [["Homematic", "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH"]], null, false, null],
                                  ["Nanoleaf LEDs", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive"]], null, false, null],
                                  ["Nintendo Switch 2", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                  ["Nintendo Switch OLED", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                  ["Stand-PC", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online"],
                                  ["PS5", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                  ["Plug 01", "OG", "Zimmer Raphael", [["Zigbee", "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH"]], null, false, null],
                                  ["Plug 02", "OG", "Zimmer Raphael", [["Zigbee", "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH"]], null, false, null],
                                  ["Plug 03", "OG", "Zimmer Raphael", [["Zigbee", "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH"]], null, false, null],
                                  ["Plug 04", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online"]], null, false, null],
                                  ["Raumsensor", "OG", "Zimmer Raphael", [["Homematic", "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive"]], null, false, null],
                                  ["Stckleiste 1", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online"]], null, false, null],
                                  ["Stckleiste 2", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"]], null, false, null],
                                  ["Stckleiste 3", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online"]], null, false, null],
                                  ["Stckleiste 4", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive"], ["Tuya", "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online"]], null, false, null],
                                  ["Surface Raphael", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive"]], null, true, null],
                                  ["LG TV", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET", true, "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online"],
                                  ["Tablet Amazon Fire HD 10", "OG", "Zimmer Raphael", [["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive"]], null, true, null],
                                  ["Ulanzi AWTRIX", "OG", "Zimmer Raphael", [["ioBroker-Adapter", "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH"], ["LAN / WLAN", "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive"]], "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET", false, "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online"]];
                                  
                                  const instanceNames = ["admin.0", "alexa2.0", "awtrix-light.0", "backitup.0", "cloud.0", "denon.0", "devices.0", "discord.0", "discovery.0", "echarts.0", "fronius-solarweb.0", "fronius.0", "fullybrowser.0", "history.0", "hm-rega.0", "hm-rpc.0", "iot.0", "javascript.0", "lgtv.0", "matter.0", "moma.0", "mqtt.0", "mytime.0", "nanoleaf-lightpanels.0", "ping.0", "shelly.0", "tuya.0", "vis-2.0", "web.0", "web.1", "zigbee2mqtt.0"];
                                  const dependencies = [
                                   [
                                     "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive",
                                     "mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH",
                                     "denon.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH",
                                     "nanoleaf-lightpanels.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH",
                                     "zigbee2mqtt.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive",
                                     "hm-rpc.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH",
                                     "lgtv.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET",
                                     "tuya.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH",
                                     "awtrix-light.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive",
                                     "ping.0"
                                   ],
                                   [
                                     "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET",
                                     "tuya.0"
                                   ]
                                  ];
                                  
                                  instanceNames.forEach(function(name)
                                  {
                                     devices.push([name,'ioBroker','Instanz',[['ioBroker-Instanzen','system.adapter.'+name+'.alive'],['ioBroker-Instanzen','system.adapter.'+name+'.connected']],null,false,null]);
                                  });
                                  
                                  const ids=[
                                   "alias.0.0-Haus.Aussen.NO.Aussensensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.Aussen.NW.Aussensensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.Aussen.SW.Aussensensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.DG.DB.PV.Wechselrichter.Ping-alive",
                                   "alias.0.0-Haus.DG.DB.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.ABZ.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.ARZ.Licht-01.Aktor.UNREACH",
                                   "alias.0.0-Haus.EG.ARZ.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.ARZ.Surface-Angela.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.Bad.Licht-01.Aktor.UNREACH",
                                   "alias.0.0-Haus.EG.Bad.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.KUE.Licht-01.Aktor.UNREACH",
                                   "alias.0.0-Haus.EG.KUE.Plug-01.Switch.UNREACH",
                                   "alias.0.0-Haus.EG.KUE.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.KUE.Schalter-01.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.DLAN-Verteiler.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Handy-Corinna.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Handy-Mutti.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Handy-Raphael.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Homematic-Zentrale.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Modem.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Raumsensor.Zusatz.Ping-alive-1",
                                   "alias.0.0-Haus.EG.VH.Smarthomeserver.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.VH.Zigbee-Coordinator.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.WZ.DLAN-Wohnzimmer.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.WZ.Laptop-Corinna.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.EG.WZ.Plug-01.Switch.UNREACH",
                                   "alias.0.0-Haus.EG.WZ.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-01-06.Ping-alive",
                                   "alias.0.0-Haus.KG.HZR.Anlegefuehler.D1-Mini-V3-Sensor-07-10.Ping-alive",
                                   "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Leistungsdaten.UNREACH",
                                   "alias.0.0-Haus.KG.HZR.E-Heizer-Boiler.Thermostat.UNREACH",
                                   "alias.0.0-Haus.KG.HZR.Wasserzaehler-Zuleitung-Bestand.status.alive",
                                   "alias.0.0-Haus.KG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.KG.WR.Plug-01.Switch.UNREACH",
                                   "alias.0.0-Haus.KG.WR.Waschmaschine.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.Klo.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.OG.SzC.DLAN-Zimmer-Corinna.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.SzC.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.OG.SzC.TV.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.SzM.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.OG.VH.BWM-Wand-01.Status.Ping-alive",
                                   "alias.0.0-Haus.OG.VH.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.OG.VH.Schalter-01.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.AV-Receiver.Hauptfunktionen.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.AV-Receiver.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-02.Switch.SET",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.online",
                                   "alias.0.0-Haus.OG.ZiR.Amazon-Echo-Dot.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.DLAN-Zimmer-Raphael.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Drucker.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-03.Switch.SET",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.online",
                                   "alias.0.0-Haus.OG.ZiR.Licht-01.Aktor.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.Licht-03.Aktor.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.Licht-03.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-2.Zusatz.Ping-alive-2",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-04.Switch.SET",
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Nintendo-Switch-OLED.Zusatz.Ping-alive-2",
                                   "alias.0.0-Haus.OG.ZiR.PC-Standrechner.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Plug-01.Switch.SET",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.online",
                                   "alias.0.0-Haus.OG.ZiR.PS5.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Plug-01.Switch.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.Plug-02.Switch.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.Plug-03.Switch.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.Plug-04.Switch.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.Plug-04.Zusatz.online",
                                   "alias.0.0-Haus.OG.ZiR.Raumsensor.Temp-Feucht.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-1.Zusatz.online",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-3.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Surface-Raphael.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.TV.Hauptfunktionen.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.TV.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-2.Plug-03.Switch.SET",
                                   "alias.0.0-Haus.OG.ZiR.Tablet-Amazon-Fire-HD-10.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.ULANZI.Bedienung.UNREACH",
                                   "alias.0.0-Haus.OG.ZiR.ULANZI.Zusatz.Ping-alive",
                                   "alias.0.0-Haus.OG.ZiR.Stckleiste-4.Plug-01.Switch.SET",
                                   "system.adapter.admin.0.alive",
                                   "system.adapter.admin.0.connected",
                                   "system.adapter.alexa2.0.alive",
                                   "system.adapter.alexa2.0.connected",
                                   "system.adapter.awtrix-light.0.alive",
                                   "system.adapter.awtrix-light.0.connected",
                                   "system.adapter.backitup.0.alive",
                                   "system.adapter.backitup.0.connected",
                                   "system.adapter.cloud.0.alive",
                                   "system.adapter.cloud.0.connected",
                                   "system.adapter.denon.0.alive",
                                   "system.adapter.denon.0.connected",
                                   "system.adapter.devices.0.alive",
                                   "system.adapter.devices.0.connected",
                                   "system.adapter.discord.0.alive",
                                   "system.adapter.discord.0.connected",
                                   "system.adapter.discovery.0.alive",
                                   "system.adapter.discovery.0.connected",
                                   "system.adapter.echarts.0.alive",
                                   "system.adapter.echarts.0.connected",
                                   "system.adapter.fronius-solarweb.0.alive",
                                   "system.adapter.fronius-solarweb.0.connected",
                                   "system.adapter.fronius.0.alive",
                                   "system.adapter.fronius.0.connected",
                                   "system.adapter.fullybrowser.0.alive",
                                   "system.adapter.fullybrowser.0.connected",
                                   "system.adapter.history.0.alive",
                                   "system.adapter.history.0.connected",
                                   "system.adapter.hm-rega.0.alive",
                                   "system.adapter.hm-rega.0.connected",
                                   "system.adapter.hm-rpc.0.alive",
                                   "system.adapter.hm-rpc.0.connected",
                                   "system.adapter.iot.0.alive",
                                   "system.adapter.iot.0.connected",
                                   "system.adapter.javascript.0.alive",
                                   "system.adapter.javascript.0.connected",
                                   "system.adapter.lgtv.0.alive",
                                   "system.adapter.lgtv.0.connected",
                                   "system.adapter.matter.0.alive",
                                   "system.adapter.matter.0.connected",
                                   "system.adapter.moma.0.alive",
                                   "system.adapter.moma.0.connected",
                                   "system.adapter.mqtt.0.alive",
                                   "system.adapter.mqtt.0.connected",
                                   "system.adapter.mytime.0.alive",
                                   "system.adapter.mytime.0.connected",
                                   "system.adapter.nanoleaf-lightpanels.0.alive",
                                   "system.adapter.nanoleaf-lightpanels.0.connected",
                                   "system.adapter.ping.0.alive",
                                   "system.adapter.ping.0.connected",
                                   "system.adapter.shelly.0.alive",
                                   "system.adapter.shelly.0.connected",
                                   "system.adapter.tuya.0.alive",
                                   "system.adapter.tuya.0.connected",
                                   "system.adapter.vis-2.0.alive",
                                   "system.adapter.vis-2.0.connected",
                                   "system.adapter.web.0.alive",
                                   "system.adapter.web.0.connected",
                                   "system.adapter.web.1.alive",
                                   "system.adapter.web.1.connected",
                                   "system.adapter.zigbee2mqtt.0.alive",
                                   "system.adapter.zigbee2mqtt.0.connected"
                                  ];
                                  function evaluate(dp)
                                  {
                                  function read(id)
                                  {
                                     if (!id || typeof dp === 'undefined' || !dp) return null;
                                     let v = dp[id];
                                     if (v !== null && typeof v === 'object') v = v.val;
                                     if (v === true || v === 1 || v === 'true' || v === '1' || v === 'online') return true;
                                     if (v === false || v === 0 || v === 'false' || v === '0' || v === 'offline') return false;
                                     return null;
                                  }
                                  
                                  const checkSystems = systems.concat('ioBroker-Adapter');
                                  function instanceState(name)
                                  {
                                     const alive=read('system.adapter.'+name+'.alive');
                                     const connected=read('system.adapter.'+name+'.connected');
                                     if(alive===false || connected===false) return false;
                                     if(alive===true && connected===true) return true;
                                     return null;
                                  }
                                  function dependencyState(id)
                                  {
                                     const dep=dependencies.find(d=>d[0]===id);
                                     return dep && instanceState(dep[1])===false ? dep[1] : '';
                                  }
                                  
                                  
                                  function classify(values, power, trusted, optional)
                                  {
                                     if (trusted && power === false && !values.includes(true)) return 3;
                                     if (trusted && power === false && values.includes(true)) return 4;
                                     if (values.includes(false)) return optional ? 2 : 1;
                                     if (values.includes(null)) return 4;
                                     return values.length && values.every(v => v === true) ? 0 : 4;
                                  }
                                  return devices.map(function(d)
                                  {
                                     const checks = d[3].map(function(c)
                                     {
                                         const failed=dependencyState(c[1]);
                                         return [c[0],failed ? null : read(c[1]),c[1],failed];
                                     });
                                     const power = dependencyState(d[4]) ? null : read(d[4]);
                                     const trusted = !!d[4] && !dependencyState(d[6]) && read(d[6]) === true;
                                     const bySystem = checkSystems.filter(s => checks.some(c => c[0] === s)).map(function(s)
                                     {
                                         let values = checks.filter(c => c[0] === s).map(c => c[1]);
                                         if (s === 'LAN / WLAN' && values.length > 1)
                                         {
                                             values = [values.includes(true) ? true : values.includes(null) ? null : false];
                                         }
                                         return [s,classify(values,power,trusted,d[5])];
                                     });
                                     const states = bySystem.map(c => c[1]);
                                     const status = [1,4,2,3,0].find(s => states.includes(s));
                                     return [d[0],d[1],d[2],checks,power,trusted,bySystem,status,d[4]];
                                  });
                                  
                                  }
                                  
                                  let pending=null;
                                  function apply()
                                  {
                                   if(!root.isConnected || !pending) return;
                                   const next=pending; pending=null;
                                   if(JSON.stringify(entries)===JSON.stringify(next)) return;
                                   entries=next;
                                   const counts=labels.map((l,i)=>entries.filter(e=>e[7]===i).length);
                                   let offset=0;
                                   counts.forEach(function(n,i)
                                   {
                                    const len=n/entries.length*276.46;
                                    const ring=root.querySelector('[data-ring="'+i+'"]');
                                    ring.setAttribute('stroke-dasharray',len+' 276.46');
                                    ring.setAttribute('stroke-dashoffset',-offset);
                                    offset+=len;
                                    root.querySelector('[data-count="'+i+'"]').textContent=n;
                                   });
                                   root.querySelector('[data-pct]').textContent=Math.round(counts[0]*100/entries.length)+'%';
                                   root.querySelector('.head span span').style.color=counts[4]===entries.length?'#687481':'#4ade80';
                                   root.querySelectorAll('[data-system]').forEach(function(b)
                                   {
                                    const rows=entries.flatMap(e=>e[6].filter(c=>c[0]===b.dataset.system));
                                    const cc=labels.map((l,i)=>rows.filter(c=>c[1]===i).length);
                                    const lines=b.querySelectorAll('.line');
                                    lines[0].lastElementChild.textContent=rows.length;
                                    lines[1].firstElementChild.textContent=cc[0]+' / '+rows.length;
                                    lines[1].lastElementChild.textContent=cc[1]+' Störung';
                                    lines[1].lastElementChild.style.color=cc[1]?'#ef7777':'#8996a3';
                                    b.querySelectorAll('.bar span').forEach(function(span,i)
                                    {
                                     span.style.width=(rows.length?cc[i]*100/rows.length:0)+'%';
                                    });
                                   });
                                   render();
                                  }
                                  portal.receive=function(values)
                                  {
                                   const now=Date.now();
                                   let changed=false;
                                   ids.forEach(function(id)
                                   {
                                    const present=Object.prototype.hasOwnProperty.call(values,id);
                                    let v=null;
                                    if(present)
                                    {
                                     v=values[id];
                                     st.seen[id]=now;
                                    }
                                    else if(st.seen[id] && now-st.seen[id]<=300000)
                                    {
                                     v=st.values[id];
                                    }
                                    if(st.values[id]!==v)
                                    {
                                     st.values[id]=v; changed=true;
                                    }
                                   });
                                   if(changed)
                                   {
                                    pending=evaluate(st.values);
                                    apply();
                                   }
                                  };
                                  portal.receive(snapshot);
                                  if(!list.children.length) render();
                                  restoreScroll(savedInitialScroll);
                                  })();
                                  </script>
                                  
                                  

                                  Ist aber nicht schlimm.
                                  Ich denke ich werde das dann einfach mit 2 separaten Widgets lösen.
                                  Das ganze Ding mit 148 DPs ist natürlich auch im Editor dann auch etwas holprig und kommt schon ins Schwitzen.

                                  OliverIOO
                                  OliverIOO
                                  OliverIO
                                  schrieb am zuletzt editiert von
                                  #116

                                  @Cyberraph

                                  habs mir angeschaut.
                                  das template war im widget export schon mit enthalten.
                                  ok das template bedient sich erst mal nur den normalen mechanismen.

                                  es erzeugt tatsächlich eine kopie des inhalts, platziert das im html an einer anderen stelle, blendet dann die normale anzeige aus und platziert dann die kopie visuell per css an die stelle wo du es platziert hast.

                                  kann man machen. könnte evtl mit zukünftigen versionen von vis mal schwierigkeiten geben, wenn sich der grundlegende html aufbau ändert. ist aber aktuell nicht abzusehen.

                                  ich werde mal morgen/übermorgen mal einen test aufsetzen um zu sehen, ab wo es dann schwierigkeiten macht.

                                  nochmal für mich, weil ich dein widget zwar anzeigen lassen kann, aber natürlich nicht echt funktionsfähig mit den ganzen datenpunkten, die ich nicht habe.

                                  Ab einer gewissen Anzahl, aktualisieren sich dann die Daten nicht mehr?
                                  oder sind keine sinnvollen Werte mehr verfügbar?

                                  Ich muss mir dazu mal eine ganze reihe von Datenpunkten künstlich erzeugen, die ich dann in regelmäßigen Abständen aktualisiere und dann mal schauen was passiert wenn man sich die in einem template anzeigen lässt.

                                  Eins noch zur Optimierung.
                                  Ich habe gesehen, das die ganzen Listen im Skript 2x definiert wurden.
                                  Einmal im template kontext und einmal im browser javascript kontext.
                                  Diese Listen könnte man nur einmal definieren und dann unter einem globalen key ablegen, wo sich dann beide kontexte daraus bedienen.
                                  Listen1 Zeile 2-Zeile 569
                                  Listen2 Zeile 1028-Zeile 1600
                                  grob gescannt sehen die identisch aus.
                                  Einen Teil der Informationen werden dort sogar schon vorgehalten

                                  Window.
                                  image.jpeg
                                  Da könnte man die Listen ebenfalls rein packen.
                                  Dann passiert nichts bei der redundanten Pflege von gleichen Inhalten.

                                  Meine Adapter und Widgets
                                  TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
                                  Links im Profil

                                  CyberraphC 1 Antwort Letzte Antwort
                                  1
                                  • OliverIOO OliverIO

                                    @Cyberraph

                                    habs mir angeschaut.
                                    das template war im widget export schon mit enthalten.
                                    ok das template bedient sich erst mal nur den normalen mechanismen.

                                    es erzeugt tatsächlich eine kopie des inhalts, platziert das im html an einer anderen stelle, blendet dann die normale anzeige aus und platziert dann die kopie visuell per css an die stelle wo du es platziert hast.

                                    kann man machen. könnte evtl mit zukünftigen versionen von vis mal schwierigkeiten geben, wenn sich der grundlegende html aufbau ändert. ist aber aktuell nicht abzusehen.

                                    ich werde mal morgen/übermorgen mal einen test aufsetzen um zu sehen, ab wo es dann schwierigkeiten macht.

                                    nochmal für mich, weil ich dein widget zwar anzeigen lassen kann, aber natürlich nicht echt funktionsfähig mit den ganzen datenpunkten, die ich nicht habe.

                                    Ab einer gewissen Anzahl, aktualisieren sich dann die Daten nicht mehr?
                                    oder sind keine sinnvollen Werte mehr verfügbar?

                                    Ich muss mir dazu mal eine ganze reihe von Datenpunkten künstlich erzeugen, die ich dann in regelmäßigen Abständen aktualisiere und dann mal schauen was passiert wenn man sich die in einem template anzeigen lässt.

                                    Eins noch zur Optimierung.
                                    Ich habe gesehen, das die ganzen Listen im Skript 2x definiert wurden.
                                    Einmal im template kontext und einmal im browser javascript kontext.
                                    Diese Listen könnte man nur einmal definieren und dann unter einem globalen key ablegen, wo sich dann beide kontexte daraus bedienen.
                                    Listen1 Zeile 2-Zeile 569
                                    Listen2 Zeile 1028-Zeile 1600
                                    grob gescannt sehen die identisch aus.
                                    Einen Teil der Informationen werden dort sogar schon vorgehalten

                                    Window.
                                    image.jpeg
                                    Da könnte man die Listen ebenfalls rein packen.
                                    Dann passiert nichts bei der redundanten Pflege von gleichen Inhalten.

                                    CyberraphC
                                    CyberraphC
                                    Cyberraph
                                    schrieb am zuletzt editiert von
                                    #117

                                    @OliverIO
                                    Ab einer gewissen Anzahl werden die DPs gar nicht mehr erkannt (das initial beim Aufruf der View / des Widgets). Er prüft, ob alive und connect vom system.###adaper###, ... true sind. Sind eines oder beide nicht true oder werden nicht erkannt, wird textlich "Unbekannt" im Widget angezeigt. Und, da es gleich beim Aufruf der View so ist, dass trotz des true im DP in ioBroker bei alive und connect, kein Wert initial gefunden wird, wird "Unbekannt" textlich ausgegeben.

                                    Mal schauen.
                                    Ich teste es heute Abend nochmal anders.
                                    Setze alle verknüpften Adapter Instanzen DPs ganz vorne hin im JSON Template und schaue, ob dann alle erkannt werden.
                                    Es fiel mir nämlich auf, als ich eben gestern dann über 86 DPs, d.h. alle danach bis zum 148. DP sind die Instanz-DPs alive bzw. connect vom system Objektbaum-Zweig.
                                    Und dort werden mir aktuell nur die ersten 6 Instanzen nun korrekt als online ausgegeben.
                                    Alle anderen sind "Unbekannt".

                                    Beste Grüße!

                                    io-Broker Neuling 2024 :-)

                                    Bislang jedoch einiges an Beiträgen und Grundlagen eingeflößt, um etwas besser empor zu irren.

                                    OliverIOO 1 Antwort Letzte Antwort
                                    0
                                    • CyberraphC Cyberraph

                                      @OliverIO
                                      Ab einer gewissen Anzahl werden die DPs gar nicht mehr erkannt (das initial beim Aufruf der View / des Widgets). Er prüft, ob alive und connect vom system.###adaper###, ... true sind. Sind eines oder beide nicht true oder werden nicht erkannt, wird textlich "Unbekannt" im Widget angezeigt. Und, da es gleich beim Aufruf der View so ist, dass trotz des true im DP in ioBroker bei alive und connect, kein Wert initial gefunden wird, wird "Unbekannt" textlich ausgegeben.

                                      Mal schauen.
                                      Ich teste es heute Abend nochmal anders.
                                      Setze alle verknüpften Adapter Instanzen DPs ganz vorne hin im JSON Template und schaue, ob dann alle erkannt werden.
                                      Es fiel mir nämlich auf, als ich eben gestern dann über 86 DPs, d.h. alle danach bis zum 148. DP sind die Instanz-DPs alive bzw. connect vom system Objektbaum-Zweig.
                                      Und dort werden mir aktuell nur die ersten 6 Instanzen nun korrekt als online ausgegeben.
                                      Alle anderen sind "Unbekannt".

                                      OliverIOO
                                      OliverIOO
                                      OliverIO
                                      schrieb zuletzt editiert von
                                      #118

                                      @Cyberraph

                                      ok, ich habe es gefunden.
                                      Problem liegt leider im vis-2 code.
                                      Habe dazu einen Issue erstellt

                                      https://github.com/ioBroker/ioBroker.vis-2/issues/758

                                      Die Grenze ist genau 100
                                      image.jpeg

                                      Ich habe mir 200 Datenpunkte erzeugen lassen, die alle der Reihe nach aktualisiert werden.
                                      Wie du auf dem Bild siehst, werden alle Datenpunkte > 99 nicht mehr ausgegeben.
                                      Hintergrund ist die in vis2 eingebaute Datenpunkterkennung.
                                      Intern referenziert der Adapter deine eingegebenen Datenpunkte mit
                                      json_dp<durchlaufende nummer>
                                      Das Prinzip wurde von vis1 mit übernommen.

                                      vis2 prüft nun diese Referenzen und prüft ob das eine ID ist.
                                      Warum weiß ich nicht, ich gehe davon aus das es um Kompatibilität zu irgendwas (vis1?) geht.

                                      Die Zeilen der Prüfung findest du im verlinkten Issue.
                                      Leider erkennt die Prüfung nur 2stellige Zahlen.
                                      Alles was darüber ist, wird dann nicht mehr als datenpunktfeld erkannt.
                                      Daher bleiben die dann leer.

                                      Wir schauen mal wie es weitergeht.
                                      Beheben kann man das, aber nur Denis weiß zu was das kompatibel sein muss.
                                      Evtl kann herauskommen, das man nicht mehr wie 99 Datenpunkte (gut das ist auch schon sehr viel) in einem widget definieren darf.

                                      Kannst du als Workaround den Inhalt aufteilen?

                                      Meine Adapter und Widgets
                                      TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
                                      Links im Profil

                                      CyberraphC 1 Antwort Letzte Antwort
                                      1
                                      • OliverIOO OliverIO

                                        @Cyberraph

                                        ok, ich habe es gefunden.
                                        Problem liegt leider im vis-2 code.
                                        Habe dazu einen Issue erstellt

                                        https://github.com/ioBroker/ioBroker.vis-2/issues/758

                                        Die Grenze ist genau 100
                                        image.jpeg

                                        Ich habe mir 200 Datenpunkte erzeugen lassen, die alle der Reihe nach aktualisiert werden.
                                        Wie du auf dem Bild siehst, werden alle Datenpunkte > 99 nicht mehr ausgegeben.
                                        Hintergrund ist die in vis2 eingebaute Datenpunkterkennung.
                                        Intern referenziert der Adapter deine eingegebenen Datenpunkte mit
                                        json_dp<durchlaufende nummer>
                                        Das Prinzip wurde von vis1 mit übernommen.

                                        vis2 prüft nun diese Referenzen und prüft ob das eine ID ist.
                                        Warum weiß ich nicht, ich gehe davon aus das es um Kompatibilität zu irgendwas (vis1?) geht.

                                        Die Zeilen der Prüfung findest du im verlinkten Issue.
                                        Leider erkennt die Prüfung nur 2stellige Zahlen.
                                        Alles was darüber ist, wird dann nicht mehr als datenpunktfeld erkannt.
                                        Daher bleiben die dann leer.

                                        Wir schauen mal wie es weitergeht.
                                        Beheben kann man das, aber nur Denis weiß zu was das kompatibel sein muss.
                                        Evtl kann herauskommen, das man nicht mehr wie 99 Datenpunkte (gut das ist auch schon sehr viel) in einem widget definieren darf.

                                        Kannst du als Workaround den Inhalt aufteilen?

                                        CyberraphC
                                        CyberraphC
                                        Cyberraph
                                        schrieb zuletzt editiert von
                                        #119

                                        @OliverIO
                                        Danke für die Mühen.
                                        Leuchtet ein. Hatte schon gesagt, ich werde dann eben zwei Widgets anlegen und fertig.

                                        Kommen halt schon viele DPs zusammen, wenn man den Online-Status diverser Geräte überwachen will.
                                        Und ich habe ja erst ein bisschen angefangen mich in der Smarthome Welt breit zu machen.
                                        D.h. so viele Geräte habe ich jetzt eigentlich noch gar nicht. ^^

                                        Beste Grüße!

                                        io-Broker Neuling 2024 :-)

                                        Bislang jedoch einiges an Beiträgen und Grundlagen eingeflößt, um etwas besser empor zu irren.

                                        OliverIOO 2 Antworten Letzte Antwort
                                        0
                                        • CyberraphC Cyberraph

                                          @OliverIO
                                          Danke für die Mühen.
                                          Leuchtet ein. Hatte schon gesagt, ich werde dann eben zwei Widgets anlegen und fertig.

                                          Kommen halt schon viele DPs zusammen, wenn man den Online-Status diverser Geräte überwachen will.
                                          Und ich habe ja erst ein bisschen angefangen mich in der Smarthome Welt breit zu machen.
                                          D.h. so viele Geräte habe ich jetzt eigentlich noch gar nicht. ^^

                                          OliverIOO
                                          OliverIOO
                                          OliverIO
                                          schrieb zuletzt editiert von OliverIO
                                          #120

                                          @Cyberraph

                                          Alternativ könntest du dir die datenpunkte auch in einem javascript einsammeln lassen und per json in einen datenpunkt schreiben.
                                          Dann wäre es nur ein Datenpunkt, der dann entsprechend of aktualisiert wird.
                                          Dieses json wird dann im template ausgewertet und du könntest alles in einem widget lassen

                                          Meine Adapter und Widgets
                                          TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
                                          Links im Profil

                                          1 Antwort Letzte Antwort
                                          0

                                          Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

                                          Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

                                          Mit deinem Input könnte dieser Beitrag noch besser werden 💗

                                          Registrieren Anmelden
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          339

                                          Online

                                          33.2k

                                          Benutzer

                                          84.4k

                                          Themen

                                          1.4m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2026
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe