Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. VIS 1.2.10 Problem mit Bindings

    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

    UNSOLVED VIS 1.2.10 Problem mit Bindings

    This topic has been deleted. Only users with topic management privileges can see it.
    • arteck
      arteck Developer Most Active @etv last edited by arteck

      @etv sagte in VIS 1.2.10 Problem mit Bindings:

      {val:chromecast.0.ccAudioWohnzimmer.status.playing; val== "true" ? "#00DE00" : "#FFFFFF"}

      {val:chromecast.0.ccAudioWohnzimmer.status.playing;(val === true)?"#00DE00":"#FFFFFF"}
      

      on mit oder ohne klammer ..sollte gehen

      etv 1 Reply Last reply Reply Quote 0
      • etv
        etv @arteck last edited by

        @arteck ...nö - leider nicht - Rahmen bleibt immer auf weiß = ist meine Standard Farbe, d.h. er erkennt die Formel nimma....

        Wie gesagt mit 1.2.9 funktioniert es

        Liebe Grüße
        Tom

        K 1 Reply Last reply Reply Quote 0
        • K
          Knoddel @etv last edited by

          {val:0_userdata.0.Sicherheit.Fensterstatus; val == "true" ? "#13dd4b": "#f81627"}
          

          bei mir dasselbe

          1 Reply Last reply Reply Quote 0
          • Röstkartoffel
            Röstkartoffel last edited by

            Hilft euch das weiter?

            https://forum.iobroker.net/topic/36216/boolsche-werte-in-css-ausdrücken/5
            
            arteck 1 Reply Last reply Reply Quote 0
            • arteck
              arteck Developer Most Active @Röstkartoffel last edited by arteck

              @Röstkartoffel bei mir gehts

              fe30b2b2-9b94-4d52-91cc-dbe0d753f79f-grafik.png

              bin auf 1.2.11

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

                habe alles auf neusten (latest) stand gebracht - web, socket javascript und vis- meine bindings funktionieren auch noch 😞

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

                  @liv-in-sky

                  bei mir funktioniert das leider mit der 1.2.11 (und Rest aktuelle auf latest) auch nicht mit 1.2.9 ohne Probleme.
                  Könntest du mal deinen Code für ein Binding hier einstellen?!

                  Bei mir sieht das so aus aktuell

                  {val:javascript.0.scriptEnabled.Alexa.Sprachausgabe_Waschmaschine; val == "true" ? "#13dd4b" : "#f81627"}
                  
                  Steff liv-in-sky 2 Replies Last reply Reply Quote 0
                  • Steff
                    Steff @Knoddel last edited by

                    Ich hänge mich hier mal mit dran.
                    Auch bei funktionieren die Bindings bei Update auf die 1.2.11 nicht mehr. Mit der 1.2.9 ist noch alles OK.
                    Bin auf latest. Habe ansonsten noch die MD-Widgets von @Scrounger drauf.

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

                      @Knoddel

                      {val:controll-own.0.AAATEST.TestLogic; val == true ? "#13dd4b" : "#f81627"}
                      

                      smart77.gif

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

                        @liv-in-sky ja ... bei manchen funzt es ja. Bei mir tut es auch nicht. MDCSS2 und nur basic/jqui widgets in verwendung.

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

                          @harrym es funktionierte nicht, wenn true in anführungszeichen ist ???

                          kein MDCSS2 bei mir

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

                            @liv-in-sky

                            {val:radar2.0.Google_Ping;val=="true"? "mdui-green-bg mdui-green-ol": "mdui-red-bg mdui-red-ol"} mdui-tooltip?text:Internet;background:lightgrey mdui-{0_userdata.0.mdui.vis.tooltip_text_color}
                            

                            tut in 1.2.9 ... alle Versionen oberhalb => nada

                            und in der aktuellen version auch ' versucht, mit den leerzeichen versucht ... NIX

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

                              @harrym

                              hat schon jmd bei @Bluefox nachgefragt? steht bei github drin bzw eine issue auf github aufgemacht ?

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

                                @liv-in-sky hat nix mit bluefox und seinen css klassen/ js zu tun. da hängt es woanders.

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

                                  @harrym da kann ich leider nix mehr beitragen
                                  hast du mal die anführungszeichen bei true von deinem beispiel eintfernt und getestet ?

                                  bei mir:

                                  • vis 1.2.10
                                  • jscript: 4.6.26
                                  • web 3.0.12
                                  • socket 3.0.13
                                  harrym 1 Reply Last reply Reply Quote 0
                                  • harrym
                                    harrym @liv-in-sky last edited by

                                    @liv-in-sky alles schon getestet. hab ja schon erfahrung gesammelt mim broker und co 😉

                                    Scrounger 1 Reply Last reply Reply Quote 0
                                    • Scrounger
                                      Scrounger Developer @harrym last edited by

                                      @harrym
                                      Funktioniert bei mir auch:

                                      {val:0_userdata.0.MDW.Buttons.bool; val == true ? "ja" : "nein"}
                                      

                                      tmp.gif

                                      Steff 1 Reply Last reply Reply Quote 0
                                      • Steff
                                        Steff @Scrounger last edited by Steff

                                        Hmm...,
                                        heute nochmal probiert und siehe da es geht 😕, die V1.2.11 läuft nun bei mir.
                                        Offensichtlich verhält sich VIS > V1.2.9 etwas anders als sonst. Ich hatte meine Bindings immer nach diesem Schema angelegt

                                        {wert:javascript.0.Gartenteich.Teichpumpe_Hand;wert == "true" ? "#008000" : "#44739e"}
                                        

                                        und das hat so funktioniert - bis zur V1.2.10. Ich musste nun an allen Bindings die beiden "" um das true entfernen, d.h. so funktioniert es nun bei mir:

                                        {wert:javascript.0.Gartenteich.Teichpumpe_Hand;wert == true ? "#008000" : "#44739e"}
                                        
                                        SBorg 1 Reply Last reply Reply Quote 0
                                        • SBorg
                                          SBorg Forum Testing Most Active @Steff last edited by

                                          @Steff Das war dann einfach dem Umstand geschuldet, dass die DPs als String gelesen wurden. Dann wäre/ist wert == "true" korrekt, da "" die Variable als String definieren.
                                          Ohne jetzt im Quellcode der 11er nachgeschaut zu haben, vermute ich mal, dass mit der Unterstützung von JSON in den Bindings diese Vorgehensweise geändert werden musste. Nun ist ein boolean tatsächlich boolean und nicht mehr String. Dann muss es aber wert == true heißen, damit 'true' auch wirklich als boolean behandelt/verglichen wird...

                                          harrym 1 Reply Last reply Reply Quote 2
                                          • arteck
                                            arteck Developer Most Active last edited by arteck

                                            @Steff sagte in VIS 1.2.10 Problem mit Bindings:

                                            {wert:javascript.0.Gartenteich.Teichpumpe_Hand;wert == true ? "#008000" : "#44739e"}

                                            und zusätzlich uffpassn

                                            wert == true
                                            

                                            ist nicht gleich

                                            wert === true
                                            

                                            das erste wandelt die beiden Werte in gleiche Typen
                                            das 2 te ist streng Typisiert

                                            560db0f8-4f5b-4dbf-8750-bf90f5b3d364-grafik.png

                                            Steff 1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            708
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            vis binding
                                            10
                                            32
                                            1600
                                            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