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

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. [gelöst]Fehler im NSPanel Script

NEWS

  • Wartung am 15.11. – Forum ab 22:00 Uhr nicht erreichbar
    BluefoxB
    Bluefox
    12
    2
    233

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

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

[gelöst]Fehler im NSPanel Script

[gelöst]Fehler im NSPanel Script

Scheduled Pinned Locked Moved ioBroker Allgemein
22 Posts 7 Posters 2.8k Views 5 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.
  • GregorSG Offline
    GregorSG Offline
    GregorS
    wrote on last edited by GregorS
    #1

    Hallo,

    wie kann ich den nachfolgenden Fehler im NSPanel-Script lokalisieren?
    Der Fehler wird alle 30 Sekunden generiert.
    4x hintereinander mit gleichem Zeitstempel
    Das Panel funktioniert einwandfrei.

    javascript.0	11:51:30.012	error	script.js.NSPanel_1: existsObject has been called with id of type "object" but expects a string
    

    Gruß
    Gregor

    INTEL NUC i7, Sonoff, hmIP, AVM, Jeelink, T-Link, Alexa, Saia-Burgess, uvm.

    draexlerD 1 Reply Last reply
    0
    • GregorSG GregorS

      Hallo,

      wie kann ich den nachfolgenden Fehler im NSPanel-Script lokalisieren?
      Der Fehler wird alle 30 Sekunden generiert.
      4x hintereinander mit gleichem Zeitstempel
      Das Panel funktioniert einwandfrei.

      javascript.0	11:51:30.012	error	script.js.NSPanel_1: existsObject has been called with id of type "object" but expects a string
      

      Gruß
      Gregor

      draexlerD Offline
      draexlerD Offline
      draexler
      wrote on last edited by
      #2

      @gregors ich habe auf die neueste Script Version gewechselt und keine Probleme mehr (hatte die gleiche Fehlermeldung). Im großen Chatraum zu dem Thema habe ich auch nur diesen Lösungsvorschlag bekommen.

      GregorSG 1 Reply Last reply
      2
      • M Offline
        M Offline
        Matzeit
        wrote on last edited by
        #3

        @draexler Hast du das NSPANEL ebenfalls geupdatet? Ich habe noch Tasmota 12.5 drauf, kann aber nicht upgraden, was womöglich mit der Partition zu tun hat. Partition_Wizard.tapp uploaden und neustarten funktioniert irgendwie nicht, da ich kein zusätzliches Menüfeld erhalte.
        Welche Tasmota Version hast du aktuell am Laufen?

        T 1 Reply Last reply
        0
        • M Matzeit

          @draexler Hast du das NSPANEL ebenfalls geupdatet? Ich habe noch Tasmota 12.5 drauf, kann aber nicht upgraden, was womöglich mit der Partition zu tun hat. Partition_Wizard.tapp uploaden und neustarten funktioniert irgendwie nicht, da ich kein zusätzliches Menüfeld erhalte.
          Welche Tasmota Version hast du aktuell am Laufen?

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

          @matzeit

          Bist du sicher das der Upload geklappt hat. Du müsstest die Datei im Dateisystem sehen.
          45c87fe1-eeff-404c-8cd6-d4c4a4850344-image.png

          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

          1 Reply Last reply
          0
          • draexlerD draexler

            @gregors ich habe auf die neueste Script Version gewechselt und keine Probleme mehr (hatte die gleiche Fehlermeldung). Im großen Chatraum zu dem Thema habe ich auch nur diesen Lösungsvorschlag bekommen.

            GregorSG Offline
            GregorSG Offline
            GregorS
            wrote on last edited by
            #5

            @draexler
            Genau das wollte ich eigendlich vermeiden, da das Panel mit dem Script
            einwandfrei funktioniert.
            Bei dem neuen Script muss ich mich erstmal einarbeiten.
            Habe das Panel vor langer Zeit mal eingerichtet.

            INTEL NUC i7, Sonoff, hmIP, AVM, Jeelink, T-Link, Alexa, Saia-Burgess, uvm.

            draexlerD 1 Reply Last reply
            0
            • GregorSG GregorS

              @draexler
              Genau das wollte ich eigendlich vermeiden, da das Panel mit dem Script
              einwandfrei funktioniert.
              Bei dem neuen Script muss ich mich erstmal einarbeiten.
              Habe das Panel vor langer Zeit mal eingerichtet.

              draexlerD Offline
              draexlerD Offline
              draexler
              wrote on last edited by
              #6

              @gregors was soll ich sagen… Ging mir genau so. Hilft aber nichts. Am besten nach der Update Hilfe in GitHub abarbeiten.

              lobomauL 1 Reply Last reply
              0
              • draexlerD draexler

                @gregors was soll ich sagen… Ging mir genau so. Hilft aber nichts. Am besten nach der Update Hilfe in GitHub abarbeiten.

                lobomauL Offline
                lobomauL Offline
                lobomau
                wrote on last edited by lobomau
                #7

                @draexler ich habe das gleiche Problem wie @GregorS wobei ich schon versucht habe die neueste Version 4.4.0.1 ans Laufen zu bekommen. Hast du die auch? Selbst die Grundversion nur mit den Basiseinstellungen bringt mein System fast zum Erliegen.
                4.3.1.1. läuft soweit gut bis auf die nervenden Fehlermeldungen, die mein log vollmachen.
                Wenn ich wüsste welches Objekt ich da anpassen müsste, wäre es vermutlich ein kleiner Eingriff.

                
                javascript.0
                2024-08-07 08:46:00.004	error	script.js.NSPanels.NASPanel_4311_leer: existsObject has been called with id of type "object" but expects a string
                
                javascript.0
                2024-08-07 08:46:00.004	error	script.js.NSPanels.NASPanel_4311_leer: existsObject has been called with id of type "object" but expects a string
                
                javascript.0
                2024-08-07 08:46:00.004	error	script.js.NSPanels.NASPanel_4311_leer: existsObject has been called with id of type "object" but expects a string
                
                javascript.0
                2024-08-07 08:46:00.004	error	script.js.NSPanels.NASPanel_4311_leer: existsObject has been called with id of type "object" but expects a string
                

                Ansonsten habe ich folgende Versionen:
                Node.js: v20.16.0
                NPM: 10.8.1
                js-controller: 6.0.9
                javascript: 8.7.6
                tasmota: 14.1.0
                tft-firmware: 4.4.0
                display firmware: 53
                Berry Driver: 9

                Host: NUC8i3 mit Proxmox:

                • ioBroker CT Debian 13, npm 10.9.3, nodejs 22.20.0
                • Slave: Pi4
                haus-automatisierungH 1 Reply Last reply
                0
                • lobomauL lobomau

                  @draexler ich habe das gleiche Problem wie @GregorS wobei ich schon versucht habe die neueste Version 4.4.0.1 ans Laufen zu bekommen. Hast du die auch? Selbst die Grundversion nur mit den Basiseinstellungen bringt mein System fast zum Erliegen.
                  4.3.1.1. läuft soweit gut bis auf die nervenden Fehlermeldungen, die mein log vollmachen.
                  Wenn ich wüsste welches Objekt ich da anpassen müsste, wäre es vermutlich ein kleiner Eingriff.

                  
                  javascript.0
                  2024-08-07 08:46:00.004	error	script.js.NSPanels.NASPanel_4311_leer: existsObject has been called with id of type "object" but expects a string
                  
                  javascript.0
                  2024-08-07 08:46:00.004	error	script.js.NSPanels.NASPanel_4311_leer: existsObject has been called with id of type "object" but expects a string
                  
                  javascript.0
                  2024-08-07 08:46:00.004	error	script.js.NSPanels.NASPanel_4311_leer: existsObject has been called with id of type "object" but expects a string
                  
                  javascript.0
                  2024-08-07 08:46:00.004	error	script.js.NSPanels.NASPanel_4311_leer: existsObject has been called with id of type "object" but expects a string
                  

                  Ansonsten habe ich folgende Versionen:
                  Node.js: v20.16.0
                  NPM: 10.8.1
                  js-controller: 6.0.9
                  javascript: 8.7.6
                  tasmota: 14.1.0
                  tft-firmware: 4.4.0
                  display firmware: 53
                  Berry Driver: 9

                  haus-automatisierungH Offline
                  haus-automatisierungH Offline
                  haus-automatisierung
                  Developer Most Active
                  wrote on last edited by
                  #8

                  @lobomau sagte in Fehler im NSPanel Script:

                  Wenn ich wüsste welches Objekt ich da anpassen müsste, wäre es vermutlich ein kleiner Eingriff.

                  Da muss kein Objekt angepasst werden, sondern ein Aufruf von existsObject im Script. Soll ja (laut anderen Kommentaren) in der aktuellen Version des Scripts schon gelöst sein

                  🧑‍🎓 Autor des beliebten ioBroker-Master-Kurses
                  🎥 Tutorials rund um das Thema DIY-Smart-Home: https://haus-automatisierung.com/
                  📚 Meine inoffizielle ioBroker Dokumentation

                  lobomauL 1 Reply Last reply
                  0
                  • haus-automatisierungH haus-automatisierung

                    @lobomau sagte in Fehler im NSPanel Script:

                    Wenn ich wüsste welches Objekt ich da anpassen müsste, wäre es vermutlich ein kleiner Eingriff.

                    Da muss kein Objekt angepasst werden, sondern ein Aufruf von existsObject im Script. Soll ja (laut anderen Kommentaren) in der aktuellen Version des Scripts schon gelöst sein

                    lobomauL Offline
                    lobomauL Offline
                    lobomau
                    wrote on last edited by
                    #9

                    @haus-automatisierung ja, mit neuer Version sollte es gehen. Irgendwann probiere ich mal wieder die neue Version aus...

                    Host: NUC8i3 mit Proxmox:

                    • ioBroker CT Debian 13, npm 10.9.3, nodejs 22.20.0
                    • Slave: Pi4
                    T 1 Reply Last reply
                    0
                    • lobomauL lobomau

                      @haus-automatisierung ja, mit neuer Version sollte es gehen. Irgendwann probiere ich mal wieder die neue Version aus...

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

                      @lobomau
                      wenn du Hilfe beim Upgrade des Script brauchst, hier ist eine Anleitung. Liess dir das in Ruhe durch und wenn etwas unklar ist. "Hier werden sie geholfen" 😉

                      Der offizielle Thread ist hier

                      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

                      GregorSG 1 Reply Last reply
                      3
                      • M Offline
                        M Offline
                        Matzeit
                        wrote on last edited by
                        #11

                        Habe jetzt meine Panels updaten können mit Tasmota 12.2 und 12.5 jeweils mithilfe "https://github.com/arendst/Tasmota/raw/eb3de9c73a23e5559123dd85df70f844aaa46f33/tasmota/berry/modules/Partition_Wizard.tapp"
                        aus dem Thread: https://github.com/arendst/Tasmota/discussions/19050
                        Jedwede andere Partition Wizard tapp hatte nicht funktioniert.

                        habs nur der vollständigkeits hier erwähnt.

                        1 Reply Last reply
                        1
                        • T TT-Tom

                          @lobomau
                          wenn du Hilfe beim Upgrade des Script brauchst, hier ist eine Anleitung. Liess dir das in Ruhe durch und wenn etwas unklar ist. "Hier werden sie geholfen" 😉

                          Der offizielle Thread ist hier

                          GregorSG Offline
                          GregorSG Offline
                          GregorS
                          wrote on last edited by GregorS
                          #12

                          @tt-tom

                          Ich habe mich mal an das neue Script V4.4.0.1 nach der o.g. Anleitung gehalten.

                          Bei Schritt 5 war schon Ende.
                          Jede Menge Fehler:

                          javascript.0	16:04:48.825	error	script.js.NSPanel_1_V4_4_0_1: Error: Cannot find module 'dayjs'
                          javascript.0	16:04:48.829	error	script.js.NSPanel_1_V4_4_0_1: Error: Cannot find module 'dayjs'
                          ....
                          

                          Jetzt stehe ich erst mal wieder auf dem Schlauch 😞
                          Hier die Einstellungen für javascript.0
                          Screenshot 2024-08-17 160837.png

                          In der Konsole:

                          pi@Promox-ioBroker:~$ cd /opt/iobroker/node_modules/@iobroker-javascript.0/dayjs
                          pi@Promox-ioBroker:/opt/iobroker/node_modules/@iobroker-javascript.0/dayjs$ ls -la
                          insgesamt 152
                          drwxrwxr-x+ 5 iobroker iobroker  4096 17. Aug 16:04 .
                          drwxrwxr-x+ 7 iobroker iobroker  4096 17. Aug 16:04 ..
                          -rw-rw-r--+ 1 iobroker iobroker 79810 17. Aug 16:04 CHANGELOG.md
                          -rw-rw-r--+ 1 iobroker iobroker  7160 17. Aug 16:04 dayjs.min.js
                          -rw-rw-r--+ 1 iobroker iobroker    94 17. Aug 16:04 .editorconfig
                          drwxrwxr-x+ 4 iobroker iobroker  4096 17. Aug 16:04 esm
                          -rw-rw-r--+ 1 iobroker iobroker 13872 17. Aug 16:04 index.d.ts
                          -rw-rw-r--+ 1 iobroker iobroker  1072 17. Aug 16:04 LICENSE
                          drwxrwxr-x+ 2 iobroker iobroker  4096 17. Aug 16:04 locale
                          -rw-rw-r--+ 1 iobroker iobroker  5033 17. Aug 16:04 locale.json
                          -rw-rw-r--+ 1 iobroker iobroker  2526 17. Aug 16:04 package.json
                          drwxrwxr-x+ 2 iobroker iobroker  4096 17. Aug 16:04 plugin
                          -rw-rw-r--+ 1 iobroker iobroker  7411 17. Aug 16:04 README.md
                          pi@Promox-ioBroker:/opt/iobroker/node_modules/@iobroker-javascript.0/dayjs$
                          

                          ioB diag:
                          ======================= SUMMARY =======================
                          v.2024-05-22

                          Static hostname: Promox-ioBroker
                          Icon name: computer-vm
                          Chassis: vm
                          Virtualization: kvm
                          Operating System: Debian GNU/Linux 11 (bullseye)
                          Kernel: Linux 5.10.0-31-amd64
                          Architecture: x86-64

                          Installation: kvm
                          Kernel: x86_64
                          Userland: 64 bit
                          Timezone: Europe/Berlin (CEST, +0200)
                          User-ID: 1000
                          Display-Server: false
                          Boot Target: graphical.target

                          Pending OS-Updates: 2
                          Pending iob updates: 0

                          Nodejs-Installation:
                          /usr/bin/nodejs v18.20.4
                          /usr/bin/node v18.20.4
                          /usr/bin/npm 10.7.0
                          /usr/bin/npx 10.7.0
                          /usr/bin/corepack 0.28.0

                          Recommended versions are nodejs 20.16.0 and npm 10.8.1
                          Your nodejs installation is correct

                          MEMORY:
                          total used free shared buff/cache available
                          Mem: 15G 7.3G 6.0G 0.0K 2.6G 8.5G
                          Swap: 974M 0B 974M
                          Total: 16G 7.3G 7.0G

                          Active iob-Instances: 50
                          Upgrade policy: none

                          ioBroker Core: js-controller 6.0.9
                          admin 7.0.22

                          ioBroker Status: iobroker is running on this host.

                          Objects type: jsonl
                          States type: redis

                          Status admin and web instance:

                          • system.adapter.admin.0 : admin : Promox-ioBroker - enabled, port: 8081, bind: 0.0.0.0, run as: admin
                          • system.adapter.web.0 : web : Promox-ioBroker - enabled, port: 8082, bind: 0.0.0.0, run as: admin

                          Objects: 29576
                          States: 22152

                          Size of iob-Database:

                          86M /opt/iobroker/iobroker-data/objects.jsonl
                          7.2M /opt/iobroker/iobroker-data/states.jsonl

                          =================== END OF SUMMARY ====================

                          INTEL NUC i7, Sonoff, hmIP, AVM, Jeelink, T-Link, Alexa, Saia-Burgess, uvm.

                          ArmilarA 1 Reply Last reply
                          0
                          • GregorSG GregorS

                            @tt-tom

                            Ich habe mich mal an das neue Script V4.4.0.1 nach der o.g. Anleitung gehalten.

                            Bei Schritt 5 war schon Ende.
                            Jede Menge Fehler:

                            javascript.0	16:04:48.825	error	script.js.NSPanel_1_V4_4_0_1: Error: Cannot find module 'dayjs'
                            javascript.0	16:04:48.829	error	script.js.NSPanel_1_V4_4_0_1: Error: Cannot find module 'dayjs'
                            ....
                            

                            Jetzt stehe ich erst mal wieder auf dem Schlauch 😞
                            Hier die Einstellungen für javascript.0
                            Screenshot 2024-08-17 160837.png

                            In der Konsole:

                            pi@Promox-ioBroker:~$ cd /opt/iobroker/node_modules/@iobroker-javascript.0/dayjs
                            pi@Promox-ioBroker:/opt/iobroker/node_modules/@iobroker-javascript.0/dayjs$ ls -la
                            insgesamt 152
                            drwxrwxr-x+ 5 iobroker iobroker  4096 17. Aug 16:04 .
                            drwxrwxr-x+ 7 iobroker iobroker  4096 17. Aug 16:04 ..
                            -rw-rw-r--+ 1 iobroker iobroker 79810 17. Aug 16:04 CHANGELOG.md
                            -rw-rw-r--+ 1 iobroker iobroker  7160 17. Aug 16:04 dayjs.min.js
                            -rw-rw-r--+ 1 iobroker iobroker    94 17. Aug 16:04 .editorconfig
                            drwxrwxr-x+ 4 iobroker iobroker  4096 17. Aug 16:04 esm
                            -rw-rw-r--+ 1 iobroker iobroker 13872 17. Aug 16:04 index.d.ts
                            -rw-rw-r--+ 1 iobroker iobroker  1072 17. Aug 16:04 LICENSE
                            drwxrwxr-x+ 2 iobroker iobroker  4096 17. Aug 16:04 locale
                            -rw-rw-r--+ 1 iobroker iobroker  5033 17. Aug 16:04 locale.json
                            -rw-rw-r--+ 1 iobroker iobroker  2526 17. Aug 16:04 package.json
                            drwxrwxr-x+ 2 iobroker iobroker  4096 17. Aug 16:04 plugin
                            -rw-rw-r--+ 1 iobroker iobroker  7411 17. Aug 16:04 README.md
                            pi@Promox-ioBroker:/opt/iobroker/node_modules/@iobroker-javascript.0/dayjs$
                            

                            ioB diag:
                            ======================= SUMMARY =======================
                            v.2024-05-22

                            Static hostname: Promox-ioBroker
                            Icon name: computer-vm
                            Chassis: vm
                            Virtualization: kvm
                            Operating System: Debian GNU/Linux 11 (bullseye)
                            Kernel: Linux 5.10.0-31-amd64
                            Architecture: x86-64

                            Installation: kvm
                            Kernel: x86_64
                            Userland: 64 bit
                            Timezone: Europe/Berlin (CEST, +0200)
                            User-ID: 1000
                            Display-Server: false
                            Boot Target: graphical.target

                            Pending OS-Updates: 2
                            Pending iob updates: 0

                            Nodejs-Installation:
                            /usr/bin/nodejs v18.20.4
                            /usr/bin/node v18.20.4
                            /usr/bin/npm 10.7.0
                            /usr/bin/npx 10.7.0
                            /usr/bin/corepack 0.28.0

                            Recommended versions are nodejs 20.16.0 and npm 10.8.1
                            Your nodejs installation is correct

                            MEMORY:
                            total used free shared buff/cache available
                            Mem: 15G 7.3G 6.0G 0.0K 2.6G 8.5G
                            Swap: 974M 0B 974M
                            Total: 16G 7.3G 7.0G

                            Active iob-Instances: 50
                            Upgrade policy: none

                            ioBroker Core: js-controller 6.0.9
                            admin 7.0.22

                            ioBroker Status: iobroker is running on this host.

                            Objects type: jsonl
                            States type: redis

                            Status admin and web instance:

                            • system.adapter.admin.0 : admin : Promox-ioBroker - enabled, port: 8081, bind: 0.0.0.0, run as: admin
                            • system.adapter.web.0 : web : Promox-ioBroker - enabled, port: 8082, bind: 0.0.0.0, run as: admin

                            Objects: 29576
                            States: 22152

                            Size of iob-Database:

                            86M /opt/iobroker/iobroker-data/objects.jsonl
                            7.2M /opt/iobroker/iobroker-data/states.jsonl

                            =================== END OF SUMMARY ====================

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

                            @gregors

                            Sende mal die Fehler…

                            Alles wo dayjs drin steht ist ein anderes Thema und hindert den Start nicht…

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

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

                            1 Reply Last reply
                            0
                            • GregorSG Offline
                              GregorSG Offline
                              GregorS
                              wrote on last edited by
                              #14

                              @armilar
                              Habe jetzt alles weg bekommen.
                              Wenn ich das Script starte, kommt nur noch ein Fehler:

                              script.js.NSPanel_1_V4_4_0_1: TypeScript compilation failed: let Unlock_Service = <PageUnlock>{ ^ ERROR: Cannot redeclare block-scoped variable 'Unlock_Service'. let Unlock_Service: PageType = { ^ ERROR: Cannot redeclare block-scoped variable 'Unlock_Service'. ScreensaverEntityDateFormat: 'hh:mm', // like DD.MM or DD.MM.YY or YYYY/MM/DD or hh:mm ^ ERROR: Type 'string' has no properties in common with type 'DateTimeFormatOptions'. pages: [ ^ ERROR: An object literal cannot have multiple properties with the same name. subPages: [ ^ ERROR: An object literal cannot have multiple properties with the same name. 
                              

                              Allerdings habe ich keine Verbindung vom NSPanel zu ioB. Waiting for Content

                              INTEL NUC i7, Sonoff, hmIP, AVM, Jeelink, T-Link, Alexa, Saia-Burgess, uvm.

                              ArmilarA 1 Reply Last reply
                              0
                              • GregorSG GregorS

                                @armilar
                                Habe jetzt alles weg bekommen.
                                Wenn ich das Script starte, kommt nur noch ein Fehler:

                                script.js.NSPanel_1_V4_4_0_1: TypeScript compilation failed: let Unlock_Service = <PageUnlock>{ ^ ERROR: Cannot redeclare block-scoped variable 'Unlock_Service'. let Unlock_Service: PageType = { ^ ERROR: Cannot redeclare block-scoped variable 'Unlock_Service'. ScreensaverEntityDateFormat: 'hh:mm', // like DD.MM or DD.MM.YY or YYYY/MM/DD or hh:mm ^ ERROR: Type 'string' has no properties in common with type 'DateTimeFormatOptions'. pages: [ ^ ERROR: An object literal cannot have multiple properties with the same name. subPages: [ ^ ERROR: An object literal cannot have multiple properties with the same name. 
                                

                                Allerdings habe ich keine Verbindung vom NSPanel zu ioB. Waiting for Content

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

                                @gregors

                                Suche mal nach der Seitenvariable

                                let Unlock_Service = <PageUnlock>
                                

                                die scheint im Script doppelt zu sein... Evtl auch andere checken...

                                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.

                                GregorSG 1 Reply Last reply
                                0
                                • ArmilarA Armilar

                                  @gregors

                                  Suche mal nach der Seitenvariable

                                  let Unlock_Service = <PageUnlock>
                                  

                                  die scheint im Script doppelt zu sein... Evtl auch andere checken...

                                  GregorSG Offline
                                  GregorSG Offline
                                  GregorS
                                  wrote on last edited by
                                  #16

                                  @armilar

                                  Gibt es tatsächlich nur einmal

                                  INTEL NUC i7, Sonoff, hmIP, AVM, Jeelink, T-Link, Alexa, Saia-Burgess, uvm.

                                  T 1 Reply Last reply
                                  0
                                  • GregorSG GregorS

                                    @armilar

                                    Gibt es tatsächlich nur einmal

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

                                    @gregors

                                    Zeige bitte mal die komplette Seiten Config. Da ist was doppelt oder ein paar Klammern fehlen.

                                    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

                                    GregorSG ArmilarA 2 Replies Last reply
                                    0
                                    • T TT-Tom

                                      @gregors

                                      Zeige bitte mal die komplette Seiten Config. Da ist was doppelt oder ein paar Klammern fehlen.

                                      GregorSG Offline
                                      GregorSG Offline
                                      GregorS
                                      wrote on last edited by GregorS
                                      #18

                                      @tt-tom

                                      let Unlock_Service = <PageUnlock>
                                      {
                                          'type': 'cardUnlock',
                                          'heading': 'Service Pages',
                                          'useColor': true,
                                          'items': [<PageItem>{ id: 'alias.0.NSPanel.Unlock', targetPage: 'NSPanel_Service' }]
                                      };
                                      

                                      Oder brauchst du das ganze Script?
                                      Habe den Teil von meinem alten Script kopiert

                                      INTEL NUC i7, Sonoff, hmIP, AVM, Jeelink, T-Link, Alexa, Saia-Burgess, uvm.

                                      1 Reply Last reply
                                      0
                                      • T TT-Tom

                                        @gregors

                                        Zeige bitte mal die komplette Seiten Config. Da ist was doppelt oder ein paar Klammern fehlen.

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

                                        @GregorS

                                        War gestern nur halb bei der Sache, da auch unterwegs... Die Seitenvariablen sind falsch definiert...

                                        let Unlock_Service = <PageUnlock>
                                        

                                        ist jetzt

                                        let Unlock_Service: PageType =
                                        

                                        wäre dir also nicht bei einem leeren Script passiert.

                                        Und in @TT-Tom Anleitung steht es im Punkt 10 auch nochmal explizit.

                                        https://github.com/joBr99/nspanel-lovelace-ui/wiki/NSPanel-Starthilfe-FAQ#hilfe-bei-update--upgrade
                                        2c5b7f17-9194-4072-b4a1-f417544a17be-image.png

                                        Alle Variablen also nach dem Schema

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

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

                                        1 Reply Last reply
                                        1
                                        • GregorSG Offline
                                          GregorSG Offline
                                          GregorS
                                          wrote on last edited by
                                          #20

                                          @armilar

                                          Danke, hab ich jetzt angepasst.
                                          Verbindung wird aufgebaut, Screensaver und Buttons sind ok, aber meine eigenen
                                          Seiten kann ich nicht aufrufen.

                                          //-- Anfang für eigene Seiten -- z.T. selbstdefinierte Aliase erforderlich ----------------
                                          //-- Start for your own pages -- some self-defined aliases required ----------------
                                          
                                          let Radiosender: PageType =
                                          {
                                              'type': 'cardGrid',
                                              'heading': 'Internetradio',
                                              'useColor': true,
                                              'items': [
                                                  { id: "alias.0.NSPanel.1.Radio.WDR2", icon: "radio", name: "WDR2", onColor: colorRadio},
                                                  { id: "alias.0.NSPanel.1.Radio.RockAntenne", icon: "radio", name: "Rock Antenne", onColor: colorRadio},
                                                  { id: "alias.0.NSPanel.1.Radio.WDR4", icon: "radio", name: "WDR4", onColor: colorRadio},
                                                  { id: "alias.0.NSPanel.1.Radio.Radio_90_1", icon: "radio", name: "Radio 90,1", onColor: colorRadio},
                                                  { id: "alias.0.NSPanel.1.Radio.Antenne_Bayern_80er_Hits", icon: "radio", name: "80er Hits", onColor: colorRadio},
                                                  { id: "alias.0.NSPanel.1.Radio.Nora_Webstream_80er", icon: "radio", name: "Nora 80er", onColor: colorRadio},
                                              ]
                                          };
                                          
                                          let Buero_Alarm: PageType =
                                          {
                                              'type': 'cardAlarm',
                                              'heading': 'Alarmanlage',
                                              'items': [{ id: 'alias.0.NSPanel.Alarm' }]
                                          }; 
                                          

                                          Meine Fehlermeldungen gibt es immer noch

                                          script.js.NSPanel_1_V4_4_0_1: Error: Cannot find module 'dayjs'
                                          

                                          INTEL NUC i7, Sonoff, hmIP, AVM, Jeelink, T-Link, Alexa, Saia-Burgess, uvm.

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


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          69

                                          Online

                                          32.4k

                                          Users

                                          81.3k

                                          Topics

                                          1.3m

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

                                          • Don't have an account? Register

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