Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Hardware
  4. SONOFF NSPanel mit Lovelace UI

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.1k

SONOFF NSPanel mit Lovelace UI

Scheduled Pinned Locked Moved Hardware
lovelace uinspanelsonoff
7.7k Posts 271 Posters 6.7m Views 253 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ArmilarA Offline
    ArmilarA Offline
    Armilar
    Most Active Forum Testing
    wrote on last edited by Armilar
    #1621

    @c3b

    wie @ronny130286 schon erwähnte:

    Die Release Notes zur 3.8.1:
    https://forum.iobroker.net/post/923200

    Die popupInSel für diese WLED-Auswahl ist erst seit dem 06.01.2023 im Script ...

    Wenn die Deine Script-Version also älter ist, muss zunächst ein Upgrade erfolgen...

    Installationsanleitung, Tipps, Alias-Definitionen, FAQ für das Sonoff NSPanel mit lovelace UI unter ioBroker
    https://github.com/joBr99/nspanel-lovelace-ui/wiki

    Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

    1 Reply Last reply
    0
    • ArmilarA Armilar

      @c3b

      Kurzes Beispiel einer Seitennavi über 4 Level um die Parameter zu verstehen:

      let Level_0_Grundstueck: PageGrid =
      {
          'type': "cardGrid",
          'heading': "Grundstück",
          'useColor': true,
          'subPage': false,
          'parent': undefined,
          'prev': undefined,
          'next': undefined,
          'home': undefined, 
          'items': [
              <PageItem>{ navigate: true, id: null, targetPage: 'Level_1_Gartenhaus', name: 'Gartenhaus' ,icon: 'storefront-outline', offColor: MSRed, onColor: MSGreen},
          ]
      };
      
              let Level_1_Gartenhaus: PageGrid =
              {
                  'type': 'cardGrid',
                  'heading': 'Gartenhaus',
                  'useColor': true,
                  'subPage': true,
                  'parent': Level_0_Grundstueck,
                  'prev': undefined,
                  'next': undefined,
                  'home': 'Level_0_Grundstueck', 
                  'items': [
                      <PageItem>{ navigate: true, id: null, targetPage: 'Level_2_GH_Licht', name: 'Licht' , icon: 'lightbulb', offColor: HMIOff, onColor: HMIOn},
                  ]
              };
      
                      let Level_2_GH_Licht: PageGrid =
                      {
                          'type': 'cardGrid',
                          'heading': 'Gartenhaus Licht',
                          'useColor': true,
                          'subPage': true,
                          'parent': Level_1_Gartenhaus,
                          'prev': undefined,
                          'next': undefined,
                          'home': 'Level_0_Grundstueck', 
                          'items': [
                              <PageItem>{ navigate: true, id: null, targetPage: 'Level_3_GH_WLED', name: 'WLED' , icon: 'led-strip-variant', offColor: HMIOff, onColor: HMIOn},
                          ]
                      };
      
                              let Level_3_GH_WLED: PageGrid =
                              {
                                  'type': 'cardGrid',
                                  'heading': 'WLED Stripes WZ',
                                  'useColor': true,
                                  'subPage': false,
                                  'parent': Level_2_GH_Licht,
                                  'prev': undefined,
                                  'next': undefined,
                                  'home': 'Level_1_Gartenhaus',
                                  'items': [
                                      <PageItem>{ id: 'alias.0.NSPanel_1.WLED.Example.On', name: 'Power', icon: 'power', onColor: HMIOn, offColor: HMIOff},
                                      <PageItem>{ id: 'alias.0.NSPanel_1.WLED.Example.Sync', name: 'Sync', icon: 'sync', onColor: HMIOn, offColor: White},
                                      <PageItem>{ id: 'alias.0.NSPanel_1.WLED.Example.Presets', icon: 'heart-outline', name: 'Presets', onColor: White, modeList: ['Preset 0', 'Add Preset']},
                                      <PageItem>{ id: 'alias.0.NSPanel_1.WLED.Example.Colors', icon: 'palette', name: 'Colors', onColor: White, 
                                                  modeList: ['Default', '* Color 1', '* Color Gradient', '* Colors 1&2', '* Colors Only', '* Random Cycle', 'Analogus','April Night', 'Aqua Flash', 'Atlantica', 'Aurora', 
                                                          'Beach', 'Beech', 'Blink Red', 'Breeze', 'C9', 'C9 New', 'Candy', 'Candy2', 'Cloud', 
                                                          'Cyane', 'Departure', 'Drywet', 'Fairy Reaf', 'Fire', 'Forest', 'etc'
                                                          ]},
                                      <PageItem>{ id: 'alias.0.NSPanel_1.WLED.Example.Effects', icon: 'emoticon-outline', name: 'Effects', onColor: White, 
                                                  modeList: ['Solid', 'Android', 'Aurora', 'Blends', 'Blink', 'Blink Rainbow', 'Bouncing Balls','Bpm', 'Breathe', 'Candle', 'Candle Multi', 
                                                          'Candy Cane', 'Chase', 'Chase 1', 'Chase 2', 'Chase 3', 'Chase Flash', 'Chase Flash Rnd', 'Chase Rainbow', 'Chase Random', 
                                                          'Chunchun', 'Colorful', 'Colorloop', 'Colortwinkles', 'Colorwaves', 'Dancing Shadows', 'etc'
                                                          ]},
                                      <PageItem>{ id: 'alias.0.NSPanel_1.WLED.Example.Segments', icon: 'layers', name: 'Segments', onColor: White, modeList: ['Segment 0', 'Add Segment']},
                                  ]
                              };
      

      Level_0_Grundstueck ist die einzige Mainpage und muss in der Config unter pages eingetragen werden.

      Alle anderen sind Subpages und müssen in der Config unter subPages aufgeführt sein.

      C Offline
      C Offline
      c3b
      wrote on last edited by
      #1622

      @armilar sagte in SONOFF NSPanel mit Lovelace UI:

      let Level_3_GH_WLED: PageGrid =

      Das habe ich verstanden. Warum steht dann aber bei Level 3:

                              let Level_3_GH_WLED: PageGrid =
      
                              {
      
                                  'type': 'cardGrid',
      
                                  'heading': 'WLED Stripes WZ',
      
                                  'useColor': true,
      
                                  'subPage': false,
      
                                  'parent': Level_2_GH_Licht,
      
                                  'prev': undefined,
      
                                  'next': undefined,
      
                                  'home': 'Level_1_Gartenhaus',
      

      bei Subpge ein false? Das ist doch auch eine Unterseite. home und parent ist klar.

      ArmilarA 1 Reply Last reply
      0
      • C c3b

        @armilar sagte in SONOFF NSPanel mit Lovelace UI:

        let Level_3_GH_WLED: PageGrid =

        Das habe ich verstanden. Warum steht dann aber bei Level 3:

                                let Level_3_GH_WLED: PageGrid =
        
                                {
        
                                    'type': 'cardGrid',
        
                                    'heading': 'WLED Stripes WZ',
        
                                    'useColor': true,
        
                                    'subPage': false,
        
                                    'parent': Level_2_GH_Licht,
        
                                    'prev': undefined,
        
                                    'next': undefined,
        
                                    'home': 'Level_1_Gartenhaus',
        

        bei Subpge ein false? Das ist doch auch eine Unterseite. home und parent ist klar.

        ArmilarA Offline
        ArmilarA Offline
        Armilar
        Most Active Forum Testing
        wrote on last edited by
        #1623

        @c3b

        Hast eine Fehler gefunden 👍

        Installationsanleitung, Tipps, Alias-Definitionen, FAQ für das Sonoff NSPanel mit lovelace UI unter ioBroker
        https://github.com/joBr99/nspanel-lovelace-ui/wiki

        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

        C 1 Reply Last reply
        0
        • ArmilarA Armilar

          @c3b

          Hast eine Fehler gefunden 👍

          C Offline
          C Offline
          c3b
          wrote on last edited by
          #1624

          @armilar ok. Ich habe das Skript 3.6.0.4.

          Wie ist denn so die richtige vorgehensweise? Ich nehme das komplette 3.8.x oder halt das aktuellst und muss dann meine Einträge komplett neu eingeben oder so wie beschrieben die Änderungen hineinkopieren. Woher weiß ich aber, welche Änderungen es gibt? Ihr seid so schnell, dass man gar nicht alles mitbekommt. Was aber total ge..l ist. Ihr seid echt klasse. 👍

          ArmilarA 1 Reply Last reply
          0
          • R ronny130286

            @armilar said in SONOFF NSPanel mit Lovelace UI:

            ieder herausgenommen und gegen das ursprüngliche setIfExists(id + '.SET', action); ersetzt. War vorher auch nicht im Co

            Ich habe bei mir noch ein altes Panel gefunden mit Version 3.4 und dort sieht die CreateEntity Funtkion anfangs so aus:

            function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean = false): string {
                try {
                    var iconId = '0';
                    if (pageItem.id == 'delete') {
                        return '~delete~~~~~';
                    }
            
                    var name: string;
                    var type: string;
            
                    // ioBroker
                    if (existsObject(pageItem.id) || pageItem.navigate === true) {
                        var iconColor = rgb_dec565(config.defaultColor);
            
                        if (pageItem.navigate) {
                            type = 'button';
                            iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon('gesture-tap-button');
                            iconColor = GetIconColor(pageItem, true, useColors);
                            let buttonText = pageItem.buttonText !== undefined ? pageItem.buttonText : 'PRESS';
                            return '~' + type + '~' + 'navigate.' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + pageItem.name + '~' + buttonText;
                        }
            
                        let o = getObject(pageItem.id)
                        var val = null;
            
                        if (existsState(pageItem.id + '.GET')) {
                            val = getState(pageItem.id + '.GET').val;
                            RegisterEntityWatcher(pageItem.id + '.GET');
            			}
            	    else if (existsState(pageItem.id + '.SET')) {
                            val = getState(pageItem.id + '.SET').val;
                            RegisterEntityWatcher(pageItem.id + '.SET');
                        }
            
                        // Fallback if no name is given
                        name = pageItem.name !== undefined ? pageItem.name : o.common.name.de;
            
                        switch (o.common.role) {
                            case 'socket':
            

            das Panel hat trotz Trigger Button das Problem nicht => auch mein MonoTaster im neuen Script 3.8.1 hat das Problem nicht, nur normale Schalter haben das Problem, wohl gemerkt wenn der Alias ein .SET und ein .ACTUAL gleichzeitig hat.

            Ich lade nochmal das Script von github und teste es nochmal ohne meine Monobuttonänderung und berichte 😉

            EDIT: Hat leider den gleichen Effekt 😞
            Ich habe mal .ACTUAL aus meinem Alias gelöscht, aber dann zeigt er keinen Status mehr an.

            EDIT: hier nochmal ein kleines Video: 20230109-223235_npQAjIVi.mp4
            Log:

            22:34:12.110	info	javascript.0 (3893) script.js.NSPanel.NSPanelTest: RegEntityWatcher wurde aufgerufen: alias.0.Licht.Weihnachten.SET => Normaler Schalter
            22:34:12.116	info	javascript.0 (3893) script.js.NSPanel.NSPanelTest: RegEntityWatcher wurde aufgerufen: alias.0.Licht.Weihnachten.ACTUAL => Normaler Schalter
            22:34:12.117	info	javascript.0 (3893) script.js.NSPanel.NSPanelTest: RegEntityWatcher wurde aufgerufen: alias.0.Licht.Terrasse.SET => Normaler Schalter
            22:34:12.118	info	javascript.0 (3893) script.js.NSPanel.NSPanelTest: RegEntityWatcher wurde aufgerufen: alias.0.Licht.Terrasse.ACTUAL => Normaler Schalter
            22:34:12.118	info	javascript.0 (3893) script.js.NSPanel.NSPanelTest: RegEntityWatcher wurde aufgerufen: alias.0.Licht.Buero.STATE => Monobutton
            
            ArmilarA Offline
            ArmilarA Offline
            Armilar
            Most Active Forum Testing
            wrote on last edited by
            #1625

            @ronny130286

            Versuch mal das:

                        UnsubscribeWatcher();
            
                        if (existsState(pageItem.id + '.GET')) {
                            val = getState(pageItem.id + '.GET').val;
                            RegisterEntityWatcher(pageItem.id + '.GET');
                        }
                        if (existsState(pageItem.id + ".STATE")) {
                            val = getState(pageItem.id + ".STATE").val;
                            RegisterEntityWatcher(pageItem.id + ".STATE");
                        }
                        if (existsState(pageItem.id + '.SET') && !existsState(pageItem.id + ".STATE")) {
                            val = getState(pageItem.id + '.SET').val;
                            RegisterEntityWatcher(pageItem.id + '.SET');
                        }
                        if (existsState(pageItem.id + '.ACTUAL')) {
                            val = getState(pageItem.id + '.ACTUAL').val;
                            RegisterEntityWatcher(pageItem.id + '.ACTUAL');
                        }
                        if (existsState(pageItem.id + '.ON_ACTUAL')) {
                            val = getState(pageItem.id + '.ON_ACTUAL').val;
                            RegisterEntityWatcher(pageItem.id + '.ON_ACTUAL');
                        } 
                        if (existsState(pageItem.id + '.ON_SET')) {
                            val = getState(pageItem.id + '.ON_SET').val;
                            RegisterEntityWatcher(pageItem.id + '.ON_SET');
                        }
                        if (existsState(pageItem.id + '.ON')) {
                            val = getState(pageItem.id + '.ON').val;
                            RegisterEntityWatcher(pageItem.id + '.ON');
                        }
            

            Installationsanleitung, Tipps, Alias-Definitionen, FAQ für das Sonoff NSPanel mit lovelace UI unter ioBroker
            https://github.com/joBr99/nspanel-lovelace-ui/wiki

            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

            R 1 Reply Last reply
            0
            • C c3b

              @armilar ok. Ich habe das Skript 3.6.0.4.

              Wie ist denn so die richtige vorgehensweise? Ich nehme das komplette 3.8.x oder halt das aktuellst und muss dann meine Einträge komplett neu eingeben oder so wie beschrieben die Änderungen hineinkopieren. Woher weiß ich aber, welche Änderungen es gibt? Ihr seid so schnell, dass man gar nicht alles mitbekommt. Was aber total ge..l ist. Ihr seid echt klasse. 👍

              ArmilarA Offline
              ArmilarA Offline
              Armilar
              Most Active Forum Testing
              wrote on last edited by
              #1626

              @c3b

              https://forum.iobroker.net/post/920094

              Versuche es mal so:

              Installationsanleitung, Tipps, Alias-Definitionen, FAQ für das Sonoff NSPanel mit lovelace UI unter ioBroker
              https://github.com/joBr99/nspanel-lovelace-ui/wiki

              Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

              1 Reply Last reply
              0
              • C Offline
                C Offline
                c3b
                wrote on last edited by
                #1627

                @armilar
                ok. Hab mal den Berry Driver und das Nexion geuppt. Laut Konsole habe ich Berry 8. Laut NS-Panel habe ich noch 7???
                Hatte den Haken bei Autoupdate gesetzt. Scheint aber nicht funktioniert zu haben. Muss man da nochetwas anderes machen und warum zeigt das Panel unter Firmewareinfos noch 7 an?

                C 1 Reply Last reply
                0
                • C c3b

                  @armilar
                  ok. Hab mal den Berry Driver und das Nexion geuppt. Laut Konsole habe ich Berry 8. Laut NS-Panel habe ich noch 7???
                  Hatte den Haken bei Autoupdate gesetzt. Scheint aber nicht funktioniert zu haben. Muss man da nochetwas anderes machen und warum zeigt das Panel unter Firmewareinfos noch 7 an?

                  C Offline
                  C Offline
                  c3b
                  wrote on last edited by
                  #1628

                  Moin Männer
                  Hab mir die halbe Nacht um die Ohren geschlagen. Auf 3.8.1 geuppt und dann kommt auf dem Panel kein Bild mehr, sondern nur noch Text. Also das Skript (versucht) angepasst. Jetzt meckert er den Befehl dimmode an. Halten ich eine Reihenfolge nicht ein oder was ist da los? Ist echt zum Mäusemelken. Wenn ich in dem "alten" Skript die drei zusatz Variablen einbringen sind diese unterstrichen und er sagt das sie nicht konfiguriert sind. Heute Abend geht es weiter. Euch einen schönen Tag.
                  LG aus dem Sauerland

                  ArmilarA 1 Reply Last reply
                  0
                  • ArmilarA Armilar

                    @carlos

                    Ist zwar noch nicht ganz Abend 😉 , aber ich habe mal einen statischen Block für id: 0 eingefügt:

                    Blockly:
                    https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/ioBroker/Blockly/CardPower_Emulator_Skript.xml

                    Einfach den "gelben" Block einsetzen:

                    70ed740c-1dde-467e-8fe7-a14e0abab94a-image.png

                    Sieht dann so aus:
                    78234f26-953a-4ce8-ba7a-157525a5696b-image.png

                    Einfach mal aus dem DP herauskopiert (exemplarisch)

                    [
                      {
                        "id": 0,
                        "value": "",
                        "unit": "",
                        "icon": "home",
                        "iconColor": 0
                      },
                      {
                        "id": 1,
                        "value": 3,
                        "unit": "kW",
                        "direction": "in",
                        "icon": "battery-charging-60",
                        "iconColor": 10,
                        "speed": -3
                      },
                      {
                        "id": 2,
                        "value": 4.7,
                        "unit": "kW",
                        "direction": "in",
                        "icon": "solar-power-variant",
                        "iconColor": 3,
                        "speed": 2
                      },
                      {
                        "id": 3,
                        "value": 4.5,
                        "unit": "kW",
                        "direction": "in",
                        "icon": "wind-turbine",
                        "iconColor": 1,
                        "speed": 3
                      },
                      {
                        "id": 4,
                        "value": 1.9,
                        "unit": "kW",
                        "direction": "in",
                        "icon": "shape",
                        "iconColor": 10,
                        "speed": 3
                      },
                      {
                        "id": 5,
                        "value": 2.9,
                        "unit": "kW",
                        "direction": "in",
                        "icon": "transmission-tower",
                        "iconColor": 0,
                        "speed": 2
                      },
                      {
                        "id": 6,
                        "value": 1.4,
                        "unit": "kW",
                        "direction": "in",
                        "icon": "car",
                        "iconColor": 3,
                        "speed": 3
                      }
                    ]
                    
                    C Offline
                    C Offline
                    carlos
                    wrote on last edited by
                    #1629

                    @armilar
                    Super, danke dir das blockly läuft jetzt. Debug gibt auch die richtigen Werte aus.
                    Aber das NsPanel script hat folgenden Fehler:

                    10.1.2023, 09:31:49.736	[info ]: javascript.0 (361) Stop script script.js.NSPanels.NsPanelTs381
                    10.1.2023, 09:31:53.638	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: compiling TypeScript source...
                    10.1.2023, 09:31:53.839	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: source code did not change, using cached compilation result...
                    10.1.2023, 09:31:53.859	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: Wetter-Alias existiert bereits
                    10.1.2023, 09:31:53.864	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: registered 20 subscriptions, 7 schedules, 0 messages, 0 logs and 0 file subscriptions
                    10.1.2023, 09:37:02.646	[info ]: javascript.0 (361) Stop script script.js.NSPanels.NsPanelTs381
                    10.1.2023, 09:37:02.970	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: compiling TypeScript source...
                    10.1.2023, 09:37:04.770	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: TypeScript compilation successful
                    10.1.2023, 09:37:04.807	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: Wetter-Alias existiert bereits
                    10.1.2023, 09:37:04.821	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: registered 20 subscriptions, 7 schedules, 0 messages, 0 logs and 0 file subscriptions
                    10.1.2023, 09:41:29.810	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:29.810	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:41:30.838	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:30.839	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:41:31.744	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:31.745	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:41:32.030	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:32.030	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:41:32.574	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:32.574	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:41:34.076	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:34.076	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:41:35.975	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:35.976	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:41:36.870	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:36.870	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:41:37.353	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:37.353	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:41:37.607	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:37.607	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:41:38.215	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:38.215	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:41:38.604	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:38.604	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:41:39.123	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:39.123	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:41:39.831	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:41:39.832	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:42:31.976	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:42:31.976	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:42:32.741	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:42:32.742	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:42:32.974	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:42:32.974	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:43:10.773	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:43:10.773	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:43:11.389	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:43:11.389	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:43:11.742	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:43:11.742	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    10.1.2023, 09:43:12.073	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                    10.1.2023, 09:43:12.073	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                    

                    Habe die neueste Version 3.8.1 und nur meine Seiten rein genommen.

                    let CardPower: PagePower =
                    {
                        "type": "cardPower",
                        "heading": "My Pv",
                        "useColor": true,
                        "subPage": false,
                        "parent": undefined,
                        'prev': undefined,
                        'next': undefined,
                        'home': undefined,
                        "items": [
                            <PageItem>{ id: "alias.0.NSPanel_1.Power.PowerCard" },
                        ]
                    };
                    
                    ArmilarA 1 Reply Last reply
                    0
                    • C carlos

                      @armilar
                      Super, danke dir das blockly läuft jetzt. Debug gibt auch die richtigen Werte aus.
                      Aber das NsPanel script hat folgenden Fehler:

                      10.1.2023, 09:31:49.736	[info ]: javascript.0 (361) Stop script script.js.NSPanels.NsPanelTs381
                      10.1.2023, 09:31:53.638	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: compiling TypeScript source...
                      10.1.2023, 09:31:53.839	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: source code did not change, using cached compilation result...
                      10.1.2023, 09:31:53.859	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: Wetter-Alias existiert bereits
                      10.1.2023, 09:31:53.864	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: registered 20 subscriptions, 7 schedules, 0 messages, 0 logs and 0 file subscriptions
                      10.1.2023, 09:37:02.646	[info ]: javascript.0 (361) Stop script script.js.NSPanels.NsPanelTs381
                      10.1.2023, 09:37:02.970	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: compiling TypeScript source...
                      10.1.2023, 09:37:04.770	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: TypeScript compilation successful
                      10.1.2023, 09:37:04.807	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: Wetter-Alias existiert bereits
                      10.1.2023, 09:37:04.821	[info ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: registered 20 subscriptions, 7 schedules, 0 messages, 0 logs and 0 file subscriptions
                      10.1.2023, 09:41:29.810	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:29.810	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:41:30.838	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:30.839	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:41:31.744	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:31.745	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:41:32.030	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:32.030	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:41:32.574	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:32.574	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:41:34.076	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:34.076	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:41:35.975	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:35.976	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:41:36.870	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:36.870	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:41:37.353	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:37.353	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:41:37.607	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:37.607	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:41:38.215	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:38.215	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:41:38.604	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:38.604	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:41:39.123	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:39.123	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:41:39.831	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:41:39.832	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:42:31.976	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:42:31.976	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:42:32.741	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:42:32.742	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:42:32.974	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:42:32.974	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:43:10.773	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:43:10.773	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:43:11.389	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:43:11.389	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:43:11.742	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:43:11.742	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      10.1.2023, 09:43:12.073	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function GeneratePowerPage: Cannot read properties of undefined (reading 'red')
                      10.1.2023, 09:43:12.073	[warn ]: javascript.0 (361) script.js.NSPanels.NsPanelTs381: function SendToPanel: Cannot read properties of undefined (reading 'payload')
                      

                      Habe die neueste Version 3.8.1 und nur meine Seiten rein genommen.

                      let CardPower: PagePower =
                      {
                          "type": "cardPower",
                          "heading": "My Pv",
                          "useColor": true,
                          "subPage": false,
                          "parent": undefined,
                          'prev': undefined,
                          'next': undefined,
                          'home': undefined,
                          "items": [
                              <PageItem>{ id: "alias.0.NSPanel_1.Power.PowerCard" },
                          ]
                      };
                      
                      ArmilarA Offline
                      ArmilarA Offline
                      Armilar
                      Most Active Forum Testing
                      wrote on last edited by
                      #1630

                      @carlos Was wird in den Datenpunkt geschrieben? Zeig mal das JSON

                      Installationsanleitung, Tipps, Alias-Definitionen, FAQ für das Sonoff NSPanel mit lovelace UI unter ioBroker
                      https://github.com/joBr99/nspanel-lovelace-ui/wiki

                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                      C 1 Reply Last reply
                      0
                      • C c3b

                        Moin Männer
                        Hab mir die halbe Nacht um die Ohren geschlagen. Auf 3.8.1 geuppt und dann kommt auf dem Panel kein Bild mehr, sondern nur noch Text. Also das Skript (versucht) angepasst. Jetzt meckert er den Befehl dimmode an. Halten ich eine Reihenfolge nicht ein oder was ist da los? Ist echt zum Mäusemelken. Wenn ich in dem "alten" Skript die drei zusatz Variablen einbringen sind diese unterstrichen und er sagt das sie nicht konfiguriert sind. Heute Abend geht es weiter. Euch einen schönen Tag.
                        LG aus dem Sauerland

                        ArmilarA Offline
                        ArmilarA Offline
                        Armilar
                        Most Active Forum Testing
                        wrote on last edited by Armilar
                        #1631

                        @c3b

                        Kann daran liegen, dass in der Config nicht mehr alle Konstanten enthalten sind. Sende mal die Config.

                        Es gab weitere Änderungen mit der 3.7.0
                        https://forum.iobroker.net/post/915335

                        Bei Anpassungen im neuen Script, dürfte ja kein Dimmode mehr gewesen sein...Vermute du hast einfach deine Config 1:1 wieder reinkopiert.

                        2db0748f-67ba-49fa-bf9a-9b030cd5b684-image.png

                        Installationsanleitung, Tipps, Alias-Definitionen, FAQ für das Sonoff NSPanel mit lovelace UI unter ioBroker
                        https://github.com/joBr99/nspanel-lovelace-ui/wiki

                        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                        1 Reply Last reply
                        0
                        • ArmilarA Armilar

                          @carlos Was wird in den Datenpunkt geschrieben? Zeig mal das JSON

                          C Offline
                          C Offline
                          carlos
                          wrote on last edited by
                          #1632

                          @armilar

                          10.1.2023, 10:04:14.443	[info ]: javascript.0 (361) Start javascript script.js.NSPanels.PowerCard
                          10.1.2023, 10:04:14.454	[info ]: javascript.0 (361) script.js.NSPanels.PowerCard: registered 6 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                          10.1.2023, 10:04:16.583	[info ]: javascript.0 (361) script.js.NSPanels.PowerCard: [{ "id" : 0, "value": "", "unit": "" , "icon" : "home" , "iconColor" : 0}, { "id" : 1, "value": 3, "unit": "kW" , "direction" :  "out" , "icon" : "battery-charging-60" , "iconColor" : 10 , "speed" : 3}, { "id" : 2, "value": 524, "unit": "kW" , "direction" :  "out" , "icon" : "solar-power-variant" , "iconColor" : -739 , "speed" : 250}, { "id" : 3, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "wind-turbine" , "iconColor" : 10 , "speed" : 0}, { "id" : 4, "value": 905.1, "unit": "kW" , "direction" :  "out" , "icon" : "shape" , "iconColor" : 10 , "speed" : 3}, { "id" : 5, "value": 378.1, "unit": "kW" , "direction" :  "out" , "icon" : "transmission-tower" , "iconColor" : 10 , "speed" : -2}, { "id" : 6, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "car" , "iconColor" : 0 , "speed" : 3}]
                          10.1.2023, 10:04:16.587	[info ]: javascript.0 (361) script.js.NSPanels.PowerCard: [{ "id" : 0, "value": "", "unit": "" , "icon" : "home" , "iconColor" : 0}, { "id" : 1, "value": 3, "unit": "kW" , "direction" :  "out" , "icon" : "battery-charging-60" , "iconColor" : 10 , "speed" : 3}, { "id" : 2, "value": 524, "unit": "kW" , "direction" :  "out" , "icon" : "solar-power-variant" , "iconColor" : -739 , "speed" : 250}, { "id" : 3, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "wind-turbine" , "iconColor" : 10 , "speed" : 0}, { "id" : 4, "value": 903.2, "unit": "kW" , "direction" :  "out" , "icon" : "shape" , "iconColor" : 10 , "speed" : 3}, { "id" : 5, "value": 376.2, "unit": "kW" , "direction" :  "out" , "icon" : "transmission-tower" , "iconColor" : 10 , "speed" : -2}, { "id" : 6, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "car" , "iconColor" : 0 , "speed" : 3}]
                          10.1.2023, 10:04:16.591	[info ]: javascript.0 (361) script.js.NSPanels.PowerCard: [{ "id" : 0, "value": "", "unit": "" , "icon" : "home" , "iconColor" : 0}, { "id" : 1, "value": 3, "unit": "kW" , "direction" :  "out" , "icon" : "battery-charging-60" , "iconColor" : 10 , "speed" : 3}, { "id" : 2, "value": 524, "unit": "kW" , "direction" :  "out" , "icon" : "solar-power-variant" , "iconColor" : -739 , "speed" : 250}, { "id" : 3, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "wind-turbine" , "iconColor" : 10 , "speed" : 0}, { "id" : 4, "value": 903.2, "unit": "kW" , "direction" :  "out" , "icon" : "shape" , "iconColor" : 10 , "speed" : 3}, { "id" : 5, "value": 376.2, "unit": "kW" , "direction" :  "out" , "icon" : "transmission-tower" , "iconColor" : 10 , "speed" : -2}, { "id" : 6, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "car" , "iconColor" : 0 , "speed" : 3}]
                          
                          ArmilarA 1 Reply Last reply
                          0
                          • C carlos

                            @armilar

                            10.1.2023, 10:04:14.443	[info ]: javascript.0 (361) Start javascript script.js.NSPanels.PowerCard
                            10.1.2023, 10:04:14.454	[info ]: javascript.0 (361) script.js.NSPanels.PowerCard: registered 6 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                            10.1.2023, 10:04:16.583	[info ]: javascript.0 (361) script.js.NSPanels.PowerCard: [{ "id" : 0, "value": "", "unit": "" , "icon" : "home" , "iconColor" : 0}, { "id" : 1, "value": 3, "unit": "kW" , "direction" :  "out" , "icon" : "battery-charging-60" , "iconColor" : 10 , "speed" : 3}, { "id" : 2, "value": 524, "unit": "kW" , "direction" :  "out" , "icon" : "solar-power-variant" , "iconColor" : -739 , "speed" : 250}, { "id" : 3, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "wind-turbine" , "iconColor" : 10 , "speed" : 0}, { "id" : 4, "value": 905.1, "unit": "kW" , "direction" :  "out" , "icon" : "shape" , "iconColor" : 10 , "speed" : 3}, { "id" : 5, "value": 378.1, "unit": "kW" , "direction" :  "out" , "icon" : "transmission-tower" , "iconColor" : 10 , "speed" : -2}, { "id" : 6, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "car" , "iconColor" : 0 , "speed" : 3}]
                            10.1.2023, 10:04:16.587	[info ]: javascript.0 (361) script.js.NSPanels.PowerCard: [{ "id" : 0, "value": "", "unit": "" , "icon" : "home" , "iconColor" : 0}, { "id" : 1, "value": 3, "unit": "kW" , "direction" :  "out" , "icon" : "battery-charging-60" , "iconColor" : 10 , "speed" : 3}, { "id" : 2, "value": 524, "unit": "kW" , "direction" :  "out" , "icon" : "solar-power-variant" , "iconColor" : -739 , "speed" : 250}, { "id" : 3, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "wind-turbine" , "iconColor" : 10 , "speed" : 0}, { "id" : 4, "value": 903.2, "unit": "kW" , "direction" :  "out" , "icon" : "shape" , "iconColor" : 10 , "speed" : 3}, { "id" : 5, "value": 376.2, "unit": "kW" , "direction" :  "out" , "icon" : "transmission-tower" , "iconColor" : 10 , "speed" : -2}, { "id" : 6, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "car" , "iconColor" : 0 , "speed" : 3}]
                            10.1.2023, 10:04:16.591	[info ]: javascript.0 (361) script.js.NSPanels.PowerCard: [{ "id" : 0, "value": "", "unit": "" , "icon" : "home" , "iconColor" : 0}, { "id" : 1, "value": 3, "unit": "kW" , "direction" :  "out" , "icon" : "battery-charging-60" , "iconColor" : 10 , "speed" : 3}, { "id" : 2, "value": 524, "unit": "kW" , "direction" :  "out" , "icon" : "solar-power-variant" , "iconColor" : -739 , "speed" : 250}, { "id" : 3, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "wind-turbine" , "iconColor" : 10 , "speed" : 0}, { "id" : 4, "value": 903.2, "unit": "kW" , "direction" :  "out" , "icon" : "shape" , "iconColor" : 10 , "speed" : 3}, { "id" : 5, "value": 376.2, "unit": "kW" , "direction" :  "out" , "icon" : "transmission-tower" , "iconColor" : 10 , "speed" : -2}, { "id" : 6, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "car" , "iconColor" : 0 , "speed" : 3}]
                            
                            ArmilarA Offline
                            ArmilarA Offline
                            Armilar
                            Most Active Forum Testing
                            wrote on last edited by
                            #1633

                            @carlos

                            nicht das Log, sondern das was dein Blockly in den Datenpunkt für das Panel schreibt. Möchte mal sehen, ob da noch Fehler sind.

                            Installationsanleitung, Tipps, Alias-Definitionen, FAQ für das Sonoff NSPanel mit lovelace UI unter ioBroker
                            https://github.com/joBr99/nspanel-lovelace-ui/wiki

                            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                            C 1 Reply Last reply
                            0
                            • ArmilarA Armilar

                              @carlos

                              nicht das Log, sondern das was dein Blockly in den Datenpunkt für das Panel schreibt. Möchte mal sehen, ob da noch Fehler sind.

                              C Offline
                              C Offline
                              carlos
                              wrote on last edited by
                              #1634

                              @armilar

                              [{ "id" : 0, "value": "", "unit": "" , "icon" : "home" , "iconColor" : 0}, { "id" : 1, "value": 3, "unit": "kW" , "direction" :  "out" , "icon" : "battery-charging-60" , "iconColor" : 10 , "speed" : 3}, { "id" : 2, "value": 593, "unit": "kW" , "direction" :  "out" , "icon" : "solar-power-variant" , "iconColor" : -837 , "speed" : 282}, { "id" : 3, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "wind-turbine" , "iconColor" : 10 , "speed" : 0}, { "id" : 4, "value": 873.3, "unit": "kW" , "direction" :  "out" , "icon" : "shape" , "iconColor" : 10 , "speed" : 3}, { "id" : 5, "value": 277.3, "unit": "kW" , "direction" :  "out" , "icon" : "transmission-tower" , "iconColor" : 10 , "speed" : -2}, { "id" : 6, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "car" , "iconColor" : 0 , "speed" : 3}]
                              
                              ArmilarA D 2 Replies Last reply
                              0
                              • C carlos

                                @armilar

                                [{ "id" : 0, "value": "", "unit": "" , "icon" : "home" , "iconColor" : 0}, { "id" : 1, "value": 3, "unit": "kW" , "direction" :  "out" , "icon" : "battery-charging-60" , "iconColor" : 10 , "speed" : 3}, { "id" : 2, "value": 593, "unit": "kW" , "direction" :  "out" , "icon" : "solar-power-variant" , "iconColor" : -837 , "speed" : 282}, { "id" : 3, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "wind-turbine" , "iconColor" : 10 , "speed" : 0}, { "id" : 4, "value": 873.3, "unit": "kW" , "direction" :  "out" , "icon" : "shape" , "iconColor" : 10 , "speed" : 3}, { "id" : 5, "value": 277.3, "unit": "kW" , "direction" :  "out" , "icon" : "transmission-tower" , "iconColor" : 10 , "speed" : -2}, { "id" : 6, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "car" , "iconColor" : 0 , "speed" : 3}]
                                
                                ArmilarA Offline
                                ArmilarA Offline
                                Armilar
                                Most Active Forum Testing
                                wrote on last edited by Armilar
                                #1635

                                @carlos

                                Sieht bei mir so aus, wenn ich 2 Werte verändere:

                                c5f6f492-1a73-4a91-9bef-cf41241a5758-image.png

                                In der id: 2 steht für die Icon Farbe eine -837. Farben sind von 0-10 erlaubt. Auch der Speed (Gibt an, mit welcher Geschwindigkeit, der Slider sich bewegt; Bei negativen Vorzeichen wird die Richtung gedreht) ist mit 282 zu hoch.

                                {
                                    "id": 2,
                                    "value": 593,
                                    "unit": "kW",
                                    "direction": "out",
                                    "icon": "solar-power-variant",
                                    "iconColor": -837,
                                    "speed": 282
                                  },
                                

                                Wenn die Bilanz irgendwann stimmen soll, solltest du für den Anfang die Umrechnung so vornehmen, dass nicht W und kW im gleichen Diagramm sind

                                Installationsanleitung, Tipps, Alias-Definitionen, FAQ für das Sonoff NSPanel mit lovelace UI unter ioBroker
                                https://github.com/joBr99/nspanel-lovelace-ui/wiki

                                Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                C 1 Reply Last reply
                                1
                                • ArmilarA Armilar

                                  @carlos

                                  Sieht bei mir so aus, wenn ich 2 Werte verändere:

                                  c5f6f492-1a73-4a91-9bef-cf41241a5758-image.png

                                  In der id: 2 steht für die Icon Farbe eine -837. Farben sind von 0-10 erlaubt. Auch der Speed (Gibt an, mit welcher Geschwindigkeit, der Slider sich bewegt; Bei negativen Vorzeichen wird die Richtung gedreht) ist mit 282 zu hoch.

                                  {
                                      "id": 2,
                                      "value": 593,
                                      "unit": "kW",
                                      "direction": "out",
                                      "icon": "solar-power-variant",
                                      "iconColor": -837,
                                      "speed": 282
                                    },
                                  

                                  Wenn die Bilanz irgendwann stimmen soll, solltest du für den Anfang die Umrechnung so vornehmen, dass nicht W und kW im gleichen Diagramm sind

                                  C Offline
                                  C Offline
                                  carlos
                                  wrote on last edited by
                                  #1636

                                  @armilar
                                  Ok, dann stimmt wohl was mit dem blockly nicht.
                                  Ich mach mich mal auf die Suche.

                                  ArmilarA 1 Reply Last reply
                                  0
                                  • C carlos

                                    @armilar

                                    [{ "id" : 0, "value": "", "unit": "" , "icon" : "home" , "iconColor" : 0}, { "id" : 1, "value": 3, "unit": "kW" , "direction" :  "out" , "icon" : "battery-charging-60" , "iconColor" : 10 , "speed" : 3}, { "id" : 2, "value": 593, "unit": "kW" , "direction" :  "out" , "icon" : "solar-power-variant" , "iconColor" : -837 , "speed" : 282}, { "id" : 3, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "wind-turbine" , "iconColor" : 10 , "speed" : 0}, { "id" : 4, "value": 873.3, "unit": "kW" , "direction" :  "out" , "icon" : "shape" , "iconColor" : 10 , "speed" : 3}, { "id" : 5, "value": 277.3, "unit": "kW" , "direction" :  "out" , "icon" : "transmission-tower" , "iconColor" : 10 , "speed" : -2}, { "id" : 6, "value": 0, "unit": "kW" , "direction" :  "out" , "icon" : "car" , "iconColor" : 0 , "speed" : 3}]
                                    
                                    D Offline
                                    D Offline
                                    danny_v1
                                    wrote on last edited by
                                    #1637

                                    @Armilar

                                    Hi, hier kommt man ja kaum noch nach mit updaten, so schnell wie ihr das ganze Projekt weiter entwickelt, echt top eure Arbeit und das ganze Projekt!!! Da braucht man ja bald keine andere Visu mehr! 🙂

                                    Besteht die Möglichkeit das Skript in zwei Skripte aufzuteilen, einem in dem das ganze individuelle Zeugs, also die Seiten und alles drin sind und der anderen Teil aus dem was von euch weiter entwickelt wird. Das macht das ganze updaten für viele sicher einfacher und spart auch viele Fragen hier, die sich immer mal wieder stellen und zum Teil sehr ähnlich sind.

                                    Und eine zweite Frage: besteht die Möglichkeit Parameter wie zB die Namen, Icon oder Color der Items variabel also per Datenpunkt zu übergeben?

                                    ArmilarA 1 Reply Last reply
                                    0
                                    • D danny_v1

                                      @Armilar

                                      Hi, hier kommt man ja kaum noch nach mit updaten, so schnell wie ihr das ganze Projekt weiter entwickelt, echt top eure Arbeit und das ganze Projekt!!! Da braucht man ja bald keine andere Visu mehr! 🙂

                                      Besteht die Möglichkeit das Skript in zwei Skripte aufzuteilen, einem in dem das ganze individuelle Zeugs, also die Seiten und alles drin sind und der anderen Teil aus dem was von euch weiter entwickelt wird. Das macht das ganze updaten für viele sicher einfacher und spart auch viele Fragen hier, die sich immer mal wieder stellen und zum Teil sehr ähnlich sind.

                                      Und eine zweite Frage: besteht die Möglichkeit Parameter wie zB die Namen, Icon oder Color der Items variabel also per Datenpunkt zu übergeben?

                                      ArmilarA Offline
                                      ArmilarA Offline
                                      Armilar
                                      Most Active Forum Testing
                                      wrote on last edited by Armilar
                                      #1638

                                      @danny_v1

                                      Besteht die Möglichkeit das Skript in zwei Skripte aufzuteilen, einem in dem das ganze individuelle Zeugs, also die Seiten und alles drin sind und der anderen Teil aus dem was von euch weiter entwickelt wird. Das macht das ganze updaten für viele sicher einfacher und spart auch viele Fragen hier, die sich immer mal wieder stellen und zum Teil sehr ähnlich sind.

                                      War damit angefangen und habe es sein lassen nachdem ich gesehen habe, dass der Aufwand und das Verständnis für ein Update zu Umfangreich für den Enduser wird. Mit anderen Worten: Es wird danach nicht besser sondern schlimmer.

                                      Grund: Es gibt keine elegante Lösung, die Konstanten und Variablen sauber zwischen den Scripten zu tauschen, ohne individuelle und exorbitante Anpassungen durch jeden einzelnen User zu machen. Das macht es dann auch nicht mehr supportfähig... Vielleicht denke ich zu kompliziert und die Lösung ist einfach. Habe aber keine gefunden.
                                      Ich dachte auch daran, ein globales Script zu nutzen. Da sich aber alle globalen Scripte vor das TS-Script setzten, lässt sich das nur mit absoluter Eindeutigkeit der Variablennamen lösen. Wer wird das garantieren können, ohne copy/paste eine absolute Eindeutigkeit für n-Panel zu erzeugen.
                                      Mein Fazit: Es wird eher schlechter als besser bei Auslagerung der Variablen...

                                      Und eine zweite Frage: besteht die Möglichkeit Parameter wie zB die Namen, Icon oder Color der Items variabel also per Datenpunkt zu übergeben?

                                      Du würdest die ebenfalls als z.B. JSON importieren wollen? Könnte man ggfs machen, wenn der ALIAS zur "id" einen weiteren DP zu einem validen Ziel erhält. Ähnlich der cardPower. Macht es für die meisten User denke ich auch nicht viel einfacher - aber möglich. Könnte aber auch als Alternative einfließen.

                                      Aber ich finde es faktisch auch nicht wirklich schlimm mit einem Script je Panel zu arbeiten. Der unterer Teil sollte eh nicht angefasst werden müssen und ist bei Copy/Paste innerhalb kürzester Zeit bei einem normalen Releasewechsel ohne "Breaking Changes im oberen Bereich") schnell ausgetauscht.

                                      Installationsanleitung, Tipps, Alias-Definitionen, FAQ für das Sonoff NSPanel mit lovelace UI unter ioBroker
                                      https://github.com/joBr99/nspanel-lovelace-ui/wiki

                                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                      D 1 Reply Last reply
                                      1
                                      • C carlos

                                        @armilar
                                        Ok, dann stimmt wohl was mit dem blockly nicht.
                                        Ich mach mich mal auf die Suche.

                                        ArmilarA Offline
                                        ArmilarA Offline
                                        Armilar
                                        Most Active Forum Testing
                                        wrote on last edited by Armilar
                                        #1639

                                        @carlos

                                        Falls dir das zu komplex mit der Schleife ist, kannst du die Blöcke id 1-6 auch untereinander setzen:

                                        8e055e65-2119-4b80-b645-878d94b7e268-image.png

                                        und ohne Listen arbeiten. Dann kannst du da auch Datenpunkte einsetzten.

                                        Wichtig ist nur, dass das JSON (und das ist im Prinzip ja auch nur Text) korrekt erzeugt wird.

                                        Zwischen den Blöcken müsste dann nur noch ein zusätzliches Komma gesetzt werden "},"

                                        Installationsanleitung, Tipps, Alias-Definitionen, FAQ für das Sonoff NSPanel mit lovelace UI unter ioBroker
                                        https://github.com/joBr99/nspanel-lovelace-ui/wiki

                                        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                        C 1 Reply Last reply
                                        0
                                        • ArmilarA Armilar

                                          @carlos

                                          Falls dir das zu komplex mit der Schleife ist, kannst du die Blöcke id 1-6 auch untereinander setzen:

                                          8e055e65-2119-4b80-b645-878d94b7e268-image.png

                                          und ohne Listen arbeiten. Dann kannst du da auch Datenpunkte einsetzten.

                                          Wichtig ist nur, dass das JSON (und das ist im Prinzip ja auch nur Text) korrekt erzeugt wird.

                                          Zwischen den Blöcken müsste dann nur noch ein zusätzliches Komma gesetzt werden "},"

                                          C Offline
                                          C Offline
                                          carlos
                                          wrote on last edited by
                                          #1640

                                          @armilar
                                          habe jetzt einfachbeim setzen der dpvalues durch 1000 dividiert um kW zu bekommen.
                                          82367177-f9a8-4d0f-a5cd-362e013e1468-image.png
                                          So siehts gut aus.
                                          Danke dir, jetzt geht auch blockly etwas besser.👍

                                          ArmilarA 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          517

                                          Online

                                          32.4k

                                          Users

                                          81.4k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe