Skip to content
  • Home
  • 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
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Hardware
  4. SONOFF NSPanel mit Lovelace UI

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.7k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.4k

SONOFF NSPanel mit Lovelace UI

Scheduled Pinned Locked Moved Hardware
lovelace uinspanelsonoff
7.9k Posts 277 Posters 7.0m Views 262 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.
  • T TT-Tom

    @teletapi

    Gib mir die Datenpunkte welche die Farben ändern sollen oder Grenzwerte, die die Farben ändern.

    teletapiT Offline
    teletapiT Offline
    teletapi
    wrote on last edited by teletapi
    #7289

    @tt-tom Danke dir, ich hab als Datenpunkt derzeit: 0_userdata.0.PV.now.Battery_Power als lade/entlade datenpunkt müsste ja auch: modbus.0.holdingRegisters._BatterySOC funktionieren. Als möglichen Alias für Battery_soc hab ich diesen Alias angelegt: alias.0.NSPanel.PV_Anlage.Battery_Soc.SET

    Eigentlich geht es mir nur darum wenn Voll dann grün, beim Laden Rot und wenns möglich wäre fürs entladen gelb.

    Ich habe jetzt auch nochmal ChatGPT gefragt wegen der Variable für das iconColor.
    Da wurde mir das folgende angepasste script erzeugt.

    schedule("* * * * *", function () {
        var powerCardJson = "0_userdata.0.NSPanel.Powercard";
    
        var pwr1Raw = getState("0_userdata.0.PV.now.Battery_Power").val || 0;
        var pwr1 = Math.abs(Math.round(pwr1Raw));  // Betrag für Anzeige
        var pwr2 = Math.round(getState("modbus.0.holdingRegisters._Total_Active_power_(Grid_Meter)").val);
        var pwr3 = "";
        var pwr4 = "";
        var pwr5 = Math.round(getState("sonoff.0.Tasmota Energie LG E320.E320_Power_in").val);
        var pwr6 = 0;
        var pwrHome = Math.round(getState("0_userdata.0.PV.now.Load_Total_Power").val || 0);
    
        var keys = ["id", "value", "unit", "icon", "iconColor", "speed"];
        var helperBase = "0_userdata.0.NSPanel.PowercardHelper";
    
        if (!existsObject(helperBase)) {
            createState(helperBase, null, { type: "channel", common: { name: "PowercardHelper" }, native: {} });
        }
    
        function createStateIfNotExists(id, initialValue = 0) {
            if (!existsState(id)) {
                createState(id, initialValue, {
                    name: "Last Power Wert",
                    role: "value",
                    type: "number",
                    unit: "W",
                    read: true,
                    write: false
                });
            }
        }
    
        createStateIfNotExists(helperBase + ".PWR1_Last");
        createStateIfNotExists(helperBase + ".PWR2_Last");
        createStateIfNotExists(helperBase + ".PWR5_Last");
    
        function getLastValue(id) {
            var s = getState(id);
            return s ? s.val : 0;
        }
    
        function setLastValue(id, val) {
            setState(id, val, true);
        }
    
        function calcSpeed(current, last) {
            if (current > last) return 2;
            else if (current < last) return -2;
            else return 0;
        }
    
        var pwr1Last = getLastValue(helperBase + ".PWR1_Last");
        var pwr2Last = getLastValue(helperBase + ".PWR2_Last");
        var pwr5Last = getLastValue(helperBase + ".PWR5_Last");
    
        var speedPwr1 = calcSpeed(pwr1Raw, pwr1Last);  // Richtung basiert auf Originalwert
        var speedPwr2 = calcSpeed(pwr2, pwr2Last);
        var speedPwr5 = calcSpeed(pwr5, pwr5Last);
    
        setLastValue(helperBase + ".PWR1_Last", pwr1Raw);
        setLastValue(helperBase + ".PWR2_Last", pwr2);
        setLastValue(helperBase + ".PWR5_Last", pwr5);
    
        // Dynamische iconColor für Batterie
        var iconColorBatt;
        if (pwr1Raw > 50) {
            iconColorBatt = 3;  // rot → Laden
        } else if (pwr1Raw < -50) {
            iconColorBatt = 4;  // gelb → Entladen
        } else if (Math.abs(pwr1Raw) <= 50) {
            iconColorBatt = 7;  // grün → Voll
        } else {
            iconColorBatt = 1;  // grau → fallback
        }
    
        var home = [0, pwrHome, "W", "home-lightning-bolt-outline", 0, 0];
    
        // Batterie → ID 1
        var item1 = [1, pwr1, "W", "battery-high", iconColorBatt, speedPwr1];
    
        var item2 = [2, pwr2, "W", "solar-power-variant-outline", 3, speedPwr2];
        var item3 = [3, pwr3, "", "", 0, 0];
        var item4 = [4, pwr4, "", "", 0, 0];
        var item5 = [5, pwr5, "W", "transmission-tower", 10, speedPwr5];
        var item6 = [6, pwr6, "kW", "", 0, 0];
    
        function func(tags, values) {
            return tags.reduce((acc, tag, index) => {
                acc[tag] = values[index];
                return acc;
            }, {});
        }
    
        setState(
            powerCardJson,
            JSON.stringify([
                func(keys, home),
                func(keys, item1),
                func(keys, item2),
                func(keys, item3),
                func(keys, item4),
                func(keys, item5),
                func(keys, item6),
            ])
        );
    });
    
    
    T 1 Reply Last reply
    0
    • teletapiT teletapi

      @tt-tom Danke dir, ich hab als Datenpunkt derzeit: 0_userdata.0.PV.now.Battery_Power als lade/entlade datenpunkt müsste ja auch: modbus.0.holdingRegisters._BatterySOC funktionieren. Als möglichen Alias für Battery_soc hab ich diesen Alias angelegt: alias.0.NSPanel.PV_Anlage.Battery_Soc.SET

      Eigentlich geht es mir nur darum wenn Voll dann grün, beim Laden Rot und wenns möglich wäre fürs entladen gelb.

      Ich habe jetzt auch nochmal ChatGPT gefragt wegen der Variable für das iconColor.
      Da wurde mir das folgende angepasste script erzeugt.

      schedule("* * * * *", function () {
          var powerCardJson = "0_userdata.0.NSPanel.Powercard";
      
          var pwr1Raw = getState("0_userdata.0.PV.now.Battery_Power").val || 0;
          var pwr1 = Math.abs(Math.round(pwr1Raw));  // Betrag für Anzeige
          var pwr2 = Math.round(getState("modbus.0.holdingRegisters._Total_Active_power_(Grid_Meter)").val);
          var pwr3 = "";
          var pwr4 = "";
          var pwr5 = Math.round(getState("sonoff.0.Tasmota Energie LG E320.E320_Power_in").val);
          var pwr6 = 0;
          var pwrHome = Math.round(getState("0_userdata.0.PV.now.Load_Total_Power").val || 0);
      
          var keys = ["id", "value", "unit", "icon", "iconColor", "speed"];
          var helperBase = "0_userdata.0.NSPanel.PowercardHelper";
      
          if (!existsObject(helperBase)) {
              createState(helperBase, null, { type: "channel", common: { name: "PowercardHelper" }, native: {} });
          }
      
          function createStateIfNotExists(id, initialValue = 0) {
              if (!existsState(id)) {
                  createState(id, initialValue, {
                      name: "Last Power Wert",
                      role: "value",
                      type: "number",
                      unit: "W",
                      read: true,
                      write: false
                  });
              }
          }
      
          createStateIfNotExists(helperBase + ".PWR1_Last");
          createStateIfNotExists(helperBase + ".PWR2_Last");
          createStateIfNotExists(helperBase + ".PWR5_Last");
      
          function getLastValue(id) {
              var s = getState(id);
              return s ? s.val : 0;
          }
      
          function setLastValue(id, val) {
              setState(id, val, true);
          }
      
          function calcSpeed(current, last) {
              if (current > last) return 2;
              else if (current < last) return -2;
              else return 0;
          }
      
          var pwr1Last = getLastValue(helperBase + ".PWR1_Last");
          var pwr2Last = getLastValue(helperBase + ".PWR2_Last");
          var pwr5Last = getLastValue(helperBase + ".PWR5_Last");
      
          var speedPwr1 = calcSpeed(pwr1Raw, pwr1Last);  // Richtung basiert auf Originalwert
          var speedPwr2 = calcSpeed(pwr2, pwr2Last);
          var speedPwr5 = calcSpeed(pwr5, pwr5Last);
      
          setLastValue(helperBase + ".PWR1_Last", pwr1Raw);
          setLastValue(helperBase + ".PWR2_Last", pwr2);
          setLastValue(helperBase + ".PWR5_Last", pwr5);
      
          // Dynamische iconColor für Batterie
          var iconColorBatt;
          if (pwr1Raw > 50) {
              iconColorBatt = 3;  // rot → Laden
          } else if (pwr1Raw < -50) {
              iconColorBatt = 4;  // gelb → Entladen
          } else if (Math.abs(pwr1Raw) <= 50) {
              iconColorBatt = 7;  // grün → Voll
          } else {
              iconColorBatt = 1;  // grau → fallback
          }
      
          var home = [0, pwrHome, "W", "home-lightning-bolt-outline", 0, 0];
      
          // Batterie → ID 1
          var item1 = [1, pwr1, "W", "battery-high", iconColorBatt, speedPwr1];
      
          var item2 = [2, pwr2, "W", "solar-power-variant-outline", 3, speedPwr2];
          var item3 = [3, pwr3, "", "", 0, 0];
          var item4 = [4, pwr4, "", "", 0, 0];
          var item5 = [5, pwr5, "W", "transmission-tower", 10, speedPwr5];
          var item6 = [6, pwr6, "kW", "", 0, 0];
      
          function func(tags, values) {
              return tags.reduce((acc, tag, index) => {
                  acc[tag] = values[index];
                  return acc;
              }, {});
          }
      
          setState(
              powerCardJson,
              JSON.stringify([
                  func(keys, home),
                  func(keys, item1),
                  func(keys, item2),
                  func(keys, item3),
                  func(keys, item4),
                  func(keys, item5),
                  func(keys, item6),
              ])
          );
      });
      
      
      T Offline
      T Offline
      TT-Tom
      wrote on last edited by
      #7290

      @teletapi
      Ja sieht gut aus, so ähnlich hätte ich es auch gemacht.

      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

      teletapiT 1 Reply Last reply
      0
      • T TT-Tom

        @teletapi
        Ja sieht gut aus, so ähnlich hätte ich es auch gemacht.

        teletapiT Offline
        teletapiT Offline
        teletapi
        wrote on last edited by
        #7291

        @tt-tom Danke dir dann werde ich das mal so testen

        1 Reply Last reply
        0
        • ArmilarA Armilar

          @arteck

          Text abkürzen würde mir aktuell nur einfallen...

          Kurzer Blick auf das Layout der cardGrid2:

          60a654f8-7f30-4bc2-b4da-0aee5d7f77f1-image.png

          8 Entitäten, wobei bereits der Bezeichner in der kleinsten Schriftgröße ( Fontsize 0 ) ist. Jetzt könnte man denken, da wäre noch Platz - aber mit dem Zeilenumbruch landest du mit dem Text im nächsten Icon...

          arteckA Offline
          arteckA Offline
          arteck
          Developer Most Active
          wrote on last edited by
          #7292

          @armilar sagte in SONOFF NSPanel mit Lovelace UI:

          Text abkürzen würde mir aktuell nur einfallen...

          das hab ich schon ... sieht nur bähh aus

          zigbee hab ich, zwave auch, nuc's genauso und HA auch

          1 Reply Last reply
          0
          • MichaelFM MichaelF

            @armilar Danke, das war es.

            Grüße

            MichaelFM Offline
            MichaelFM Offline
            MichaelF
            wrote on last edited by MichaelF
            #7293

            @michaelf sagte in SONOFF NSPanel mit Lovelace UI:

            @armilar Danke, das war es.

            Grüße

            Hi, ein kleines Problem gibt es leider noch das Display schaltet sich nicht mehr nach der eingestellten Nachtzeit ab.

            Dimmer Nacht steht auf 0

            Gibt es vielleicht ein Tipp wo ich schauen muss ?

            Grade noch entdeckt:

            web.0
            2025-06-26 15:03:44.677	error	Error on "subscribeForeignStates": Alias alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL has no target
            
            web.0
            2025-06-26 15:03:44.676	warn	Alias alias.0.NSPanel.1.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL has no target 5
            
            web.0
            2025-06-26 15:03:44.676	warn	Alias alias.0.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL has no target 5
            
            web.0
            2025-06-26 15:03:44.675	warn	Alias alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL has no target 5
            
            web.0
            2025-06-26 15:03:42.347	info	==> Connected system.user.admin from ::ffff:192.168.178.252
            
            web.0
            2025-06-26 15:03:39.697	info	<== Disconnect system.user.admin from ::ffff:192.168.178.252 vis.0
            
            web.0
            2025-06-26 15:02:52.997	error	Error on "subscribeForeignStates": Alias alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL has no target
            
            web.0
            2025-06-26 15:02:52.996	warn	Alias alias.0.NSPanel.1.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL has no target 5
            
            web.0
            2025-06-26 15:02:52.996	warn	Alias alias.0.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL has no target 5
            
            web.0
            2025-06-26 15:02:52.995	warn	Alias alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL has no target 5
            

            Allerdings Funktioniert das Dimmen am Tag, meine ich zumindest.

            Grüße

            arteckA ArmilarA 2 Replies Last reply
            0
            • MichaelFM MichaelF

              @michaelf sagte in SONOFF NSPanel mit Lovelace UI:

              @armilar Danke, das war es.

              Grüße

              Hi, ein kleines Problem gibt es leider noch das Display schaltet sich nicht mehr nach der eingestellten Nachtzeit ab.

              Dimmer Nacht steht auf 0

              Gibt es vielleicht ein Tipp wo ich schauen muss ?

              Grade noch entdeckt:

              web.0
              2025-06-26 15:03:44.677	error	Error on "subscribeForeignStates": Alias alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL has no target
              
              web.0
              2025-06-26 15:03:44.676	warn	Alias alias.0.NSPanel.1.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL has no target 5
              
              web.0
              2025-06-26 15:03:44.676	warn	Alias alias.0.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL has no target 5
              
              web.0
              2025-06-26 15:03:44.675	warn	Alias alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL has no target 5
              
              web.0
              2025-06-26 15:03:42.347	info	==> Connected system.user.admin from ::ffff:192.168.178.252
              
              web.0
              2025-06-26 15:03:39.697	info	<== Disconnect system.user.admin from ::ffff:192.168.178.252 vis.0
              
              web.0
              2025-06-26 15:02:52.997	error	Error on "subscribeForeignStates": Alias alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL has no target
              
              web.0
              2025-06-26 15:02:52.996	warn	Alias alias.0.NSPanel.1.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL has no target 5
              
              web.0
              2025-06-26 15:02:52.996	warn	Alias alias.0.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL has no target 5
              
              web.0
              2025-06-26 15:02:52.995	warn	Alias alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL has no target 5
              

              Allerdings Funktioniert das Dimmen am Tag, meine ich zumindest.

              Grüße

              arteckA Offline
              arteckA Offline
              arteck
              Developer Most Active
              wrote on last edited by
              #7294

              @michaelf sagte in SONOFF NSPanel mit Lovelace UI:

              alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL

              da ist das problem

              alias.0.alias.0.
              

              ist falsch

              zigbee hab ich, zwave auch, nuc's genauso und HA auch

              MichaelFM 1 Reply Last reply
              0
              • arteckA arteck

                @michaelf sagte in SONOFF NSPanel mit Lovelace UI:

                alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL

                da ist das problem

                alias.0.alias.0.
                

                ist falsch

                MichaelFM Offline
                MichaelFM Offline
                MichaelF
                wrote on last edited by MichaelF
                #7295

                @arteck Ist das Falsch im Skript oder im Objekt ?

                Update, habe es im Objektbaum gefunden und gelöscht. Aber für das nicht abschalten war das nicht verantwortlich, oder ?

                Grüße und Danke

                arteckA 1 Reply Last reply
                0
                • MichaelFM MichaelF

                  @arteck Ist das Falsch im Skript oder im Objekt ?

                  Update, habe es im Objektbaum gefunden und gelöscht. Aber für das nicht abschalten war das nicht verantwortlich, oder ?

                  Grüße und Danke

                  arteckA Offline
                  arteckA Offline
                  arteck
                  Developer Most Active
                  wrote on last edited by
                  #7296

                  @michaelf da ist noch ein fehler

                  NSPanel..Dimmode
                  

                  da ist ein punkt zu viel

                  zigbee hab ich, zwave auch, nuc's genauso und HA auch

                  MichaelFM 1 Reply Last reply
                  0
                  • arteckA arteck

                    @michaelf da ist noch ein fehler

                    NSPanel..Dimmode
                    

                    da ist ein punkt zu viel

                    MichaelFM Offline
                    MichaelFM Offline
                    MichaelF
                    wrote on last edited by
                    #7297

                    @arteck In den Objekten nicht zu finden?

                    1 Reply Last reply
                    0
                    • MichaelFM MichaelF

                      @michaelf sagte in SONOFF NSPanel mit Lovelace UI:

                      @armilar Danke, das war es.

                      Grüße

                      Hi, ein kleines Problem gibt es leider noch das Display schaltet sich nicht mehr nach der eingestellten Nachtzeit ab.

                      Dimmer Nacht steht auf 0

                      Gibt es vielleicht ein Tipp wo ich schauen muss ?

                      Grade noch entdeckt:

                      web.0
                      2025-06-26 15:03:44.677	error	Error on "subscribeForeignStates": Alias alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL has no target
                      
                      web.0
                      2025-06-26 15:03:44.676	warn	Alias alias.0.NSPanel.1.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL has no target 5
                      
                      web.0
                      2025-06-26 15:03:44.676	warn	Alias alias.0.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL has no target 5
                      
                      web.0
                      2025-06-26 15:03:44.675	warn	Alias alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL has no target 5
                      
                      web.0
                      2025-06-26 15:03:42.347	info	==> Connected system.user.admin from ::ffff:192.168.178.252
                      
                      web.0
                      2025-06-26 15:03:39.697	info	<== Disconnect system.user.admin from ::ffff:192.168.178.252 vis.0
                      
                      web.0
                      2025-06-26 15:02:52.997	error	Error on "subscribeForeignStates": Alias alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL has no target
                      
                      web.0
                      2025-06-26 15:02:52.996	warn	Alias alias.0.NSPanel.1.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL has no target 5
                      
                      web.0
                      2025-06-26 15:02:52.996	warn	Alias alias.0.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL has no target 5
                      
                      web.0
                      2025-06-26 15:02:52.995	warn	Alias alias.0.alias.0.NSPanel..Dimmode.brightnessDay.ACTUAL has no target 5
                      

                      Allerdings Funktioniert das Dimmen am Tag, meine ich zumindest.

                      Grüße

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

                      @michaelf

                      wieso "web.0" ???

                      javascript.0 würde ich im Zusammenhang mit dem Script ja noch verstehen... Ich denke da musst du an einer völlig anderen Stelle suchen...

                      Der zu visualisierende Alias wäre dann sicherlich

                      alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL
                      

                      Sieht für mich aus, als wäre in vis.0 ein Fehler der diese Meldung wirft

                      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.

                      MichaelFM 1 Reply Last reply
                      0
                      • ArmilarA Armilar

                        @michaelf

                        wieso "web.0" ???

                        javascript.0 würde ich im Zusammenhang mit dem Script ja noch verstehen... Ich denke da musst du an einer völlig anderen Stelle suchen...

                        Der zu visualisierende Alias wäre dann sicherlich

                        alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL
                        

                        Sieht für mich aus, als wäre in vis.0 ein Fehler der diese Meldung wirft

                        MichaelFM Offline
                        MichaelFM Offline
                        MichaelF
                        wrote on last edited by MichaelF
                        #7299

                        @armilar
                        was ich grade gefunden habe:

                        {
                          "common": {
                            "name": "alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL",
                            "desc": "Manuell erzeugt",
                            "role": "state",
                            "type": "number",
                            "read": true,
                            "write": true,
                            "def": 0
                          },
                          "type": "state",
                          "native": {},
                          "from": "system.adapter.admin.0",
                          "user": "system.user.admin",
                          "ts": 1750409085470,
                          "_id": "alias.0.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL",
                          "acl": {
                            "object": 1636,
                            "state": 1636,
                            "owner": "system.user.admin",
                            "ownerGroup": "system.group.administrator"
                          }
                        }
                        

                        Wie passiert das denn ?

                        Kann ich das einfach löschen ?

                        ArmilarA 1 Reply Last reply
                        0
                        • MichaelFM MichaelF

                          @armilar
                          was ich grade gefunden habe:

                          {
                            "common": {
                              "name": "alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL",
                              "desc": "Manuell erzeugt",
                              "role": "state",
                              "type": "number",
                              "read": true,
                              "write": true,
                              "def": 0
                            },
                            "type": "state",
                            "native": {},
                            "from": "system.adapter.admin.0",
                            "user": "system.user.admin",
                            "ts": 1750409085470,
                            "_id": "alias.0.alias.0.NSPanel.1.Dimmode.brightnessDay.ACTUAL",
                            "acl": {
                              "object": 1636,
                              "state": 1636,
                              "owner": "system.user.admin",
                              "ownerGroup": "system.group.administrator"
                            }
                          }
                          

                          Wie passiert das denn ?

                          Kann ich das einfach löschen ?

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

                          @michaelf

                          So eine doppelte alias.0 - Verkettung habe ich auch noch nie gesehen?

                          Irgendwann mal den Alias-Path im Script geändert?

                          Du kannst jederzeit die erstellten Verzeichnisse eines NSPanel unter 0_userdata.NSPanel.X und alias.0.NSPanel.X löschen.

                          Mit Scriptstart werden die wieder sauber erzeugt... Bis auf die paar individuellen Anpassungen...

                          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.

                          MichaelFM 2 Replies Last reply
                          0
                          • ArmilarA Armilar

                            @michaelf

                            So eine doppelte alias.0 - Verkettung habe ich auch noch nie gesehen?

                            Irgendwann mal den Alias-Path im Script geändert?

                            Du kannst jederzeit die erstellten Verzeichnisse eines NSPanel unter 0_userdata.NSPanel.X und alias.0.NSPanel.X löschen.

                            Mit Scriptstart werden die wieder sauber erzeugt... Bis auf die paar individuellen Anpassungen...

                            MichaelFM Offline
                            MichaelFM Offline
                            MichaelF
                            wrote on last edited by MichaelF
                            #7301

                            @armilar Habe ich grade gemacht Danke!

                            Alias-Path habe ich so wissentlich nicht geändert

                            Aber mit dem abschalten(Display) bei Nacht hat dies doch eigentlich auch nichts zu tun, oder ?

                            ArmilarA 1 Reply Last reply
                            0
                            • MichaelFM MichaelF

                              @armilar Habe ich grade gemacht Danke!

                              Alias-Path habe ich so wissentlich nicht geändert

                              Aber mit dem abschalten(Display) bei Nacht hat dies doch eigentlich auch nichts zu tun, oder ?

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

                              @michaelf

                              Aber mit dem abschalten(Display) bei Nacht hat dies doch eigentlich auch nichts zu tun, oder ?

                              Nein, da bedient sich das Script seiner eigenen Datenpunkte unter 0_userdata

                              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.

                              ArmilarA 1 Reply Last reply
                              0
                              • T Offline
                                T Offline
                                timbo
                                wrote on last edited by
                                #7303

                                Moin,

                                ich habe letztens den JavaScript Adapter auf die 9.0.6 geupdated und nun wollen meine beiden Panels nicht mehr. Im Log steht folgendes:

                                script.js.common.NSPanel_Windfang: TypeScript compilation failed: await setStateAsync(NSPanel_Path + 'PageNavi', <iobJS.State>{ val: "{ pagetype: 'page', pageId: 0 }", ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_Dimmode_brightnessDay', <iobJS.State>{ val: 8, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_Dimmode_hourDay', <iobJS.State>{ val: 7, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_Dimmode_brightnessNight', <iobJS.State>{ val: 1, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_Dimmode_hourNight', <iobJS.State>{ val: 22, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(meanPower, <iobJS.State>{ val: meanConsumption, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(screensaverNotifyHeading, <iobJS.State>{ val: '', ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(screensaverNotifyText, <iobJS.State>{ val: '', ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(obj.id, <iobJS.State>{ val: obj.state.val, ack: true }); // ack new value ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_locales_json', <iobJS.State>{ val: JSON.stringify(response.data), ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_locales_service_json', <iobJS.State>{ val: JSON.stringify(response.data), ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota_Firmware.currentVersion', <iobJS.State>{ val: getState(NSPanel_Path + 'Tasmota_Firmware.onlineVersion').val, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Berry_Driver.currentVersion', <iobJS.State>{ val: getState(NSPanel_Path + 'Berry_Driver.onlineVersion').val, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Display_Firmware.currentVersion', <iobJS.State>{ val: getState(NSPanel_Path + 'Display_Firmware.onlineVersion').val, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyHeading, <iobJS.State>{ val: Headline, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyHeadingColor, <iobJS.State>{ val: HeadlineColor, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyButton1Text, <iobJS.State>{ val: Button1, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyButton1TextColor, <iobJS.State>{ val: Button1Color, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyButton2Text, <iobJS.State>{ val: Button2, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyButton2TextColor, <iobJS.State>{ val: Button2Color, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifySleepTimeout, <iobJS.State>{ val: Timeout, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyInternalName, <iobJS.State>{ val: InternalName, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyLayout, <iobJS.State>{ val: Layout, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyText, <iobJS.State>{ val: [formatDate(getDateObject(new Date().getTime()), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_ipAddress', <iobJS.State>{ val: get_current_tasmota_ip_address(), ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota_Firmware.onlineVersion', <iobJS.State>{ val: TasmotaVersionOnline, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Berry_Driver.currentVersion', <iobJS.State>{ val: JSON.parse(JSON.stringify(response.data)).nlui_driver_version, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota_Firmware.currentVersion', <iobJS.State>{ val: tasmoVersion, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Uptime', <iobJS.State>{ val: Tasmota_JSON.StatusPRM.Uptime, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Version', <iobJS.State>{ val: Tasmota_JSON.StatusFWR.Version, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Hardware', <iobJS.State>{ val: TasmotaHardware[0] + '\r\n' + TasmotaHardware[1], ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.AP', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.AP, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.SSId', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.SSId, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.BSSId', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.BSSId, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.Channel', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.Channel, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.Mode', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.Mode, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.RSSI', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.RSSI, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.Signal', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.Signal, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Product', <iobJS.State>{ val: 'SONOFF NSPanel', ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Berry_Driver.onlineVersion', <iobJS.State>{ val: BerryDriverVersionOnline, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'TFT_Firmware.onlineVersion', <iobJS.State>{ val: NSPanelVersion, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Display_Firmware.onlineVersion', <iobJS.State>{ val: desired_display_firmware_version, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Display_Firmware.currentVersion', <iobJS.State>{ val: split[2], ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_Version', <iobJS.State>{ val: split[3], ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'TFT_Firmware.onlineVersion', <iobJS.State>{ val: tft_version, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. setState(popupNotifyInternalName, <iobJS.State>{ val: words[2], ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. setState(popupNotifyAction, <iobJS.State>{ val: true, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. setState(popupNotifyInternalName, <iobJS.State>{ val: words[2], ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. setState(popupNotifyAction, <iobJS.State>{ val: false, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. unsubscribe(value); ^ERROR: Argument of type 'unknown' is not assignable to parameter of type 'string | RegExp | string[]'. await setStateAsync(NSPanel_Path + 'Sensor.Time', <iobJS.State>{ val: dateTime[0] + '\r\n' + dateTime[1], ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Sensor.TempUnit', <iobJS.State>{ val: '°' + Tasmota_Sensor.TempUnit, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Sensor.ANALOG.Temperature', <iobJS.State>{ val: parseFloat(Tasmota_Sensor.ANALOG.Temperature1), ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Sensor.ESP32.Temperature', <iobJS.State>{ val: parseFloat(Tasmota_Sensor.ESP32.Temperature), ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. val: iobJS.StateValue; ^ERROR: 'global.iobJS' has no exported member named 'StateValue'. Did you mean 'StateACL'? val: iobJS.StateValue; ^ERROR: 'global.iobJS' has no exported member named 'StateValue'. Did you mean 'StateACL'?

                                Kennt das jemand?

                                Gruß Timo

                                ? 1 Reply Last reply
                                0
                                • T timbo

                                  Moin,

                                  ich habe letztens den JavaScript Adapter auf die 9.0.6 geupdated und nun wollen meine beiden Panels nicht mehr. Im Log steht folgendes:

                                  script.js.common.NSPanel_Windfang: TypeScript compilation failed: await setStateAsync(NSPanel_Path + 'PageNavi', <iobJS.State>{ val: "{ pagetype: 'page', pageId: 0 }", ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_Dimmode_brightnessDay', <iobJS.State>{ val: 8, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_Dimmode_hourDay', <iobJS.State>{ val: 7, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_Dimmode_brightnessNight', <iobJS.State>{ val: 1, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_Dimmode_hourNight', <iobJS.State>{ val: 22, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(meanPower, <iobJS.State>{ val: meanConsumption, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(screensaverNotifyHeading, <iobJS.State>{ val: '', ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(screensaverNotifyText, <iobJS.State>{ val: '', ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(obj.id, <iobJS.State>{ val: obj.state.val, ack: true }); // ack new value ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_locales_json', <iobJS.State>{ val: JSON.stringify(response.data), ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_locales_service_json', <iobJS.State>{ val: JSON.stringify(response.data), ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota_Firmware.currentVersion', <iobJS.State>{ val: getState(NSPanel_Path + 'Tasmota_Firmware.onlineVersion').val, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Berry_Driver.currentVersion', <iobJS.State>{ val: getState(NSPanel_Path + 'Berry_Driver.onlineVersion').val, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Display_Firmware.currentVersion', <iobJS.State>{ val: getState(NSPanel_Path + 'Display_Firmware.onlineVersion').val, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyHeading, <iobJS.State>{ val: Headline, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyHeadingColor, <iobJS.State>{ val: HeadlineColor, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyButton1Text, <iobJS.State>{ val: Button1, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyButton1TextColor, <iobJS.State>{ val: Button1Color, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyButton2Text, <iobJS.State>{ val: Button2, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyButton2TextColor, <iobJS.State>{ val: Button2Color, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifySleepTimeout, <iobJS.State>{ val: Timeout, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyInternalName, <iobJS.State>{ val: InternalName, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyLayout, <iobJS.State>{ val: Layout, ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(popupNotifyText, <iobJS.State>{ val: [formatDate(getDateObject(new Date().getTime()), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_ipAddress', <iobJS.State>{ val: get_current_tasmota_ip_address(), ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota_Firmware.onlineVersion', <iobJS.State>{ val: TasmotaVersionOnline, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Berry_Driver.currentVersion', <iobJS.State>{ val: JSON.parse(JSON.stringify(response.data)).nlui_driver_version, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota_Firmware.currentVersion', <iobJS.State>{ val: tasmoVersion, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Uptime', <iobJS.State>{ val: Tasmota_JSON.StatusPRM.Uptime, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Version', <iobJS.State>{ val: Tasmota_JSON.StatusFWR.Version, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Hardware', <iobJS.State>{ val: TasmotaHardware[0] + '\r\n' + TasmotaHardware[1], ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.AP', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.AP, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.SSId', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.SSId, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.BSSId', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.BSSId, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.Channel', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.Channel, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.Mode', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.Mode, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.RSSI', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.RSSI, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Wifi.Signal', <iobJS.State>{ val: Tasmota_JSON.StatusSTS.Wifi.Signal, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Tasmota.Product', <iobJS.State>{ val: 'SONOFF NSPanel', ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Berry_Driver.onlineVersion', <iobJS.State>{ val: BerryDriverVersionOnline, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'TFT_Firmware.onlineVersion', <iobJS.State>{ val: NSPanelVersion, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Display_Firmware.onlineVersion', <iobJS.State>{ val: desired_display_firmware_version, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Display_Firmware.currentVersion', <iobJS.State>{ val: split[2], ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'NSPanel_Version', <iobJS.State>{ val: split[3], ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'TFT_Firmware.onlineVersion', <iobJS.State>{ val: tft_version, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. setState(popupNotifyInternalName, <iobJS.State>{ val: words[2], ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. setState(popupNotifyAction, <iobJS.State>{ val: true, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. setState(popupNotifyInternalName, <iobJS.State>{ val: words[2], ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. setState(popupNotifyAction, <iobJS.State>{ val: false, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. unsubscribe(value); ^ERROR: Argument of type 'unknown' is not assignable to parameter of type 'string | RegExp | string[]'. await setStateAsync(NSPanel_Path + 'Sensor.Time', <iobJS.State>{ val: dateTime[0] + '\r\n' + dateTime[1], ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Sensor.TempUnit', <iobJS.State>{ val: '°' + Tasmota_Sensor.TempUnit, ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Sensor.ANALOG.Temperature', <iobJS.State>{ val: parseFloat(Tasmota_Sensor.ANALOG.Temperature1), ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. await setStateAsync(NSPanel_Path + 'Sensor.ESP32.Temperature', <iobJS.State>{ val: parseFloat(Tasmota_Sensor.ESP32.Temperature), ack: true }); ^ERROR: Namespace 'global.iobJS' has no exported member 'State'. val: iobJS.StateValue; ^ERROR: 'global.iobJS' has no exported member named 'StateValue'. Did you mean 'StateACL'? val: iobJS.StateValue; ^ERROR: 'global.iobJS' has no exported member named 'StateValue'. Did you mean 'StateACL'?

                                  Kennt das jemand?

                                  Gruß Timo

                                  ? Offline
                                  ? Offline
                                  A Former User
                                  wrote on last edited by
                                  #7304

                                  @timbo

                                  Der Fehler ist im Beta-Thread vom Javascript 9.0.x beschrieben und benannt worden.

                                  Also einfach wieder auf die 8.9.2 downgraden, dann laeuft das wieder.

                                  T 1 Reply Last reply
                                  0
                                  • ? A Former User

                                    @timbo

                                    Der Fehler ist im Beta-Thread vom Javascript 9.0.x beschrieben und benannt worden.

                                    Also einfach wieder auf die 8.9.2 downgraden, dann laeuft das wieder.

                                    T Offline
                                    T Offline
                                    timbo
                                    wrote on last edited by
                                    #7305

                                    @neuschwansteini Danke, funktioniert wieder

                                    T 1 Reply Last reply
                                    0
                                    • T timbo

                                      @neuschwansteini Danke, funktioniert wieder

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

                                      @timbo
                                      kleiner Hinweis, Code Schnipsel oder Logausgaben bitte immer in Codetags packen, sonst kann das Keiner lesen.

                                      code-tags.gif

                                      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

                                      T 1 Reply Last reply
                                      0
                                      • T TT-Tom

                                        @timbo
                                        kleiner Hinweis, Code Schnipsel oder Logausgaben bitte immer in Codetags packen, sonst kann das Keiner lesen.

                                        code-tags.gif

                                        T Offline
                                        T Offline
                                        timbo
                                        wrote on last edited by
                                        #7307

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

                                        @timbo
                                        kleiner Hinweis, Code Schnipsel oder Logausgaben bitte immer in Codetags packen, sonst kann das Keiner lesen.

                                        code-tags.gif

                                        Danke dir, wird das nächste Mal gemacht :)

                                        1 Reply Last reply
                                        0
                                        • ArmilarA Armilar

                                          @michaelf

                                          So eine doppelte alias.0 - Verkettung habe ich auch noch nie gesehen?

                                          Irgendwann mal den Alias-Path im Script geändert?

                                          Du kannst jederzeit die erstellten Verzeichnisse eines NSPanel unter 0_userdata.NSPanel.X und alias.0.NSPanel.X löschen.

                                          Mit Scriptstart werden die wieder sauber erzeugt... Bis auf die paar individuellen Anpassungen...

                                          MichaelFM Offline
                                          MichaelFM Offline
                                          MichaelF
                                          wrote on last edited by MichaelF
                                          #7308

                                          @armilar

                                          Hi, habe alle Objekte gelöscht da das abschalten des Displays immer noch nicht klappte.

                                          Jetzt habe ich folgende Fehlermeldung im Display:

                                          14:43:44.966 MQT: tele/tasmota_C82F70/SENSOR = {"Time":"2025-06-29T14:43:44","ANALOG":{"Temperature1":31.1},"ESP32":{"Temperature":64.4},"TempUnit":"C"}
                                          14:43:59.861 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~15:44"}
                                          14:44:59.911 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~15:45"}
                                          14:45:03.213 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND statusUpdate~~17299~梅78.60~17299~~~"}
                                          14:46:00.011 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~15:46"}
                                          14:46:59.811 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~15:47"}
                                          14:47:59.861 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~15:48"}
                                          14:48:23.311 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND statusUpdate~~17299~梅78.70~17299~~~"}
                                          14:48:44.956 MQT: tele/tasmota_C82F70/STATE = {"Time":"2025-06-29T14:48:44","Uptime":"0T00:30:11","UptimeSec":1811,"Heap":156,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":999,"MqttCount":2,"Berry":{"HeapUsed":3,"Objects":38},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"WLAN 7270","BSSId":"38:10:D5:13:AB:0E","Channel":1,"Mode":"HT40","RSSI":60,"Signal":-70,"LinkCount":1,"Downtime":"0T00:00:03"}}
                                          14:48:44.967 MQT: tele/tasmota_C82F70/SENSOR = {"Time":"2025-06-29T14:48:44","ANALOG":{"Temperature1":31.2},"ESP32":{"Temperature":64.4},"TempUnit":"C"}
                                          14:48:59.813 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~15:49"}
                                          14:49:59.916 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~15:50"}
                                          14:50:59.811 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~15:51"}
                                          14:51:43.262 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND statusUpdate~~17299~梅78.80~17299~~~"}
                                          14:51:59.811 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~15:52"}
                                          14:52:59.811 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~15:53"}
                                          14:53:44.954 MQT: tele/tasmota_C82F70/STATE = {"Time":"2025-06-29T14:53:44","Uptime":"0T00:35:11","UptimeSec":2111,"Heap":157,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":999,"MqttCount":2,"Berry":{"HeapUsed":3,"Objects":38},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"WLAN 7270","BSSId":"38:10:D5:13:AB:0E","Channel":1,"Mode":"HT40","RSSI":56,"Signal":-72,"LinkCount":1,"Downtime":"0T00:00:03"}}
                                          14:53:44.965 MQT: tele/tasmota_C82F70/SENSOR = {"Time":"2025-06-29T14:53:44","ANALOG":{"Temperature1":31.0},"ESP32":{"Temperature":64.4},"TempUnit":"C"}
                                          

                                          Nach einem Neustart:

                                          15:04:55.227 MQT: stat/tasmota_C82F70/STATUS0 = {"Status":{"Module":0,"DeviceName":"NSPanel","FriendlyName":["Panel1",""],"Topic":"tasmota_C82F70","ButtonTopic":"0","Power":"00","PowerLock":"00","PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":0,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0,"StatusRetain":0},"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32-DE.bin","RestartReason":"Software reset CPU","Uptime":"0T00:46:22","StartupUTC":"2025-06-29T13:18:33","Sleep":0,"CfgHolder":4617,"BootCount":148,"BCResetTime":"2022-07-07T18:59:33","SaveCount":253},"StatusFWR":{"Version":"15.0.1(release-tasmota32)","BuildDateTime":"2025.06.14 10:39:16","Core":"3_1_3","SDK":"5.3.3.250501","CpuFrequency":160,"Hardware":"ESP32-D0WD-V3 v3.0","CR":"448/699"},"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"FileLog":0,"SysLog":0,"LogHost":"192.168.178.69","LogPort":514,"SSId":["WLAN 7270",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","0505C80001000600003C5A0A192800000000","00800080","00006000","00004001","00000001"]},"StatusMEM":{"ProgramSize":2045,"Free":834,"Heap":148,"StackLowMark":3,"PsrMax":0,"PsrFree":0,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"16405E","FlashFrequency":40,"FlashMode":"DIO","Features":["0407","9F9AD7DF","0015A001","B7F7BFCF","05DA9BC4","E0360DC7","480840D2","20200000","D4BC482D","810A80F1","00000814"],"Drivers":"1,2,!3,!4,!5,7,!8,9,10,11,12,!14,!16,!17,!20,!21,24,26,!27,29,!34,!35,38,50,52,!59,!60,62,!63,!66,!67,!68,!73,!75,82,!86,!87,!88,!91,!121","Sensors":"1,2,3,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,22,26,31,34,37,39,40,42,43,45,51,52,55,56,58,59,64,66,67,74,85,92,95,98,103,105,109,127","I2CDriver":"7,8,9,10,11,12,13,14,15,17,18,20,24,29,31,36,41,42,44,46,48,58,62,65,69,76,77,82,89"},"StatusNET":{"Hostname":"tasmota-C82F70-3952","IPAddress":"192.168.178.57","Gateway":"192.168.178.1","Subnetmask":"255.255.255.0","DNSServer1":"fd63:a0ea:8156:0:9a9b:cbff:feae:d11b","DNSServer2":"2003:df:3745:f600:9a9b:cbff:feae:d11b","Mac":"7C:87:CE:C8:2F:70","IP6Global":"2003:df:3745:f600:7e87:ceff:fec8:2f70","IP6Local":"fe80::7e87:ceff:fec8:2f70%st1","Ethernet":{"Hostname":"","IPAddress":"0.0.0.0","Gateway":"0.0.0.0","Subnetmask":"0.0.0.0","DNSServer1":"fd63:a0ea:8156:0:9a9b:cbff:feae:d11b","DNSServer2":"2003:df:3745:f600:9a9b:cbff:feae:d11b","Mac":"00:00:00:00:00:00","IP6Global":"","IP6Local":""},"Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0},"StatusMQT":{"MqttHost":"192.168.178.69","MqttPort":1886,"MqttClientMask":"NS_Panel1","MqttClient":"NS_Panel1","MqttUser":"Mikeldk","MqttCount":2,"MqttTLS":0,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4},"StatusTIM":{"UTC":"2025-06-29T14:04:55Z","Local":"2025-06-29T15:04:55","StartDST":"2025-03-30T02:00:00","EndDST":"2025-10-26T03:00:00","Timezone":"+01:00","Sunrise":"04:50","Sunset":"20:57"},"StatusSNS":{"Time":"2025-06-29T15:04:55","ANALOG":{"Temperature1":30.9},"ESP32":{"Temperature":64.4},"TempUnit":"C"},"StatusSTS":{"Time":"2025-06-29T15:04:55","Uptime":"0T00:46:22","UptimeSec":2782,"Heap":145,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":1002,"MqttCount":2,"Berry":{"HeapUsed":3,"Objects":38},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"WLAN 7270","BSSId":"38:10:D5:13:AB:0E","Channel":1,"Mode":"HT40","RSSI":56,"Signal":-72,"LinkCount":1,"Downtime":"0T00:00:03"}}}
                                          15:04:55.300 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND dimmode~8~100~6371~65535"}
                                          15:04:55.380 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND dimmode~8~100~6371~65535"}
                                          15:04:55.424 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND dimmode~8~100~6371~65535"}
                                          15:04:55.476 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND dimmode~8~100~6371~65535"}
                                          15:04:55.525 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~16:04"}
                                          15:04:55.575 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND date~Sonntag, 29. Juni 2025"}
                                          15:04:55.625 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND pageType~pageStartup"}
                                          15:04:56.419 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"GETDRIVERVERSION"}
                                          15:04:59.975 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~16:05"}
                                          15:05:59.926 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~16:06"}
                                          15:06:59.977 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~16:07"}
                                          15:07:44.479 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND statusUpdate~~17299~梅78.70~17299~~~"}
                                          15:07:59.925 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~16:08"}
                                          

                                          Wenn ich in der Konsole den Befehl eingebe:

                                          15:36:59.661 CMD: CustomSend time,12:39
                                          15:36:59.668 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time,12:39"}
                                          15:36:59.898 MQT: stat/tasmota_C82F70/RESULT = {"Command":"Unknown","Input":"CUSTOMSEND time~16:37"}
                                          

                                          Vielleicht jemand anderes auch eine Idee, echt seltsam zwei weitere Display laufen ohne Probleme. Nur dieses hier will nicht so richtig.

                                          Hab es gefunden, die autoexec.be neu angelegt seit dem geht es wieder. Erstmal gelöst.
                                          Geändert habe ich daran nichts, lediglich Iobroker neu gestartet danach kam dieser Fehler.

                                          Ich glaube langsam das das Display ein Macke hat.

                                          Grüße

                                          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

                                          640

                                          Online

                                          32.6k

                                          Users

                                          82.3k

                                          Topics

                                          1.3m

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

                                          • Don't have an account? Register

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