Preview and Beta: Amazon Echo Control

Hi Ceedee

I restart the OH service with
sudo systemctl restart openhab2.service
No need to restart the Pi

The things were found automatically when the Amazon Account re-connected but the id changed so I updated the items file
amazonechocontrol:echo:**Account-Id-to-change**:serial number of device

The two factor auth came up after the login http://openhab:8080/amazonechocontrol/

1 Like

The issue was giving the thing a new id. I did not even get a 2-factor-auth-dialog – the “regular” auth dialog came up. After login the connection was properly established.

The Echo things as well as the Account thing are now shown as online again and TTS works as expected!

Thank you all so much!

Hello all,
with the 2.5.7 version of the binding, i can make an annoucement to my echo spot which is showing in the display (no speaking). with 2.5.8. and 2.5.9 versions of the binding this does not work anymore…nothing happens…no error in the log…

can anybody confirm this or have an idea what has changed in the binding?

greetings ralph

Just delete your account thing and rediscover then make sure you use a new thingID - then change the gateway on your binding discovered things and your items file - done

I have been battling this same issue. I have finally got a new device ID and updated my assets to reflect that. Now when I send TTY to the echo instead of making an announcement it is receiving a message. The ring flashes yellow and you can ask for it to read the message. - This is not how it used to work. It would just announce whatever I sent it. - Anyone else having this issue?
Also, my Alexa has lost all of my devices, I think that is a separate issue but I will have to find the solution to that too.

Hi All,

Im quite new to OpenHAB ans like what I have done already.

I have added in my Amazon account and it has auto discovered 4 firesticks in my inbox.

These are in a unkown - state not found in paper UI. Im looking for a step by step guide to add one and then follow for the rest. Is there one anywhere?

Kind regards

As far as I know this binding does not handle Fire sticks as of today

Thank you, I have used the echo binding to achieve what I needed.

My Amazon Echo Control Binding suddenly stopped working.
The account thing stays in state COMMUNICATION_ERROR with additional Info
POST url 'https://api.amazon.com/auth/token' failed: Bad Request
Anyone also faced this and has a solution ???
Was running openHAB 2.5.4 and now tried latest 2.5.9 SNAPSHOT.

EDIT: Found the solution myself by resetting the account via KARAF console.
All Things are back online again.

1 Like

I have the exact same problem

Can you please tell me what command you used?

It’s all in the binding docs :

Advanced Feature Technically Experienced Users

To resolve login problems the connection settings of an account thing can be reset via the karaf console. The command amazonechocontrol listAccounts shows a list of all available account things. The command amazonechocontrol resetAccount <id> resets the device id and all other connection settings. After resetting a connection, a new login as described above is necessary.

4 Likes

I was wondering, if anyone experience devices state update issues… basically all skill based devices totally stopped updating status.
I checked with trace log , and polling works correctly and includes the correct status of the device
but it doesnt update the item state
`*

{“entityId”:“SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLmNiNmVkZWMxLWZmYWMtNDY4OS05MzNiLWIwMjUyOTI1YjIxZiIsInN0YWdlIjoibGl2ZSJ9_2004103522455551850548e1e919a633”,“entityType”:“CLOUD_DISCOVERED_DEVICE”},“capabilityStates”:[“{"namespace":"Alexa.PowerController","name":"powerState","value":"ON","timeOfSample":"2020-09-25T02:32:27.39Z","uncertaintyInMilliseconds":1,"deepQuery":true,"timeOfStateChange":""}”

*`

anyone can suggest quickfixes? commands or discovery work fine but it seem to be only one way communication.

Update: I have also verified that this issue doesnt happen on org.openhab.binding.amazonechocontrol_2.5.0.-2019-10-23

( offcourse I have erased cache and tmp and restarting system going between versions ) in addition the devices tested were created a new in both versions of the add-in…

Seems something is broken in new binding or incompatible…

Hi,

can you please test the new version?

fixed: InterrupedException
changed: single and group queues to device queue
added: standard volume to speak request

http://readme1st.de/tom/downloads/org.openhab.binding.amazonechocontrol-2.5.10-SNAPSHOT.jar

Thank you in advance!

br

Yup, will install it now.

Best, Jay

Hey Tom,

Great job in fixing the many minor issues in the binding. I’ve been running it for a 5 hours and everything is working great! From what I can tell you have reduced/eliminated the need for the thread::sleep after the TTS commands when there is a bunch of different TTS commands being executed back to back?

This below is something I always had to create thread:sleep between the paragraphs because of the length and timing of it and now I don’t. BUT there is a strange long pause between the 2 TTS’s commands which I’m assuming your binding is doing? I’m NOT asking you to fix it because this is a one off with such a long TTS command. Just wanted to give you a heads up on it.

BTW, I’m running OH 2.4 with this binding w/o any issues.

Once again, great job!

Inventory_tAlive = createTimer(now.plusSeconds(1), [ |
					logInfo("tAlive" , "Inventory_tAlive timer ran out -> cancelling timer.")
	
					var smarthome1 = new StringBuilder()
					smarthome1.append("Welcome to our smart home that was established in 2018, , it continues to expand functionality on a monthly basis.  Our smart home consists of three wireless technologies, which are eight zero two dot eleven, , Zigbee, and Z Wave.")	
					smarthome1.append(" The First Wireless technology is, eight zero two dot eleven devices, which there are seventy seven devices active, , which uses three Ubiquiti unified access points, , located on each floor of the house.")
					smarthome1.append(" The I P wireless devices, , consist of Alexa smart speakers, Sonos speakers, Nest Smoke and C O 2 Detectors, , Samsung TVs, Ecobee Thermostats, Onkyo Receivers, H P Printers, , Wall Mounted Android Tablets, Chamberlin My Q Garage, Belkin WeMo plugs, ,")			
					smarthome1.append(" and Belkin WeMo light switches, Hick Vision Cameras, , Bond Fan Control, Ring Doorbell, and a Roomba vacuum cleaner.  The second Wireless technology is, Zigbee, used by Phillips HUE, which there are thirty two active devices, which")					

					var smarthome2 = new StringBuilder()
					smarthome2.append(" consists of light strips, motion detectors, lamps, and HUE remote controls. The Third Wireless technology is, Z Wave, which is being used by the vendor Aeotec, which there are twenty devices, which consists of light level detectors, humidity sensors, , motion sensors, temperature sensors, , and tilt sensors.")	
					smarthome2.append(" All three of these Wireless technologies, are controlled centrally by a platform called open HAB, , which does not require any cloud services to work, , and it keeps our data privately with in our home,") 
					smarthome2.append(" and open HAB talks directly to the local devices, whenever possible.  open HAB uses an event rule engine, that controls all these different wireless products, , based on our defined events detected.  This eliminates having numerous interfaces, , for each vendor and event.")  
					smarthome2.append(" Once again, , thank you for visiting our Smart home.")
					
					TheRoom_TTS.sendCommand(smarthome1.toString())
					TheRoom_TTS.sendCommand(smarthome2.toString())
		
					logInfo("ECHO", "Smart Home Inventory was said on " + TheRoom_TTS)
					logInfo("ECHO", "-----------------------------------------------------------------------------")

					Inventory_tAlive.cancel()
						Thread::sleep(1500) 
					Inventory_tAlive = null
				])

Best, Jay

i can confirm it solved my issue.Echo devices status reporting correctly now.
Thank you

Hello, with 2.5.10 my Habpanel no longer works. The message from the Habpanel is “connection lost trying to reconnect”.

an addition: I deleted the binding, all echo devices and the Amazon account. Then I reinstalled Binding 2.5.10. Immediately afterwards I can no longer use Habpanel, the message “connection lost …”.

Can someone help me?

Hello,
My Amazon Echo Control “was running” for months. For a few days now I have had the problem that I can no longer log into Amazon. I’ve already uninstalled the AmazonEchocontrol binding, installed the 2.5.10 snapshot … jar, and added a new Amazon account. But it’s still the same when I log on to http: // openhab: 8080 / amazonechocontrol / Amazon, the login works itself, amazon then sends a security link to my mobile phone. Before I can execute this link on my cell phone, the login window closes after about 5 seconds and I am directed back to the login window. What can I do?

Best Martin

Martin
I followed the exact same steps as you, uninstalled the binding, placed the 2.5.10 jar file in my addons folder then I browsed to alexa page in an internet browser on my computer. It allowed me to log on using my password, then made me change my password. Once I was able to log on with a browser, I tried again logging on at http: // openhab: 8080 / amazonechocontrol / Amazon and it worked

Try to enable 2 Factor authentication at your amazon account and then try to reestablish this functionality.

2 Likes