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

      @lustig29 said in SONOFF NSPanel mit Lovelace UI:

      Würdest du mir zeigen wie du es auf dem NsPanel steuerst, bzw. die Card mit mir teilen?

      Ich hab die Garage auf zwei Card's, einmal auf einer Übersicht und einmal alleine, außerdem wird es noch als ScreensaverEntity angezeigt.

      Hier die Alias die ich dafür habe:

      garage.png

      Und hier die Card's:

      let Grundstueck: PageType = {
          'type': 'cardGrid',
          'heading': 'Grundstück',
          'useColor': true,
          'subPage': false,
          'next': 'Alarm', 
          'items': [
              { navigate: true, id: null, targetPage: 'Nuki', name: 'Haus', icon: 'home-roof', offColor: Blue, onColor: Blue},
      		{ id: 'alias.0.Home.Garage.Garagentor', targetPage: 'Garage', name: 'Garage', icon: 'garage-variant', icon2: 'garage-open-variant', offColor: Red, onColor: White},
              { id: 'alias.0.Home.NewMail', icon: 'mailbox-open-up-outline', icon2: 'mailbox-outline', offColor: White, onColor: Red, name: 'Mail'},
      		{ navigate: true, id: null, targetPage: 'Erdgeschoss', name: 'Erdgeschoss', icon: 'home-floor-0', offColor: White, onColor: Blue},
      		{ navigate: true, id: null, targetPage: 'Obergeschoss', name: 'Obergeschoss', icon: 'home-floor-1', offColor: White, onColor: Blue}
          ]
      };
      
      let Garage: PageType =
      {
          'type': 'cardEntities',
          'heading': 'Garage',
          'useColor': true,
          'subPage': true,
      	'prev': 'Nuki',
      	'next': 'Abfall',
          'items': [
              { id: 'alias.0.Home.Garage.Garagentor', icon: 'garage', icon2: 'garage-open', offColor: MSRed, onColor: MSGreen, name: 'Garagentor'},
          ]
      };
      
      L 1 Reply Last reply Reply Quote 0
      • L
        lustig29 @icebear last edited by lustig29

        @icebear

        Danke. Hab es jetzt ein bisschen abgeändert. Aber es funktioniert leider nicht.

        let Garage: PageType =
        {
            'type': 'cardEntities',
            'heading': 'Garage',
            'subPage': false,
            'items': [
                { id: 'alias.0.NSPanel.1.Garagentor', icon: 'garage', icon2: 'garage-open', offColor: MSRed, onColor: MSGreen, name: 'Garagentor'},
            ]
        
        javascript.0 (94354) script.js.NSPanelTs: TypeScript compilation failed: let Garage: PageType = { ^ ERROR: Type '{ type: "cardEntities"; heading: string; subPage: false; items: [{ id: string; icon: string; icon2: string; offColor: NSPanel.RGB; onColor: NSPanel.RGB; name: string; }]; }' is not assignable to type 'PageType'. Type '{ type: "cardEntities"; heading: string; subPage: false; items: [{ id: string; icon: string; icon2: string; offColor: NSPanel.RGB; onColor: NSPanel.RGB; name: string; }]; }' is not assignable to type 'PageEntities'. Property 'useColor' is missing in type '{ type: "cardEntities"; heading: string; subPage: false; items: [{ id: string; icon: string; icon2: string; offColor: NSPanel.RGB; onColor: NSPanel.RGB; name: string; }]; }' but required in type 'PageBaseType'.
        
        icebear 1 Reply Last reply Reply Quote 0
        • icebear
          icebear @lustig29 last edited by

          @lustig29

          Hast du denn, wenn du das subPage auf 'False setzt' die Card auch bei dir bei Pages eingetragen?

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

            @icebear Ja, hab ich. Oder soll ich mal die Subpages mal wieder aktivieren?

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

              @lustig29

              trag mal das 'useColor': true, wieder ein

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

                @icebear
                Jetzt sieht es besser aus. Leider wird mir nur Garage "geschlossen" angezeigt.
                Hab die andere Card jetzt auch mal eingefügt. Sieht optisch sehr gut aus. Was muss ich einstellen, damit ich mein Garagentor in groß angezeigt bekomme? Will nicht wieder zu viel löschen.😁

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

                  @lustig29 nimm mal die cardGrid. Größer gehen die Icon nicht.

                  Wenn das Icon nur zu anzeigt, wird es an dem Alias liegen. Wie sieht den der Channel und die darunter liegende Datenpunkte aus.

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

                    @tt-tom IMG_4317.png IMG_4316.png

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

                      @lustig29

                      setze mal bei ACTUAL den gleichen DP ein, wie bei SET. Welchen DP hast du genommen bei SET, ist auf dem Foto nicht zu erkennen.

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

                        @tt-tom 0-garageDoor. Hab den selben jetzt bei Actual auch eingetragen. Geht aber leider nicht.

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

                          @lustig29
                          zeige mal bitte diese Daten vom Chanel und vom Datenpunkt ACTUAL

                          19ad13a6-75f1-475e-b75f-e09f4e4832fb-image.png

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

                            @lustig29 said in SONOFF NSPanel mit Lovelace UI:

                            0-garageDoor. Hab den selben jetzt bei Actual auch eingetragen. Geht aber leider nicht.

                            Ich misch mich nochmal ein. Welchen Meross Garagentoröffner hast du ?

                            Bei den Alias von mir ist es ein MSG100 und damit funktioniert es bei mir einwandfrei.

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

                              @icebear
                              Den hier habe ich.

                              https://amzn.eu/d/4I9o3pO

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

                                @lustig29

                                mal so gefragt, ändert sich der Status von false auf true, wenn das Tor offen ist. Beobachte mal die Datenpunkte, wie sie sich verhalten beim Bewegen des Tors.

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

                                  @tt-tom
                                  Ja, 0Garagedoor Datenpunkt geht auf True wenn geöffnet und false wenn geschlossen.
                                  Der Fehler muss irgendwie im Alias liegen.
                                  Aber ich weiß nicht, was ich flasch gemacht habe.
                                  Habe unter Geräte einen Alias „Tor“ angelegt und mit den 2 Datenpunkten gefüttert. Keine Ahnung warum es nicht geht.🤷🏼‍♂️

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

                                    @lustig29

                                    Nochmal von vorne.

                                    Ich benötige die Daten aus dem Bild was ich dir gezeigt habe. Einmal vom Datenpunkt ACTUAL und einmal vom Channel darüber.
                                    Und die Config der Seite aus dem Script. Sonst drehen wir uns im Kreis.

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

                                      @lustig29 said in SONOFF NSPanel mit Lovelace UI:

                                      Der Fehler muss irgendwie im Alias liegen.

                                      Mach mal bitte den Alias vom Gerät auf, so wie hier:

                                      meross.png

                                      und dann bei ACTUAL hinten auf das 'fx' und da trägst du folgendes ein:

                                      val === true ? false : true

                                      Marc Berg T L 3 Replies Last reply Reply Quote 0
                                      • Marc Berg
                                        Marc Berg Most Active @icebear last edited by

                                        @icebear sagte in SONOFF NSPanel mit Lovelace UI:

                                        val === true ? false : true

                                        das selbe Ergebnis bekommst du mit:

                                        !val
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • roy0575
                                          roy0575 last edited by

                                          Hallo,
                                          Ich bin neu Eingestiegen und habe die Anleitungen befolgt. Eigene Datenpunkte und Aliase erstellt.
                                          Leider fehlen mir die icons.
                                          Lässt sich bestimmt lösen.
                                          Vielen Dank

                                          image.jpg image.jpg

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

                                            @icebear

                                            er schreibt, es ändert sich nichts bzw. bleibt nur geschlossen. Mit deinem Vorschlag tauschst du nur auf / zu.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            879
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

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