Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Button in Objekten via Blockly auslösen

    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

    Button in Objekten via Blockly auslösen

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

      Hallo Gemeinde,
      Mit welchem Baustein kann ich einen Button den ich in meinem Objekten habe auslösen? Aktuell verwenden ich den "Steuere" mit "wahr" oder "1", allerdings erhalte ich dann immer Fehler im Log. Bin auf meiner Suche bislang erfolglos geblieben.IMG_20200502_234647.jpg
      IMG_20200502_234617.jpg
      Screenshot_2020-05-02-23-45-02-899_com.android.chrome.jpg

      BBTown 2 Replies Last reply Reply Quote 0
      • BBTown
        BBTown @Falk Pe. last edited by BBTown

        @Falk-Pe
        zeig mal das RAW von dem Datenpunkt, das scheint kein "boolscher" zu sein

        Raw-Datenpunkt.gif

        1 Reply Last reply Reply Quote 0
        • BBTown
          BBTown @Falk Pe. last edited by BBTown

          @Falk-Pe
          beim Log und auch beim RAW am besten keine Screenshots sondern in code-Tags gepackte Informationen (Code Tags siehe bei den Symbolen hier oberhalb des Post "</>")

          Falk Pe. 1 Reply Last reply Reply Quote 0
          • Falk Pe.
            Falk Pe. @BBTown last edited by

            @BBTown

            {
              "from": "system.adapter.hyperion.0",
              "user": "system.user.admin",
              "ts": 1588258060719,
              "common": {
                "name": "effect_name",
                "role": "text.url",
                "type": "boolean"
              },
              "native": {
                "id": "effects_effect_name"
              },
              "acl": {
                "object": 1636,
                "owner": "system.user.admin",
                "ownerGroup": "system.group.administrator",
                "state": 1636
              },
              "_id": "hyperion.0.effects.udp_multicast_listener.effects_effect_name",
              "type": "state"
            }
            
            BBTown 1 Reply Last reply Reply Quote 0
            • BBTown
              BBTown @Falk Pe. last edited by

              @Falk-Pe
              bei role steht bei dir text.url, ersetze text.url bitte mal mit button und schau ob es das ggf. schon war

              Falk Pe. 1 Reply Last reply Reply Quote 0
              • Falk Pe.
                Falk Pe. last edited by

                Also den Effekt auslösen tut mein Script ja, generiert leider aber den o.g. Fehler.

                1 Reply Last reply Reply Quote 0
                • Falk Pe.
                  Falk Pe. @BBTown last edited by

                  @BBTown ich seh grad ich hab das falsche Objekt kopiert, hier der richtige RAW.

                  {
                    "from": "system.adapter.hyperion.0",
                    "user": "system.user.admin",
                    "ts": 1588258060671,
                    "common": {
                      "name": "activator",
                      "role": "button",
                      "type": "boolean"
                    },
                    "native": {
                      "id": "effectssystem_shutdown.activator"
                    },
                    "acl": {
                      "object": 1636,
                      "owner": "system.user.admin",
                      "ownerGroup": "system.group.administrator",
                      "state": 1636
                    },
                    "_id": "hyperion.0.effects.system_shutdown.activator",
                    "type": "state"
                  }
                  
                  BBTown 1 Reply Last reply Reply Quote 0
                  • BBTown
                    BBTown @Falk Pe. last edited by

                    @Falk-Pe
                    wie geht diese Meldung denn weiter?
                    f730eaf8-6eb4-4415-be58-1d393c422f9e-grafik.png

                    1 Reply Last reply Reply Quote 0
                    • Falk Pe.
                      Falk Pe. last edited by

                      Sorry das ich erst jetzt geschafft habe,

                      2020-05-04 19:50:27.644 - warn: javascript.0 (2140) You are assigning a boolean to the state "hyperion.0.effects.system_shutdown.activator" which expects a switch. Please fix your code to use a switch or change the state type to boolean. This warning might become an error in future versions.

                      So sieht die gesamte Meldung aus.

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

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      503
                      Online

                      31.8k
                      Users

                      80.0k
                      Topics

                      1.3m
                      Posts

                      blockly
                      2
                      9
                      524
                      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