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.
    • L
      lustig29 @lustig29 last edited by

      Da ja das eine Panel ins Bad soll, würde ich hierdrauf gerne Radiosender ansteuern, die auf der Sonosbox abgespielt werden.
      Im Moment ist es so, dass ein Echo Show mit der Sonosbox verknüpft ist. Ich rufe die Radiosender per Alexa auf und sie werden dann auf der Sonosbox abgespielt.
      Also ich würde ganz gern eine normale Playeransicht haben und dann nochmal ein View mit den verschiedenen Radiosendern.

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

        @lustig29

        Damit steuere ich meine SONOS One
        https://github.com/joBr99/nspanel-lovelace-ui/wiki/NSPanel-‐-cardMedia-‐-Der-SONOS-Player

        Hier ein Beispiel für den ersten Radiosender in einer cardGrid
        https://github.com/joBr99/nspanel-lovelace-ui/wiki/ioBroker---FAQ-&-Anleitungen#9-alias-taste-für-auswahl-eines-radiosenders

        Weitere 5 Sender analog anlegen:

        let Radiosender: PageType =
        {
            'type': 'cardGrid',
            'heading': 'Radio',
            'useColor': true,
            'items': [
                { id: 'alias.0.NSPanel_1.Radio.FFN', icon: 'radio', name: 'FFN', onColor: colorRadio},
                { id: 'alias.0.NSPanel_1.Radio.Antenne' , icon: 'radio', name: 'Antenne Nds.', onColor: colorRadio},
                { id: 'alias.0.NSPanel_1.Radio.NDR2', icon: 'radio', name: 'NDR2', onColor: colorRadio},
                { id: 'alias.0.NSPanel_1.Radio.Bob', icon: 'radio', name: 'Radio BOB', onColor: colorRadio},
                { id: 'alias.0.NSPanel_1.Radio.Spotify', icon: 'spotify', name: 'Party Playlist', onColor: colorSpotify},
                { id: 'alias.0.NSPanel_1.Radio.Alexa', icon: 'playlist-music', name: 'Playlist 2021', onColor: colorAlexa},
        
            ]
        };
        
        1 Reply Last reply Reply Quote 0
        • L
          lustig29 last edited by lustig29

          @armilar
          Habe jetzt die Sonos Card mal angelegt. Bekomme jetzt aber diesen Fehler und das Panel hängt bei Waiting for content.

          javascript.0	12:18:01.406	error	script.js.NSPanelTs_Bad: TypeScript compilation failed: 'useColor': true, ^ ERROR: Object literal may only specify known properties, and ''useColor'' does not exist in type 'PageMedia'.
          
          let Sonos: PageType =
          {
              'type': 'cardMedia',
              'heading': 'Sonos Bad',
              'useColor': true,
              'items': [{   
                          id: AliasPath + 'Media.PlayerSonos', 
                          adapterPlayerInstance: 'sonos.0.',
                          mediaDevice: '192_168_1_180',
                          speakerList: ['Bad', 'Büro'],
                          playList: [''],
                          colorMediaIcon: colorSonos,
                          colorMediaArtist: Yellow,
                          colorMediaTitle: Yellow,
                          autoCreateALias: true
                       }]
          
          Armilar 1 Reply Last reply Reply Quote 0
          • Armilar
            Armilar Most Active Forum Testing @lustig29 last edited by Armilar

            @lustig29

            die Zeile:

            'useColor': true,
            

            Werde es die Tage im Wiki aktualisieren

            So ist es aktuell bei mir:

            let Sonos: PageType =
            {
                'type': 'cardMedia',
                'heading': 'Sonos Player',
                'items': [{   
                            id: AliasPath + 'Media.PlayerSonos', 
                            adapterPlayerInstance: 'sonos.0.',
                            mediaDevice: '192_168_1_212',
                            speakerList: ['Terrasse'],
                            playList: ['Hartmann','Armilars Playlist'],
                            colorMediaIcon: colorSonos,
                            colorMediaArtist: Yellow,
                            colorMediaTitle: Yellow,
                            //crossfade: true,
                            alwaysOnDisplay: true,
                            autoCreateALias: true
                         }]
            };
            

            EDIT: Habe die "useColor" Zeilen noch schnell im Wiki an allen 4 Stellen entfernt. Das Typing enthält useColor nicht mehr, da es für die cardMedia nicht erforderlich ist.

            L 1 Reply Last reply Reply Quote 1
            • L
              lustig29 @Armilar last edited by

              @armilar
              Super, danke. Aber mir wird die Seite angezeigt auf dem Display. Wenn ich durchswipe fehlt sie.

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

                @lustig29

                ist sie auch im Page-Array eingetragen?

                7253f837-36a5-44fb-b4f2-0fc731d7962c-image.png

                Da müsste in "pages: ["

                Sonos,
                NSPanel_Service
                

                über NSPanel_Service stehen.

                L 1 Reply Last reply Reply Quote 1
                • L
                  lustig29 @Armilar last edited by

                  @armilar
                  0e568de5-ac69-4faa-b594-cefa45c8fba6-image.png

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

                    @lustig29

                    nach nochmaligem Start immer noch nicht da?

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      lustig29 @Armilar last edited by

                      @armilar Nee, leider nicht.

                      39bb1b35-cccf-49ff-8364-755470f43eab-image.png

                      Armilar T 2 Replies Last reply Reply Quote 0
                      • Armilar
                        Armilar Most Active Forum Testing @lustig29 last edited by

                        @lustig29

                        Ist setObjects in der Javascript-Instanz aktiv?

                        https://github.com/joBr99/nspanel-lovelace-ui/wiki/ioBroker---Basisinstallation#8--einstellungen-in-js-adapter-instanz

                        Sorry bin für 2-3 Stunden AFK

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

                          @lustig29

                          Kurze Frage damit ich es richtig verstehe. Beim Neustart wird sie direkt angezeigt und wenn du nach rechts gehst und wieder zurück ist sie weg??

                          L 2 Replies Last reply Reply Quote 0
                          • L
                            lustig29 @TT-Tom last edited by

                            @tt-tom Nein, sie taucht gar nicht auf. Sorry, bisschen blöd ausgedrückt

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

                              @tt-tom
                              Kurze zwischen Frage. Ich habe ja jetzt 3 Panels am laufen seit heute. Vorher war es nur NsPanel_1.

                              Unter Mqtt sind sie ja alle drin. Aber wieso nicht unter userdata. Oder muss das nicht sein?

                              4400f2f3-a9f0-43d1-8779-5be0ee2b7db6-image.png

                              0d12362c-c071-434c-8bea-f7f17a336142-image.png

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

                                @lustig29

                                du musst in dem Script für die einzelnen Panels folgende Zeile anpassen.

                                /***** 2. Directories in 0_userdata.0... *****/
                                
                                    // DE: Anpassen an das jeweilige NSPanel
                                    // EN: Adapt to the respective NSPanel
                                    const NSPanel_Path = '0_userdata.0.NSPanel.1.';
                                
                                L 1 Reply Last reply Reply Quote 0
                                • L
                                  lustig29 @TT-Tom last edited by lustig29

                                  @tt-tom AH, ok. Und dann werden die Dateien im userdata automatisch angelegt?

                                  Kann ich da meine Namen Bad + Schlafzimmer verwenden?

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

                                    @lustig29

                                    ja. Schlafzimmer würde ich SZ abkürzen. Die Zeichenlänge des Pfades ist begrenzt. Hatten hier schon Probleme mit zu langen Pfadnamen.

                                    L 1 Reply Last reply Reply Quote 1
                                    • L
                                      lustig29 @TT-Tom last edited by

                                      @tt-tom Super, danke.

                                      1 Reply Last reply Reply Quote 0
                                      • GregorS
                                        GregorS @lustig29 last edited by GregorS

                                        Hab jetz das aktuelle Script laufen.
                                        Habe da Fragen zur AlarmPage.

                                        1. Wie kann ich die Aktivierungsmöglichkeiten auf der rechten Seite auf
                                          "Vollschutz" und "Zuhause" anpassen?
                                          Im alten Script habe ich es ab Zeile 5099 abgeändert
                                        if (entityState == 'disarmed' || entityState == 'arming' || entityState == 'pending') {
                                                       arm1 = 'Vollschutz';                                        //arm1*~*
                                                       arm1ActionName = 'A1';                                      //arm1ActionName*~*
                                                       arm2 = 'Zuhause';                                           //arm2*~*
                                                       arm2ActionName = 'A2';                                      //arm2ActionName*~*
                                                       arm3 = '';                                             //arm3*~*
                                                       arm3ActionName = 'A3';                                      //arm3ActionName*~*
                                                       arm4 = '';                                            //arm4*~*
                                                       arm4ActionName = 'A4';                                      //arm4ActionName*~*
                                        
                                        1. Wie kann ich die Rückfallzeit auf den Screensaver verlängern, bzw. solange die Alarmpage aktiv ist, soll das Panel nicht auf den Scrennsaver umschalten.

                                        Danke für Eure Hilfe

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

                                          @gregors

                                          siehe hier. wird jetzt in der PageConfig festgelegt.

                                          alwaysOnDisplay: true => gibt es da noch nicht, ggf. ein Feature Request anlegen auf Github

                                          GregorS 1 Reply Last reply Reply Quote 2
                                          • GregorS
                                            GregorS @TT-Tom last edited by

                                            @tt-tom

                                            Bis auf die Rückfallzeit ist jetzt alles tutti.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            831
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            lovelace ui nspanel sonoff
                                            265
                                            7262
                                            4993989
                                            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