Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. [Hilfe] iobroker custom Alexa text2command

    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] iobroker custom Alexa text2command

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

      Hallo,

      ich versuche eigene Fragen/Wörter an Alexa zu senden und Alexas Antwort zu manipulieren.

      Oder auch das sie Rückfragen stellt.

      Ich bekomme jedoch schon bei einem Einfachen Status von Alexa zu hören : "Die Verarbeitung von Status ist nicht möglich"

      iot.0	2020-09-23 21:09:09.043	debug	(15402) Response from text2command: test test
      text2command.0	2020-09-23 21:09:09.041	info	(15894) Response: test test
      text2command.0	2020-09-23 21:09:09.036	info	(15894) Say ID javascript.0.textAnswerAlexa
      text2command.0	2020-09-23 21:09:09.035	warn	(15894) Timeout for external processor: javascript.0.textProcessorAlexa
      text2command.0	2020-09-23 21:09:09.034	info	(15894) processText: "de;askDevice status"
      javascript.0	2020-09-23 21:09:08.035	info	(594) script.js.Alexa.common: {'language':'de','command':'askDevice status','withLanguage':true,'from':'system.adapter.iot.0'}
      text2command.0	2020-09-23 21:09:08.031	info	(15894) processText: "de;askDevice status"
      iot.0	2020-09-23 21:09:08.029	debug	(15402) sendTo "send" to system.adapter.text2command.0 from system.adapter.iot.0: de;askDevice status
      
      on({id: 'javascript.0.textProcessorAlexa', ack: false, change: 'any'}, function (obj) {
             var task = JSON.parse(obj.state.val);
             // value looks like
             // {
             //     "command":      "text to process", // command that was received by text2command
             //     "language":     "en",              // language in command or system language
             //     "withLanguage": false              // indicator if language was defined in command (true) or used default language (false)
             // }
             // response to text2command with ack=true
             console.log(task);
      
             if(task.command = 'askDevice status'){
              
                 setState('javascript.0.textAnswerAlexa', 'test test', true);
             }
         
      });
      
      

      Müsste sie den nicht "test test" sagen?

      Bei text2command habe ich bei den Einstellungen Antwort und Bearbeiter ID entsprechend eingetragen.

      Danke für die Hilfe

      crunchip 1 Reply Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active @mariva last edited by

        @mariva sagte in [Hilfe] iobroker custom Alexa text2command:

        Oder auch das sie Rückfragen stellt.

        sowas?
        https://www.youtube.com/watch?v=A5PpgocM3Tc

        M 1 Reply Last reply Reply Quote 0
        • M
          mariva @crunchip last edited by

          @crunchip Im Grunde ja nur gerne ohne einen weiteren Service.

          Das sollte ja via Scripten möglich sein. Wenn Alexa nur nicht das o.g. Problem hätte.

          Ich vermute das ich irgendetwas übersehe.

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

          Support us

          ioBroker
          Community Adapters
          Donate

          960
          Online

          31.8k
          Users

          80.0k
          Topics

          1.3m
          Posts

          2
          3
          636
          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