Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. [Script] Fritz!Box Anrufmonitor incl. Ortansage

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Script] Fritz!Box Anrufmonitor incl. Ortansage

    This topic has been deleted. Only users with topic management privileges can see it.
    • Uli977
      Uli977 @liv-in-sky last edited by Uli977

      @liv-in-sky

      So meinst du?

      03fc81fc-8dcb-4df3-9bb1-bffa89b7f1e9-image.png

      Ich bekam diese Meldung als ich von meinem Handy auf Festnetz angerufen habe.

      dbb856f5-a8c6-455c-b3a8-0b59f0065982-image.png

      Hier mein Skript

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="undefined" id="timeout3">timeout3</variable>
          <variable type="" id=",}E@OkW_Xp6fl4z$=k8z">caller</variable>
          <variable type="undefined" id="timeout2">timeout2</variable>
          <variable type="" id="]*a#2B4IsFp](y%Z^L[r">On call states</variable>
          <variable type="" id="eojonh*PZ~8frFA8=~W}">callerName</variable>
          <variable type="" id="^vp.rg2cH7kAuk`D@j$F">city</variable>
          <variable type="" id="8ADW~bY`3ni(H?nb@WF)">volume</variable>
          <variable type="" id="jMc+=[hFy[u]?-v!Uq2J">result</variable>
          <variable type="" id="in/X:={_riGAlY!oiiGh">speak</variable>
          <variable type="undefined" id="Intervall">Intervall</variable>
        </variables>
        <block type="on_ext" id="vc?N_0:HH+4*JEH9Uv`*" x="612" y="-313">
          <mutation items="1"></mutation>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="xvJr#y|Mtfk^d2GC5;|8">
              <field name="oid">default</field>
            </shadow>
            <block type="field_oid" id="C=|Bm%a[.%CW2w).Cy2,">
              <field name="oid">tr-064.0.callmonitor.inbound.json</field>
            </block>
          </value>
          <statement name="STATEMENT">
            <block type="timeouts_settimeout" id="{X+(S1ZsP},trHiu:0$d">
              <field name="NAME">timeout3</field>
              <field name="DELAY">500</field>
              <field name="UNIT">ms</field>
              <statement name="STATEMENT">
                <block type="variables_set" id="~tjnz?svl?[3`5bw0You">
                  <field name="VAR" id=",}E@OkW_Xp6fl4z$=k8z" variabletype="">caller</field>
                  <value name="VALUE">
                    <block type="lists_split" id=".*5X{c/Zq#_QeHI/YL+0">
                      <mutation mode="SPLIT"></mutation>
                      <field name="MODE">SPLIT</field>
                      <value name="INPUT">
                        <block type="get_value" id="}y._-@NY7A}A15vB6pQf">
                          <field name="ATTR">val</field>
                          <field name="OID">tr-064.0.callmonitor.inbound.json</field>
                        </block>
                      </value>
                      <value name="DELIM">
                        <shadow type="text" id="Qgr-n@Gwi+cb/c)S;:RL">
                          <field name="TEXT">"</field>
                        </shadow>
                      </value>
                    </block>
                  </value>
                  <next>
                    <block type="variables_set" id=")pnKB4!o9)_myv.02YT(">
                      <field name="VAR" id=",}E@OkW_Xp6fl4z$=k8z" variabletype="">caller</field>
                      <value name="VALUE">
                        <block type="lists_getIndex" id="Zej6|F6=;(lB.wx.RYU*">
                          <mutation statement="false" at="true"></mutation>
                          <field name="MODE">GET</field>
                          <field name="WHERE">FROM_START</field>
                          <value name="VALUE">
                            <block type="variables_get" id="Jrb.:gLl$Y2R|PwbPmsZ">
                              <field name="VAR" id=",}E@OkW_Xp6fl4z$=k8z" variabletype="">caller</field>
                            </block>
                          </value>
                          <value name="AT">
                            <block type="math_number" id="E(xLVK7@2}hY9$fGYha@">
                              <field name="NUM">4</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <next>
                        <block type="debug" id="{OhM^RfQm*s^3/Pakb8k">
                          <field name="Severity">log</field>
                          <value name="TEXT">
                            <shadow type="text" id="h0C.!COO3{4cKMW0#Nk(">
                              <field name="TEXT">test</field>
                            </shadow>
                            <block type="text_join" id="|L:o^vn2ljH9=:8{!OBu">
                              <mutation items="2"></mutation>
                              <value name="ADD0">
                                <block type="text" id="pV2!/ugNO+PQMF*7h:]3">
                                  <field name="TEXT">Caller ist: </field>
                                </block>
                              </value>
                              <value name="ADD1">
                                <block type="variables_get" id="eL%f1-K#H/O=Y^fW345b">
                                  <field name="VAR" id=",}E@OkW_Xp6fl4z$=k8z" variabletype="">caller</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="exec" id="6yVjA?LIjfOKa+T!ML4=" disabled="true">
                              <mutation with_statement="true"></mutation>
                              <field name="WITH_STATEMENT">TRUE</field>
                              <field name="LOG"></field>
                              <value name="COMMAND">
                                <shadow type="text" id="mX-3^.@M#AGIX^fN#p^9">
                                  <field name="TEXT">bash /opt/bin/iobroker/getcity.sh </field>
                                </shadow>
                                <block type="text_join" id="DX2s.t0/H[;A#QW)}*o6">
                                  <mutation items="3"></mutation>
                                  <value name="ADD0">
                                    <block type="text" id="6`~)xWH,5anaH0W9D{2(">
                                      <field name="TEXT">cd /opt/iobroker/ &amp;&amp; bash /opt/iobroker/getcity.sh "</field>
                                    </block>
                                  </value>
                                  <value name="ADD1">
                                    <block type="variables_get" id="t2%4Nfa*)zVRq;S-lx*`">
                                      <field name="VAR" id=",}E@OkW_Xp6fl4z$=k8z" variabletype="">caller</field>
                                    </block>
                                  </value>
                                  <value name="ADD2">
                                    <block type="text" id="2ph3E=5I02WCu|mu%h~]">
                                      <field name="TEXT">"</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="STATEMENT">
                                <block type="debug" id="i/8r9+OqPC6RH+v#?!om">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                    <shadow type="text" id="5IA}J?8fXQI{[e]S+tE^">
                                      <field name="TEXT">test</field>
                                    </shadow>
                                    <block type="variables_get" id="((/e`jfiz)^9{WQ.HLMm">
                                      <field name="VAR" id="jMc+=[hFy[u]?-v!Uq2J" variabletype="">result</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="update" id="[4|zNAFjc6U=[Uq}[YU5">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">javascript.0.Telegram_Benachrichtungen.Anrufer_Stadt</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="variables_get" id="/Kvcjib5-aha_$|Txped">
                                          <field name="VAR" id="jMc+=[hFy[u]?-v!Uq2J" variabletype="">result</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <next>
                                <block type="update" id="nk:DEdFqq*YYUl.7![tk">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">javascript.0.Telegram_Benachrichtungen.Anrufer_Stadt</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="get_value" id="2]H?MMVeb.23=Wtj@fe7">
                                      <field name="ATTR">val</field>
                                      <field name="OID">javascript.0.Eigene_Datenpunkte.Telefon.Telefon</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id=":L(OMuy:*;LxCL2(XNW(">
                                      <field name="VAR" id="^vp.rg2cH7kAuk`D@j$F" variabletype="">city</field>
                                      <value name="VALUE">
                                        <block type="get_value" id="{t:J#(Dd7/z(3^dr~_x8">
                                          <field name="ATTR">val</field>
                                          <field name="OID">javascript.0.Telegram_Benachrichtungen.Anrufer_Stadt</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
        </block>
        <block type="on" id="h;7+(=CcPI7MSx+?g|*5" x="638" y="338">
          <field name="OID">tr-064.0.callmonitor.ringing</field>
          <field name="CONDITION">true</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="controls_if" id="jz~%.(W!P/=?kTV_ku7]">
              <value name="IF0">
                <block type="logic_compare" id="5]rou1/.eV:{uyoJ9WBi">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="J3ftE-m#-F!zV++dAb5_">
                      <field name="ATTR">val</field>
                      <field name="OID">tr-064.0.callmonitor.toPauseState</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="text" id="WOlt|:!)g--Ht(ne(RX1">
                      <field name="TEXT">ring</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="timeouts_settimeout" id="0m=,:GR8{?L9Avi*a4HL">
                  <field name="NAME">timeout2</field>
                  <field name="DELAY">1000</field>
                  <field name="UNIT">ms</field>
                  <statement name="STATEMENT">
                    <block type="variables_set" id="%Ycmv?OF4|eO*QfNJN8u">
                      <field name="VAR" id="]*a#2B4IsFp](y%Z^L[r" variabletype="">On call states</field>
                      <value name="VALUE">
                        <block type="get_value" id="AyC{YRMU{])q?~ypw3y[">
                          <field name="ATTR">val</field>
                          <field name="OID">tr-064.0.callmonitor.toPauseState</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="xB6cV72gaYVd}tJ|F/F~">
                          <field name="VAR" id="eojonh*PZ~8frFA8=~W}" variabletype="">callerName</field>
                          <value name="VALUE">
                            <block type="get_value" id="@;dhLD{-*)CBugUX1[m,">
                              <field name="ATTR">val</field>
                              <field name="OID">tr-064.0.callmonitor.inbound.callerName</field>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="3AoW?j~#TW0__wz(YSg*">
                              <field name="VAR" id="^vp.rg2cH7kAuk`D@j$F" variabletype="">city</field>
                              <value name="VALUE">
                                <block type="get_value" id="Hd$FEsyLCUQvSRS(0Re3">
                                  <field name="ATTR">val</field>
                                  <field name="OID">javascript.0.Telegram_Benachrichtungen.Anrufer_Stadt</field>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="N^d}bwaf7w8K6rG[UE-q">
                                  <field name="VAR" id="8ADW~bY`3ni(H?nb@WF)" variabletype="">volume</field>
                                  <value name="VALUE">
                                    <block type="text" id="k`C6ho]n6pc${aLU(`64">
                                      <field name="TEXT">100</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="pEY@ZP|b*bR3rpdEUfG:">
                                      <field name="VAR" id="in/X:={_riGAlY!oiiGh" variabletype="">speak</field>
                                      <value name="VALUE">
                                        <block type="get_value" id="2c;4UMfU4.ij*hm}?Btn">
                                          <field name="ATTR">val</field>
                                          <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Commands.speak</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="controls_if" id="qWhnWk.9%-W7`Ll-9Oia">
                                          <mutation elseif="2"></mutation>
                                          <value name="IF0">
                                            <block type="logic_operation" id="2R93jg?p}dgZfWDQu(=N">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="w?Y@t3ad/lfjM.AEPJ9|">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="variables_get" id="`S-*DoS|%=MTavNbqu3N">
                                                      <field name="VAR" id="eojonh*PZ~8frFA8=~W}" variabletype="">callerName</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="text" id="l6GW=4LEvh:Uhk/=-WI/">
                                                      <field name="TEXT"></field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="3{6|M/I`cRN#o6ew4o]P">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="variables_get" id="w,Vj)e0MR#;:IH6x`j7r">
                                                      <field name="VAR" id=",}E@OkW_Xp6fl4z$=k8z" variabletype="">caller</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="text" id=")2-LlV1(xiY??#tVSG-%">
                                                      <field name="TEXT"></field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="control" id="+{R|3o_d}lv_7z|DtjEY">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Player.volume</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="variables_get" id="C.StMz=bwff!{YV*,lNC">
                                                  <field name="VAR" id="8ADW~bY`3ni(H?nb@WF)" variabletype="">volume</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="c)g3y.{=8ObMYgm0sFq}">
                                                  <mutation delay_input="false"></mutation>
                                                  <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Commands.speak</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="text" id="_Pf|e@+:q+tMM?+PMXUH">
                                                      <field name="TEXT">Unbekannte Nummer ruft an</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <value name="IF1">
                                            <block type="logic_compare" id="Id8Pm4pTL~6rzUGpO[PQ">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="variables_get" id="U;u}p|tsVd5eMZQa3`]o">
                                                  <field name="VAR" id="eojonh*PZ~8frFA8=~W}" variabletype="">callerName</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="text" id="Wt#uS@Wsw.?FfZ32AYcr">
                                                  <field name="TEXT"></field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO1">
                                            <block type="control" id="X7x9p2n^CFx._c;`I`Tn">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Player.volume</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="variables_get" id="eielG,Luwv#R4;DDDiCW">
                                                  <field name="VAR" id="8ADW~bY`3ni(H?nb@WF)" variabletype="">volume</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="controls_if" id="VTqMsN/90m*;gQJ,70_k">
                                                  <mutation elseif="1"></mutation>
                                                  <value name="IF0">
                                                    <block type="logic_compare" id="K$_aGy^M*S|zNMBiVQl]">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="text_indexOf" id="I#A*3T%IcR?$P(btGX6H">
                                                          <field name="END">FIRST</field>
                                                          <value name="VALUE">
                                                            <block type="variables_get" id="s[;cYRe~:z;u(,ckjSW.">
                                                              <field name="VAR" id="^vp.rg2cH7kAuk`D@j$F" variabletype="">city</field>
                                                            </block>
                                                          </value>
                                                          <value name="FIND">
                                                            <shadow type="text" id="O*KqyH6[aTE^|kX9%0y~">
                                                              <field name="TEXT">abc</field>
                                                            </shadow>
                                                            <block type="text" id="JF2Yua~Ck%Gr+j[gi01[">
                                                              <field name="TEXT">Handynummer</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="STb|[s+ZDZ7mN,h,n*?G">
                                                          <field name="NUM">0</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="control" id="{KV#]dIN(^+wrG*6RVxj">
                                                      <mutation delay_input="false"></mutation>
                                                      <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Commands.speak</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="text_join" id="YpC=g*@Vs^J#ZkJw_a%b">
                                                          <mutation items="4"></mutation>
                                                          <value name="ADD0">
                                                            <block type="text" id="rCblWLIuGh%Du.vNJ!5u">
                                                              <field name="TEXT">Anruf aus  </field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD1">
                                                            <block type="variables_get" id=",hkMeXv{vHCiNHT_^!dR">
                                                              <field name="VAR" id="^vp.rg2cH7kAuk`D@j$F" variabletype="">city</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD2">
                                                            <block type="text" id="%Hqrz;-zU0x_#UOdT_0}">
                                                              <field name="TEXT"> mit der Nummer </field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD3">
                                                            <block type="variables_get" id="uk]k`_=P7Z`bCb3RoT-M">
                                                              <field name="VAR" id=",}E@OkW_Xp6fl4z$=k8z" variabletype="">caller</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                  <value name="IF1">
                                                    <block type="logic_compare" id="sDwTdRBZQ:AvZh^iGU?L">
                                                      <field name="OP">GT</field>
                                                      <value name="A">
                                                        <block type="text_indexOf" id="2`a%dAOg]:a=|S.b:[q|">
                                                          <field name="END">FIRST</field>
                                                          <value name="VALUE">
                                                            <block type="variables_get" id="N,V,ZB)0Eeg7t7yoH}^P">
                                                              <field name="VAR" id="^vp.rg2cH7kAuk`D@j$F" variabletype="">city</field>
                                                            </block>
                                                          </value>
                                                          <value name="FIND">
                                                            <shadow type="text" id="O*KqyH6[aTE^|kX9%0y~">
                                                              <field name="TEXT">abc</field>
                                                            </shadow>
                                                            <block type="text" id="x3(JMn);F^nuJ_*(2XxW">
                                                              <field name="TEXT">Handynummer</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="0^*sx@#*`=c@%MT*E.3m">
                                                          <field name="NUM">0</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO1">
                                                    <block type="control" id="~iSd^neX(+(JJ!fE{PE+">
                                                      <mutation delay_input="false"></mutation>
                                                      <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Commands.speak</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="text_join" id="NXgXq9-*lV%XcVAOC-kF">
                                                          <mutation items="2"></mutation>
                                                          <value name="ADD0">
                                                            <block type="text" id="$T?EIUY%^5cD?;RSwb-I">
                                                              <field name="TEXT">Ein Anruf mit der Nummer </field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD1">
                                                            <block type="variables_get" id="kbY`n@+E/E(bI{TG@z!-">
                                                              <field name="VAR" id=",}E@OkW_Xp6fl4z$=k8z" variabletype="">caller</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <value name="IF2">
                                            <block type="logic_compare" id=".SPH-wnl,Ggyv^K(EB?5">
                                              <field name="OP">NEQ</field>
                                              <value name="A">
                                                <block type="variables_get" id="FNC7Ui|N(XQL_r3vQ-~u">
                                                  <field name="VAR" id="eojonh*PZ~8frFA8=~W}" variabletype="">callerName</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="text" id="?7c}zrB02lQ@}_kYT01=">
                                                  <field name="TEXT"></field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO2">
                                            <block type="control" id="#jy%Gup{T9NYA9ii8:Xf">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Player.volume</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="variables_get" id="s4[5%k%=~B0FcKAf9NBW">
                                                  <field name="VAR" id="8ADW~bY`3ni(H?nb@WF)" variabletype="">volume</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="dkpf|36YXjYE;I#=E{/j">
                                                  <mutation delay_input="false"></mutation>
                                                  <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Commands.speak</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="text_join" id="[J5,Xv05{NVoesX?X{)^">
                                                      <mutation items="2"></mutation>
                                                      <value name="ADD0">
                                                        <block type="variables_get" id="JTv1,B#9IQ.6WXs~BiC^">
                                                          <field name="VAR" id="eojonh*PZ~8frFA8=~W}" variabletype="">callerName</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD1">
                                                        <block type="text" id="TsxCXnXUiJWE5+hzN?W4">
                                                          <field name="TEXT">ruft an</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="timeouts_setinterval" id="v_Bqgg{C;}*SlNxMx+{v">
                                              <field name="NAME">Intervall</field>
                                              <field name="INTERVAL">8000</field>
                                              <field name="UNIT">ms</field>
                                              <statement name="STATEMENT">
                                                <block type="variables_set" id=":+L^L#%w}TaZ,oF%%Hee">
                                                  <field name="VAR" id="]*a#2B4IsFp](y%Z^L[r" variabletype="">On call states</field>
                                                  <value name="VALUE">
                                                    <block type="get_value" id="/jrF]ty4e!p+AvASy8G)">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">tr-064.0.callmonitor.toPauseState</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="controls_if" id="j87.ZsAyGl(mU8^*6Tr;">
                                                      <mutation elseif="3"></mutation>
                                                      <value name="IF0">
                                                        <block type="logic_operation" id="*u%zOMGy%F@!-}CJQlsp">
                                                          <field name="OP">OR</field>
                                                          <value name="A">
                                                            <block type="logic_compare" id="Ia?0)w*#[cTW9d%,3*^w">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="variables_get" id="^jM5pL6QJBLg%]o:C#PW">
                                                                  <field name="VAR" id="]*a#2B4IsFp](y%Z^L[r" variabletype="">On call states</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="text" id="w5`CFx@zd-,jjjDnp0~`">
                                                                  <field name="TEXT">end</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_compare" id="#M!]E7h3!{o=E*ekb|xy">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="variables_get" id=")3Ks~V`4HOPFyOMc`yLm">
                                                                  <field name="VAR" id="]*a#2B4IsFp](y%Z^L[r" variabletype="">On call states</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="text" id="It4NApphzKDp+{e4ch!w">
                                                                  <field name="TEXT">connect</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="control" id="}R~N3@uq}FDl0Z62!^Vw">
                                                          <mutation delay_input="false"></mutation>
                                                          <field name="OID">tr-064.0.callmonitor.inbound.callerName</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="text" id="F.Di%NWzTMz71Kg+])l,">
                                                              <field name="TEXT"></field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="control" id="5yGux~{xs{gf=a+U0%,H">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">tr-064.0.callmonitor.inbound.caller</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="text" id="*T{w@^.{ju_Y,3467f2B">
                                                                  <field name="TEXT"></field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="timeouts_clearinterval" id="YV5b]tFF(N3}/Lm)NYs(">
                                                                  <field name="NAME">Intervall</field>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                      <value name="IF1">
                                                        <block type="logic_operation" id=")acAXba{I:?)mwY3FQ5M">
                                                          <field name="OP">AND</field>
                                                          <value name="A">
                                                            <block type="logic_compare" id="TW9fh_{`g@VCF%A[XfCq">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="variables_get" id="E5o!zD)|PmZcj2Pd=]fi">
                                                                  <field name="VAR" id="eojonh*PZ~8frFA8=~W}" variabletype="">callerName</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="text" id="Ji[:io{=QH_Pjfl-[;eB">
                                                                  <field name="TEXT"></field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_compare" id="1l.]F[voVkI.Ip:8:2[q">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="variables_get" id="8#-f}ub^-tzPf#%Der3i">
                                                                  <field name="VAR" id=",}E@OkW_Xp6fl4z$=k8z" variabletype="">caller</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="text" id="OAqQ.JTGuNcQN-=!rb%U">
                                                                  <field name="TEXT"></field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO1">
                                                        <block type="control" id="2^.c]$0}n(cyjCzTz;3X">
                                                          <mutation delay_input="false"></mutation>
                                                          <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Player.volume</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="variables_get" id="R?q5@,u~EkGIZA|cc0*y">
                                                              <field name="VAR" id="8ADW~bY`3ni(H?nb@WF)" variabletype="">volume</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="control" id="xZSRRHYE],He4Q7er=)%">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Commands.speak</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="text" id="1OnbUqQlKCyVrjnS=*^l">
                                                                  <field name="TEXT">Unbekannte Nummer ruft an</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                      <value name="IF2">
                                                        <block type="logic_compare" id="}Ts:wbNat#zfS[n*z;b:">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="variables_get" id="O0Dws_Q#Y)mm~xb(@A3X">
                                                              <field name="VAR" id="eojonh*PZ~8frFA8=~W}" variabletype="">callerName</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="text" id="^!^KZ!ubH3AzTa+!-k;R">
                                                              <field name="TEXT"></field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO2">
                                                        <block type="control" id="O:[(6j%l|(hs.)d46uS|">
                                                          <mutation delay_input="false"></mutation>
                                                          <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Player.volume</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="variables_get" id="X)[QK{c:WMMfz4oi0D#U">
                                                              <field name="VAR" id="8ADW~bY`3ni(H?nb@WF)" variabletype="">volume</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="controls_if" id="sVBk/^uA]t,~^Nzb=Zfa">
                                                              <mutation elseif="1"></mutation>
                                                              <value name="IF0">
                                                                <block type="logic_compare" id="x?{sMo$C0+Ni=cGQ.6J)">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="text_indexOf" id="JH#6]@7EY+ndf:~TNg$G">
                                                                      <field name="END">FIRST</field>
                                                                      <value name="VALUE">
                                                                        <block type="variables_get" id="[|*6p;IQLVxy;qO#,:!t">
                                                                          <field name="VAR" id="^vp.rg2cH7kAuk`D@j$F" variabletype="">city</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="FIND">
                                                                        <shadow type="text" id="O*KqyH6[aTE^|kX9%0y~">
                                                                          <field name="TEXT">abc</field>
                                                                        </shadow>
                                                                        <block type="text" id="}4Ej@eshPHN1mTV|7GeV">
                                                                          <field name="TEXT">Handynummer</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="math_number" id="BVLMShFRJ~`vvvtNbV^`">
                                                                      <field name="NUM">0</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <statement name="DO0">
                                                                <block type="control" id="A[#=rD/0r$*V9$1Eo}6d">
                                                                  <mutation delay_input="false"></mutation>
                                                                  <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Commands.speak</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="text_join" id="X-KmEI?v;8h%y#b|n{BQ">
                                                                      <mutation items="4"></mutation>
                                                                      <value name="ADD0">
                                                                        <block type="text" id="{fdtYn1NcRx/kT4h=-g/">
                                                                          <field name="TEXT">Ein Anruf aus  </field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD1">
                                                                        <block type="variables_get" id="16HJmm1*Ef)i+1vGUaL*">
                                                                          <field name="VAR" id="^vp.rg2cH7kAuk`D@j$F" variabletype="">city</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD2">
                                                                        <block type="text" id="CPx#mg[T1G~_r#Kgubpk">
                                                                          <field name="TEXT"> mit der Nummer </field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD3">
                                                                        <block type="variables_get" id="DL1,J^xa}`r#jy?w5Fru">
                                                                          <field name="VAR" id=",}E@OkW_Xp6fl4z$=k8z" variabletype="">caller</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </statement>
                                                              <value name="IF1">
                                                                <block type="logic_compare" id="9?dq*cEy?5z*jB=IjABT">
                                                                  <field name="OP">GT</field>
                                                                  <value name="A">
                                                                    <block type="text_indexOf" id="{{N%4o9m,;GJlhF]E]~O">
                                                                      <field name="END">FIRST</field>
                                                                      <value name="VALUE">
                                                                        <block type="variables_get" id="on[#!LiD`Yd^rvUPC:s;">
                                                                          <field name="VAR" id="^vp.rg2cH7kAuk`D@j$F" variabletype="">city</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="FIND">
                                                                        <shadow type="text" id="O*KqyH6[aTE^|kX9%0y~">
                                                                          <field name="TEXT">abc</field>
                                                                        </shadow>
                                                                        <block type="text" id="]B`Q.*vLO|S`IP{B2WKG">
                                                                          <field name="TEXT">Handynummer</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="math_number" id="s!rE^59A5Dt={~njy6{A">
                                                                      <field name="NUM">0</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <statement name="DO1">
                                                                <block type="control" id="_A{0LW.[eT=80Ai$$Kb8">
                                                                  <mutation delay_input="false"></mutation>
                                                                  <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Commands.speak</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="text_join" id="@9vHH%5tVM9syqKA2Uz?">
                                                                      <mutation items="2"></mutation>
                                                                      <value name="ADD0">
                                                                        <block type="text" id="qhw6j%*bT{TJd_PM{+VC">
                                                                          <field name="TEXT">Ein Anruf mit der Nummer </field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD1">
                                                                        <block type="variables_get" id=":Jc*ZxS-Bx~S6H^J9Sof">
                                                                          <field name="VAR" id=",}E@OkW_Xp6fl4z$=k8z" variabletype="">caller</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </statement>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                      <value name="IF3">
                                                        <block type="logic_compare" id="B^(=1b~0d-~WUK.OMhk]">
                                                          <field name="OP">NEQ</field>
                                                          <value name="A">
                                                            <block type="variables_get" id="O0HAfh;q;n6j|g}u_(he">
                                                              <field name="VAR" id="eojonh*PZ~8frFA8=~W}" variabletype="">callerName</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="text" id="q-/pp:e@(F6A)ETnVBYj">
                                                              <field name="TEXT"></field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO3">
                                                        <block type="control" id="96y:F1wL.iTuSZz}J+m-">
                                                          <mutation delay_input="false"></mutation>
                                                          <field name="OID">alexa2.0.Echo-Devices.e3cc7d4739f747618c15edb4a89f1f09.Commands.speak</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="text_join" id="xF3bryAsT6V^`U~lsIj]">
                                                              <mutation items="2"></mutation>
                                                              <value name="ADD0">
                                                                <block type="variables_get" id="jHwoqHPN%dHtS7q9psKS">
                                                                  <field name="VAR" id="eojonh*PZ~8frFA8=~W}" variabletype="">callerName</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD1">
                                                                <block type="text" id="-Rt9?+F[-Xv2f@i2YZ;@">
                                                                  <field name="TEXT">ruft an</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      
      liv-in-sky 1 Reply Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @Uli977 last edited by

        @Uli977 moin

        wir sollten erstmal herausfinden, ob du die richtigen daten von meinem script bekommst - daher versuche mal diese variante Image 2.png

        im log sollte dann die city zu sehen sein

        ich habe mal nur den abgebildeten getestet - das funktioniert bei mir

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

          @liv-in-sky Ergebnis

          10fea9cc-524b-4f96-9e51-a4f83c66d109-image.png

          5f5a174e-066f-4181-9da3-67383c801a90-image.png

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

            @Uli977 vielleicht brauchen wir etwas mehr zeit - machmal in timeout3 auf 1500

            Uli977 2 Replies Last reply Reply Quote 0
            • Uli977
              Uli977 @liv-in-sky last edited by

              @liv-in-sky da fällt mir ein, ich habe nur ganz kurz anklingeln lassen und direkt wieder aufgelegt.... will hier keinen nerven....
              kann ich das auch simulieren durch einen text im Objekt..... in welchem?

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

                @liv-in-sky

                jetzt hab ich 3x klingeln lassen mit timeout 1500

                d3f68733-315f-4463-b0c9-4679458ab085-image.png

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

                  @Uli977 nicht wirklich - ich habe das dann mit handy probiert - dann sieht man keine stadt aber ob er was schreibt ("handy nummer")

                  zum testen, ob er die stadt tatsächlich findet - also ohne anruf - habe ich einfach die funktion aufgerufen - somit wird bei jedem speichern das script ausgelöst - aber nur mein script wird getestet - das blockly wird nicht getriggert

                  sucheVorwahlConst("089885647");
                  setStateDelayed("controll-own.0.HANDY.CallerVorwahl","Handy Vorwahl",1000);
                  

                  Image 1.png

                  einfach mal verschiedene nummer eingeben mit versciedenn vorwahlen und dann speichern und ins log schauen - du musst deinen datenpunkt eingeben

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

                    @liv-in-sky

                    761e84bf-5969-4c1f-9370-6e478c29959f-image.png

                    c282bb09-379a-4893-9d38-5da0cb746612-image.png

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

                      @Uli977 was hast du den für einen datenpunkt angelegt - er muss vom typ string (zeichenkette) sein

                      hätte ich auch sagen können - ist ja eigentlich eine zahl aber ich konnte leichter filtern mit einem string

                      Uli977 2 Replies Last reply Reply Quote 0
                      • Uli977
                        Uli977 @liv-in-sky last edited by

                        @liv-in-sky hatte Logikwert

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

                          @liv-in-sky

                          So richtig?

                          4a9e6ab1-e7b5-4b07-8b04-952b61e8af52-image.png

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

                            @Uli977 ja - sieht gut aus

                            Uli977 2 Replies Last reply Reply Quote 0
                            • Uli977
                              Uli977 @liv-in-sky last edited by

                              @liv-in-sky Ergebnis

                              d115cfc8-b9c7-4336-90cd-fd60effc8ba8-image.png

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

                                @liv-in-sky soll ich den Abschnitt zum testen wieder rausnehmen?

                                liv-in-sky 2 Replies Last reply Reply Quote 0
                                • liv-in-sky
                                  liv-in-sky @Uli977 last edited by liv-in-sky

                                  @Uli977
                                  ja - mach 2 schrägstriche vor jede zeile //

                                  wie im bild

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

                                    @Uli977

                                    wenn du mir deine telefonnummer im chat gibst - rufe ih dich mal an - dann siehst du ob meine vorwahl erkannt wird - damit das blockly auch getestet werden kann

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

                                      @liv-in-sky

                                      zu spät mit dem //

                                      aber das ist das Ergebnis

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

                                        @Uli977 post zwei drüber gesehen

                                        das ist auf jeden fall schon mal korrekt so

                                        Uli977 2 Replies Last reply Reply Quote 0
                                        • Uli977
                                          Uli977 @liv-in-sky last edited by

                                          @liv-in-sky
                                          ok, das klappt

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

                                            @liv-in-sky

                                            Was muss ich jetzt wieder ändern? Sollte das Blockly ja anpassen...

                                            02f886cc-404c-40cd-9cdf-7245206274b3-image.png

                                            liv-in-sky 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            611
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            9
                                            57
                                            5667
                                            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