Thank you for your quick response.
I tried to follow your points, but nothing happens… Maybe we should start from the beginning:
- The settings of the Alexa Thing:
- I go to my Alexa Thing, select the TTS Channel, and create a link and a new item
- I also create a volume item through the channels and set a volume level:
- I perform a simple test using Blockly to see if Alexa says something:
I also haven’t quite understood which script type I should use (DSL or EMS-js) and what exactly needs to go into the script. When I trigger a script in a rule, theoretically one line should be enough, like (DSL):
Mainstage_Speak.sendCommand("Test Text");
Having the Amazon Binding in Tracemode the openhab.log gets a lot of informations:
2024-06-12 10:12:47.203 [DEBUG] [trol.internal.handler.AccountHandler] - updateSmartHomeState started with deviceFilterId=null
2024-06-12 10:12:48.108 [TRACE] [control.internal.handler.EchoHandler] - Command 'Test Text 1' received for channel 'amazonechocontrol:echo:f650e12dd1:G0922M0633470JT2:textToSpeech'
2024-06-12 10:12:48.109 [TRACE] [control.internal.handler.EchoHandler] - Command 'Test Text 1' received for channel 'amazonechocontrol:echoshow:f650e12dd1:G0B18W11245206VT:textToSpeech'
2024-06-12 10:12:48.609 [DEBUG] [mazonechocontrol.internal.Connection] - added 1221651189 device G0922M0633470JT2 G0B18W11245206VT
2024-06-12 10:12:49.109 [DEBUG] [control.internal.handler.EchoHandler] - Handle updateState amazonechocontrol:echo:f650e12dd1:G0922M0633470JT2
2024-06-12 10:12:49.109 [DEBUG] [mazonechocontrol.internal.Connection] - Make request to https://alexa.amazon.de/api/np/player?deviceSerialNumber=G0922M0633470JT2&deviceType=A2DS1Q2TPDJ48U&screenWidth=1440
2024-06-12 10:12:49.110 [DEBUG] [control.internal.handler.EchoHandler] - Handle updateState amazonechocontrol:echoshow:f650e12dd1:G0B18W11245206VT
2024-06-12 10:12:49.110 [DEBUG] [mazonechocontrol.internal.Connection] - Make request to https://alexa.amazon.de/api/np/player?deviceSerialNumber=G0B18W11245206VT&deviceType=AIPK7MM90V7TB&screenWidth=1440
2024-06-12 10:12:49.306 [DEBUG] [mazonechocontrol.internal.Connection] - Call to https://alexa.amazon.de/api/np/player?deviceSerialNumber=G0922M0633470JT2&deviceType=A2DS1Q2TPDJ48U&screenWidth=1440 succeeded
2024-06-12 10:12:49.307 [DEBUG] [mazonechocontrol.internal.Connection] - Result of GET https://alexa.amazon.de/api/np/player?deviceSerialNumber=G0922M0633470JT2&deviceType=A2DS1Q2TPDJ48U&screenWidth=1440:{"playerInfo":{"hint":null,"infoText":null,"isPlayingInLemur":false,"lemurVolume":null,"lyrics":null,"mainArt":null,"mediaId":null,"miniArt":null,"miniInfoText":null,"playbackSource":null,"playingInLemurId":null,"progress":null,"provider":null,"quality":null,"queueId":null,"state":null,"template":null,"transport":null,"upNextItems":null,"volume":null}}
2024-06-12 10:12:49.575 [DEBUG] [mazonechocontrol.internal.Connection] - Call to https://alexa.amazon.de/api/np/player?deviceSerialNumber=G0B18W11245206VT&deviceType=AIPK7MM90V7TB&screenWidth=1440 succeeded
2024-06-12 10:12:49.576 [DEBUG] [mazonechocontrol.internal.Connection] - Result of GET https://alexa.amazon.de/api/np/player?deviceSerialNumber=G0B18W11245206VT&deviceType=AIPK7MM90V7TB&screenWidth=1440:{"playerInfo":{"hint":null,"infoText":{"header":null,"headerSubtext1":null,"multiLineMode":false,"subText1":"Cheat Codes","subText2":"Timmo","title":"Morning"},"isPlayingInLemur":false,"lemurVolume":null,"lyrics":null,"mainArt":{"altText":"Album Art","artType":"UrlArtSource","contentType":"image/jpeg","url":"https://i.scdn.co/image/ab67616d0000b273ab52572370890e7678735f9e"},"mediaId":"spotify:track:1KSknsaLLPqWKLlVRSu8BA","miniArt":{"altText":"Album Art","artType":"UrlArtSource","contentType":"image/jpeg","url":"https://i.scdn.co/image/ab67616d0000b273ab52572370890e7678735f9e"},"miniInfoText":{"header":null,"headerSubtext1":null,"multiLineMode":false,"subText1":"Cheat Codes","subText2":"Timmo","title":"Morning"},"playbackSource":null,"playingInLemurId":null,"progress":{"allowScrubbing":true,"locationInfo":null,"mediaLength":184,"mediaProgress":109,"showTiming":true,"visible":true},"provider":{"artOverlay":null,"fallbackMainArt":null,"providerDisplayName":"Spotify","providerLogo":{"altText":null,"artType":"UrlArtSource","contentType":"image/png","url":"https://music-service-provider-logos.s3.amazonaws.com/dms-gui-logos/wordmark-logos/Spotify.png"},"providerName":"Spotify"},"quality":null,"queueId":"","state":"PAUSED","template":null,"transport":{"closedCaptions":null,"layoutType":"MusicTransportLayout","lyrics":null,"next":"ENABLED","playPause":"ENABLED","previous":"ENABLED","repeat":"DISABLED","shuffle":"ENABLED"},"upNextItems":null,"volume":{"muted":false,"volume":27}}}
The “Timmo” is a Playlist on Spotify I heard like 2 hours before the log.