Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Hilfe zu Skript zu Alexa Anruferansage

    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 zu Skript zu Alexa Anruferansage

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

      Hab mir ein Skript zur Anruferansage über Alexa mit Blockly gebaut und habe 2 Probleme mit dem Skript.

      Bin noch relativ am Anfang - obwohl schon einige Skripte gut laufen.

      1. Bei der eingebauten Wiederholung stürzt mir ioBroker ab - wahrscheinlich durch den Java Adapter - was stimmt hier nicht?

      2. Ich möchte noch unterscheiden zwischen Anrufer mit Namen in "callerName" und ohne. Wie kann ich auf den Wert "Null/leer" prüfen?

      2098_anruferansage.jpg

       <block xmlns="http://www.w3.org/1999/xhtml" type="timeouts_settimeout" id="2#kt;lBJ1mHYssJzo.Lb" x="59" y="228"><field name="NAME">timeout</field>
        <field name="DELAY">3</field>
        <field name="UNIT">sec</field>
        <statement name="STATEMENT"><block type="controls_whileUntil" id="]63o6*~!YxhDPw^cqPO="><field name="MODE">UNTIL</field>
            <value name="BOOL"><block type="logic_operation" id="R;oI~K%O8AI]*#;ty-zT" inline="false"><field name="OP">OR</field>
                <value name="A"><block type="logic_compare" id="q(PI%.99+_)yO!}dl*)e"><field name="OP">EQ</field>
                    <value name="A"><block type="get_value" id="M:`p;VcU3;J#lDgUHXp6"><field name="ATTR">val</field>
                        <field name="OID">tr-064.0.callmonitor.toPauseState</field></block></value> 
                    <value name="B"><block type="text" id="mM4r/{=DUup]bXJS~K8l"><field name="TEXT">connect</field></block></value></block></value> 
                <value name="B"><block type="logic_compare" id="tvxnlSl/67R`JkoJPxvF"><field name="OP">EQ</field>
                    <value name="A"><block type="get_value" id="-I](,X41lR:5eE`qX#B)"><field name="ATTR">val</field>
                        <field name="OID">tr-064.0.callmonitor.toPauseState</field></block></value> 
                    <value name="B"><block type="text" id="s^dx3[)_E0Ntc]X3ReR+"><field name="TEXT">end</field></block></value></block></value></block></value> 
            <statement name="DO"><block type="timeouts_settimeout" id="UwV~Tq-J@u8=X,4N=g2I"><field name="NAME">timeout2</field>
                <field name="DELAY">3</field>
                <field name="UNIT">sec</field>
                <statement name="STATEMENT"><block type="control" id="o3;?GgVtvP(z3z1WK%/D"><mutation delay_input="false"></mutation>
                    <field name="OID">alexa2.0.Echo-Devices.G090L90970370AR1.Commands.speak</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE"><block type="text_join" id="tdt|0I2ze9K.Q]z*Tz8S"><mutation items="2"></mutation>
                        <value name="ADD0"><block type="text" id="Wp9@unyGZ@v0SSzMs~0k"><field name="TEXT">Eingehender Anruf von</field></block></value> 
                        <value name="ADD1"><block type="convert_tostring" id="VU`rb:)Ubs+CQz8B/7xS"><value name="VALUE"><block type="get_value" id="0BI}Ew7Lt;X7W8gL|NwJ"><field name="ATTR">val</field>
                                <field name="OID">tr-064.0.callmonitor.inbound.callerName</field></block></value></block></value></block></value></block></statement></block></statement></block></statement></block> 
      

      Ziel:

      Wiederholung der Ansage bis entweder verbunden oder aufgelegt wurde.

      Wenn kein Name hinterlegt ist soll nur einmal "unbekannter Anrufer" angesagt werden - dafür fehlt mir die Auswertung für kein Wert.

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

      Support us

      ioBroker
      Community Adapters
      Donate

      929
      Online

      31.7k
      Users

      79.9k
      Topics

      1.3m
      Posts

      1
      1
      561
      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