Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Cloud Dienste
    4. Alexa View

    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

    Alexa View

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

      @negalein
      der geht aber auch auf "false" wenn du Alexa weiter sagst 🙂

      Negalein 1 Reply Last reply Reply Quote 0
      • Negalein
        Negalein Global Moderator @Peoples last edited by

        @peoples sagte in Alexa View:

        der geht aber auch auf "false" wenn du Alexa weiter sagst

        bei mir nicht

        getesten in dieser Kombi
        Alexa....spiele xxx ---> true
        Alexa....weiter ---> true
        Alexa....stopp ---> false
        Alexa....weiter ---> true

        schaltet wie er soll

        Peoples 1 Reply Last reply Reply Quote 0
        • Peoples
          Peoples @Negalein last edited by Peoples

          @negalein sagte in Alexa View:

          @peoples sagte in Alexa View:

          der geht aber auch auf "false" wenn du Alexa weiter sagst

          bei mir nicht

          getesten in dieser Kombi
          Alexa....spiele xxx ---> true
          Alexa....weiter ---> true
          Alexa....stopp ---> false
          Alexa....weiter ---> true

          schaltet wie er soll

          Hast du im Adapter am Aktuallisierungs-Intervall was eingstellt?
          Und welche Version benutzt du denn?

          Negalein 1 Reply Last reply Reply Quote 0
          • Negalein
            Negalein Global Moderator @Peoples last edited by

            @peoples sagte in Alexa View:

            Hast du im Adapter am Aktuallisierungs-Intervall was eingstellt?

            Nein, ist alles auf Standard.

            instances - ioBroker (1).png

            Und welche Version benutzt du denn?

            3.12.0

            Peoples 1 Reply Last reply Reply Quote 0
            • Peoples
              Peoples @Negalein last edited by

              @negalein
              Ich hatte die Stable Version, da war das nicht der Fall. So wie es scheint ist das wohl aber bei der 3.12.0 jetzt der Fall.

              Dank Dir!

              1 Reply Last reply Reply Quote 1
              • M
                mse1971 last edited by

                Hallo zusammen,

                ich habe mich auch mal an die Implementierung bei mir gewagt. Alles in allem habe ich erstmal nur die Ursprungsversion der Alexa Steuerung bei mir übernommen, ohne Radiosender usw.
                Bei der Historie habe ich noch das Problem, dass ich immer einer Leerzeile bekomme.
                4a60948e-517b-4bca-a5dc-38ebef7e7758-grafik.png

                Ich gehe mal davon aus, dass es irgendeine Einstellung in History sein muss, ich weiß aber leider nicht welche. Hier mal meine aktuelle Einstellung.
                2b9e902f-1533-4b6b-a732-017a43d5631f-grafik.png

                Vielleicht habt ihr ja eine Idee, was ich falsch mache.

                Vielen Dank
                Matthias

                DJMarc75 1 Reply Last reply Reply Quote 0
                • DJMarc75
                  DJMarc75 @mse1971 last edited by

                  @mse1971 sagte in Alexa View:

                  Bei der Historie habe ich noch das Problem, dass ich immer einer Leerzeile bekomme.

                  Wenn man den Datenpunkt Summary mit History aufzeichnet dann bekommt man das so. Da hilft keine Einstellung (zumindest ist mir da keine bekannt). Ist ja oben im zweiten Beitrag (Screenshot) auch so.
                  Ich habe das glaub irgendwann mal mit einem Blockly und einem eigenen Datenpunkt gelöst. Hab das so aber nicht mehr im Einsatz.

                  1 Reply Last reply Reply Quote 0
                  • Negalein
                    Negalein Global Moderator last edited by

                    @mse1971 sagte in Alexa View:

                    Vielleicht habt ihr ja eine Idee

                    Ich mach das mit dem Logparser-Adapter.

                    Schaut zB so bei mir aus.
                    3ede0918-637c-4c55-a8a5-01bea07a49eb-image.png

                    DJMarc75 M 2 Replies Last reply Reply Quote 0
                    • DJMarc75
                      DJMarc75 @Negalein last edited by DJMarc75

                      @negalein sagte in Alexa View:

                      Ich mach das mit dem Logparser-Adapter.

                      Premiumlösungsansatz 👍

                      Grad mal installiert und testen...

                      EDIT: ist mir heut zu warm um da durchzusteigen 😁

                      1 Reply Last reply Reply Quote 0
                      • M
                        mse1971 @Negalein last edited by

                        @negalein also ich finde den Weg klasse, scheine aber gnadenlos zu scheitern - bin auch alles andere als ein Experte.
                        Ich habe denm Adapter installiert und auch - so meine ich es jedenfalls das Material Design.
                        Vielleicht ist meien Erwartung auch eine falsche, aber soll das nach der Installation des Projektes alles leer sein?

                        b7526a98-e29c-42a4-8f2f-2b4402ebb379-grafik.png
                        Fals ja, bin ich leider überfordert, wie ich jetzt das ganze so hinbekomme wie Du

                        Negalein 1 Reply Last reply Reply Quote 0
                        • Negalein
                          Negalein Global Moderator @mse1971 last edited by Negalein

                          @mse1971 sagte in Alexa View:

                          Fals ja, bin ich leider überfordert, wie ich jetzt das ganze so hinbekomme wie Du

                          machen wir am besten im passendem Thread weiter.

                          und Readme auf Github

                          /******************************************************************************************************
                           * JavaScript Adapter Script for Log-Parser-Adapter: https://github.com/Mic-M/ioBroker.logparser
                           * --------------------------------------------------------------
                           * Purpose: Get the history of all spoken Alexa commands into the log
                           *          Required: Alexa adapter - https://github.com/Apollon77/ioBroker.alexa2
                           * Source:  https://github.com/Mic-M/ioBroker.logparser
                           * Autor:   Mic-M (Github) | Mic (ioBroker)
                           * --------------------------------------------------------------------------------------
                           * Change Log:
                           *  1.0.0  Mic-M   * Adoption to Log Parser Adapter
                           *  0.1.0  Mic-M   * Initial release (for Log Script - https://github.com/Mic-M/iobroker.logfile-script).
                           ******************************************************************************************************/
                          
                          /******************************************************************************************************
                           * Script Settings
                           ******************************************************************************************************/
                          
                          // **Capitalize First Letters**
                          // The spoken command to Alexa is being returned in lowercase, like "turn on kitchen light". 
                          // With this option set to true, the output will be "Turn On Kitchen Light" (so capitalized first letter of each word)
                          const g_capFirstLetters = true;
                          
                          
                          /******************************************************************************************************
                           * End of Script Settings. Please do not change anything below here.
                           ******************************************************************************************************/
                          
                          main();
                          function main() {
                              // All Alexa adapter instances, so alexa2.0.History.json, alexa2.1.History.json, alexa2.2.History.json, etc.
                              on({id: /^alexa2\.\d\.History\.json$/, change:'any'}, function(obj) {
                          
                                  // obj.state.val: JSON string of oject.
                                  // Like: {"name":"Alexa Flur","serialNumber":"xxxxxxxxxx","summary":"Wohnlicht an","creationTime":1582843794820, ... }
                                  let objHistory = JSON.parse(obj.state.val); 
                          
                                  // ignore alexa keywords or empty value.
                                  if(! (['', 'alexa','echo','amazon','computer'].includes(objHistory['summary']) )) {
                                      // ignore "sprich mir nach"
                                      if (!(objHistory['summary'].includes('sprich mir nach '))) {
                                          log('[Alexa-Log-Script] ##{"message":"' + formatAlexaSummary(objHistory['summary']) + '", "from":"' + objHistory['name'] + '"}##');
                                      }
                                  }
                              });
                          }
                          
                          /**
                           * Formats the Alexa summary text accordingly.
                           * @param {string} summaryText   The summary text
                           * @return {string} the formatted summary
                           */
                          function formatAlexaSummary(summaryText) {
                              if (g_capFirstLetters) summaryText = summaryText.replace(/(^|\s)\S/g, l => l.toUpperCase()); // Capitalize if set. https://stackoverflow.com/questions/2332811/
                              return summaryText;
                          }
                          

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate
                          FAQ Cloud / IOT
                          HowTo: Node.js-Update
                          HowTo: Backup/Restore
                          Downloads
                          BLOG

                          857
                          Online

                          31.9k
                          Users

                          80.1k
                          Topics

                          1.3m
                          Posts

                          19
                          88
                          10476
                          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