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

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    SONOFF NSPanel mit Lovelace UI

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

      @alfredtetzlaff

      Du hast einen Fehler bei dem PageItem

      'items': [
      <PageItem>{ id: 'growatt.0.343892.devices.DJE3A1318D.deviceData.eTotal'},
      <PageItem>{ id: 'alias.0.Growatt-Solar.Energie-Gesamt.ACTUAL', icon: 'radio', name: 'Radio BOB', onColor: colorRadio},
      <PageItem>{ id: 'alias.0.Growatt-Solar.Energie-Heute.ACTUAL', icon: 'timer-outline', name: 'Timer', onColor: White}
      ]
      

      Das Actual kommt da nicht mit hin. Dein erstes PageItem ist falsch angelegt, ist kein Alias.

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

        @tt-tom
        Okay, Den ersten PageItem hatte ich später hinzugefügt, nur als Test.
        Vorher waren nur die alias-Item drin......Aber ich schmeiss den ersten gleich raus. und starte neu...

        A T 2 Replies Last reply Reply Quote 0
        • A
          AlfredTetzlaff @AlfredTetzlaff last edited by

          @alfredtetzlaff
          So sieht es jetzt aus....trotzdem keine Werte oder auch Icons:

          //-- Anfang der Beispiele für Seitengestaltung -- Selbstdefinierte Aliase erforderlich ----------------
          
          let PV = <PageGrid>
          {
              'type': 'cardGrid',
              'heading': 'Growatt',
              'useColor': true,
              'items': [
                  
                  <PageItem>{ id: 'alias.0.Growatt-Solar.Energie-Gesamt.ACTUAL', icon: 'radio', name: 'Radio BOB', onColor: colorRadio},
                  <PageItem>{ id: 'alias.0.Growatt-Solar.Energie-Heute.ACTUAL', icon: 'timer-outline', name: 'Timer', onColor: White}
              ]
          
          Armilar 1 Reply Last reply Reply Quote 0
          • T
            TT-Tom @AlfredTetzlaff last edited by

            @alfredtetzlaff

            Hier ein Beispiel für eine Page mit Werten. Ist auch im Script vorgestellt.

            let SensorGrid = <PageGrid>
            {
                'type': 'cardGrid',
                'heading': 'Sensor Werte',
                'useColor': true,
                'items': [
                    <PageItem>{ id: 'alias.0.NSPanel_1.TestTemperatur', name: 'Außentemp. °C', offColor: MSRed, onColor: MSGreen, useValue: true, colorScale: {'val_min': -20, 'val_max': 40, 'val_best': 20} },
                    <PageItem>{ id: 'alias.0.NSPanel_1.TestFeuchtigkeit', name: 'Luftfeuchte %', offColor: MSYellow, onColor: MSYellow , useValue: true, colorScale: {'val_min': 0, 'val_max': 100, 'val_best': 65} },
                    <PageItem>{ id: 'alias.0.NSPanel_1.Taupunkt', name: 'Taupunkt °C', offColor: MSRed, onColor: MSGreen, useValue: true, colorScale: {'val_min': -20, 'val_max': 40, 'val_best': 20} },
                    <PageItem>{ id: 'alias.0.NSPanel_1.UV_Index', name: 'UV Index', offColor: White , onColor: White, useValue: true, colorScale: {'val_min': 0, 'val_max': 12} },
                    <PageItem>{ id: 'alias.0.NSPanel_1.Windstaerke', name: 'Windstärke bft', offColor: White , onColor: White, useValue: true, colorScale: {'val_min': 0, 'val_max': 9} },
                    <PageItem>{ id: 'alias.0.NSPanel_1.Luftdruck', name: 'Luftdruck hPa', offColor: White , onColor: White, useValue: true, colorScale: {'val_min': 950, 'val_max': 1050, 'val_best': 1013} },
                ]
            };
            
            A 1 Reply Last reply Reply Quote 0
            • A
              AlfredTetzlaff @TT-Tom last edited by

              @tt-tom
              Danke, ich schmeiss das gleich rein....

              A 1 Reply Last reply Reply Quote 0
              • A
                AlfredTetzlaff @AlfredTetzlaff last edited by

                @alfredtetzlaff
                Habs reinkopiert aus dem Beispiel-Script und gleich noch eine zweite Seite generiert. Die zweite ist da, kann auch navigieren, aber auf beiden Seiten keine Werte. Es kann also nur der alias fehlerhaft sein.
                Ist vielleich das Minuszeichen im Alias-wort der fehler? Ich korrigiere das gleich...

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

                  @alfredtetzlaff zeige mal bitte deine Alias.

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

                    @tt-tom
                    20230308_153328.jpg

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

                      @alfredtetzlaff aus dem Objekte Tab und wenn möglich keine Fotos. Bitte Screenshots posten.

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

                        @tt-tom
                        ScreenShot ist schwierig zZ...

                        Ich lege die Aliasse neu an ohne Minuszeichen....Ich denke, daran liegt es...
                        Melde mich wieder ....Danke...

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          AlfredTetzlaff @AlfredTetzlaff last edited by

                          @alfredtetzlaff
                          5a613cee-50e6-45cb-a02a-3ac4767655af-grafik.png
                          Neue Aliase sind angelegt worden. Kompiler bringt auch keine Fehler.

                          //-- Anfang der Beispiele für Seitengestaltung -- Selbstdefinierte Aliase erforderlich ----------------
                          let SensorGrid = <PageGrid>
                          {
                              'type': 'cardGrid',
                              'heading': 'Sensor Werte',
                              'useColor': true,
                              'items': [
                                  <PageItem>{ id: 'alias.0.GrowattSolar.EnergieGesamt.ACTUAL', name: 'Außentemp. °C', offColor: MSRed, onColor: MSGreen, useValue: true, colorScale: {'val_min': -20, 'val_max': 40, 'val_best': 20} },
                                  <PageItem>{ id: 'alias.0.GrowattSolar.EnergieGesamt.ACTUAL', name: 'Luftfeuchte %', offColor: MSYellow, onColor: MSYellow , useValue: true, colorScale: {'val_min': 0, 'val_max': 100, 'val_best': 65} },
                                  <PageItem>{ id: 'alias.0.GrowattSolar.EnergieGesamt.ACTUAL', name: 'Taupunkt °C', offColor: MSRed, onColor: MSGreen, useValue: true, colorScale: {'val_min': -20, 'val_max': 40, 'val_best': 20} },
                                  <PageItem>{ id: 'alias.0.GrowattSolar.EnergieGesamt.ACTUALL', name: 'UV Index', offColor: White , onColor: White, useValue: true, colorScale: {'val_min': 0, 'val_max': 12} },
                                  <PageItem>{ id: 'alias.0.GrowattSolar.EnergieGesamt.ACTUAL', name: 'Windstärke bft', offColor: White , onColor: White, useValue: true, colorScale: {'val_min': 0, 'val_max': 9} },
                                  <PageItem>{ id: 'alias.0.GrowattSolar.EnergieGesamt.ACTUAL', name: 'Luftdruck hPa', offColor: White , onColor: White, useValue: true, colorScale: {'val_min': 950, 'val_max': 1050, 'val_best': 1013} },
                              ]
                          };
                          let PV = <PageGrid>
                          {
                              'type': 'cardGrid',
                              'heading': 'Growatt',
                              'useColor': true,
                              'items': [
                                  
                                  <PageItem>{ id: 'alias.0.GrowattSolar.EnergieGesamt.ACTUAL', icon: 'radio', name: 'Radio BOB', onColor: colorRadio},
                                  <PageItem>{ id: 'alias.0.GrowattSolar.EnergieHeute.ACTUAL', icon: 'timer-outline', name: 'Timer', onColor: White}
                              ]
                          };
                          //-- ENDE der Beispiele für Seitengestaltung -- Selbstdefinierte Aliase erforderlich ------------------
                          

                          Die beiden Seite sind da, aber keine Werte und Icons. Komisch.

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

                            @alfredtetzlaff

                            LASS das ACTUAL weg.

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

                              UPDATE: hat geklappt

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

                              Backlog UpdateDriverVersion https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be; Restart 1

                              thx, wo gebe ch das an/ein? auch in der Tasmota Console?

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

                                @tt-tom
                                Prima, danke....Fortschritt ist zu verzeichnen.....
                                Growatt-Seite zeigt jetzt zumindest zwei Icons an: Radio BOB & Timer.
                                Sensor-Werte-Seite zeigt 2 x 3 große Zahlenwerten an, aus dem Adapter "3200"...
                                Die Schrift bei den Zahlenwerten st SEHR groß, aber immerhin ein Groooosser Erfolg..

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

                                  @alfredtetzlaff

                                  Da darf kein .ACTUAL in der id stehen

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

                                    @tklein Okay, wo stehst du jetzt??

                                    T 1 Reply Last reply Reply Quote 0
                                    • A
                                      AlfredTetzlaff @Armilar last edited by

                                      @armilar
                                      Jo, hatte den falschen Zweig im Alias stehen,,ohne ACTUAL geht es jetzt erstmal.
                                      In der Seite mit 2x3 anzeigen ist die Schriftgröße der angezeigten Werte einfach zu groß. Kann man die ändern.????

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

                                        @alfredtetzlaff
                                        Was möchtest du eigentlich darstellen. Du könntest auch eine CardEntiries erstellen, hast dann aber nur 4 Werte pro Seite.

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

                                          @tt-tom
                                          Ja, 4 Werte würden mir schon ausreichen.
                                          Brauche aus der PV nur 4 Werte:
                                          Gesamt in kWh
                                          Heute in kWh
                                          Strom in A
                                          akt. Leistung in W

                                          T A 2 Replies Last reply Reply Quote 0
                                          • T
                                            TT-Tom @AlfredTetzlaff last edited by

                                            @alfredtetzlaff
                                            dann ändere den oberen teil der Page Definition in

                                            let PV = <PageEntities>
                                            {
                                                'type': 'cardEntities',
                                            
                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            738
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

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