Official Alexa Smart Home Skill for openHAB 2

Dear all,

it is weekend, so time for fixing my rules :slight_smile:

Could you give me a hint for using thermostates with Alexa? I created a thread here:

Thanks, guys!

Hi Dan,
Could you please have a look at: [SOLVED] Alexa can´t reach devices exposed and added to the Alexa app

I‘m out of ideas and need a hint where to search next.
I was able to solve the issue with the help of Gabriele.
The items are only allowed to be defined as Number and not as Number:Temperature.
Is this a bug in the skill, exposing or the core?

Thanks!

What is the voice command to switch the HeatingCoolingMode?

Is there an easy way to have alexa turn the same lights on and off by slightly diferent prases?
I have defined “Kitchen lighting” and would like to also be able to call it “Kitchen lights” “Kitchen lamp” Light in the kitchen" and so on.
What would be the easiest way to accomplish this?

Create a group in the Alexa app and put the lights and the Echo inside.
Then you‘re able to call the item name, the group name or just turn on the lights to the Echo in this room/group.

Hy,

Seeing this, i think i wrongly started a new thread…
I hope i may post a link to the thread in here? Or can the admins delete the thread i created?

https://community.openhab.org/t/niko-home-control-2-binding-from-local-to-cloud-from-things-to-items/69034

Dear all,

how can I switch off the thermostat? The HeatingCoolingMode could be used to switch the thermostat to heating mode (using the chosen set point value) or switch it off. But my Alexa always responds that the device does not support “off” or “automatic”.

Can somebody help, maybe even with the right German voice command? Thanks!

does the openhab skill available in alexa app does already support v3 commands ?
i’m interested in: alexa=“InputController.input” [supportedInputs=“HDMI1,TV”]

i have the openhab skill installed in my alexa app, are there some more things to do ?

thanks in advance Lars

sorry guys, no way to make it works. followed this https://github.com/openhab/openhab-alexa as well this https://heathpaddock.com/2017/02/02/making-amazon-echo-alexa-sing-to-openhab2/ guide. situation is:

my own openhab cloud instance
italian localization
echo dot 3 into the same network of my openhab installation (on RPI3)
items correctly formatted. tags are ok
aws seems ok, alexa seems ok
oauth is ok

from my smartphone, with amazon alexa app installed i configure the skill -> ok- > login & password -> ok -> search devices -> echo dot3 starts but blinking blue -> no way to find items.

i’m going crazy, billions of retries but no success
any help, please?

I just got this running last night on a similar environment. It was a bear to get going, but I have everything fresh in my mind, maybe I can help.

I suggest checking the lambda logs first in amazon cloudwatch and posting those results. The URL will be different based on how you set things up, but you can find them by logging into https://console.aws.amazon.com.

Finally i did it!

It was about alexa’s skill configuration: defining oauth url for authorization and token. Urls must be about own openhab cloud instance, while client id and secret must be the ones generated as described into guides. The step was missing is that is needed to add client id and secret into mongodb of cloud instance as well. See the google home guide for how to do this. Once did this step, my echo has been able to corretly find openhab items

Finally i did it!

It was about alexa’s skill configuration: defining oauth url for authorization and token. Urls must be about own openhab cloud instance, while client id and secret must be the ones generated as described into guides. The step was missing is that is needed to add client id and secret into mongodb of cloud instance as well. See the google home guide for how to do this. Once did this step, my echo has been able to corretly find openhab items

inviato dal Pecofono

How can I tell Alexa to turn the thermostat off?

“Alexa, turn the heating to 22 degrees” - > “Thermostat heating is set to 22 degrees”
“Alexa, switch the heating off” -> “Thermostat heating does not support this”
(from German)

Can anyone help? Please check Thermostat works well in Google Home, but not with Alexa

I think that in my neighborhood the thieves would just throw the loudspeaker at a window :wink:

Hi,

Could someone please post an item example using v3 tags and a binding. Or confirm my guess below.

I see that the V3 tags are done like this:

Switch LightSwitch "Light Switch" {alexa="PowerController.powerState"}

but if I also have a binding channel connected to the item is it then like this with a comma between? :

Switch LightSwitch "Light Switch" {alexa="PowerController.powerState", channel= "........."}

Thanks Mark. I would test but I am not near my openhab setup at the moment

1 Like

Hi there,

i have also the problem that devices are not found by Alexa. I have done the following steps:

  • tag my items with “Lighting”
|Switch  SZ_Tradfri_Bett_Rechts_Toggle       |<light> ["Lighting"] |{ channel="hue:0100:XXX:SZ_Tradfri_Bett_Rechts:brightness" }|
|Dimmer  SZ_Tradfri_Bett_Rechts_Dimmer       |<light> ["Lighting"] |{ channel="hue:0100:XXX:SZ_Tradfri_Bett_Rechts:brightness" }|
  • Activate Alexa Skill (myopenhub shows the connected Alexa application)
  • Add items to the expose line of the Cloud connector (items are shown and updated at myopenhub.org)
  • Checked myopenhub.org/rest/items -> items are there, takes around 3sec to get them
  • Search for Devices with Alexa -> nothing found

What should I do next?

Bye
Nino

@TheLexus My guess is that your items need to be labelled.

Where did you get the | from? this is not part of items configuration!

Switch  SZ_Tradfri_Bett_Rechts_Toggle "Schalter"      <light> [ "Lighting" ] { channel="hue:0100:XXX:SZ_Tradfri_Bett_Rechts:brightness" }
Dimmer  SZ_Tradfri_Bett_Rechts_Dimmer "Dimmer"        <light> [ "Lighting" ] { channel="hue:0100:XXX:SZ_Tradfri_Bett_Rechts:brightness" }

Thanks, that was the simple fix!

Is this skill the preferred way over the hue emulation? They seem to do the same, did I miss something?