Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. (Gelöst)Lüfterdrehung geschwindigkeitsabhängig darstellen

    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

    (Gelöst)Lüfterdrehung geschwindigkeitsabhängig darstellen

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @Damrak2022 last edited by

      @damrak2022 sagte in Lüfterdrehung geschwindigkeitsabhängig darstellen:

      {myVar:javascript.0.MiHomeAll.293261118.power; myVar=="true" ? "rotateanimation" : ""}

      im moment ist die klasse so definiert, dass wenn dort power eingeschaltet ist, sich das widget drehen soll - das sind nur 2 bedingungen.
      jetzt haben wir aber "5" bedingungen - eine ist : ist power on und wenn ja welche der geschwindigkeiten ist eingestellt (25,50,75,100)

      was ich nicht bedacht habe: wenn power off ist, kann ja trotzdem die geschwindigkeit auf einem wert stehen - daher muss das abgefragt werden - poste mal die id des dp für die geschwindigkeit - am besten zeige auch ein bild des dp. oder die raw version im object. evtl ist das eine werteliste, wo man auswählen kann.

      oder was passiert eigentlich mit dem dp der geschwindigkeit, wenn power off ist - wird er dann mit 0 beschrieben oder bleibt der weiterhin auf der geschwindigkeit stehen - musst du mal ausprobieren

      Damrak2022 1 Reply Last reply Reply Quote 0
      • Damrak2022
        Damrak2022 @liv-in-sky last edited by

        @liv-in-sky Das komplette Widget sieht so aus:
        Bildschirmfoto 2022-08-19 um 07.29.56.png
        Wenn ich ihn ausschalte bleiben die Werte so stehen.

        So sehen die Werte bei eingeschaltetem Ventilator aus:
        Bildschirmfoto 2022-08-19 um 07.32.45.png

        So bei ausgeschaltetem Ventilator:
        Bildschirmfoto 2022-08-19 um 07.34.41.png

        Es ändert sich also nur "Power" von "true" auf "false".

        liv-in-sky 2 Replies Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @Damrak2022 last edited by

          @damrak2022

          muss mal eine formel versuchen zu erstellen - moment

          1 Reply Last reply Reply Quote 0
          • liv-in-sky
            liv-in-sky @Damrak2022 last edited by

            @damrak2022
            teste mal:
            die formel:

            {myVar:javascript.0.MiHomeAll.293261118.power; mySpeed:javascript.0.MiHomeAll.293261118.speed_level;myVar=="true" ? mySpeed==0 ? "" : mySpeed==25 ? "rotateanimation-slow" : mySpeed==50 ? "rotateanimation-middle" : mySpeed==75 ? "rotateanimation-fast" : mySpeed==100 ? "rotateanimation-veryfast" : "" : ""}
            

            die ccs einstellung:

            .rotateanimation-slow{
            
             
            
              animation-name: spin2;
            
              animation-duration: 2000ms;
            
              animation-iteration-count: infinite;
            
              animation-timing-function: linear;
            
            }
            
            .rotateanimation-middle{
            
             
            
              animation-name: spin2;
            
              animation-duration: 1200ms;
            
              animation-iteration-count: infinite;
            
              animation-timing-function: linear;
            
            }
            
            .rotateanimation-fast{
            
             
            
              
            
              animation-name: spin2;
            
              animation-duration: 800ms;
            
              animation-iteration-count: infinite;
            
              animation-timing-function: linear;
            
            }
            
            .rotateanimation-veryfast{
            
             
            
             
            
            animation-name: spin2;
            
              animation-duration: 400ms;
            
              animation-iteration-count: infinite;
            
              animation-timing-function: linear;
            
            }
            

            sollte:

            postit-dp (42).gif

            Damrak2022 1 Reply Last reply Reply Quote 0
            • Damrak2022
              Damrak2022 @liv-in-sky last edited by Damrak2022

              @liv-in-sky Erstmal danke. Blöde Frage kommt die Formel in die Script, ode beim Widget bei den Skripten rein. Habe beides probiert, geht aber noch nicht.
              Bildschirmfoto 2022-08-19 um 08.12.56.png
              Bildschirmfoto 2022-08-19 um 08.13.16.png

              Achse, was muss ich nun bei CSS Klasse eintragen?

              liv-in-sky 1 Reply Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @Damrak2022 last edited by

                @damrak2022 ersetze deine css einträgge mit meinen (i mcss tab)

                und die formel gehört wieder im widget unter CSS Klasse

                Image 031.png

                Damrak2022 1 Reply Last reply Reply Quote 0
                • Damrak2022
                  Damrak2022 @liv-in-sky last edited by

                  @liv-in-sky Ja, habe ich bereits gemacht, aber ohne Erfolg. Sieht so aus:

                  .v-btn--fab.v-size--default {
                      height: 30px !important;
                      width: 30px !important;
                      
                  }
                  
                  
                  .rotateanimation-slow{
                   
                   
                   
                    animation-name: spin2;
                   
                    animation-duration: 2000ms;
                   
                    animation-iteration-count: infinite;
                   
                    animation-timing-function: linear;
                   
                  }
                   
                  .rotateanimation-middle{
                   
                   
                   
                    animation-name: spin2;
                   
                    animation-duration: 1200ms;
                   
                    animation-iteration-count: infinite;
                   
                    animation-timing-function: linear;
                   
                  }
                   
                  .rotateanimation-fast{
                   
                   
                   
                    
                   
                    animation-name: spin2;
                   
                    animation-duration: 800ms;
                   
                    animation-iteration-count: infinite;
                   
                    animation-timing-function: linear;
                   
                  }
                   
                  .rotateanimation-veryfast{
                   
                   
                   
                   
                   
                  animation-name: spin2;
                   
                    animation-duration: 400ms;
                   
                    animation-iteration-count: infinite;
                   
                    animation-timing-function: linear;
                   
                  }
                  
                  
                  
                  }
                  
                  .chaot.vis-owl-parcel-headline{
                      border-radius: 3px 3px 3px 3px;
                      height: 26px;
                      width: 160px;
                  
                  liv-in-sky 1 Reply Last reply Reply Quote 0
                  • liv-in-sky
                    liv-in-sky @Damrak2022 last edited by

                    @damrak2022

                    in zeile 70 ist eine klammer, die da nicht hingehört

                    Damrak2022 1 Reply Last reply Reply Quote 0
                    • Damrak2022
                      Damrak2022 @liv-in-sky last edited by

                      @liv-in-sky Ändert nichts, kurzes Telefonat?

                      liv-in-sky 1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @Damrak2022 last edited by

                        @damrak2022 kurz - muss dann bald weg

                        Damrak2022 1 Reply Last reply Reply Quote 0
                        • Damrak2022
                          Damrak2022 @liv-in-sky last edited by

                          @liv-in-sky Das ist das einzige was in der Google Konsole zu sehen ist:

                          Bildschirmfoto 2022-08-19 um 09.14.30.png

                          liv-in-sky 1 Reply Last reply Reply Quote 0
                          • liv-in-sky
                            liv-in-sky @Damrak2022 last edited by liv-in-sky

                            @damrak2022

                            zum test

                            .anime{
                              transform: rotateY!important;
                                animation: roll 5s infinite !important;;
                              
                            }
                            
                            @keyframes roll {
                              0% {
                                transform: rotate(0);
                              }
                              100% {
                                transform: rotate(360deg);
                              }
                            }
                            
                            1 Reply Last reply Reply Quote 0
                            • liv-in-sky
                              liv-in-sky @Damrak2022 last edited by liv-in-sky

                              @damrak2022

                              neuer test:

                              das hier in den css tab -

                              .rotateanimation-slow {
                                animation: rotation 2800ms infinite linear;
                              }
                              
                              .rotateanimation-middle {
                                animation: rotation 1800ms infinite linear;
                              }
                              
                              .rotateanimation-fast {
                                animation: rotation 1200ms infinite linear;
                              }
                              
                              .rotateanimation-veryfast {
                                animation: rotation 700ms infinite linear;
                              }
                              
                              @keyframes rotation {
                                from {
                                  transform: rotate(0deg);
                                }
                                to {
                                  transform: rotate(359deg);
                                }
                              }
                              

                              das ist in der css klasse

                              {myVar:javascript.0.MiHomeAll.293261118.power; mySpeed:javascript.0.MiHomeAll.293261118.speed_level;myVar=="true" ? mySpeed==0 ? "" : mySpeed==25 ? "rotateanimation-slow" : mySpeed==50 ? "rotateanimation-middle" : mySpeed==75 ? "rotateanimation-fast" : mySpeed==100 ? "rotateanimation-veryfast" : "" : ""} 
                              

                              wurde hier getestet:
                              https://forum.iobroker.net/topic/57302/suche-tester-vis-in-safari-css-eintrag?_=1661000048874

                              Damrak2022 1 Reply Last reply Reply Quote 1
                              • Damrak2022
                                Damrak2022 @liv-in-sky last edited by

                                @liv-in-sky Super, jetzt funktioniert es perfekt👍 - Danke für Deine Hilfe.

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                434
                                Online

                                31.9k
                                Users

                                80.2k
                                Topics

                                1.3m
                                Posts

                                2
                                17
                                748
                                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