Release Candidate and Support: Amazon Echo Control Binding

Iā€™ve downloaded the latest version from the top of this thread and manually installed it on my OH 2.3 server (Yes. I know. prehistoric). I can connect to amazon.co.uk and can discover all my Echos but when I try to do text to speech I get errors.

Quick question before I go any further - Am I wasting my time trying to get it to work on top of OH 2.3?

Is there a reasonable acceptable way to perform make an announcement like when you say ā€œalexa, announce the dryer is finishedā€?

Iā€™m trying to use an Echo routine to read multiple temperature values (from multiple Xiaomi sensors).
To do that I created a Switch item that will receive an ON command if Alexa hears a certain phrase.
However, Iā€™m not happy with the value she gets and interprets it.
E.g. the Item is from type Number and has the state ā€œ22.31 Ā°Cā€, so she actually reads this (22.31 C).
Is there a way for her to read ā€œ22,3 degree celciusā€ (comma instead of point) instead?

How is it configured? If Number:Temperature then try just Number without the : part.

It is indeed configured as

Number:Temperature tempLiving "Wohnzimmer [%.1f Ā°C]" <temperature>...

Removing the :Temperature prevents Alexa from adding the letter C (so Iā€™ll add ā€œdegreeā€ manually, which is alright), but sheā€™s still using . instead of ,
So I guess Iā€™ll have to manually transform the value from 22.31 to 22,3, right?

Most, here in US, are trying to remove the , and add the . :upside_down_face: So Iā€™ll avoid adding more post than needed on this topic (over 2k now) to guess at whatā€™s needed. Have a look at the topic below and if you still have problems then start a new topic with the number transformation as issue.

Hi!

I know it was asked two or three times hereā€¦ but, will it be possible to read the temperature of the internal sensor of the echo plus?

Is there a way?

Force Unit Selection - Announcement

Anybody else starting to get this message before your own TTS starts?

ā€œForce Unit Selectionā€

Best, Jay

Yes I get exactly the same, itā€™s really annoying!
It started last night about 9pm ish? UK time.
Iā€™ve had to comment those lines out in my rules which means I no longer get to find out (woken up) when my Alz wife goes walkabout round the house at night.

Looks like Amazon fixed it in the US now.

Best, Jay

Seems to be OK here in the UK too this evening. Hope it continues.

Brian.

Can anyone tell me the syntax I need to use for my rollershutter? I have an RF based shutter I want to either have at 0 or 100 but want to use the language - ā€œopen, close, raise, lowerā€ but in either case it just goes from 0 to 100

This item seems to only increment by one when using raise or lower:

Rollershutter BR1_Blindtest "Test Blind [%d%%]" {alexa="RangeController.rangeValue" [category="INTERIOR_BLIND", friendlyNames="@Setting.Opening", supportedRange="0:100:100", unitOfMeasure="Percent", actionMappings="Close=100,Open=0,Lower=(+100),Raise=(-100)", stateMappings="Closed=100,Open=0"]}

You do not want positions other than open and close! What happens if you use, say 90, for the incremental settings. Besides its a skill topic not a control topic :slight_smile:

You can try if a device is created for this (You have to turn on the smart home device discovery in the Account thing) with the preview version from here. I have no device with internal sensor, so I canā€™t test it.

Im sorry, I dont understand what you mean?

That reads like you want it only Open or Closed and no where in between even with the commands Raise and Lower. Did I misunderstand? Also, you have Raise and Lower defined like this
Lower=(+100),Raise=(-100) Which means they will move to either fully open or closed position with the commands Raise, Lower.
Normally usage for Raise and Lower is, for example, (+/-10) so when commanding Raise, Lower the blinds move +/-10% from the current position.

This thread is for controlling your Echo devices using openHAB but in your question you are using Alexa skillā€™s to control your blinds. The thread for skills discussions is here:

ā€¦ Something I knocked up earlier :slight_smile:

@michi Hi, can you please add announcement for all devices or a group of devices? So it would be possible to send only one request and ensure the announcement received by every device without ā€œToo Many Requests.ā€ error. I think its the wrong way to put this feature to tts because the alexa app also only allow to send announcements to all devices or a group of devices and output tts to only one device.

Regards,

Trintius01

1 Like

@m4rk my apologies, I will post in the right one

@michi Hi, i pulled your project, created a new ChannelHandlerMultiAnnouncement and added it to the AccountHandler to make it possible to send one ā€œmultiAnnouncementā€ to all devices connected to an account with only one request. (like the ChannelHandlerSendMessage) Ive seen the sendAnnouncement method was well prepared to handle multiple devices. It works fine, got a new channel called ā€œAnnouncementā€ on the Amazon Account Thing. To the fact that this is the first time i worked on an openHAB Binding i donā€™t know if this is the right way to implement an announcement to the account. Maybe i could send you the project and you would check the changes? I also would implement ā€œgroupAnnouncementā€ like you suggested in a previous post - if you like - but i have to know if i do all the things the right way.

Regards,

Trinitus01

3 Likes

@michi Hi, i found a bug in the announcements sent to my fire tv cube. If i send the following string to the fire tv cube it show the message with the xml tags on the screen:

<speak><amazon:effect name="whispered">Dies ist ein Test</amazon:effect></speak>

Maybe its the same behavior on echos with a display like the echo show aso. I donā€™t own one of these devices, so i am not able to verify it. Can anyone else verify this?
I fixed it and now it only shows the string without the xml tags.

Today i also found the time to implement your idea with the stacked or grouped announcements. Now it waits 1 seconds if the binding receives more than one announcement with the same speak, text and title. If there are more than one, it sends them all with only one request. Tested for multiple commands and for groups and it works like a charm.
I only added it to the announcements, not to tts because i donā€™t wanted to convert a tts to an announcement. They act different on the devices so i still think its better to not mix them up.

Regards,

Trinitus01

1 Like