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.0k

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

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

SONOFF NSPanel mit Lovelace UI

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.
  • D Offline
    D Offline
    danny_v1
    wrote on last edited by danny_v1
    #3095

    So kleines Update zum WLAN Problem der zwei Panels, falls es jemanden interessiert.

    Das Problem war viel einfacher als gedacht. Ist halt doof wenn man sein WLAN nicht umbenennt und sich die Nachbarin den gleichen Router zulegt und den gleichen Fehler macht! 🙂

    Und es ist schon ein ganzes Stück Arbeit alle Komponenten ins "neue" WLAN zu bekommen. 😞

    Also lieber gleich nach dem Kauf umbenennen!!!

    1 Reply Last reply
    1
    • L Offline
      L Offline
      L4rs
      wrote on last edited by
      #3096

      Moin,

      die Frage ist vielleicht ein bisschen off-topic, aber mir gehen so langsam die Ideen aus. Ich habe von einem Bekannten noch ein weiteres NSPanel geschenkt bekommen, weil er damit nicht klar kommt. Allerdings hat er wohl die Seiten "direkt auf den Display Controller geflasht", wohl direkt aus dem nextion Editor.
      IMG_3330.jpg IMG_3331.jpg

      Ich habe das Panel jetzt noch mal neu mit tasmota geflashed und auch den Berry Driver und die Nextion Firmware neu eingespielt - allerdings ohne Erfolg, die Seiten werden immer noch angezeigt.

      Die Console liefert zum flashen nur

      09:22:58.921 CMD: FlashNextion http://nspanel.pky.eu/lui-release.tft
      09:22:58.933 MQT: SmartHome/NSPanel_E7DDC4/stat/RESULT = {"FlashNextion":"Done"}
      09:22:58.970 FLH: host: nspanel.pky.eu, port: 80, get: /lui-release.tft
      

      Laut Datenpunkt (0_userdata) ist die DisplayFirmware aktuell 0/v3.3.1 - ich hätte nach dem FlashNextion allerdings die 50/v4.0.5 erwartet.

      Hat jemand noch eine Idee, wie ich das Panel zurücksetzen kann bzw. die DisplayFirmware in der richtigen Version geflashed bekomme?

      T 1 Reply Last reply
      0
      • L L4rs

        Moin,

        die Frage ist vielleicht ein bisschen off-topic, aber mir gehen so langsam die Ideen aus. Ich habe von einem Bekannten noch ein weiteres NSPanel geschenkt bekommen, weil er damit nicht klar kommt. Allerdings hat er wohl die Seiten "direkt auf den Display Controller geflasht", wohl direkt aus dem nextion Editor.
        IMG_3330.jpg IMG_3331.jpg

        Ich habe das Panel jetzt noch mal neu mit tasmota geflashed und auch den Berry Driver und die Nextion Firmware neu eingespielt - allerdings ohne Erfolg, die Seiten werden immer noch angezeigt.

        Die Console liefert zum flashen nur

        09:22:58.921 CMD: FlashNextion http://nspanel.pky.eu/lui-release.tft
        09:22:58.933 MQT: SmartHome/NSPanel_E7DDC4/stat/RESULT = {"FlashNextion":"Done"}
        09:22:58.970 FLH: host: nspanel.pky.eu, port: 80, get: /lui-release.tft
        

        Laut Datenpunkt (0_userdata) ist die DisplayFirmware aktuell 0/v3.3.1 - ich hätte nach dem FlashNextion allerdings die 50/v4.0.5 erwartet.

        Hat jemand noch eine Idee, wie ich das Panel zurücksetzen kann bzw. die DisplayFirmware in der richtigen Version geflashed bekomme?

        T Offline
        T Offline
        TT-Tom
        wrote on last edited by
        #3097

        @l4rs

        FlashNextion http://nspanel.pky.eu/lovelace-ui/github/nspanel-v4.0.5.tft das ist die aktuelle TFT

        Gruß Tom
        https://github.com/tt-tom17
        Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

        NSPanel Script Wiki
        https://github.com/joBr99/nspanel-lovelace-ui/wiki

        NSPanel Adapter Wiki
        https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

        L 1 Reply Last reply
        0
        • D Offline
          D Offline
          danny_v1
          wrote on last edited by
          #3098

          @l4rs Hast du nach dem Tasmota flashen das Dateisystem mal aufgeräumt, also alle Dateien gelöscht?

          1 Reply Last reply
          0
          • T TT-Tom

            @l4rs

            FlashNextion http://nspanel.pky.eu/lovelace-ui/github/nspanel-v4.0.5.tft das ist die aktuelle TFT

            L Offline
            L Offline
            L4rs
            wrote on last edited by
            #3099

            @tt-tom said in SONOFF NSPanel mit Lovelace UI:

            FlashNextion http://nspanel.pky.eu/lovelace-ui/github/nspanel-v4.0.5.tft das ist die aktuelle TFT

            danke Tom, allerdings scheint mein Panel überhaupt kein FlashNextion auszuführen - zumindest steht im DP unter 0_userdata immer noch 0/v3.3.1...

            @danny_v1 said in SONOFF NSPanel mit Lovelace UI:

            @l4rs Hast du nach dem Tasmota flashen das Dateisystem mal aufgeräumt, also alle Dateien gelöscht?

            ja, ich hab das Panel, wie bei den anderen auch so vorbereitet, wie unter https://docs.nspanel.pky.eu/prepare_nspanel/ beschrieben...

            D 1 Reply Last reply
            0
            • L L4rs

              @tt-tom said in SONOFF NSPanel mit Lovelace UI:

              FlashNextion http://nspanel.pky.eu/lovelace-ui/github/nspanel-v4.0.5.tft das ist die aktuelle TFT

              danke Tom, allerdings scheint mein Panel überhaupt kein FlashNextion auszuführen - zumindest steht im DP unter 0_userdata immer noch 0/v3.3.1...

              @danny_v1 said in SONOFF NSPanel mit Lovelace UI:

              @l4rs Hast du nach dem Tasmota flashen das Dateisystem mal aufgeräumt, also alle Dateien gelöscht?

              ja, ich hab das Panel, wie bei den anderen auch so vorbereitet, wie unter https://docs.nspanel.pky.eu/prepare_nspanel/ beschrieben...

              D Offline
              D Offline
              danny_v1
              wrote on last edited by
              #3100

              @l4rs

              Machs mal so
              https://github.com/joBr99/nspanel-lovelace-ui/wiki/iobroker---Basisinstallation#3-berry-treiber-installieren
              und schauen das da auch nur die Dateien drauf sind wie im Bild.

              L 1 Reply Last reply
              0
              • D danny_v1

                @l4rs

                Machs mal so
                https://github.com/joBr99/nspanel-lovelace-ui/wiki/iobroker---Basisinstallation#3-berry-treiber-installieren
                und schauen das da auch nur die Dateien drauf sind wie im Bild.

                L Offline
                L Offline
                L4rs
                wrote on last edited by
                #3101

                @danny_v1
                Ich hab das Dateisystem noch mal aufgeräumt und nochmals ein FlashNextion versucht, allerdings ohne Erfolg. Es werden immer noch die "alten" Seiten angezeigt

                T 1 Reply Last reply
                0
                • L L4rs

                  @danny_v1
                  Ich hab das Dateisystem noch mal aufgeräumt und nochmals ein FlashNextion versucht, allerdings ohne Erfolg. Es werden immer noch die "alten" Seiten angezeigt

                  T Offline
                  T Offline
                  TT-Tom
                  wrote on last edited by
                  #3102

                  @l4rs sagte in SONOFF NSPanel mit Lovelace UI:

                  welche Meldungen bekommst du den in der Konsole, bite hier posten

                  Gruß Tom
                  https://github.com/tt-tom17
                  Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                  NSPanel Script Wiki
                  https://github.com/joBr99/nspanel-lovelace-ui/wiki

                  NSPanel Adapter Wiki
                  https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                  L 1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    danny_v1
                    wrote on last edited by
                    #3103

                    Ich hab mal eine Frage zum Timer Pop-up, das erstellen des alias Datenpunkt Actual klappt bei mir nicht so wie im Wiki angegeben, da es die Rolle timestamp bei mir nicht gibt.

                    1 Reply Last reply
                    0
                    • T TT-Tom

                      @l4rs sagte in SONOFF NSPanel mit Lovelace UI:

                      welche Meldungen bekommst du den in der Konsole, bite hier posten

                      L Offline
                      L Offline
                      L4rs
                      wrote on last edited by
                      #3104

                      @tt-tom Das sind nur drei Zeilen, wie auch schon oben


                      @l4rs said in SONOFF NSPanel mit Lovelace UI:

                      Die Console liefert zum flashen nur
                      09:22:58.921 CMD: FlashNextion http://nspanel.pky.eu/lui-release.tft
                      09:22:58.933 MQT: SmartHome/NSPanel_E7DDC4/stat/RESULT = {"FlashNextion":"Done"}
                      09:22:58.970 FLH: host: nspanel.pky.eu, port: 80, get: /lui-release.tft

                      geschrieben. Hier noch mal zur Verdeutlichung: Flash NSPanel.gif

                      T 1 Reply Last reply
                      0
                      • L L4rs

                        @tt-tom Das sind nur drei Zeilen, wie auch schon oben


                        @l4rs said in SONOFF NSPanel mit Lovelace UI:

                        Die Console liefert zum flashen nur
                        09:22:58.921 CMD: FlashNextion http://nspanel.pky.eu/lui-release.tft
                        09:22:58.933 MQT: SmartHome/NSPanel_E7DDC4/stat/RESULT = {"FlashNextion":"Done"}
                        09:22:58.970 FLH: host: nspanel.pky.eu, port: 80, get: /lui-release.tft

                        geschrieben. Hier noch mal zur Verdeutlichung: Flash NSPanel.gif

                        T Offline
                        T Offline
                        TT-Tom
                        wrote on last edited by
                        #3105

                        @l4rs
                        Da gab es doch mal verschiedenen Varianten mit dem FlashNextion. Liegt hier Irgendwo zwischen den Posts.

                        Gruß Tom
                        https://github.com/tt-tom17
                        Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                        NSPanel Script Wiki
                        https://github.com/joBr99/nspanel-lovelace-ui/wiki

                        NSPanel Adapter Wiki
                        https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                        ArmilarA 1 Reply Last reply
                        0
                        • T TT-Tom

                          @l4rs
                          Da gab es doch mal verschiedenen Varianten mit dem FlashNextion. Liegt hier Irgendwo zwischen den Posts.

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

                          @tt-tom
                          @L4rs

                          https://forum.iobroker.net/post/960535 ich denke ihr meint diesen Post

                          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.

                          L 1 Reply Last reply
                          0
                          • ArmilarA Armilar

                            @tt-tom
                            @L4rs

                            https://forum.iobroker.net/post/960535 ich denke ihr meint diesen Post

                            L Offline
                            L Offline
                            L4rs
                            wrote on last edited by
                            #3107

                            @armilar , @TT-Tom Ah, das werde ich mal probieren - wird aber leider erst nächste Woche was. Dummerweise hatte ich meiner Frau ein langes Pfings-WE versprochen. 🙄

                            AtifanA 1 Reply Last reply
                            0
                            • L L4rs

                              @armilar , @TT-Tom Ah, das werde ich mal probieren - wird aber leider erst nächste Woche was. Dummerweise hatte ich meiner Frau ein langes Pfings-WE versprochen. 🙄

                              AtifanA Offline
                              AtifanA Offline
                              Atifan
                              wrote on last edited by Atifan
                              #3108

                              Hi Leute ich suche im Script die Stelle wo man einstellen kann, wie lange eine Custom Seite aktiv sein soll, bzw. die Zeit bis wieder auf die Startseite (Uhrzeit mit Weatherforecast) umgestellt wird. Kann mir einer sagen wo ich das finde?
                              Danke!

                              Edit: hat sich erledigt, habs gefunden -> timeoutScreensaver

                              1 Reply Last reply
                              0
                              • P Offline
                                P Offline
                                PROcrastinator
                                wrote on last edited by
                                #3109

                                @armilar Hallo Armilar, ich bin zurück aber leider nicht weiter. Nachdem mein ganzes Zigbee Netzwerk 3 Wochen ausgefallen war läuft jetzt alles wieder und der Graph hat was zum anzeigen. Leider zeigt er nicht den ganzen Tag an, sondern bringt die Achsen durcheinander:
                                Panel1.jpg
                                Oben der Graph aus Flot wie er sein sollte, unten was das Panel anzeigt. Das Panel "hinkt" etwa 9 Stunden hinterher und die eingestellten Werte der Y-Achse aus dem Skript werden auch ignoriert.
                                Das Skript zum erstellen des Graph:

                                const sourceDP = 'alias.0.NSPanel_1.Sensor_temp_gewächshaus.ACTUAL';
                                const targetDP = '0_userdata.0.NSPanel.1.Charts.Temp_Gewächshaus';
                                const numberOfHoursAgo = 24;   // Period of time in hours which shall be visualized 
                                const xAxisTicksEveryM = 240;   // Time after x axis gets a tick in minutes
                                const xAxisLabelEveryM = 240;  // Time after x axis is labeled in minutes
                                const historyInstance = 'history.0';
                                const date = new Date();
                                const start_date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
                                const end_date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59);
                                 
                                
                                const Debug = false;
                                const maxX = 1420;
                                const limitMeasurements = 35;
                                
                                createState(targetDP, "", {
                                        name: 'SensorGrid',
                                        desc: 'Sensor Values [~<time>:<value>]*',
                                        type: 'string',
                                        role: 'value',
                                });
                                
                                on({id: sourceDP, change: "any"}, async function (obj) {
                                    sendTo(historyInstance, 'getHistory', {
                                        id: sourceDP,
                                            options: {
                                            start:    start_date, 
                                            end:      end_date,
                                            count:     limitMeasurements,
                                            limit:     limitMeasurements,
                                            aggregate: 'average'
                                        }
                                    }, function (result) {
                                        var ticksAndLabels = ""
                                        var coordinates = "";
                                        var cardLChartString = "";
                                
                                        let ticksAndLabelsList = []
                                        var date = new Date();
                                        date.setMinutes(0, 0, 0);
                                        var ts = Math.round(date.getTime() / 1000);
                                        var tsYesterday = ts - (numberOfHoursAgo * 3600);
                                        
                                        for (var x = tsYesterday, i = 0; x < ts; x += (xAxisTicksEveryM * 60), i += xAxisTicksEveryM)
                                        {
                                            if (i % xAxisLabelEveryM) 
                                            {
                                                ticksAndLabelsList.push(i);
                                            } else 
                                            {
                                                var currentDate = new Date(x * 1000);
                                                // Hours part from the timestamp
                                                var hours = "0" + currentDate.getHours();
                                                // Minutes part from the timestamp
                                                var minutes = "0" + currentDate.getMinutes();
                                                // Seconds part from the timestamp
                                                var seconds = "0" + currentDate.getSeconds();
                                                var formattedTime = hours.slice(-2) + ':' + minutes.slice(-2);
                                                ticksAndLabelsList.push(String(i) + "^" + formattedTime);
                                            }
                                        }
                                        ticksAndLabels = ticksAndLabelsList.join("+");        
                                
                                        let list = [];
                                        let offSetTime = Math.round(result.result[0].ts / 1000);
                                        let counter = Math.round((result.result[result.result.length -1 ].ts / 1000 - offSetTime) / maxX);        
                                        for (var i = 0; i <  result.result.length; i++) 
                                        {           
                                            var time = Math.round(((result.result[i].ts / 1000) - offSetTime) / counter);
                                            var value = Math.round(result.result[i].val * 10);
                                            if ((value != null) && (value != 0)){
                                                list.push(time + ":" + value)
                                            }
                                        }
                                
                                        coordinates = list.join("~");
                                        cardLChartString = ticksAndLabels + '~' + coordinates
                                        setState(targetDP, cardLChartString, true);
                                        
                                        if (Debug) console.log(cardLChartString);
                                    });    
                                });
                                

                                Der Datenpunkt der erstellt wird:

                                0^14:00+240^18:00+480^22:00+720^02:00+960^06:00+1200^10:00~843:322~885:310~926:312~967:339~1008:332~1049:338~1090:326~1131:269~1173:248~1214:237~1255:228~1296:219~1337:214~1378:207~1419:203
                                

                                und mein Panel Skript

                                let Temp_Gewaechshaus = <PageChart>
                                {
                                    "type": "cardLChart",
                                    "heading": "Gewächshaus",
                                    "useColor": true,
                                    'items': [<PageItem>{ 
                                                id: 'alias.0.NSPanel_1.Chart_temp_gewaechshaus',
                                                yAxis: 'Temperatur [°C]',
                                                yAxisTicks: [0,50,100,150,200,250,300,350,400],
                                                onColor: Yellow
                                             }]
                                };
                                

                                Ich würde schätzen, dass die zusätzlichen Angaben im Skript (um Zeile 42?) zum Graph die neu eingefügte Zeitachse mit start_date und end_date überschreiben, aus jeden Fall übernimmt er aber auch nicht die Temperaturskala aus dem Panel-Skript.
                                Leider verstehe ich den Code nur minimal.

                                T 1 Reply Last reply
                                0
                                • P PROcrastinator

                                  @armilar Hallo Armilar, ich bin zurück aber leider nicht weiter. Nachdem mein ganzes Zigbee Netzwerk 3 Wochen ausgefallen war läuft jetzt alles wieder und der Graph hat was zum anzeigen. Leider zeigt er nicht den ganzen Tag an, sondern bringt die Achsen durcheinander:
                                  Panel1.jpg
                                  Oben der Graph aus Flot wie er sein sollte, unten was das Panel anzeigt. Das Panel "hinkt" etwa 9 Stunden hinterher und die eingestellten Werte der Y-Achse aus dem Skript werden auch ignoriert.
                                  Das Skript zum erstellen des Graph:

                                  const sourceDP = 'alias.0.NSPanel_1.Sensor_temp_gewächshaus.ACTUAL';
                                  const targetDP = '0_userdata.0.NSPanel.1.Charts.Temp_Gewächshaus';
                                  const numberOfHoursAgo = 24;   // Period of time in hours which shall be visualized 
                                  const xAxisTicksEveryM = 240;   // Time after x axis gets a tick in minutes
                                  const xAxisLabelEveryM = 240;  // Time after x axis is labeled in minutes
                                  const historyInstance = 'history.0';
                                  const date = new Date();
                                  const start_date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
                                  const end_date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59);
                                   
                                  
                                  const Debug = false;
                                  const maxX = 1420;
                                  const limitMeasurements = 35;
                                  
                                  createState(targetDP, "", {
                                          name: 'SensorGrid',
                                          desc: 'Sensor Values [~<time>:<value>]*',
                                          type: 'string',
                                          role: 'value',
                                  });
                                  
                                  on({id: sourceDP, change: "any"}, async function (obj) {
                                      sendTo(historyInstance, 'getHistory', {
                                          id: sourceDP,
                                              options: {
                                              start:    start_date, 
                                              end:      end_date,
                                              count:     limitMeasurements,
                                              limit:     limitMeasurements,
                                              aggregate: 'average'
                                          }
                                      }, function (result) {
                                          var ticksAndLabels = ""
                                          var coordinates = "";
                                          var cardLChartString = "";
                                  
                                          let ticksAndLabelsList = []
                                          var date = new Date();
                                          date.setMinutes(0, 0, 0);
                                          var ts = Math.round(date.getTime() / 1000);
                                          var tsYesterday = ts - (numberOfHoursAgo * 3600);
                                          
                                          for (var x = tsYesterday, i = 0; x < ts; x += (xAxisTicksEveryM * 60), i += xAxisTicksEveryM)
                                          {
                                              if (i % xAxisLabelEveryM) 
                                              {
                                                  ticksAndLabelsList.push(i);
                                              } else 
                                              {
                                                  var currentDate = new Date(x * 1000);
                                                  // Hours part from the timestamp
                                                  var hours = "0" + currentDate.getHours();
                                                  // Minutes part from the timestamp
                                                  var minutes = "0" + currentDate.getMinutes();
                                                  // Seconds part from the timestamp
                                                  var seconds = "0" + currentDate.getSeconds();
                                                  var formattedTime = hours.slice(-2) + ':' + minutes.slice(-2);
                                                  ticksAndLabelsList.push(String(i) + "^" + formattedTime);
                                              }
                                          }
                                          ticksAndLabels = ticksAndLabelsList.join("+");        
                                  
                                          let list = [];
                                          let offSetTime = Math.round(result.result[0].ts / 1000);
                                          let counter = Math.round((result.result[result.result.length -1 ].ts / 1000 - offSetTime) / maxX);        
                                          for (var i = 0; i <  result.result.length; i++) 
                                          {           
                                              var time = Math.round(((result.result[i].ts / 1000) - offSetTime) / counter);
                                              var value = Math.round(result.result[i].val * 10);
                                              if ((value != null) && (value != 0)){
                                                  list.push(time + ":" + value)
                                              }
                                          }
                                  
                                          coordinates = list.join("~");
                                          cardLChartString = ticksAndLabels + '~' + coordinates
                                          setState(targetDP, cardLChartString, true);
                                          
                                          if (Debug) console.log(cardLChartString);
                                      });    
                                  });
                                  

                                  Der Datenpunkt der erstellt wird:

                                  0^14:00+240^18:00+480^22:00+720^02:00+960^06:00+1200^10:00~843:322~885:310~926:312~967:339~1008:332~1049:338~1090:326~1131:269~1173:248~1214:237~1255:228~1296:219~1337:214~1378:207~1419:203
                                  

                                  und mein Panel Skript

                                  let Temp_Gewaechshaus = <PageChart>
                                  {
                                      "type": "cardLChart",
                                      "heading": "Gewächshaus",
                                      "useColor": true,
                                      'items': [<PageItem>{ 
                                                  id: 'alias.0.NSPanel_1.Chart_temp_gewaechshaus',
                                                  yAxis: 'Temperatur [°C]',
                                                  yAxisTicks: [0,50,100,150,200,250,300,350,400],
                                                  onColor: Yellow
                                               }]
                                  };
                                  

                                  Ich würde schätzen, dass die zusätzlichen Angaben im Skript (um Zeile 42?) zum Graph die neu eingefügte Zeitachse mit start_date und end_date überschreiben, aus jeden Fall übernimmt er aber auch nicht die Temperaturskala aus dem Panel-Skript.
                                  Leider verstehe ich den Code nur minimal.

                                  T Offline
                                  T Offline
                                  TT-Tom
                                  wrote on last edited by
                                  #3110

                                  @procrastinator

                                  das Problem ist du liest die Daten aus der Datenbank von 0:00 bis 23:59 aus, die X-achse wird aber von jetzt 24h zurück berechnet. Damit hast du nur um 23:59 den kompletten Graph. Man müsste das Script statisch anpassen. (auf ein Tag )

                                  Gruß Tom
                                  https://github.com/tt-tom17
                                  Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                                  NSPanel Script Wiki
                                  https://github.com/joBr99/nspanel-lovelace-ui/wiki

                                  NSPanel Adapter Wiki
                                  https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                                  P 1 Reply Last reply
                                  0
                                  • D Offline
                                    D Offline
                                    danny_v1
                                    wrote on last edited by
                                    #3111

                                    Hallo, ich wollte noch mal wegen dem Timer Pop-up nachfragen.

                                    Ich habe versucht alles wie im Wiki angegeben an zu legen.

                                    https://github.com/joBr99/nspanel-lovelace-ui/wiki/ioBroker-ALIAS-Definitionen#timer---popuptimer---leveltimer

                                    Für den zu erstellenden Datenpunkt "ACTUAL" soll die Rolle "timestamp" verwendet werden. Die habe ich aber gar nicht zur Auswahl.

                                    Ist das ein Fehler im Wiki, obwohl auf dem Bild ja "timestamp" zu sehen ist, oder woran kann das liegen, dass ich die nicht auswählen kann?

                                    T 1 Reply Last reply
                                    0
                                    • D danny_v1

                                      Hallo, ich wollte noch mal wegen dem Timer Pop-up nachfragen.

                                      Ich habe versucht alles wie im Wiki angegeben an zu legen.

                                      https://github.com/joBr99/nspanel-lovelace-ui/wiki/ioBroker-ALIAS-Definitionen#timer---popuptimer---leveltimer

                                      Für den zu erstellenden Datenpunkt "ACTUAL" soll die Rolle "timestamp" verwendet werden. Die habe ich aber gar nicht zur Auswahl.

                                      Ist das ein Fehler im Wiki, obwohl auf dem Bild ja "timestamp" zu sehen ist, oder woran kann das liegen, dass ich die nicht auswählen kann?

                                      T Offline
                                      T Offline
                                      TT-Tom
                                      wrote on last edited by TT-Tom
                                      #3112

                                      @danny_v1

                                      sorry, habe mir das ganze jetzt noch einmal im Wiki durchgelesen und nachvollzogen. Die Rollen sind bei mir auch nicht vorhanden, werden aber vom Script benötigt.

                                      Ich habe folgendes gemacht. die Beiden Datenpunkte unter 0_userdata angelegt und dann mit dem AliasManager die Alias automatisch erstellen lassen, achte auf den Pfad beim Alias, ggf. anpassen. Dann mit dem AliasManager die Rollen angepasst durch einfaches eintragen der Daten und gespeichert, fertig.

                                      Gruß Tom
                                      https://github.com/tt-tom17
                                      Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                                      NSPanel Script Wiki
                                      https://github.com/joBr99/nspanel-lovelace-ui/wiki

                                      NSPanel Adapter Wiki
                                      https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                                      D 1 Reply Last reply
                                      0
                                      • T TT-Tom

                                        @procrastinator

                                        das Problem ist du liest die Daten aus der Datenbank von 0:00 bis 23:59 aus, die X-achse wird aber von jetzt 24h zurück berechnet. Damit hast du nur um 23:59 den kompletten Graph. Man müsste das Script statisch anpassen. (auf ein Tag )

                                        P Offline
                                        P Offline
                                        PROcrastinator
                                        wrote on last edited by
                                        #3113

                                        @tt-tom Genau sowas dachte ich mir schon. Weiß jemand wie das Skript angepasst werden muss?

                                        T 1 Reply Last reply
                                        0
                                        • P PROcrastinator

                                          @tt-tom Genau sowas dachte ich mir schon. Weiß jemand wie das Skript angepasst werden muss?

                                          T Offline
                                          T Offline
                                          TT-Tom
                                          wrote on last edited by TT-Tom
                                          #3114

                                          @procrastinator

                                          wenn du warten kannst, sehe ich mir das die Tage mal an.

                                          EDIT: du hast mit deinen Script ein Problem:

                                          const date = new Date;
                                          const start_date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
                                          const end_date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59);
                                          

                                          du hast ein konstantes Start- und Enddatum, welches beim Start des Script gesetzt wird und kann dann nicht mehr geändert werden im Script. Bedeutet du liest immer die selben Daten aus der History DB.

                                          Das muss du schon mal anpassen und austauschen.

                                          on({id: sourceDP, change: "any"}, async function (obj) {
                                                          let date = new Date;
                                                          let start_date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
                                                          let end_date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59);
                                                          
                                                      
                                                          sendTo(historyInstance, 'getHistory', {
                                                              id: sourceDP,
                                                                  options: {
                                                                  start:    start_date, 
                                                                  end:      end_date,
                                                                  count:     limitMeasurements,
                                                                  limit:     limitMeasurements,
                                                                  aggregate: 'average'
                                                              }
                                                          }, function (result) {
                                                              var ticksAndLabels = ""
                                                              var coordinates = "";
                                                              var cardLChartString = "";
                                                      
                                                              let ticksAndLabelsList = []
                                                              var ts = Math.round(start_date.getTime() / 1000);
                                                              var tsYesterday = Math.round(end_date.getTime() / 1000);
                                                              
                                                              for (var x = tsYesterday, i = 0; x < ts; x += (xAxisTicksEveryM * 60), i += xAxisTicksEveryM)
                                          

                                          Gruß Tom
                                          https://github.com/tt-tom17
                                          Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                                          NSPanel Script Wiki
                                          https://github.com/joBr99/nspanel-lovelace-ui/wiki

                                          NSPanel Adapter Wiki
                                          https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                                          P 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

                                          390

                                          Online

                                          32.4k

                                          Users

                                          81.3k

                                          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