Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. SONOFF NSPanel mit Lovelace UI

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    SONOFF NSPanel mit Lovelace UI

    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      TT-Tom @teletapi last edited by

      @teletapi

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

      teletapi 1 Reply Last reply Reply Quote 0
      • Armilar
        Armilar Most Active Forum Testing @arteck last edited by

        @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...

        arteck 1 Reply Last reply Reply Quote 0
        • teletapi
          teletapi @TT-Tom last edited by 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 1 Reply Last reply Reply Quote 0
          • T
            TT-Tom @teletapi last edited by

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

            teletapi 1 Reply Last reply Reply Quote 0
            • teletapi
              teletapi @TT-Tom last edited by

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

              1 Reply Last reply Reply Quote 0
              • arteck
                arteck Developer Most Active @Armilar last edited by

                @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

                1 Reply Last reply Reply Quote 0
                • MichaelF
                  MichaelF @MichaelF last edited by 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

                  arteck Armilar 2 Replies Last reply Reply Quote 0
                  • arteck
                    arteck Developer Most Active @MichaelF last edited by

                    @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

                    MichaelF 1 Reply Last reply Reply Quote 0
                    • MichaelF
                      MichaelF @arteck last edited by 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

                      arteck 1 Reply Last reply Reply Quote 0
                      • arteck
                        arteck Developer Most Active @MichaelF last edited by

                        @michaelf da ist noch ein fehler

                        NSPanel..Dimmode
                        

                        da ist ein punkt zu viel

                        MichaelF 1 Reply Last reply Reply Quote 0
                        • MichaelF
                          MichaelF @arteck last edited by

                          @arteck In den Objekten nicht zu finden?

                          1 Reply Last reply Reply Quote 0
                          • Armilar
                            Armilar Most Active Forum Testing @MichaelF last edited by 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

                            MichaelF 1 Reply Last reply Reply Quote 0
                            • MichaelF
                              MichaelF @Armilar last edited by 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 ?

                              Armilar 1 Reply Last reply Reply Quote 0
                              • Armilar
                                Armilar Most Active Forum Testing @MichaelF last edited by

                                @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...

                                MichaelF 1 Reply Last reply Reply Quote 0
                                • MichaelF
                                  MichaelF @Armilar last edited by 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 ?

                                  Armilar 1 Reply Last reply Reply Quote 0
                                  • Armilar
                                    Armilar Most Active Forum Testing @MichaelF last edited by

                                    @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

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      timbo last edited by

                                      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

                                      Neuschwansteini 1 Reply Last reply Reply Quote 0
                                      • Neuschwansteini
                                        Neuschwansteini @timbo last edited by

                                        @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 Reply Quote 0
                                        • T
                                          timbo @Neuschwansteini last edited by

                                          @neuschwansteini Danke, funktioniert wieder

                                          T 1 Reply Last reply Reply Quote 0
                                          • T
                                            TT-Tom @timbo last edited by TT-Tom

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

                                            code-tags.gif

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            881
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            lovelace ui nspanel sonoff
                                            265
                                            7307
                                            5003201
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo