Plugin Alexa2Lox (V4.x)

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Thomas M.
    antwortet
    Hilft bestimmt .... ich habe mich derzeit noch keine Minute mit node red beschäftigt, das ist derzeit mal die Hürde.
    Aber wenn das funktioniert, dann beschäftige ich mich mal damit, kann ja nicht schaden.

    Ich hab schon mal zu Beginn keine Ahnung wie ich node-red auf den loxberry oder sonst irgendwo hinbringe
    Vielleicht brauche ich doch mehr als nur 2 Minuten
    Zuletzt geändert von Thomas M.; 16.02.2023, 07:36.

    Einen Kommentar schreiben:


  • herdan
    antwortet
    Hallo zusammen

    Verwende als funktionierende und vorallem kostenfreie Alternative Node- RED. Habe vor Kurzen bereits einen Beitrag geschrieben.
    Beispiele : Node-RED mit Loxone + Extras - loxforum.com
    Auch die Sprachsteuerung für Licht, Rolläden, Roboterstaubsauger etc. läuft bei mir über Node-Red.

    Vielleicht hilfts ja.

    Gruss
    Dani

    Einen Kommentar schreiben:


  • Thomas M.
    kommentierte 's Antwort
    ich probierm mal etwas herum

  • DaOptika
    kommentierte 's Antwort
    Hab's gestern Mal ausprobiert, scheint zu funktionieren, kann aber definitiv weniger als das Lötzimmerskript. Trotzdem wäre ich für den Hausfrieden gerne bereit 6€ im Jahr zu zahlen (das verschwindet im Grundrauschen).

  • Thomas M.
    antwortet
    aber ...
    Klicke auf die Grafik für eine vergrößerte Ansicht

Name: image.png
Ansichten: 667
Größe: 55,9 KB
ID: 379446​​
    Angehängte Dateien

    Einen Kommentar schreiben:


  • Thomas M.
    kommentierte 's Antwort
    JA ... z.B.


    Habs noch nicht probiert, bin mal beim Einrichten. Muss ich dann zuhause machen.

  • DaOptika
    kommentierte 's Antwort
    Wie genau läuft das dann? Direkt über Loxone Befehle an die API senden?

  • dizzy85
    antwortet
    Habe es heute Mal mit einer Alternative zum Plugin probiert...

    Tools and content to extend your Alexa Routines and help you build amazing Amazon Alexa smart home automations.


    läuft bis jetzt eigentlich ganz gut.

    Hat sogar noch ein paar Funktionen mehr als das ursprüngliche Script von Loetzimmer.

    Einen Kommentar schreiben:


  • DaOptika
    antwortet
    Vielleicht hilft es ja, ich dacht mir: Probieren kann man es ja mal 😅

    "Hi GPT, can you please rewrite the original Alexa2Lox plugin to use the new Alexa AWS Authentication?"

    "I'm sorry, but as an AI language model, I don't have the capability to write code or create plugins. However, I can suggest some resources and provide general guidance on how to update the Alexa2Lox plugin to support AWS.
    To update the Alexa2Lox plugin, you may need to update the code to use the latest authentication methods supported by AWS. This may involve making changes to the plugin's code to support OAuth 2.0 authentication and using the AWS SDK (Software Development Kit) to integrate with Alexa.

    It may also be helpful to consult the AWS documentation for Alexa Skills Kit and the Alexa Voice Service to understand the changes that have been made to the authentication process and how to update your code accordingly.

    You may also want to reach out to the community of LoxBerry users and developers for support, as they may have already encountered similar challenges and can provide helpful insights and guidance. There are also forums and online communities dedicated to home automation and smart home development, where you may be able to find information and support.

    I hope this information is helpful in updating the Alexa2Lox plugin to support AWS."

    "Could you provide an example in code?"

    "I'm sorry, I cannot provide a complete code example for updating the Alexa2Lox plugin to support AWS as the plugin's code base and the specific changes required may vary depending on the current implementation and the latest changes in the AWS Alexa platform. However, I can provide some general steps and code snippets to help you understand the process.

    Here is an example of how you can update the plugin to use OAuth 2.0 authentication and the AWS SDK to integrate with Alexa:

    First, you will need to update the plugin to use OAuth 2.0 authentication. To do this, you will need to obtain an access token from AWS and use it to authenticate your requests to the Alexa Voice Service (AVS).

    Code:
    // Get the access token from AWS
      String accessToken = obtainAccessToken();
       
      // Set the access token in the header of the request to AVS
      HttpHeaders headers = new HttpHeaders();
      headers.set("Authorization", "Bearer " + accessToken);
       
      // Make the request to AVS using the AWS SDK
      RestTemplate restTemplate = new RestTemplate();
      ResponseEntity<String> response = restTemplate.exchange(
        "https://avs-alexa-eu.amazon.com/v20160207/directives",
        HttpMethod.POST,
        new HttpEntity<>(requestBody, headers),
        String.class
      );
    Next, you will need to use the AWS SDK to send requests to the Alexa Voice Service (AVS) and receive responses.

    Code:
    // Use the AWS SDK to send a request to AVS
      AlexaDirective directive = new AlexaDirective();
      directive.setType("VoicePlayer.Speak");
      directive.setSpeak("Hello, this is a test message.");
       
      // Serialize the directive to a JSON string
      ObjectMapper mapper = new ObjectMapper();
      String requestBody = mapper.writeValueAsString(directive);
       
      // Send the request to AVS
      PutDirectiveRequest putDirectiveRequest = new PutDirectiveRequest()
        .withEndpoint(endpoint)
        .withDirective(directive);
       
      alexaClient.putDirective(putDirectiveRequest);
    These are just examples and the actual code you will need to write may be different based on the current implementation of the Alexa2Lox plugin. I recommend consulting the AWS documentation and sample code for more information on integrating with the Alexa Voice Service and updating your plugin to support the latest authentication methods."

    Einen Kommentar schreiben:


  • dizzy85
    antwortet
    Christian Fenzl
    Das IPS-Modul „Echo Remote“ Es ermöglicht die Fernsteuerung von Amazon Echo’s/Dot’s/Echo Show’s von IP-Symcon aus. Es kann Musik abspielen oder das einen Radiosender starten, gibt Sprache aus (Text to Speech) und glänzt mit vielen weiteren Weiterlesen


    Der Kollege hat das ganze schon für IP-Symcon in ein IPS-Modul gepackt, vielleicht hilft das auch ein wenig weiter...😉

    Einen Kommentar schreiben:


  • Christian Fenzl
    antwortet
    Danke für den Link - zumindest weiß ich mal, dass es schon eine Lösung gibt.
    Ich will aber kurzfristig nichts versprechen, zumindest hab ich was zum Einlesen.
    lg, Christian

    Einen Kommentar schreiben:


  • dizzy85
    antwortet
    Ein Lösungsansatz wäre das hier:

     It's about time for a new post since a lot of things have changed over the course of the past four years . First things first though, the g...


    Aber ich glaube nicht das es Christian jetzt auf die schnelle ins Plugin implementiert bekommt.
    Der wird wohl bis über beide Ohren mit Loxberry 3.0 beschäftigt sein.

    Einen Kommentar schreiben:


  • Timbo
    antwortet
    Gut, dass es dieses Forum gibt... Dachte der Fehler liegt an mir. Bei uns ebenfalls alles still seit ein paar Tagen... gibt es schon Lösungsansätze?

    Einen Kommentar schreiben:


  • dj82atwork
    antwortet
    Bei mir auch das gleiche Verhalten seid gestern.

    Einen Kommentar schreiben:


  • DaOptika
    antwortet
    Bei mir leider nun auch ohne Funktion 🙁

    Christian Fenzl: kannst du dir das Mal anschauen? Das Plugin ist (neben MQTT) mein meistgenutztes, dass das nun nicht mehr tut ist extrem schmerzhaft 😭

    Einen Kommentar schreiben:

Lädt...