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
      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
                                      • T
                                        timbo @TT-Tom last edited by

                                        @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 Reply Quote 0
                                        • First post
                                          Last post

                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        846
                                        Online

                                        31.8k
                                        Users

                                        79.9k
                                        Topics

                                        1.3m
                                        Posts

                                        lovelace ui nspanel sonoff
                                        265
                                        7307
                                        5003236
                                        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