saving the last text if it contains a key word and let it play, if front door is opened
using it to update my shopping list (as amazon shut down the shoppinglist-API, I’d like to manually update my ShoppingList via openHAB: OH listens to the lastVoiceCommand and uses an API to update my Shopping List)
for the last use case, this would be interesting:
but: for the time being: I don’t get the LastVoiceCommands from the binding. Is the issue still open or did amazon permanently change something?
with the binding from JNK on smartHomeJ you can get the lastVoiceCommand. But before that you have to trigger the refresh activity channel of the bridge thing.
So one solution is to trigger a connected switch within an Alexa routine. Then you can react on the change of a lastVoiceCommand item within an openhab rule.
found time to remove the “normal” binding and install the SmarthomeJ variant. All my things and items came back:
openhab> list -s | grep amazon
342 x Active x 80 x 4.1.0 x org.smarthomej.binding.amazonechocontrol
What do you mean with “trigger refresh activity channel”? I added an item to the refresh activity and send “ON” to it, but i still don’t get the LastVoiceCommands. What did I miss?
I’m still on 4.1.3
Hello, I have been using version 4.2.1 since its launch and I have been using TextCommand and LastVoiceCommand for a long time. Unfortunately, since yesterday morning, the TextCommand command no longer works. Does anyone else have this problem?
yes, as I encountered some issues with my setup I found your entry here. I don’t find any ERROR or something in the logs. It just won’t do…
(I’m still on 4.2.0, openHABian on Pi4).
I had already implemented the ‘refreshActivity’ workaround a long time ago and it worked. Unfortunately, this has stopped working for many months now. I didn’t have time to deal with it. Until now. Unfortunately, I can no longer get it to work.
The dummy switch is set to ‘ON’ and the binding calls the REST service at Amazon. However, this does not work and ends after several attempts with a ‘400 Bad Request’. The “lastVoiceCommand” is not updated.
Need help
Amazon logout and re-register: no effect
amazonSite = ‘amazon.de’ and ‘amazon.com’: no effect
Restart openhab: no effect
Reinstall binding: no effect
openHAB Version 4.2.2: no effect
openHAB Version 4.3.2: no effect
My current setup: openHAB 4.3.2 4.3.0.202501181532 org.smarthomej.binding.amazonechocontrol
Release = Raspbian GNU/Linux 11 (bullseye)
Kernel = Linux 6.1.21-v8+
Platform = Raspberry Pi 4 Model B Rev 1.5
additional info: some times the request leads to a http 429 reponse and HTML is sent back:
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>Seite wurde nicht gefunden</title>
<style type="text/css">
a:link { font-family: verdana,arial,helvetica,sans-serif; color: #004B91; }
a:visited { font-family: verdana,arial,helvetica,sans-serif; color: #996633; }
a:active { font-family: verdana,arial,helvetica,sans-serif; color: #FF9933; }
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000" style="font-family: verdana,arial,helvetica,sans-serif;">
<!--
Um über den automatisierten Zugriff auf Amazon-Daten zu sprechen, wenden Sie sich bitte an api-services-support@amazon.com.
Weitere Informationen über die Migration zu unseren APIs finden Sie in unseren Marketplace APIs unter https://developer.amazonservices.com/ref=rm_5_sv bzw. in unserer Product Advertising API, wenn es sich um Anwendungsfälle im Rahmen von Werbung handelt: https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html/ref=rm_5_ac.
-->
<center>
<a href="/ref=cs_404_logo">
<img src="https://images-eu.ssl-images-amazon.com/images/G/03/ShoppingPortal/logo._TTD_.png"
alt="Amazon" border="0"/>
</a>
<table border="0" align="center" style="margin-top: 20px;">
<tr>
<td>
<img src="https://images-eu.ssl-images-amazon.com/images/G/03/x-locale/common/kailey-kitty._TTD_.gif" width="40" height="35" border="0">
</td>
<td>
<b style="color:#E47911">Suchen Sie etwas?</b>
<br/>
Tut uns leid. Die eingegebene Webadresse ist keine funktionsfähige Seite auf unserer Website.
<br/><br/>
<img src="https://images-eu.ssl-images-amazon.com/images/G/03/x-locale/common/orange-arrow._TTD_.gif" width="10" height="9" border="0">
<b><a href="/ref=cs_404_link">Klicken Sie hier, um zur Amazon-Startseite zurückzukehren.</a></b>
</td>
</tr>
</table>
</center>
</body>
</html>
In the last few weeks, I didn’t have time to deal with the topic. When I looked at my system again, I was very surprised. Everything works as it should. The last voice command is stored in openHAB when refreshActivity is executed. I have NOT changed anything on the system. All very strange. Anyway, the main thing is that it works now.
After some back and forth, it’s running with my system (OH 4.3.1 on openHABian on a Pi4/4GB) with the in the initial post linked Marketplace-version fine since December I think. Everything works as expected, even all WARNs or ERRORs are gone.
In the meantime it work’s for me - most of the time Some times the error message from Amazon appears in my logs and it does not work. It is not really reasonable why and when this happens. In a nutshell: the binding itself work like it should, but Amazon not