Official Alexa Smart Home Skill for openHAB 2

@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?

Where is this file on the windows version? Run 2.4

Today I worked on my thermostate again. Still, I cannot set the modes as written above. Plus, in the Alexa app, the thermostat is not properly recognized.

I opened a discussion on this here - please help: Thermostat works well in Google Home, but not with Alexa. Thanks!

Thanks Zolakk. This worked…

Hi

I’ve got a Danfoss CC link thermostat system running in my house, which is great but there are no open APIs to interact with it from systems like OH.
Danfoss has recently opened up for Alexa though to use it’s closed APIs, but that requires an Alexa in your house, which I don’t have as of now. Apart from being able to use OH to control the temperature, I’d also like to monitor the room temperatures without having to ask Alexa all the time…

My questions are:

  • Can you setup a rule that mimics a voice interaction so the monitoring can be done on a scheduled basis and so Alexa can be used as a bridge to devices with no OH binding?
  • Is it possible to bind OH items with an Alexa account without actually setting up an Alexa? (My lack of Alexa knowledge shines through here…)

AFAIK, I don’t think there is another way, currently, to control an Alexa skill than by voice directly.

By Alexa, you mean an Echo device, you can certainly enable this skill and bind OH items to your Alexa account without owning one of these devices. You can use the Amazon Alexa phone app or the echo simulator to interact with your configured devices.

Hi All,

I just found the latest (v3) documentation of the Amazon Alexa Smart Home Skill and decided to try since it seemed staightforward.

According to the doc:

This page describes how to use the openHAB Alexa Smart Home Skill. The skill connects your openHAB setup through the myopenHAB.org cloud service to Amazon Alexa.

I have upgraded my OH2 to the latest( 2.5.0-SNAPSHOT Build #1617) and simply picked up one of the examples and put into a new item file. There were no error but when I asked my Echo to discover there was not any new item found.
I have tried different type of setups, also restarted and checked any logs that came into my mind.

Is there any addtional setup is needed to enable the new(Alexa Version 3 API base) config style other than the item file changes?
Should it work with the Openhab Alexa skill via myopenHAB.org?
Any idea what can be the cause of the issue?

Thanks, Adam

Did you read this thread?

The v3 skill is still in beta testing. So if you are trying to use the current official openHAB Alexa skill, it only supports v2 tagging.

Thanks for the quick answer @jeshab and @sihui!

I’ll stick with the V2 for now than.

Any idea when the V3 is planned to be released?

Thanks, Adam

Hi, can you explain how you solved it?
After that I enable the openHAB skill on Alexa. When requested, (use the credentials of your openHAB Cloud account to connect your system to Alexa) I don’t get outh credentials from openhab and so my system is not detected.
I state that everything works with Google Assistant.

Ok, I solved it by myself. You had to deactivate your account and activate it again.

Hi all, is it possible to use the new form of tags with 2.5m2? I’d like to link my daikin clima to Alexa like a thermostat if is fixed now

Hello
Thanks for your skill.
I am trying to make it works with no clue.
i have a raspberry pi with openhab 2.14. i have installed the skill and the connector but when i scan for item i found nothing.
My item with

// RF Socket Items
Group:Switch:OR(OFF, ON) Gplugs <poweroutlet>

Switch Power_Plug_Socket_1 <poweroutlet>  (Gplugs) [ "Switchable" ]
Switch Power_Plug_Socket_2 <poweroutlet>  (Gplugs) [ "Switchable" ]
Switch Power_Plug_Socket_3 <poweroutlet>  (Gplugs) [ "Switchable" ]
Switch Power_Plug_Socket_4 <poweroutlet>  (Gplugs) [ "Switchable" ]
String PlaceHolder ""

Switch Remote_Send      { channel="exec:command:remote-send:run"    }
String Remote_Send_Args { channel="exec:command:remote-send:input"  }
String Remote_Send_Out  { channel="exec:command:remote-send:output" }

==> /var/log/openhab2/events.log <==
2019-10-16 22:18:11.666 [vent.ItemStateChangedEvent] - hue_0107_0017884165ce_3_presence changed from OFF to ON
2019-10-16 22:18:12.101 [vent.ItemStateChangedEvent] - hue_0107_0017884165ce_3_last_updated changed from 2019-10-16T22:13:30.000+0100 to 2019-10-16T22:18:11.000+0100
2019-10-16 22:18:12.171 [me.event.ThingUpdatedEvent] - Thing 'hue:0107:0017884165ce:3' has been updated.
2019-10-16 22:18:21.345 [vent.ItemStateChangedEvent] - hue_0107_0017884165ce_3_presence changed from ON to OFF
2019-10-16 22:18:21.748 [vent.ItemStateChangedEvent] - hue_0107_0017884165ce_3_last_updated changed from 2019-10-16T22:18:11.000+0100 to 2019-10-16T22:18:21.000+0100
2019-10-16 22:18:21.793 [me.event.ThingUpdatedEvent] - Thing 'hue:0107:0017884165ce:3' has been updated.
2019-10-16 22:20:12.737 [me.event.ThingUpdatedEvent] - Thing 'hue:0302:0017884165ce:2' has been updated.
2019-10-16 22:25:12.363 [vent.ItemStateChangedEvent] - hue_0302_0017884165ce_2_temperature changed from 20.22 °C to 20.36 °C
2019-10-16 22:25:12.491 [me.event.ThingUpdatedEvent] - Thing 'hue:0302:0017884165ce:2' has been updated.
2019-10-16 22:30:12.101 [me.event.ThingUpdatedEvent] - Thing 'hue:0302:0017884165ce:2' has been updated.

==> /var/log/openhab2/openhab.log <==
2019-10-15 22:10:00.871 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'powerplugs.items'
2019-10-15 22:21:13.157 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2019-10-15 22:21:13.598 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 1c70fa7e-72be-448d-814d-919491bb582d, base URL = http://localhost:8080)
2019-10-15 22:21:17.592 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 1c70fa7e-72be-448d-814d-919491bb582d, base URL = http://localhost:8080)
2019-10-15 22:23:30.073 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2019-10-15 22:23:30.328 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 1c70fa7e-72be-448d-814d-919491bb582d, base URL = http://localhost:8080)
2019-10-15 22:23:36.494 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 1c70fa7e-72be-448d-814d-919491bb582d, base URL = http://localhost:8080)
2019-10-16 00:00:32.639 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:moon:home
2019-10-16 00:00:35.331 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:home
2019-10-16 20:34:04.626 [INFO ] [eemulation.internal.ConfigManagement] - Hue Emulation pairing disabled. Service available under /api

Somebody can help me please?

Your item definitions are missing labels. You can refer to these recommendations on how to name them.

1 Like

Many thanks i must have read a bad doc where you have only to write
[ “Switchable” ] in your item files :confused:

Hi,

is it possible to define custom colors for the ColorController?

I have a color item and basically it wokes fine with Alexa:

Color                   DG_Buero_TV_Light_HSB           "TV Licht HSB"                                  (DG_Buero, DG_Buero_TV_Light)   { alexa="ColorController.color", channel="shelly:shellyrgbw2-color:661f4f:color#hsb" }

Now I have predefined colors with my LED stripe like “Red, Orange”. So I can change the color with Alexa.

Unfortunately some of these colors don’t look very good. e.g. “orange” is more a yellow than an orange.

So I was wondering if it’s possible to do to something similar with the ColorController like with a Selection item where I’m mapping my own HSB-Colors:

	Selection item=DG_Buero_TV_Light_HSB mappings=["8,100,89"="Orange", "60,100,100"="Gelb", "0,100,100"="Rot", "156,100,62"="Türkis", "20,100,73"="Amber", "277,87,94"="Lila", "232,100,89"="Hellblau", "240,100,100"="Blau", "0,0,100"="Weiß", "128,100,89"="Hellgrün", "320,100,100"="Rosa", "120,100,100"="Grün" ] label="Farbe" icon="colorpicker"

best regards,
Michael