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

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    SONOFF NSPanel mit Lovelace UI

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      chiob314 @Armilar last edited by

      @armilar Ist dein OS, wo iobroker drauf läuft, nativ auf deutsch installiert worden? Ich habe es aus diversen Gründen auf Englisch installiert, habe Locales nachinstalliert, alles auf deutsch umgestellt, und jetzt bekomme ich diese Datumsanzeige:

      2022 M10 15, Sat

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

        @chiob314 sagte in SONOFF NSPanel mit Lovelace UI:

        @armilar
        Merci für die Unterstützung! Ich bin einfach kein Entwickler, merk ich. Danke deswegen für die Unterstützung!

        Was bleibt ist das Phänomen mit der Sprache. Im Wetterforecast werden die Wochentage auch Englisch angezeigt.

        Hast du da noch irgendwelche Erleuchtungen?
        Danke und Grüße
        Bastian

        Was ist denn das für ein System?

        C 1 Reply Last reply Reply Quote 0
        • C
          chiob314 @Armilar last edited by

          @armilar ubuntu 20.04, tagesaktuell gepatcht

          Armilar 1 Reply Last reply Reply Quote 0
          • N
            nevermind @Armilar last edited by

            @armilar

            Yes:) Danke dir!

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

              @nevermind sagte in SONOFF NSPanel mit Lovelace UI:

              @armilar

              Yes:) Danke dir!

              👍

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

                @chiob314 sagte in SONOFF NSPanel mit Lovelace UI:

                @armilar ubuntu 20.04, tagesaktuell gepatcht

                was zeigt

                $ locale
                

                und

                $ locale -a
                

                an?

                Nee, habe aktuell ein ubuntu22.04 laufen. Mache alle Installationen immer selbst...

                C 1 Reply Last reply Reply Quote 0
                • C
                  chiob314 @Armilar last edited by

                  @armilar

                  administrator@mrtn-iobroker:~$ locale
                  LANG=de_DE.UTF-8
                  LANGUAGE=
                  LC_CTYPE="de_DE.UTF-8"
                  LC_NUMERIC="de_DE.UTF-8"
                  LC_TIME="de_DE.UTF-8"
                  LC_COLLATE="de_DE.UTF-8"
                  LC_MONETARY="de_DE.UTF-8"
                  LC_MESSAGES="de_DE.UTF-8"
                  LC_PAPER="de_DE.UTF-8"
                  LC_NAME="de_DE.UTF-8"
                  LC_ADDRESS="de_DE.UTF-8"
                  LC_TELEPHONE="de_DE.UTF-8"
                  LC_MEASUREMENT="de_DE.UTF-8"
                  LC_IDENTIFICATION="de_DE.UTF-8"
                  LC_ALL=
                  administrator@mrtn-iobroker:~$ locale -a
                  C
                  C.UTF-8
                  de_DE.utf8
                  en_US.utf8
                  POSIX
                  
                  
                  Armilar 1 Reply Last reply Reply Quote 0
                  • Armilar
                    Armilar Most Active Forum Testing @chiob314 last edited by

                    @chiob314 sagte in SONOFF NSPanel mit Lovelace UI:

                    @armilar

                    administrator@mrtn-iobroker:~$ locale
                    LANG=de_DE.UTF-8
                    LANGUAGE=
                    LC_CTYPE="de_DE.UTF-8"
                    LC_NUMERIC="de_DE.UTF-8"
                    LC_TIME="de_DE.UTF-8"
                    LC_COLLATE="de_DE.UTF-8"
                    LC_MONETARY="de_DE.UTF-8"
                    LC_MESSAGES="de_DE.UTF-8"
                    LC_PAPER="de_DE.UTF-8"
                    LC_NAME="de_DE.UTF-8"
                    LC_ADDRESS="de_DE.UTF-8"
                    LC_TELEPHONE="de_DE.UTF-8"
                    LC_MEASUREMENT="de_DE.UTF-8"
                    LC_IDENTIFICATION="de_DE.UTF-8"
                    LC_ALL=
                    administrator@mrtn-iobroker:~$ locale -a
                    C
                    C.UTF-8
                    de_DE.utf8
                    en_US.utf8
                    POSIX
                    
                    

                    da gibt es von meiner Seite kein Veto...

                    Wie sieht die Einstellung im ioBroker aus?

                    d8589df1-8740-4d88-8112-1935102dfbac-image.png

                    C 2 Replies Last reply Reply Quote 0
                    • C
                      chiob314 @Armilar last edited by

                      @armilar
                      5935af2f-6e96-4ce9-a3d9-89621bac29da-grafik.png

                      Eigentlich auch soweit ok....

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

                        @chiob314 sagte in SONOFF NSPanel mit Lovelace UI:

                        @armilar
                        5935af2f-6e96-4ce9-a3d9-89621bac29da-grafik.png

                        Eigentlich auch soweit ok....

                        Dann verstehe ich das aber irgendwie auch nicht mehr... 😕

                        1 Reply Last reply Reply Quote 0
                        • C
                          chiob314 @Armilar last edited by

                          @armilar Dann sind wir ja schon zu zweit. (danke mal bis hierher!!)

                          Vielleicht gibt es ja noch von anderen Kollegen hier ein paar Ideen, was das sein könnte...

                          C Armilar T 3 Replies Last reply Reply Quote 0
                          • C
                            chiob314 @chiob314 last edited by

                            @Armilar

                            Das Problem müsste irgendwo hier stecken:

                            function SendDate(): void {
                                try {
                                    const date = new Date();
                                    const options: any = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
                                    const _SendDate = date.toLocaleDateString(config.locale, options);
                            
                                    SendToPanel(<Payload>{ payload: 'date~' + _SendDate });
                                } catch (err) {
                                    console.warn('function SendDate: ' + err.message);
                                }
                            }
                            

                            Die Funktion date.toLocalDateString müsste hier eigentlich brav alles umwandeln. Aus irgendeinem Grund passiert das nicht.

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

                              @chiob314 sagte in SONOFF NSPanel mit Lovelace UI:

                              @armilar Dann sind wir ja schon zu zweit. (danke mal bis hierher!!)

                              Vielleicht gibt es ja noch von anderen Kollegen hier ein paar Ideen, was das sein könnte...

                              function SendDate(): void {
                                  try {
                                      const date = new Date();
                                      const options: any = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
                                      const _SendDate = date.toLocaleDateString(config.locale, options);
                              
                                      SendToPanel(<Payload>{ payload: 'date~' + _SendDate });
                                  } catch (err) {
                                      console.warn('function SendDate: ' + err.message);
                                  }
                              }
                              

                              Das ist zumindest mal das Datum in der Mitte des Screensavers

                              Die bekommt als Variable in config.locale ein de-DE und wandelt alles dann um. Eigentlich kein Hexenwerk...

                              C 1 Reply Last reply Reply Quote 0
                              • C
                                chiob314 @Armilar last edited by

                                @armilar richtig. Ich hab mal statt der Variable config.locale direkt 'de-DE' eingetragen. Aber.....
                                Auch mal mit ner anderen locale getestet. Keine Änderung.

                                C 1 Reply Last reply Reply Quote 0
                                • C
                                  chiob314 @chiob314 last edited by

                                  @Armilar Problem gelöst! nodejs Update durchgeführt (ich war noch auf ner 12er Version.......)

                                  Jetzt ist alles schick.

                                  Armilar Thomas Braun 2 Replies Last reply Reply Quote 0
                                  • Armilar
                                    Armilar Most Active Forum Testing @chiob314 last edited by

                                    @chiob314 sagte in SONOFF NSPanel mit Lovelace UI:

                                    @Armilar Problem gelöst! nodejs Update durchgeführt (ich war noch auf ner 12er Version.......)

                                    Jetzt ist alles schick.

                                    👍

                                    1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @chiob314 last edited by Thomas Braun

                                      @chiob314 sagte in SONOFF NSPanel mit Lovelace UI:

                                      nodejs Update durchgeführt (ich war noch auf ner 12er Version.......)

                                      Und ich bekomme immer zuhören:
                                      Du immer mit deinem nodejs-Update-Geseiere...
                                      Das hat überhaupt nichts mit dem Problem zu tun!1!

                                      Ein aktuelles und korrekt installiertes nodejs ist die Grundlage für alles im iobroker!

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

                                        @thomas-braun sagte in SONOFF NSPanel mit Lovelace UI:

                                        @chiob314 sagte in SONOFF NSPanel mit Lovelace UI:

                                        nodejs Update durchgeführt (ich war noch auf ner 12er Version.......)

                                        Und ich bekomme immer zuhören:
                                        Du immer mit deinem nodejs-Update-Geseiere...
                                        Das hat überhaupt nichts mit dem Problem zu tun!1!

                                        Ein aktuelles und korrekt installiertes nodejs ist die Grundlage für alles im iobroker!

                                        "vor allem korrekt installiert" - denn "date.toLocaleDateString" gab es in der 12er auch schon... 😉

                                        Aber aktuell sollte es auch sein. Und Probleme, dessen Ursache man an an völlig anderer Stelle erwartet, lösen sich dann in Luft auf... So eine Laufzeitumgebung für Javascript ist halt auch nur ein Mensch... 😊 👍

                                        1 Reply Last reply Reply Quote 2
                                        • Matzebhv
                                          Matzebhv last edited by

                                          Moin, ich wieder mit meinem neu aufgesetzten System 🙂

                                          Habe die Chance genutzt und sowohl die Firmware als auch die Scripte auf aktuellen Stand zu bringen.

                                          Das Panel funktioniert einwandfrei, allerdings wird das Log vollgeschrieben mit:

                                          script.js.NSPanel.Panel1: error with reading senor-data: Cannot read properties of undefined (reading 'Temperature')

                                          Ich kann den Fehler absolut nicht finden.

                                          Tasmota, Firmware, Script und iOBroker aktuell.

                                          Gruß
                                          Matze

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

                                            @matzebhv sagte in SONOFF NSPanel mit Lovelace UI:

                                            Moin, ich wieder mit meinem neu aufgesetzten System 🙂

                                            Habe die Chance genutzt und sowohl die Firmware als auch die Scripte auf aktuellen Stand zu bringen.

                                            Das Panel funktioniert einwandfrei, allerdings wird das Log vollgeschrieben mit:

                                            script.js.NSPanel.Panel1: error with reading senor-data: Cannot read properties of undefined (reading 'Temperature')

                                            Ich kann den Fehler absolut nicht finden.

                                            Tasmota, Firmware, Script und iOBroker aktuell.

                                            Gruß
                                            Matze

                                            Benutzt du eine Emulation oder das echte Panel?

                                            Erste Vermutung: Der interne Sensor ist nicht im Tasmota-Template...

                                            Hintergrund, es werden die internen Sensordaten (der benannte ist der Temperatursensor) ausgelesen und in Datenpunkte unter 0_userdata.0. geschrieben. Bei meiner Emu (die hat ja keine externen Sensoren) ist der Fehler völlig normal. Beim Original Panel allerdings nicht.

                                            Nachfolgende Funktion (fast am Ende des TS-Scripts vor den Color-Funktionen) findest du folgende Funktion:

                                            //------------------Begin Read Internal Sensor Data
                                            on({ id: config.panelRecvTopic.substring(0, config.panelRecvTopic.length - 'RESULT'.length) + 'SENSOR' }, async (obj) => {
                                                try {
                                                    const Tasmota_Sensor = JSON.parse(obj.state.val);
                                            
                                                    await createStateAsync(NSPanel_Path + 'Sensor.Time', <iobJS.StateCommon>{ type: 'string' });
                                                    await createStateAsync(NSPanel_Path + 'Sensor.TempUnit', <iobJS.StateCommon>{ type: 'string' });
                                                    await createStateAsync(NSPanel_Path + 'Sensor.ANALOG.Temperature', <iobJS.StateCommon>{ type: 'number', 'unit': '°C' });
                                                    await createStateAsync(NSPanel_Path + 'Sensor.ESP32.Temperature', <iobJS.StateCommon>{ type: 'number', 'unit': '°C' });
                                            
                                                    await setStateAsync(NSPanel_Path + 'Sensor.Time', <iobJS.State>{ val: Tasmota_Sensor.Time, ack: true });
                                                    await setStateAsync(NSPanel_Path + 'Sensor.TempUnit', <iobJS.State>{ val: '°' + Tasmota_Sensor.TempUnit, ack: true });
                                                    //await setStateAsync(NSPanel_Path + 'Sensor.ANALOG.Temperature', <iobJS.State>{ val: parseFloat(Tasmota_Sensor.ANALOG.Temperature1), ack: true });
                                                    await setStateAsync(NSPanel_Path + 'Sensor.ESP32.Temperature', <iobJS.State>{ val: parseFloat(Tasmota_Sensor.ESP32.Temperature), ack: true });
                                                } catch (err) {
                                                    console.warn('error with reading senor-data: '+ err.message);
                                                }
                                            });
                                            //------------------End Read Internal Sensor Data
                                            

                                            Kommentiere den vorletzten setStateAsync mal aus. Falls danach immer noch, den ESP32 Sensor eine Zeile danach.

                                            Dann melden 😉

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            959
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            lovelace ui nspanel sonoff
                                            260
                                            7128
                                            4354887
                                            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