Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [HILFE] DWD Wetterwarnung als Ansage und Push-Nachricht

    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] DWD Wetterwarnung als Ansage und Push-Nachricht

    This topic has been deleted. Only users with topic management privileges can see it.
    • smarthomegirl
      smarthomegirl @thewhobox last edited by

      @thewhobox okay das habe ich jetzt mal versucht.
      Teil4.JPG

      smarthomegirl 2 Replies Last reply Reply Quote 0
      • smarthomegirl
        smarthomegirl @smarthomegirl last edited by

        @thewhobox meinst du das könnte so funktionieren?

        thewhobox 1 Reply Last reply Reply Quote 0
        • thewhobox
          thewhobox @smarthomegirl last edited by

          @smarthomegirl wenn du das jetzt noch per debug ausgibt, was steht dann drin?

          smarthomegirl 1 Reply Last reply Reply Quote 0
          • M
            Michi68 last edited by

            Hallo,
            nimm für die Sprachausgabe ssml und nicht speak, speak unterstützt nur 240 oder 250 Zeichen.
            Die Abfrage habe ich so gemacht vielleicht hilft es dir weiter

            Wetterwarnung_DWD.png

            Gruß Michael

            smarthomegirl XxJooO 3 Replies Last reply Reply Quote 0
            • smarthomegirl
              smarthomegirl @thewhobox last edited by

              @thewhobox das ist eine gute Frage, bis jetzt konnte ich das Skript noch nicht testen, da es keine Wetterwarnung des DWD gab. 😕

              1 Reply Last reply Reply Quote 0
              • smarthomegirl
                smarthomegirl @Michi68 last edited by

                @Michi68 ok vielen Dank. Ich werde mich hier auch mal reindenken und dies auch ausprobieren.

                1 Reply Last reply Reply Quote 0
                • smarthomegirl
                  smarthomegirl @smarthomegirl last edited by

                  @smarthomegirl said in DWD Wetterwarnung als Ansage und Push-Nachricht:

                  @thewhobox okay das habe ich jetzt mal versucht.
                  Teil4.JPG

                  @thewhobox Also das hat schon mal nicht funktioniert. Alexa sagt wieder nur "Achtung ... Unwetterwarnung" der Rest kommt nicht. Telegram hat allerdings funktioniert.

                  @Michi68 Ich probiere mal deinen Vorschlag aus.

                  1 Reply Last reply Reply Quote 0
                  • smarthomegirl
                    smarthomegirl @Michi68 last edited by smarthomegirl

                    @Michi68 said in DWD Wetterwarnung als Ansage und Push-Nachricht:

                    Hallo,
                    nimm für die Sprachausgabe ssml und nicht speak, speak unterstützt nur 240 oder 250 Zeichen.
                    Die Abfrage habe ich so gemacht vielleicht hilft es dir weiter

                    Wetterwarnung_DWD.png

                    Gruß Michael

                    @Michi68 Habe das jetzt so bei mir eingerichtet, aber das ssml funktioniert nicht. Muss ich da etwas eintragen? Brauch ich dazu einen Skill?

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      Michi68 @smarthomegirl last edited by

                      @smarthomegirl
                      Skill nein

                      <speak><voice name="Alexa">

                      Der eigentliche Text der ausgegeben werden soll

                      </voice></speak>

                      Hier mal das Blockly

                      <xml xmlns="http://www.w3.org/1999/xhtml">
                        <block type="comment" id="HK#;=bB#}Jr254%nZtu]" x="-2212" y="-1237">
                          <field name="COMMENT">Alexa, gibt es Wetterwarnungen</field>
                          <next>
                            <block type="control" id="@J7@ob/rsR9OCYN+!hI7">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">alexa2.0.History.#trigger</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="oI]KS-#7{`Lh(W#]MB7C">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="7gE~=.}}QV+Yjv]ki]O?">
                                  <field name="VAR">Anzahl</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="TZo)0t`P~SrkY}t--m5m">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="controls_if" id="O;qn9,hsq1U:Zl{jbfM/">
                                      <value name="IF0">
                                        <block type="logic_compare" id="l(JvpQi,YLZ7irkN,Kqd">
                                          <field name="OP">NEQ</field>
                                          <value name="A">
                                            <block type="get_value" id="uy8#Ihybn4x_iYnIx+!2">
                                              <field name="ATTR">val</field>
                                              <field name="OID">dwd.0.warning.description</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="gkrRg!,*+hOz|C4CmEAu">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="math_change" id="MK#jjQoy-/Fv0{n#Zx_^">
                                          <field name="VAR">Anzahl</field>
                                          <value name="DELTA">
                                            <shadow type="math_number" id="n[Q8BD|%+3)(N2b%=/EQ">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="math_number" id="Mp8^N1_~INe?jveI(|/w">
                                              <field name="NUM">1</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="qpq*QHXCfc-5oIqo2~;9">
                                              <field name="VAR">Ausgabetext1</field>
                                              <value name="VALUE">
                                                <block type="text_join" id="lKx7fAhf`|[S]A,0F?ls">
                                                  <mutation items="2"></mutation>
                                                  <value name="ADD0">
                                                    <block type="text" id="xC7U/03jqOh=2hMwE=D7">
                                                      <field name="TEXT"> Wetterwarnung eins, </field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD1">
                                                    <block type="get_value" id="}aCmugM2QKU?|sFA@nDW">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">dwd.0.warning.description</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="controls_if" id="U3/`@|}^gU,b!Id^7:5l">
                                          <value name="IF0">
                                            <block type="logic_compare" id="61}U-~I+S+ZsU[l8;5@S">
                                              <field name="OP">NEQ</field>
                                              <value name="A">
                                                <block type="get_value" id="`.5#luI3ri0QOM?hAAfI">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">dwd.0.warning1.description</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="[gp%O{W}qo/Ia.yT!~x0">
                                                  <field name="NUM">0</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="math_change" id="pADZ%Mg8:*{on[4_a5oD">
                                              <field name="VAR">Anzahl</field>
                                              <value name="DELTA">
                                                <shadow type="math_number" id="sZB:)Si~VR|]#W6q:dP1">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="math_number" id="zfj2PIE?asW{I-dO4,Hc">
                                                  <field name="NUM">1</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="Cr.+=t#0]B.pC?35{!8P">
                                                  <field name="VAR">Ausgabetext2</field>
                                                  <value name="VALUE">
                                                    <block type="text_join" id="Qg^~!n+TAXvU,z^LIIzW">
                                                      <mutation items="2"></mutation>
                                                      <value name="ADD0">
                                                        <block type="text" id="Zm:_40I.q)``keG7=z?E">
                                                          <field name="TEXT"> und Wetterwarnung zwei, </field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD1">
                                                        <block type="get_value" id="8UnCph?c@wHPdG[}5TbT">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">dwd.0.warning1.description</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="controls_if" id="Q5c41=0R_o8ww}0w,eBC">
                                              <value name="IF0">
                                                <block type="logic_compare" id="qMuOhPqk22whCHGfKV+3">
                                                  <field name="OP">NEQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="?*aH2CJU7(:GFAT4@]BS">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">dwd.0.warning2.description</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="XWzbT[OWnqTnP~ISv!Ce">
                                                      <field name="NUM">0</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="math_change" id="Li8;?MY9nSu9%B1_O,.}">
                                                  <field name="VAR">Anzahl</field>
                                                  <value name="DELTA">
                                                    <shadow type="math_number" id="y`5cIcHU2D7DRw[V,=qG">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="math_number" id="Ug@tm(/|!weVrL}^SFgw">
                                                      <field name="NUM">1</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="variables_set" id="B,32mHH4v_q:JDs,_`4s">
                                                      <field name="VAR">Ausgabetext3</field>
                                                      <value name="VALUE">
                                                        <block type="text_join" id="3.KZRH{SI;.U}oWssDnp">
                                                          <mutation items="2"></mutation>
                                                          <value name="ADD0">
                                                            <block type="text" id="iRyAq1j+;cH07b[8}0Zz">
                                                              <field name="TEXT"> und Wetterwarnung drei, </field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD1">
                                                            <block type="get_value" id="TO}%ROkQC9ZcKi!Id9yE">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">dwd.0.warning2.description</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                              <next>
                                                <block type="controls_if" id="g2hC=^@^6SRrbbyJC3zl">
                                                  <mutation elseif="2"></mutation>
                                                  <value name="IF0">
                                                    <block type="logic_compare" id="=!Gf9!;u1P`p[OD^0_/1">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="variables_get" id=".5PqkJK5{WiujsrG@FY3">
                                                          <field name="VAR">Anzahl</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="B,oScd-c!q4J/=*iML9p">
                                                          <field name="NUM">1</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="variables_set" id=".6oK=~uCEz.3T+?)5,{+">
                                                      <field name="VAR">Warnungen</field>
                                                      <value name="VALUE">
                                                        <block type="text" id="zqIR~RWI{[Q_gup`6,lI">
                                                          <field name="TEXT">Es gibt eine Wetterwarnung, </field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                  <value name="IF1">
                                                    <block type="logic_compare" id="tC7Jq572Qgs_H:Yf0kA:">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="variables_get" id="S2))dfTdZhHCFhE??VEq">
                                                          <field name="VAR">Anzahl</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="UC!zc]-uJbL+`YjiB|B}">
                                                          <field name="NUM">2</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO1">
                                                    <block type="variables_set" id="}s/Ru#uZtplpDKB!FZXt">
                                                      <field name="VAR">Warnungen</field>
                                                      <value name="VALUE">
                                                        <block type="text" id="9KpMW@[.#`j{7KXkntY)">
                                                          <field name="TEXT">Es gibt zwei Wetterwarnungen, </field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                  <value name="IF2">
                                                    <block type="logic_compare" id="]AY@D^hGN-[*jF22NFBW">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="variables_get" id="rwgEfEI_`;mG453F^%mE">
                                                          <field name="VAR">Anzahl</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="lS(;CEW@=a?]+t/`}~Gu">
                                                          <field name="NUM">3</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO2">
                                                    <block type="variables_set" id="J[5+z{)@7e]XInHC0bd0">
                                                      <field name="VAR">Warnungen</field>
                                                      <value name="VALUE">
                                                        <block type="text" id=",ac*X@N6R!%oi:UvjdR:">
                                                          <field name="TEXT">Es gibt drei Wetterwarnungen, </field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                  <next>
                                                    <block type="controls_if" id="^eRO5c#-~Mdn+Z%HZ342">
                                                      <value name="IF0">
                                                        <block type="logic_compare" id="GU(TOhJ@[y,Si4jmXu]u">
                                                          <field name="OP">NEQ</field>
                                                          <value name="A">
                                                            <block type="variables_get" id="-S]HiFq}E(Ey_6dK%Tm/">
                                                              <field name="VAR">Anzahl</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="math_number" id="aPy,(,u?:6y[*;t0WB`e">
                                                              <field name="NUM">0</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="variables_set" id="V(?Lg9%P|F7TZI~5A*Wz">
                                                          <field name="VAR">Ausgabetext</field>
                                                          <value name="VALUE">
                                                            <block type="text_join" id="*`^ak)Kvj,-TwU`SO7%m">
                                                              <mutation items="6"></mutation>
                                                              <value name="ADD0">
                                                                <block type="text" id="M!FQ}3GY@Sz;vrngR~vG">
                                                                  <field name="TEXT">&lt;speak&gt;&lt;voice name="Alexa"&gt;, </field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD1">
                                                                <block type="variables_get" id="_lq{^4=p-`kfB1QR%tRL">
                                                                  <field name="VAR">Warnungen</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD2">
                                                                <block type="variables_get" id="[YZcoEu[;/bxwN(;n:Ic">
                                                                  <field name="VAR">Ausgabetext1</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD3">
                                                                <block type="variables_get" id="/?#Q,]4ng,VowIhl^#tC">
                                                                  <field name="VAR">Ausgabetext2</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD4">
                                                                <block type="variables_get" id="-)2PB1}rS40V%lUu4KdI">
                                                                  <field name="VAR">Ausgabetext3</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD5">
                                                                <block type="text" id="XXQ%]V.ldC4SJBcC+#Ac">
                                                                  <field name="TEXT">&lt;/voice&gt;&lt;/speak&gt;</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </statement>
                                                      <next>
                                                        <block type="controls_if" id="vmXrdHkTBc;qI:1pXD?|">
                                                          <value name="IF0">
                                                            <block type="logic_compare" id="+3XR79KHj8#2SUT3Opyi">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="variables_get" id="zJ2IJutYIO2R_hQ%5-5~">
                                                                  <field name="VAR">Anzahl</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="math_number" id="(`FNTm*oXA/O~H};SNcV">
                                                                  <field name="NUM">0</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="DO0">
                                                            <block type="variables_set" id="|B)sG8=^?cZUr~aYVVYh">
                                                              <field name="VAR">Ausgabetext</field>
                                                              <value name="VALUE">
                                                                <block type="text_join" id="(rW`y7M.~|R!KIkdRT]0">
                                                                  <mutation items="3"></mutation>
                                                                  <value name="ADD0">
                                                                    <block type="text" id="IcvX-d^(E^jq{;(kI,FK">
                                                                      <field name="TEXT">&lt;speak&gt;&lt;voice name="Alexa"&gt;</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD1">
                                                                    <block type="text" id="XMF#O3=b6X=P;8ohPD(r">
                                                                      <field name="TEXT">Im Moment gibt es keine Wetterwarnung</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD2">
                                                                    <block type="text" id="{XC8V[JO0In[|Du;Z3gq">
                                                                      <field name="TEXT">&lt;/voice&gt;&lt;/speak&gt;</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </statement>
                                                          <next>
                                                            <block type="timeouts_settimeout" id="^c,bQ)^![(HGz2QrWw/u">
                                                              <field name="NAME">timeout</field>
                                                              <field name="DELAY">500</field>
                                                              <field name="UNIT">ms</field>
                                                              <statement name="STATEMENT">
                                                                <block type="comment" id="MaSA+|t=/+(F~o`{=Mwy">
                                                                  <field name="COMMENT">Wohnzimmer</field>
                                                                  <next>
                                                                    <block type="controls_if" id="=9urrah--.SS7){{qE`5">
                                                                      <value name="IF0">
                                                                        <block type="logic_compare" id="m5FiQ8M_KpZAS-KFgSJx">
                                                                          <field name="OP">EQ</field>
                                                                          <value name="A">
                                                                            <block type="get_value" id="dRjkR(m*nwYK]G,)LtLM">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">alexa2.0.History.name</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="text" id="TvvV|O=?-Z@aWGZaHIw3">
                                                                              <field name="TEXT">Wohnzimmer</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <statement name="DO0">
                                                                        <block type="control" id="xX2}R?z4#wzm|.WHUSEZ">
                                                                          <mutation delay_input="false"></mutation>
                                                                          <field name="OID">alexa2.0.Echo-Devices.xxxxxxxxx.Commands.ssml</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="variables_get" id="@dii.{6G2@h*F!(FV;%.">
                                                                              <field name="VAR">Ausgabetext</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </statement>
                                                                      <next>
                                                                        <block type="comment" id="djb+g-JXNY=BTwfN}jzr">
                                                                          <field name="COMMENT">Küche</field>
                                                                          <next>
                                                                            <block type="controls_if" id="r|PbUmaB+)xwW`pk!(Xx">
                                                                              <value name="IF0">
                                                                                <block type="logic_compare" id="QsJ~iUEGl.w*B{Jxt.pU">
                                                                                  <field name="OP">EQ</field>
                                                                                  <value name="A">
                                                                                    <block type="get_value" id="-iIC:0{xTee@numl^+L,">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">alexa2.0.History.name</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <block type="text" id="R|MPyD@:qc2%XJFxt1E%">
                                                                                      <field name="TEXT">Küche</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <statement name="DO0">
                                                                                <block type="control" id="^i;s9sGRB#7n0O%Mi+dL">
                                                                                  <mutation delay_input="false"></mutation>
                                                                                  <field name="OID">alexa2.0.Echo-Devices.xxxxxxxxx.Commands.ssml</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="variables_get" id="GJZ,eA-fyYF*`4]mKDHt">
                                                                                      <field name="VAR">Ausgabetext</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </statement>
                                                                              <next>
                                                                                <block type="comment" id="viVA{dT#v~Phr-sv~j/(">
                                                                                  <field name="COMMENT">Schlafzimmer</field>
                                                                                  <next>
                                                                                    <block type="controls_if" id="?hM%,h5;60|Qqk/sBM.a">
                                                                                      <value name="IF0">
                                                                                        <block type="logic_compare" id="Ox9?XD!p*o*sy2X2_pY?">
                                                                                          <field name="OP">EQ</field>
                                                                                          <value name="A">
                                                                                            <block type="get_value" id="wjEFSBU?Yn{j[Yb7gcX[">
                                                                                              <field name="ATTR">val</field>
                                                                                              <field name="OID">alexa2.0.History.name</field>
                                                                                            </block>
                                                                                          </value>
                                                                                          <value name="B">
                                                                                            <block type="text" id="Z!wjG~y3lGO2QeT0dc#e">
                                                                                              <field name="TEXT">Schlafzimmer</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                      <statement name="DO0">
                                                                                        <block type="control" id=":Ulye_Qvwo:/SU=U+Fl(">
                                                                                          <mutation delay_input="false"></mutation>
                                                                                          <field name="OID">alexa2.0.Echo-Devices.xxxxxxxxx.Commands.ssml</field>
                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                          <value name="VALUE">
                                                                                            <block type="variables_get" id="{J9Q5_;,ypErGbZ=@!;o">
                                                                                              <field name="VAR">Ausgabetext</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </statement>
                                                                                      <next>
                                                                                        <block type="comment" id="B)n1M8=W:dL7)sj-d*d_">
                                                                                          <field name="COMMENT">Badezimmer</field>
                                                                                          <next>
                                                                                            <block type="controls_if" id="OG`eImbu|^VdEpX+fQ)D">
                                                                                              <value name="IF0">
                                                                                                <block type="logic_compare" id="yYAbNUm{_Kcb#w-x=Eq2">
                                                                                                  <field name="OP">EQ</field>
                                                                                                  <value name="A">
                                                                                                    <block type="get_value" id="Rz4,4gIXFjaVM~)5Ct)C">
                                                                                                      <field name="ATTR">val</field>
                                                                                                      <field name="OID">alexa2.0.History.name</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="B">
                                                                                                    <block type="text" id="e:J::K4ic~#b%_9%UQ:#">
                                                                                                      <field name="TEXT">Badezimmer</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                              <statement name="DO0">
                                                                                                <block type="control" id="3;?09te594!-hyH-whsx">
                                                                                                  <mutation delay_input="false"></mutation>
                                                                                                  <field name="OID">alexa2.0.Echo-Devices.xxxxxxxxx.Commands.ssml</field>
                                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                                  <value name="VALUE">
                                                                                                    <block type="variables_get" id="RHc1e!8E/[.Iya7cC-,:">
                                                                                                      <field name="VAR">Ausgabetext</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </statement>
                                                                                              <next>
                                                                                                <block type="comment" id="Ph^sVU=m^0j?V+zQX?ml">
                                                                                                  <field name="COMMENT">Flur</field>
                                                                                                  <next>
                                                                                                    <block type="controls_if" id="P.8DY1Hi0-tIy{^D7wt7">
                                                                                                      <value name="IF0">
                                                                                                        <block type="logic_compare" id="4(~+EkNPQxNA6mtK0S}i">
                                                                                                          <field name="OP">EQ</field>
                                                                                                          <value name="A">
                                                                                                            <block type="get_value" id="iD(Sy*+8Cb*1hk)YC2vE">
                                                                                                              <field name="ATTR">val</field>
                                                                                                              <field name="OID">alexa2.0.History.name</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <value name="B">
                                                                                                            <block type="text" id="LQ4rbJ*bqR?D:yJ/2!;W">
                                                                                                              <field name="TEXT">Flur</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <statement name="DO0">
                                                                                                        <block type="control" id="H}SVVYk3z44h.D(%ktE/">
                                                                                                          <mutation delay_input="false"></mutation>
                                                                                                          <field name="OID">alexa2.0.Echo-Devices.xxxxxxxxx.Commands.ssml</field>
                                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                                          <value name="VALUE">
                                                                                                            <block type="variables_get" id="OLe/*aq7[P%J=G??u.f3">
                                                                                                              <field name="VAR">Ausgabetext</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </statement>
                                                                                                      <next>
                                                                                                        <block type="comment" id="4.?/fOtq.6=?SHaVlwa2">
                                                                                                          <field name="COMMENT">Gästezimmer</field>
                                                                                                          <next>
                                                                                                            <block type="controls_if" id="=LIQYwLYrY%RxjQW`SJ/">
                                                                                                              <value name="IF0">
                                                                                                                <block type="logic_compare" id="!R9},-95#2:{kFJH}QFy">
                                                                                                                  <field name="OP">EQ</field>
                                                                                                                  <value name="A">
                                                                                                                    <block type="get_value" id="tlIvHW(#BDF~s+(Lca)}">
                                                                                                                      <field name="ATTR">val</field>
                                                                                                                      <field name="OID">alexa2.0.History.name</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="B">
                                                                                                                    <block type="text" id="{@*iMB^LkMr;oTmwX-bx">
                                                                                                                      <field name="TEXT">Gästezimmer</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <statement name="DO0">
                                                                                                                <block type="control" id="n-r]}5rX4[P!Ycdtvz+v">
                                                                                                                  <mutation delay_input="false"></mutation>
                                                                                                                  <field name="OID">alexa2.0.Echo-Devices.xxxxxxxxx.Commands.ssml</field>
                                                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                                                  <value name="VALUE">
                                                                                                                    <block type="variables_get" id="K3EVpi|zSTOZh?_G(91o">
                                                                                                                      <field name="VAR">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>
                                                              </statement>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </xml>
                      

                      ostseereiter 1 Reply Last reply Reply Quote 0
                      • ostseereiter
                        ostseereiter @Michi68 last edited by

                        @Michi68
                        Hallo ich habe dein Script mal übernommen. Im Log steht diese Warnung:

                        javascript.0	2019-08-10 20:43:37.710	warn	at script.js.Probe.wetterwarnung:17:55
                        javascript.0	2019-08-10 20:43:37.708	warn	getState "dwd.0.warning2.description" not found (3)
                        javascript.0	2019-08-10 20:43:37.708	warn	at script.js.Probe.wetterwarnung:15:5
                        javascript.0	2019-08-10 20:43:37.706	warn	getState "dwd.0.warning2.description" not found (3)
                        javascript.0	2019-08-10 20:43:37.706	warn	at script.js.Probe.wetterwarnung:13:55
                        javascript.0	2019-08-10 20:43:37.704	warn	getState "dwd.0.warning1.description" not found (3)
                        javascript.0	2019-08-10 20:43:37.703	warn	at script.js.Probe.wetterwarnung:11:5
                        javascript.0	2019-08-10 20:43:37.701	warn	getState "dwd.0.warning1.description" not found (3)
                        

                        Muss ich noch Datenpunkte erstellen?

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          Michi68 @ostseereiter last edited by

                          @ostseereiter
                          Hallo,
                          Nein sind alles Datenpunkte von dwd.0
                          sieht für mich so aus als ob du dwd.0 wo anders installiert hast, oder das script die datenpunkte nicht findet.

                          ostseereiter 1 Reply Last reply Reply Quote 0
                          • ostseereiter
                            ostseereiter @Michi68 last edited by

                            @Michi68
                            So sieht mein Baum aus
                            Screenshot (195).png

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

                              alles gut habe es gefunden ich habe in den Einstellungen die Wetterwarnungen auf 4 erhöht und nun werden die Datenpunkte gefunden. Danke

                              1 Reply Last reply Reply Quote 0
                              • XxJooO
                                XxJooO @Michi68 last edited by

                                @Michi68 ,

                                Hallo,

                                ich habe dein Skript importiert und auf meine Alexen angepasst. Mit dem Alexa-Adapter fehlt mir aber noch die Erfahrung. Wie wird das Skript gestartet bzw. getriggert um es auszuführen? Ich verwende als Triggerwort nicht "Alexa ", sondern "Computer". Was muss ich denn nun genau sagen?

                                Grüße

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

                                  Mir fehlt der Trigger auch noch irgendwie. Wenn ich frage Alexa gibt es Wetterwarnungen dann kommt der Wetterbericht.

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    Michi68 last edited by

                                    Hallo,
                                    in iot.0 oder cloud.0 ein neues Smart Gerät erstellen dabei das Script auswählen und in der Alexa app eine Routine erstellen die dann wiederum auf das Script zugreift.
                                    Damit man nicht Alexa, Gib es Wetterwarnungen an, sagen muss

                                    iot.png
                                    routine.PNG
                                    routine2.PNG

                                    ostseereiter XxJooO 2 Replies Last reply Reply Quote 2
                                    • ostseereiter
                                      ostseereiter @Michi68 last edited by

                                      @Michi68
                                      danke ich habe das über Node-Red eingebunden.Es funktioniert.

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

                                        [edit] hat sich erledigt, war ein dummer Rechtschreibfehler...

                                        Hallo zusammen,

                                        vielen Dank an @Michi68, ich habe über iot ein Smartgerät angelegt und in der App die Routine erstellt. Wenn ich nun sage "Computer, gibt es Wetterwarnungen?", dann sehe ich im debug Teil des Skripte Fensters, dass das Skript getriggert wird, aber es erfolgt keine Ausgabe, weder auf dem Handy, noch über dan angesprochenen Dot3. Eine hinzugefügte Debug-Ausgabe bestätigt, dass die Meldung erzeugt wird.
                                        Kann mir jemand sagen, wo ich suchen muss?

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

                                          Hallo Ihr Lieben,

                                          leider funktioniert mein oben angesprochenes Skript immer noch nicht so wie es soll. Telegram Nachricht senden geht reibungslos, nur die Ansage via Alexa passt noch nicht ganz.

                                          Meine Vorstellung:
                                          Wenn es eine oder mehrere Wetterwarnungen des DWD gibt, dann soll Alexa eigenständig (ohne Nachfrage) diese Warnungen nacheinander ansagen und wenn sich die Warnungen verändern, dann soll die Änderung auch angesagt werden.

                                          Meine Probleme:
                                          1.) Wenn sich der Datenpunkt "warning severity" ändert/aktualisiert, sagt Alexa zwar die
                                          Warnung an, aber wiederholt die gleiche Warnung ständig sobald sich irgendetwas im
                                          Datenpunkt aktualisiert.
                                          2.) Ich habe festgelegt, dass maximal zwei Wetterwarnungen ausgegeben werden sollen.
                                          Alexa sagt jedesmal, wenn sich praktisch nur etwas unter "warning severity1" aktualisiert,
                                          dass es zwei Wetterwarnungen gebe und liest aber nur eine Warnung vor.

                                          Zur Vorstellung hier mal ein paar Bilder meines Skriptes:

                                          ff7d8fc8-ee0e-4cd3-86e9-701efa115fbb-image.png

                                          a3ff8132-9069-422c-af03-5534e04ffb71-image.png

                                          7e288603-d57d-4cce-9974-a0d46b7f80ba-image.png

                                          Kann mir bitte jemand helfen?
                                          Ich verzweifele langsam.

                                          C 1 Reply Last reply Reply Quote 0
                                          • M
                                            Michi68 last edited by

                                            Hallo,
                                            probiere es mal so, hab ich aber nicht getestet

                                            dwd02.png

                                            Gruß Mmichael

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            495
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly climate communication javascript
                                            8
                                            44
                                            3800
                                            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