Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Hilfe javascript.0

    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

    Hilfe javascript.0

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mikiline @tsiobroker last edited by

      @tsiobroker dann poste doch mal ein script.....oder woher soll man nun wissen was nicht geht?

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

        Gerne, kann es sein, das ich ewtas grundlegendes falsch machen. Wie gesagt. Das Script ist mit Blockly erstellt.

        <xml xmlns="http://www.w3.org/1999/xhtml">
          <block type="comment" id="[!4UC_`Rya{~hxv-@9i8" x="-112" y="87">
            <field name="COMMENT">Gucken ob was passiert</field>
            <next>
              <block type="on" id="^T5-6l?3LNzjWTZ{OVq8">
                <field name="OID">alexa2.0.Smart-Home-Devices.3bcd4afc-952f-4073-b2d6-00e559e96de5</field>
                <field name="CONDITION">any</field>
                <field name="ACK_CONDITION"></field>
                <statement name="STATEMENT">
                  <block type="comment" id="GFHY_bnCB~~0cDrS9vl+">
                    <field name="COMMENT">Wenn was passiert und war/true ist(ein)</field>
                    <next>
                      <block type="controls_if" id="~1=5?CT4)lxxREA4ScxZ">
                        <mutation elseif="1"></mutation>
                        <value name="IF0">
                          <block type="logic_compare" id="PR7apOB|J4hZU5m+S7f(">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="#@TEDN9eRnnWjZ!:kZQ0">
                                <field name="ATTR">val</field>
                                <field name="OID">alexa2.0.Smart-Home-Devices.3bcd4afc-952f-4073-b2d6-00e559e96de5</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="7XUHVTZtu+r*=2Ko~{;w">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="comment" id="z~8lNN0cSMb]k5j5A=Ul">
                            <field name="COMMENT">Dann schalte Gerät</field>
                            <next>
                              <block type="control" id="@l=9PP#@uptYzX8}Q@-/">
                                <mutation delay_input="false"></mutation>
                                <field name="OID">alexa2.0.Smart-Home-Devices.3ca78a39-5e4c-4393-9965-58afe1bc6c02.powerState</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="uz1R(kPx8|U8XCJ#=.G/">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="comment" id="hm7h7Qm5Q#HCt+YhZ|,0">
                                    <field name="COMMENT">Wenn was passiert und unwar/false ist(aus)</field>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <value name="IF1">
                          <block type="logic_compare" id="nz6AN+w@4IJm2Rg`r[?T">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="D5]e~*?}m:TemqsTwDH=">
                                <field name="ATTR">val</field>
                                <field name="OID">alexa2.0.Smart-Home-Devices.3ca78a39-5e4c-4393-9965-58afe1bc6c02.powerState</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="ui1}^0t[%o/LlW2nZtf7">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO1">
                          <block type="comment" id="qr@f8Dj7|;bqHYGq}UeP">
                            <field name="COMMENT">Dann schalte Gerät</field>
                            <next>
                              <block type="control" id="=c`PEV8xD237Ao2kr#EM">
                                <mutation delay_input="false"></mutation>
                                <field name="OID">alexa2.0.Smart-Home-Devices.3931835c-c2a5-4a1f-b5f2-f7bb6eef2a7b.powerState</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="`-pnD5J;VF-}ScL;b+o?">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </xml>
        

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

          @tsiobroker
          geht das auch als Screenshot

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

            Folie1.jpg

            Hier der Screenshot.

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

              du schaltest ein gerät welches von alexa - echo angelegt wurde - das verwirrt mich etwas

              da sind zuviele alexa geräte drin !

              es sollte eigentlich anders herum sein

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

                du willst also eine lampe mit alexa schalten - und zusätzlich soll noch eine andere lampe mitangehen

                diese lampen sind geräte , die nur mit alexa angelegt worden sind - ist das richtig ?

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

                  Ja, die Geräte habe ich über Alexa Echo angelegt.
                  Die finde ich dann in den Objekte. -> cloud.0
                  Beim Erstellen des Scripts habe ich dann auf die Objekt zugegriffen.
                  Was mache ich falsch? Wie soll das anderst herum gehen?
                  Danke für ein Info.
                  Gruss TS

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

                    Ja, alles geräte habe ich über Alexa reingeholt.

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

                      ich habe das so noch nicht gemacht und weiß garnicht, ob das geht

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

                        Wie gehst Du dann vorß
                        Eventuell kann ich das dann ausprobieren.

                        Jey Cee liv-in-sky 2 Replies Last reply Reply Quote 0
                        • liv-in-sky
                          liv-in-sky last edited by

                          @apollon77
                          hi apollon - könntest du bitte kurz helfen
                          kann man im alexa2 adapter geräte schalten, die nur von alexa angelegt worden sind ?

                          1 Reply Last reply Reply Quote 0
                          • Jey Cee
                            Jey Cee Developer @tsiobroker last edited by

                            @tsiobroker Ich hab deinen Key für die ioBroker Cloud aus dem Log entfernt, bitte achte darauf solche Sensiblen daten nicht zu Veröffentlichen.

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

                              @tsiobroker

                              ich habe alle geräte mit adaptern im iobroker angelegt
                              r - wie erwähnt - vielleicht kann uns jmd helfen , der weiß, ob man das tun kann, was du möchtest - für mich würde es den TCP error erklären im log erklären

                              mit alexa "aktiviere" ich sozusagen nur - über die sprache - die scripte und datenpunkte im iobroker

                              1 Reply Last reply Reply Quote 0
                              • tsiobroker
                                tsiobroker @Jey Cee last edited by

                                @Jey-Cee Danke Dir. Bin neu im Thema...

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

                                  Das Problem ist das meine Lampen von WIZ keine Adapter haben... )-:

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

                                    warte mal ein bischen - viellecht meldet sich apollon77 noch - der weiß das sicher

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

                                      könnte man deine lampen mit ifttt oder http schalten - weißt du das ?

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

                                        IFTTT scheint zu funktionieren - kennst du das

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

                                          IFTTT hab ich auch bei der cloud.0 installiert.
                                          Haber aber Null Erfahrung damit.
                                          Kannst Du mir kurz beschrieben wie ich vorgehen muss?
                                          Danke Dir.

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

                                            @liv-in-sky ja ifTTT kann ich bei meinen Lampen aktivieren

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            488
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            30
                                            1491
                                            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