Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. State offen in true konvertieren

    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

    State offen in true konvertieren

    This topic has been deleted. Only users with topic management privileges can see it.
    • OstfrieseUnterwegs
      OstfrieseUnterwegs last edited by OstfrieseUnterwegs

      Du kannst auch einen Alias anlegen und den umrechnen lassen. Ich hab sowas für einen Türkontakt gemacht. Das ist aber bestimmt auch direkt in VIS möglich.
      Hab leider nur Handy Zugriff, daher das merkwürdige Format
      8e36845a-15da-4bf2-9a58-ffff35dd41dc-image.png

      1 Reply Last reply Reply Quote 0
      • R
        robert_r last edited by

        @asgothian
        was meinst du mit Expertenansicht des State?

        {
          "common": {
            "name": "/Hühnerstall/Klappe/status",
            "write": true,
            "read": true,
            "role": "variable",
            "desc": "mqtt server variable",
            "type": "string"
          },
          "native": {
            "topic": "/Hühnerstall/Klappe/status"
          },
          "type": "state",
          "from": "system.adapter.mqtt.0",
          "user": "system.user.admin",
          "ts": 1615672702693,
          "_id": "mqtt.0.Hühnerstall.Klappe.status",
          "acl": {
            "object": 1638,
            "state": 1638,
            "owner": "system.user.admin",
            "ownerGroup": "system.group.administrator"
          }
        }
        
        1 Reply Last reply Reply Quote 0
        • J
          JoergH @robert_r last edited by

          @robert_r Welches Widget verwendest Du denn? Normalerweise kann ich doch im Widget selber eintragen auf was er prüfen soll...

          R 1 Reply Last reply Reply Quote 0
          • R
            robert_r @JoergH last edited by

            @joergh
            basic ValueList HTML Style

            J 1 Reply Last reply Reply Quote 0
            • J
              JoergH @robert_r last edited by

              @robert_r
              aee64f8a-611c-4f2d-ac10-ecb43da31126-grafik.png

              statt "1" kannst Du hier auf was anderes eintragen...

              1 Reply Last reply Reply Quote 1
              • R
                robert_r last edited by robert_r

                @joergh
                hab das jetzt so eingestellt, es passiert aber nichts... 😞
                1.JPG
                2.JPG

                J 1 Reply Last reply Reply Quote 0
                • J
                  JoergH @robert_r last edited by

                  @robert_r Haste mal mit Anführungszeichen probiert?

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    robert_r @JoergH last edited by

                    @joergh ja hab gerade probiert. ohne Erfolg

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      JoergH @robert_r last edited by

                      @robert_r Was ist denn "offen" für ein Wert? Ist das ein String?

                      Wie kontrollierst Du den Erfolg? Im Editor wirst Du ja keinen Unterschied sehen...

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        robert_r @JoergH last edited by

                        @joergh ja ist ein string. Kontrolliere es in der Vis.

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          JoergH @robert_r last edited by

                          @robert_r Bei mir funktioniert es...hast Du unter CSS Font eine Farbe eingestellt? Ansonsten zeigt er nämlich nur einen Tunnel bei Nacht 😉

                          1 Reply Last reply Reply Quote 0
                          • R
                            robert_r last edited by

                            @joergh
                            hab glaub ich schon im CSS Font eine Farbe eingestellt....
                            3.JPG

                            J Wal 2 Replies Last reply Reply Quote 0
                            • J
                              JoergH @robert_r last edited by

                              @robert_r Also ich habe es getestet mit einem String DP und bei mir funktioniert es ohne Anführungszeichen. Trag mal bei Voranstellen einen Text ein, nur um zu sehen ob er etwas anzeigt.

                              1 Reply Last reply Reply Quote 0
                              • Wal
                                Wal Developer @robert_r last edited by

                                @robert_r ,
                                erstelle einfach ein Alias mit einer rule und nutze die in der Vis.

                                "read": "val == 'offen' ? false : true"
                                
                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                821
                                Online

                                31.9k
                                Users

                                80.1k
                                Topics

                                1.3m
                                Posts

                                5
                                16
                                699
                                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