Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Wo finde ich diese Buttons ?

    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

    Wo finde ich diese Buttons ?

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

      1111.png

      also ich habe mal ein neues script erstellt und hier funktioniert die debug-ausgabe.... nur beim alten script nicht.....sehr merkwürdig....

      1 Reply Last reply Reply Quote 0
      • paul53
        paul53 last edited by paul53

        @Smuji sagte in Wo finde ich diese Buttons ?:

        sehr merkwürdig....

        Gar nicht merkwürdig: Du schreibst in den Datenpunkt "Light" eine Zahl, hast aber als Triggerbedingung für "Light" wahr.

        1 Reply Last reply Reply Quote 1
        • Homoran
          Homoran Global Moderator Administrators @Homoran last edited by

          @Homoran sagte in Wo finde ich diese Buttons ?:

          @Smuji sagte in Wo finde ich diese Buttons ?:

          "type": "boolean",

          hast du Fehler im LOG?

          du schaltest mit 1
          Das ist NUMBER

          du müsstest mit dem Logikbaustein TRUE (WAHR) arbeiten

          das habe ich schon vorhin nachgefragt

          1 Reply Last reply Reply Quote 1
          • S
            Smuji last edited by Smuji

            ich verstehe nicht ganz.

            meine lampe wird mit 3 befehlen gesteuert (im 1. trigger)

            • umschalten Light
              a.png
              wert in objekten = TRUE

            • steuere RGB mit farbe
              b.png

            • steuere Light mit 1, wenn ich auf Light klicke, wird nicht POWER ON/OFF mit 1 angesteuert, sondern
              c.png
              d.png

            im zweiten trigger habe ich als auslöser Light und wenn ich drauf klicke ist folgendes ausgewählt:
            e.png
            und dort ist der wert in den objekten:
            b.png

            das dumme ist halt, dass dimmer und on/off den namen Light trägt...kann es sein, dass meine Falls-bedingungen nicht unterscheiden kann ? obwohl, wenn ich draufklicke NICHT der dimmer gewählt ist ?

            1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators last edited by

              @Smuji sagte in Wo finde ich diese Buttons ?:

              umschalten Light

              @Smuji sagte in Wo finde ich diese Buttons ?:

              steuere Light mit 1

              Haben bei dir zwei Objekte die selbe Bezeichnung?

              1 Reply Last reply Reply Quote 1
              • S
                Smuji last edited by

                ja, light on/off und dimmer heißen beide LIGHT.....kann dieses "falls" das nicht unterscheiden, OBWOHL ich explizit das richtige angeklickt habe ?

                Homoran 1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 last edited by paul53

                  Ändere erst einmal die Datenpunkt-Namen so, dass man sie unterscheiden kann !

                  1 Reply Last reply Reply Quote 1
                  • S
                    Smuji last edited by

                    der name war von werk aus identisch, das war nicht ich. habe es nun geändert, ohne veränderung.

                    es wird kein "test" ausgegeben.
                    123.png

                    1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @Smuji last edited by

                      @Smuji sagte in Wo finde ich diese Buttons ?:

                      OBWOHL ich explizit das richtige angeklickt habe ?

                      ich hatte dich vorhin um das raw des datenpunkts gebeten, den du mit "1" geändert hast.
                      darin stand, dass es ein typ bool sei.
                      du müsstest -wie vorhin gesagt- mit true und false steuern

                      1 Reply Last reply Reply Quote 1
                      • S
                        Smuji last edited by

                        sorry,

                        {
                        "_id": "mihome.0.devices.gateway_7c49eb88d4c9.rgb",
                        "common": {
                        "name": "RGB",
                        "role": "level.rgb",
                        "write": true,
                        "read": true,
                        "type": "string"
                        },
                        "type": "state",
                        "native": {},
                        "from": "system.adapter.mihome.0",
                        "ts": 1549201787951,
                        "acl": {
                        "object": 1638,
                        "state": 1638
                        }
                        }

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @Smuji last edited by Homoran

                          @Smuji sagte in Wo finde ich diese Buttons ?:

                          "type": "string"

                          welcher Punkt ist das jetzt?

                          RGB??

                          1 Reply Last reply Reply Quote 1
                          • S
                            Smuji last edited by

                            genau, den ich mit 1 ansteuere

                            1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @Smuji last edited by

                              @Smuji sagte in Wo finde ich diese Buttons ?:

                              {
                              "from": "system.adapter.mihome.0",
                              "ts": 1549201787957,
                              "common": {
                              "name": "Light",
                              "role": "switch",
                              "type": "boolean",
                              "write": true,
                              "read": true
                              },
                              "native": {},
                              "acl": {
                              "object": 1638,
                              "owner": "system.user.admin",
                              "ownerGroup": "system.group.administrator",
                              "state": 1638
                              },
                              "_id": "mihome.0.devices.gateway_7c49eb88d4c9.on",
                              "type": "state"
                              }

                              eben war das noch dieser

                              1 Reply Last reply Reply Quote 1
                              • S
                                Smuji last edited by Smuji

                                ok, nochmal sauber. habe es auch alles umbenannt:

                                4444.png

                                das RAW von LED_Gateway:
                                {
                                "_id": "mihome.0.devices.gateway_7c49eb88d4c9.on",
                                "common": {
                                "name": "LED_Gateway",
                                "role": "switch",
                                "write": true,
                                "read": true,
                                "type": "boolean"
                                },
                                "type": "state",
                                "native": {},
                                "from": "system.adapter.mihome.0",
                                "ts": 1549201787957,
                                "acl": {
                                "object": 1638,
                                "state": 1638
                                }
                                }

                                das RAW von RGB:
                                {
                                "_id": "mihome.0.devices.gateway_7c49eb88d4c9.rgb",
                                "common": {
                                "name": "RGB",
                                "role": "level.rgb",
                                "write": true,
                                "read": true,
                                "type": "string"
                                },
                                "type": "state",
                                "native": {},
                                "from": "system.adapter.mihome.0",
                                "ts": 1549201787951,
                                "acl": {
                                "object": 1638,
                                "state": 1638
                                }
                                }

                                das RAW vom Dimmer:
                                {
                                "_id": "mihome.0.devices.gateway_7c49eb88d4c9.dimmer",
                                "common": {
                                "name": "Dimmer",
                                "role": "level.dimmer",
                                "write": true,
                                "read": true,
                                "type": "number",
                                "unit": "%",
                                "min": 0,
                                "max": 100
                                },
                                "type": "state",
                                "native": {},
                                "from": "system.adapter.mihome.0",
                                "ts": 1549201787962,
                                "acl": {
                                "object": 1638,
                                "state": 1638
                                }
                                }

                                Homoran 1 Reply Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators @Smuji last edited by

                                  @Smuji
                                  Danke
                                  und jetzt bitte nochmal was (wann und wie) klappt und was nicht.

                                  1 Reply Last reply Reply Quote 1
                                  • S
                                    Smuji last edited by Smuji

                                    ok, schau dir das bild an:

                                    setze ich den debugger im zweiten trigger VOR das "falls mache", bekomme ich, sobald die LED_Gateway = TRUE ist, die Ausgabe "test"

                                    setze ich den Debugger im zweiten trigger IN die "falls mache" anweisung während LED_Gateway ein TRUE liefert und erzeuge ich nun eine TRUE mit dem Kontakt_2 kommt NICHTS.... weder "umschalten power" noch Dubugger kommt. Nix....alles was mit "falls mache" zu tun hat, funktioniert nicht

                                    d.png

                                    Homoran 1 Reply Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators @Smuji last edited by Homoran

                                      @Smuji
                                      nimm doch mehrere Debug Bausteine und ändere jeweils "test" in für diese Position sinnvolle Aussagen

                                      am besten in jede! möglichkeit einen

                                      1 Reply Last reply Reply Quote 1
                                      • S
                                        Smuji last edited by

                                        Siehe:

                                        a.png

                                        b.png

                                        Homoran 1 Reply Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators @Smuji last edited by Homoran

                                          @Smuji
                                          so hab ich das auch erwartet

                                          Also systematisch weiter

                                          Ist Kontakt 2 = wahr?

                                          1 Reply Last reply Reply Quote 1
                                          • S
                                            Smuji last edited by Smuji

                                            das bringt mich aber nur dahin, wo ich schon ewig lange bin...und zwar dass scheinbar der "falls mache"-auslöser nicht funktioniert. warum auch immer.

                                            ich habe einen taster anstatt Kontakt_2 genommen und habe genau das gleiche problem

                                            ja, kontakt 2 ist wahr, wenn ich ihn auseinander ziehe

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            882
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly
                                            8
                                            85
                                            5277
                                            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