Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Temp Anfrage an Alexa mit entspr. Ausgabe

    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

    Temp Anfrage an Alexa mit entspr. Ausgabe

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

      Hallo, sorry komme einfach nicht weiter. Das Skript läuft nicht.
      Ich möchte Alexa fragen, wie die Temperatur ist, und sie soll die passende Antwort liefern, wobei natürlich der Datenpunkt des Thermometers im Wohnzimmer abgefragt wird.
      Das soll dann auch Mal auf offene Fenster oder sonst was ausgeweitet werden.

      Wo liegt der Fehler?

      IMG_20191212_220934.jpg

      Danke und Gruß Stoni

      Negalein dslraser 2 Replies Last reply Reply Quote 0
      • Negalein
        Negalein Global Moderator @Stoni last edited by

        @Stoni sagte in Temp Anfrage an Alexa mit entspr. Ausgabe:

        Hallo, sorry komme einfach nicht weiter. Das Skript läuft nicht.

        Hi Stoni!

        Meins schaut so aus.
        Hat mir @dslraser gezeigt.

        javascript - ioBroker.png

        <xml xmlns="http://www.w3.org/1999/xhtml">
          <variables>
            <variable type="" id=";e|)`fdNO7s$eZmVQ;q_">Name</variable>
            <variable type="" id="CkD/cfM5vIDoHypkQ-GS">Initialisierung</variable>
            <variable type="" id="L*(wR:^Pp]S6~.,B)o9-">Beschreibung</variable>
            <variable type="" id="8,Qu:=:P{gk#)fzk=C,k">Type</variable>
            <variable type="" id="K=Q1}]PX(7|KLg@w?A1a">Rolle</variable>
            <variable type="" id="?lSgrl@9S7sS[ooJ1brj">Ausgabetext</variable>
            <variable type="undefined" id="timeout">timeout</variable>
          </variables>
          <block type="procedures_defcustomnoreturn" id="49kvg:%69IF}@lKJq@(J" x="-537" y="-587">
            <mutation statements="false">
              <arg name="Name" varid=";e|)`fdNO7s$eZmVQ;q_"></arg>
              <arg name="Initialisierung" varid="CkD/cfM5vIDoHypkQ-GS"></arg>
              <arg name="Beschreibung" varid="L*(wR:^Pp]S6~.,B)o9-"></arg>
              <arg name="Type" varid="8,Qu:=:P{gk#)fzk=C,k"></arg>
              <arg name="Rolle" varid="K=Q1}]PX(7|KLg@w?A1a"></arg>
            </mutation>
            <field name="NAME">Variablen anlegen</field>
            <field name="SCRIPT">Y3JlYXRlU3RhdGUoTmFtZSwgSW5pdGlhbGlzaWVydW5nLCB7DQogIG5hbWU6IEJlc2NocmVpYnVuZywNCiAgcmVhZDogdHJ1ZSwgDQogIHdyaXRlOiB0cnVlLCANCiAgdHlwZTogVHlwZSwgDQogIGRlZjogZmFsc2UsDQogIHJvbGU6IFJvbGxlDQp9KTs=</field>
            <comment pinned="false" h="80" w="160">Hier ist das Javascript drin.</comment>
          </block>
          <block type="procedures_callcustomnoreturn" id="O45R/5Gw(j@)2M*_xdcB" x="-537" y="-563">
            <mutation name="Variablen anlegen">
              <arg name="Name"></arg>
              <arg name="Initialisierung"></arg>
              <arg name="Beschreibung"></arg>
              <arg name="Type"></arg>
              <arg name="Rolle"></arg>
            </mutation>
            <value name="ARG0">
              <block type="text" id="nSr7Hq~;DUU2#lB+Yj:}">
                <field name="TEXT">Eigene_Datenpunkte.Alexa2Ansagen.Wohnzimmertemperatur</field>
              </block>
            </value>
            <value name="ARG1">
              <block type="text" id="xlqa55O11o`@{+#@Yj;%">
                <field name="TEXT">true</field>
              </block>
            </value>
            <value name="ARG2">
              <block type="text" id="yEhqZqxh*}Ip8?yzOW7I">
                <field name="TEXT">Wohnzimmertemperatur</field>
              </block>
            </value>
            <value name="ARG3">
              <block type="text" id="sYAGk@@-Fz^fIDONX!/i">
                <field name="TEXT">boolean</field>
              </block>
            </value>
            <value name="ARG4">
              <block type="text" id="/t]#6;-K%9u+eD1jG09@">
                <field name="TEXT">switch</field>
              </block>
            </value>
            <next>
              <block type="on_ext" id="@~[w%fmFqR.NBzMP;9K7">
                <mutation items="1"></mutation>
                <field name="CONDITION">any</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="E8A-04PbAI,c1dpi4@}5">
                    <field name="oid">javascript.0.Eigene_Datenpunkte.Alexa2Ansagen.Wohnzimmertemperatur</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="variables_set" id="5VFfHYTB!S7A^A*?SicA">
                    <field name="VAR" id="?lSgrl@9S7sS[ooJ1brj" variabletype="">Ausgabetext</field>
                    <value name="VALUE">
                      <block type="text_join" id="4?k[0reCRn.mjkxHg41~">
                        <mutation items="3"></mutation>
                        <value name="ADD0">
                          <block type="text" id="75Z)Wn`YF@;38~bIM;pA">
                            <field name="TEXT">Aktuell ist die Temperatur im Wohnzimmer  </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="get_value" id="Vh/8rxU]yD!3mT}0y[eC">
                            <field name="ATTR">val</field>
                            <field name="OID">mihome.0.devices.weather_v1_158d0002e91bc1.temperature</field>
                          </block>
                        </value>
                        <value name="ADD2">
                          <block type="text" id="w?*M1*U4/O9S.6%iB.?Q">
                            <field name="TEXT">Grad,  </field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="timeouts_settimeout" id="xA_MJ^@=AB=-WtDTe(3}">
                        <field name="NAME">timeout</field>
                        <field name="DELAY">1000</field>
                        <field name="UNIT">ms</field>
                        <statement name="STATEMENT">
                          <block type="comment" id="s30b2{fSQ:a0uC3`+QWU">
                            <field name="COMMENT">Wohnzimmer</field>
                            <next>
                              <block type="controls_if" id="l(E24=q]l]b,GJDj4dSj">
                                <value name="IF0">
                                  <block type="logic_compare" id="MKwJn0C!O]xc!~.9|B`*">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="p-SHbJ5Dmwr6djxg2ohH">
                                        <field name="ATTR">val</field>
                                        <field name="OID">alexa2.0.History.name</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="text" id="?}A;8(IyMF%F@(t]Kc~+">
                                        <field name="TEXT">Wohnzimmer</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="control" id=")M^jLcZ!hCpj,X={-`nV">
                                    <mutation delay_input="false"></mutation>
                                    <field name="OID">alexa2.0.Echo-Devices.G090QU067444121X.Commands.speak</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="variables_get" id="p)bNOdcZFVoq1e^M5V-.">
                                        <field name="VAR" id="?lSgrl@9S7sS[ooJ1brj" variabletype="">Ausgabetext</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="comment" id="As,dG(xO[B@wIYcyAG?h">
                                    <field name="COMMENT">Küche</field>
                                    <next>
                                      <block type="controls_if" id="wrH-}P(84mn7Y/rg8A[.">
                                        <value name="IF0">
                                          <block type="logic_compare" id="kg.QKB751NaS#Ihk1Vlg">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="get_value" id="qnTz1Oe31sq:NXjmbxIJ">
                                                <field name="ATTR">val</field>
                                                <field name="OID">alexa2.0.History.name</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="text" id="3=W.?c8BZN+QrGX4xL}h">
                                                <field name="TEXT">Küche</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="control" id="}?dK++*V.7JQcjG{3uhB">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">alexa2.0.Echo-Devices.G090LF1173621Q4Q.Commands.speak</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="qHoN]~u1FI@iDQs*2C2v">
                                                <field name="VAR" id="?lSgrl@9S7sS[ooJ1brj" variabletype="">Ausgabetext</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="comment" id="_amxz6B=9F}_2uEGsK}`">
                                            <field name="COMMENT">Schlafzimmer</field>
                                            <next>
                                              <block type="controls_if" id=".n7JtGwDJDGfaeyl!8*B">
                                                <value name="IF0">
                                                  <block type="logic_compare" id="I-@9%{Ng!%}9rE#IESc;">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="get_value" id="c?dSeG!fu]W8UO@?D4I3">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">alexa2.0.History.name</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="text" id="MivGV@*kt)3rY9COKpKA">
                                                        <field name="TEXT">Schlafzimmer</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="control" id="zTwXc~r8Ldt0u-5TNcVn">
                                                    <mutation delay_input="false"></mutation>
                                                    <field name="OID">alexa2.0.Echo-Devices.G090U5099045059V.Commands.speak</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="variables_get" id="*X*~qQG3]~[NC{WMMndW">
                                                        <field name="VAR" id="?lSgrl@9S7sS[ooJ1brj" variabletype="">Ausgabetext</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="comment" id="CJNG59[?CJ|U-=Bf]c)z" disabled="true">
                                                    <field name="COMMENT">Gästezimmer</field>
                                                    <next>
                                                      <block type="controls_if" id="OC]k1_}iDlExQPVc=(ib" disabled="true">
                                                        <value name="IF0">
                                                          <block type="logic_compare" id="OBIXw6hJ@]2Xr`HBIz5h">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="get_value" id="=x~5W)ns/VV;c|RFqQcE">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">alexa2.0.History.name</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="text" id="IxW:hplIvDQm1ax=@X+M">
                                                                <field name="TEXT">Gästezimmer</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="control" id="g+2]wvsrhR8vxv7c,kJ_">
                                                            <mutation delay_input="false"></mutation>
                                                            <field name="OID">alexa2.0.Echo-Devices.xxx.Commands.speak</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="variables_get" id="5q6/z~S`0DeJ6sYrWhj1">
                                                                <field name="VAR" id="?lSgrl@9S7sS[ooJ1brj" variabletype="">Ausgabetext</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </statement>
                                                        <next>
                                                          <block type="comment" id="C6,wSh?BEZ,G:B9Tl@#w" disabled="true">
                                                            <field name="COMMENT">Flur</field>
                                                            <next>
                                                              <block type="controls_if" id="l/g@UNw6pzeQ6_698R:-" disabled="true">
                                                                <value name="IF0">
                                                                  <block type="logic_compare" id="=Z)D6qrCzY2oU/fVV93A">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="StsaG2CB;*5f5wIvH,kE">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">alexa2.0.History.name</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="text" id="7N;yy7cC=tE`}MYOFfF6">
                                                                        <field name="TEXT">Flur</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <statement name="DO0">
                                                                  <block type="control" id="5#-V887QhCCSAzI+twok">
                                                                    <mutation delay_input="false"></mutation>
                                                                    <field name="OID">alexa2.0.Echo-Devices.xxx.Commands.speak</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="variables_get" id="NurE:%K_z!^Vlj(fn5qI">
                                                                        <field name="VAR" id="?lSgrl@9S7sS[ooJ1brj" variabletype="">Ausgabetext</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </statement>
                                                                <next>
                                                                  <block type="comment" id="qKD3bDxHV;NBtuFFs|e." disabled="true">
                                                                    <field name="COMMENT">Schlafzimmer</field>
                                                                    <next>
                                                                      <block type="controls_if" id="iMz(H}c1#NO@KVNnhnlQ" disabled="true">
                                                                        <value name="IF0">
                                                                          <block type="logic_compare" id="z`vyyAWvaYdxt8YZt,0O">
                                                                            <field name="OP">EQ</field>
                                                                            <value name="A">
                                                                              <block type="get_value" id="mEF)naqwJ#xLCe1NeKO:">
                                                                                <field name="ATTR">val</field>
                                                                                <field name="OID">alexa2.0.History.name</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="text" id="F7::fb4cokeJJD:fk~pV">
                                                                                <field name="TEXT">Schlafzimmer</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <statement name="DO0">
                                                                          <block type="control" id="{2s/h/xpkm]F+1ik-f4m">
                                                                            <mutation delay_input="false"></mutation>
                                                                            <field name="OID">alexa2.0.Echo-Devices.xxx.Commands.speak</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="variables_get" id="ft7Uf33@IB1zu_xdTAxn">
                                                                                <field name="VAR" id="?lSgrl@9S7sS[ooJ1brj" variabletype="">Ausgabetext</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </statement>
                                                                        <next>
                                                                          <block type="comment" id="wIYZ1bLOSjFi=NxT9WcM" disabled="true">
                                                                            <field name="COMMENT">Keller-Flur</field>
                                                                            <next>
                                                                              <block type="controls_if" id="%EEK(pKJ%lGo)32cR7qF" disabled="true">
                                                                                <value name="IF0">
                                                                                  <block type="logic_compare" id="7Mb(anM]kR9056)gxqnW">
                                                                                    <field name="OP">EQ</field>
                                                                                    <value name="A">
                                                                                      <block type="get_value" id="xF~b7`{fV||4n}zB-}.u">
                                                                                        <field name="ATTR">val</field>
                                                                                        <field name="OID">alexa2.0.History.name</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <block type="text" id="VH^2CJsPGOd!6hGoqdK4">
                                                                                        <field name="TEXT">Keller-Flur</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <statement name="DO0">
                                                                                  <block type="control" id="F_[xezXeyr~*(A=q.YFJ">
                                                                                    <mutation delay_input="false"></mutation>
                                                                                    <field name="OID">alexa2.0.Echo-Devices.xxx.Commands.speak</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="variables_get" id="SjtrIJ?gA20oj88N|srb">
                                                                                        <field name="VAR" id="?lSgrl@9S7sS[ooJ1brj" variabletype="">Ausgabetext</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </statement>
                                                                                <next>
                                                                                  <block type="comment" id="E#D1a/,rcH`dm3?Nx^:q" disabled="true">
                                                                                    <field name="COMMENT">Werkstatt</field>
                                                                                    <next>
                                                                                      <block type="controls_if" id="=s~d:-WIg1#TE`^zf9[4" disabled="true">
                                                                                        <value name="IF0">
                                                                                          <block type="logic_compare" id="*:X%VM^+2MoYl-:u!WK`">
                                                                                            <field name="OP">EQ</field>
                                                                                            <value name="A">
                                                                                              <block type="get_value" id="6fnRWyK0;P(.x;H{)22T">
                                                                                                <field name="ATTR">val</field>
                                                                                                <field name="OID">alexa2.0.History.name</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <block type="text" id="S:#keRENw1gGjHWLUD!-">
                                                                                                <field name="TEXT">Werkstatt</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                        <statement name="DO0">
                                                                                          <block type="control" id="ql@`4(PNtjS_AM0bEqD+">
                                                                                            <mutation delay_input="false"></mutation>
                                                                                            <field name="OID">alexa2.0.Echo-Devices.xxx.Commands.speak</field>
                                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                                            <value name="VALUE">
                                                                                              <block type="variables_get" id="P[ojMqQDVRouu#vN~{[%">
                                                                                                <field name="VAR" id="?lSgrl@9S7sS[ooJ1brj" variabletype="">Ausgabetext</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </statement>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </xml>
        
        1 Reply Last reply Reply Quote 1
        • dslraser
          dslraser Forum Testing Most Active @Stoni last edited by

          @Stoni

          Hier habe ich was für die Luftfeuchtigkeit

          https://forum.iobroker.net/post/328119

          und hier noch etwas mehr, mit Beschreibung.

          https://forum.iobroker.net/post/273896

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

          Support us

          ioBroker
          Community Adapters
          Donate

          783
          Online

          31.9k
          Users

          80.3k
          Topics

          1.3m
          Posts

          3
          3
          292
          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