Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Steuerung von Devices die im Alexa Adapter enthalten sind

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Steuerung von Devices die im Alexa Adapter enthalten sind

    This topic has been deleted. Only users with topic management privileges can see it.
    • haselchen
      haselchen Most Active @Peter c last edited by

      @peter-c

      Zeig mal bitte deine URL

      P 1 Reply Last reply Reply Quote 0
      • P
        Peter c @haselchen last edited by

        @haselchen Das ist die Angabe:

        http://192.168.178.104/Franz80995/sw/1/off

        haselchen 1 Reply Last reply Reply Quote 0
        • haselchen
          haselchen Most Active @Peter c last edited by haselchen

          @peter-c

          Hier sind alle Befehle aufgeführt

          http://wiki.td-er.nl/index.php?title=Homewizard

          Hiermit würde ich anfangen , um die Switchnummern rauszubekommen

          Read switchnumbers:
          
              /swlist
          
          P 1 Reply Last reply Reply Quote 0
          • P
            Peter c @haselchen last edited by Peter c

            @haselchen Danke, ja die Seite ist gut. Auf die Anforderung

            http://192.168.178.104/Franz80995/swlist
            
            

            bekomme ich diese richtige Antwort. Habe erstmal nur einen Schalter eingelernt. der Test heißt.

            {"status": "ok", "version": "3.403", "request": {"route": "/swlist" }, "response": [{"id":0,"name":"Test","type":"switch","status":"off","favorite":"no"}]}
            
            

            Aber mit dem anderen Befehl sw/Test/on passiert dann nichts.

            haselchen 1 Reply Last reply Reply Quote 0
            • haselchen
              haselchen Most Active @Peter c last edited by

              @peter-c

              Die ID ist 0

              Also sollte die URL heissen:

              http://192.168.178.104/Franz80995/sw/0/off

              oder

              http://192.168.178.104/Franz80995/sw/0/on

              P 1 Reply Last reply Reply Quote 0
              • P
                Peter c @haselchen last edited by

                @haselchen Das funzt.Steht ja auch number und nicht name. Dann brauch ich noch ne Tabelle mit der Zuordnung später.

                Aber wie nutze ich das z.B. in einem Blocky oder Datenpunkt?

                haselchen 1 Reply Last reply Reply Quote 0
                • haselchen
                  haselchen Most Active @Peter c last edited by haselchen

                  @peter-c

                  Baust Dir nen schönes Blockly und fügst den Block ein.....

                  2d1d00c7-107c-4de9-a756-d0684401de51-grafik.png

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    Peter c @haselchen last edited by

                    @haselchen

                    Sollte das Deiner Meinung nach funktionieren? Schalter ist an im Moment Sollte durch eine Änderung ausgeschalten werden. Tuts aber nicht.

                    <xml xmlns="https://developers.google.com/blockly/xml">
                      <block type="on_ext" id=")F}|v9ItIceH!FQFDkdh" x="87" y="-12">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                        <field name="CONDITION">ne</field>
                        <field name="ACK_CONDITION"></field>
                        <value name="OID0">
                          <shadow type="field_oid" id="PfkX+d7:O6t~c68POdK$">
                            <field name="oid">alias.0.Variable.Energiefluss.Tibber_Aktueller_Verbrauch</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="debug" id="H;68i}MhoDAUd?(oq.3,">
                            <field name="Severity">error</field>
                            <value name="TEXT">
                              <shadow type="text" id="r+;WlP_#uixLJD~W[x;z">
                                <field name="TEXT">test</field>
                              </shadow>
                            </value>
                            <next>
                              <block type="exec" id="b/twLq12GYDkH5U7ou*`">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                <field name="WITH_STATEMENT">FALSE</field>
                                <field name="LOG">log</field>
                                <value name="COMMAND">
                                  <shadow type="text" id="i^SE}_NJ6pX:u`},H`[r">
                                    <field name="TEXT">http://192.168.178.104/Franz80995/sw/0/off</field>
                                  </shadow>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </xml>
                    

                    Bildschirmfoto 2023-11-21 um 22.29.44.png

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      Peter c @Peter c last edited by

                      @peter-c

                      21.11.2023, 22:31:39.125	[error]: javascript.0 (935) script.js.Wizardhome: test
                      21.11.2023, 22:31:39.168	[info ]: javascript.0 (935) script.js.Wizardhome: exec: http://192.168.178.104/Franz80995/sw/0/off
                      21.11.2023, 22:31:43.807	[error]: javascript.0 (935) script.js.Wizardhome: test
                      21.11.2023, 22:31:43.829	[info ]: javascript.0 (935) script.js.Wizardhome: exec: http://192.168.178.104/Franz80995/sw/0/off
                      
                      haselchen 1 Reply Last reply Reply Quote 0
                      • haselchen
                        haselchen Most Active @Peter c last edited by haselchen

                        @peter-c

                        Falscher Baustein....guck oben nochmal richtig 😉

                        Im Javascript Adapter diese Einstellungen übernehmen

                        6913c310-adf8-4d9e-bed7-9fdb262c24b6-grafik.png

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          Peter c @haselchen last edited by

                          @haselchen Ja da hab ich gepennt. JS Adapter war richtig eingestellt. Jetzt gehts auch. Danke für Deine Geduld.

                          haselchen 1 Reply Last reply Reply Quote 0
                          • haselchen
                            haselchen Most Active @Peter c last edited by

                            @peter-c

                            Das freut mich.
                            Viel Spass beim Programmieren 🤘

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            692
                            Online

                            32.0k
                            Users

                            80.4k
                            Topics

                            1.3m
                            Posts

                            3
                            34
                            1019
                            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