# \[Hue Emulation\] Items with Switchable tag are not discovered

**URL:** <https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250>\
**Category:** Bindings\
**Tags:** hueemulation1\
**Created:** [November 29, 2018, 2:15pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250 "2018-11-29T14:15:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![5iver](https://community.openhab.org/user_avatar/community.openhab.org/5iver/32/21201_2.png) [@5iver](https://community.openhab.org/u/5iver)\
**Post date:** [November 29, 2018, 2:15pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/1 "2018-11-29T14:15:26Z")

</div>

I upgraded to snapshot 1445 last night in order to [test the recent updates in hue emulation](https://github.com/openhab/openhab2-addons/pull/4216), but only Items tagged with Lighting are showing up. Anything tagged with Switchable is gone. Also, groups tagged with either are not discovered. I created an issue, but thought I’d check here too, just to make sure it’s not just me!

[https://github.com/openhab/openhab2-addons/issues/4293](https://github.com/openhab/openhab2-addons/issues/4293)

---

<div class="post-metadata">

**Author:** ![David\_Graeff](https://community.openhab.org/user_avatar/community.openhab.org/david_graeff/32/61322_2.png) [@David\_Graeff](https://community.openhab.org/u/David_Graeff)\
**Post date:** [November 29, 2018, 2:17pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/2 "2018-11-29T14:17:46Z")

</div>

Groups items are not supported. They would if done correctly be exposed as hue groups as well.

You can configure which tags are being used for white lights, coloured lights and switchables. Just have a look at the configuration page of the service.

---

<div class="post-metadata">

**Author:** ![5iver](https://community.openhab.org/user_avatar/community.openhab.org/5iver/32/21201_2.png) [@5iver](https://community.openhab.org/u/5iver)\
**Post date:** [November 29, 2018, 2:24pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/3 "2018-11-29T14:24:35Z")

</div>

Hello, David! I was hoping you’d spot this. I had over 100 items discovered before the upgrade, and 39 after. None with Switchable were discovered. Found a ColorLighting though!

> [@David\_Graeff](#):
>
> Groups items are not supported. They would if done correctly be exposed as hue groups as well.

Do you mean are no longer supported? These Items were previously working. Edit: I read your comment in GH… so this was a breaking change 🙁. If this is going into 2.4, then it should definitely be included in the release notes. I’ll need to rig up some items to temporarily replace the groups then.

---

<div class="post-metadata">

**Author:** ![David\_Graeff](https://community.openhab.org/user_avatar/community.openhab.org/david_graeff/32/61322_2.png) [@David\_Graeff](https://community.openhab.org/u/David_Graeff)\
**Post date:** [November 29, 2018, 2:45pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/4 "2018-11-29T14:45:13Z")

</div>

You don’t have to use group items in OH, and if you do, you do it on purpose. The same with the HUE API. It distinguishes between lights and groups. Groups were just never implemented.

But switches really should work. They are exposed as Osram Plugs.

---

<div class="post-metadata">

**Author:** ![David\_Graeff](https://community.openhab.org/user_avatar/community.openhab.org/david_graeff/32/61322_2.png) [@David\_Graeff](https://community.openhab.org/u/David_Graeff)\
**Post date:** [November 29, 2018, 2:51pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/5 "2018-11-29T14:51:01Z")

</div>

Also important is the item type. It needs to be a switch item and the tag needs to be “Switchable” (case sensitive).

---

<div class="post-metadata">

**Author:** ![5iver](https://community.openhab.org/user_avatar/community.openhab.org/5iver/32/21201_2.png) [@5iver](https://community.openhab.org/u/5iver)\
**Post date:** [November 29, 2018, 5:01pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/6 "2018-11-29T17:01:32Z")

</div>

> [@David\_Graeff](#):
>
> But switches really should work. They are exposed as Osram Plugs.

> [@David\_Graeff](#):
>
> Also important is the item type. It need to be a switch item and the tag needs to be “Switchable” (case sensitive).

I’m using the same .items files that were working with snapshot 1415. Can you confirm Switchable is working for you? In the testing I’ve done so far, I can’t get any items that are tagged as [“Switchable”] (or [“Switchable”]) discovered. I do see XML data for them at `api/51OAUlu52SfkuXfmB7esYVn25Rk9YOEoIxXfSqGB/lights/`:

| 40 | |
| --- | --- |
| state | |
| on | false |
| reachable | true |
| type | “On/Off plug-in unit” |
| modelid | “Plug 01” |
| uniqueid | “95357e6f-00a8-424c-8c38-ce40cf689716-40” |
| manufacturername | “OSRAM” |
| swversion | “66012040” |
| friendsOfHue | true |
| hascolor | false |
| name | “Z-Wave Debugging” |

> [@David\_Graeff](#):
>
> You don’t have to use group items in OH, and if you do, you do it on purpose.

I’m not clear on what you are saying about groups. They worked before #4216, and I need them to work. For example, I have sets of dimmer items in groups that I use to control lighting in a room. In the UIs, in automation, and when using Alexa, it is this one group Item that is being modified to adjust the lights. Here is an example of a group that controls all of my outside lights that I often use Alexa to turn off, and is not being discovered…

```
Group:Dimmer:MAX gOutsideLight "Outside Light [%d%%]" <slider> (gOutside,gOutside_Action,gLight) ["Lighting"]

```

---

<div class="post-metadata">

**Author:** ![David\_Graeff](https://community.openhab.org/user_avatar/community.openhab.org/david_graeff/32/61322_2.png) [@David\_Graeff](https://community.openhab.org/u/David_Graeff)\
**Post date:** [November 29, 2018, 6:19pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/7 "2018-11-29T18:19:57Z")

</div>

Yes switchables are working for me and for you also apparently. If the xml lists them, they have been recognised.  
What exactly is your target device? Not every device understands Osram plugs of course, Alexa does.

---

<div class="post-metadata">

**Author:** ![David\_Graeff](https://community.openhab.org/user_avatar/community.openhab.org/david_graeff/32/61322_2.png) [@David\_Graeff](https://community.openhab.org/u/David_Graeff)\
**Post date:** [November 29, 2018, 6:23pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/8 "2018-11-29T18:23:01Z")

</div>

> [@5iver](#):
>
> I’m not clear on what you are saying about groups. They worked before #4216, and I need them to work.

The world sometimes feels strange, sure. But group items worked because of a bug, that bug is fixed. So it is not even a breaking change because the hue emulation never promised to support groups. That is what I’m trying to say.

And it is probably another day of coding to properly support groups, I do not have spare time at the moment 😕

---

<div class="post-metadata">

**Author:** ![5iver](https://community.openhab.org/user_avatar/community.openhab.org/5iver/32/21201_2.png) [@5iver](https://community.openhab.org/u/5iver)\
**Post date:** [November 30, 2018, 9:28am UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/9 "2018-11-30T09:28:12Z")

</div>

> [@David\_Graeff](#):
>
> What exactly is your target device? Not every device understands Osram plugs of course, Alexa does.

Grepping my items files for Switchable returns 39 instances, but none of them show up after discovery. I can clear everything and the Items with Lighting come back, but no Switchable. I have Echo Dots interacting with the Hue emulator.

> [@David\_Graeff](#):
>
> But group items worked because of a bug, that bug is fixed. So it is not even a breaking change because the hue emulation never promised to support groups.

I think of it differently… since it is existing functionality that is being removed, it will be a breaking change for anyone who is using groups with hueemulation. Personally, it is a show stopper for me, at least in my production setup, so I’ve put in an earlier hueemulation jar, and got my groups and switches back.

> [@David\_Graeff](#):
>
> And it is probably another day of coding to properly support groups, I do not have spare time at the moment 😕

I’m sure your hands are _full_ with MQTT… hopefully someone can pick this up before 2.4. Anyhow, thank you for the time you’ve put into this… it is very much appreciated! I _can’t wait_ to be past [this one](https://github.com/openhab/openhab2-addons/issues/3171).

---

<div class="post-metadata">

**Author:** ![Gordon\_Geist](https://community.openhab.org/user_avatar/community.openhab.org/gordon_geist/32/29439_2.png) [@Gordon\_Geist](https://community.openhab.org/u/Gordon_Geist)\
**Post date:** [December 1, 2018, 1:50pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/10 "2018-12-01T13:50:18Z")

</div>

@David_Graeff Thanks for all the work here! Nice to see progress here and I havent looked at the work on MQTT but assume you are owed a thanks there as well!

---

<div class="post-metadata">

**Author:** ![Gordon\_Geist](https://community.openhab.org/user_avatar/community.openhab.org/gordon_geist/32/29439_2.png) [@Gordon\_Geist](https://community.openhab.org/u/Gordon_Geist)\
**Post date:** [December 9, 2018, 1:00am UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/11 "2018-12-09T01:00:56Z")

</div>

@5iver. Did the latest commit (PR 4324) solve the issue for you. Still no luck for me. I hate to give up and fall back to a prior release! I could move to Germany 😃 - but what doesn’t work better in Germany?

---

<div class="post-metadata">

**Author:** ![David\_Graeff](https://community.openhab.org/user_avatar/community.openhab.org/david_graeff/32/61322_2.png) [@David\_Graeff](https://community.openhab.org/u/David_Graeff)\
**Post date:** [December 9, 2018, 9:55am UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/12 "2018-12-09T09:55:41Z")

</div>

Groups work with this latest commit:

[https://github.com/openhab/openhab2-addons/pull/4339](https://github.com/openhab/openhab2-addons/pull/4339)

As my Alexas find and control switchable items exposed as Osram plugs, I consider the OP of this topic to be solved as well. I have added a troubleshoot section to the readme though, for everyone to verify that at least the emulation does a correct job.

Cheers, David

---

<div class="post-metadata">

**Author:** ![Gordon\_Geist](https://community.openhab.org/user_avatar/community.openhab.org/gordon_geist/32/29439_2.png) [@Gordon\_Geist](https://community.openhab.org/u/Gordon_Geist)\
**Post date:** [December 9, 2018, 2:36pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/13 "2018-12-09T14:36:41Z")

</div>

@David_Graeff Giving it a shot.

---

<div class="post-metadata">

**Author:** ![Gordon\_Geist](https://community.openhab.org/user_avatar/community.openhab.org/gordon_geist/32/29439_2.png) [@Gordon\_Geist](https://community.openhab.org/u/Gordon_Geist)\
**Post date:** [December 10, 2018, 1:48pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/14 "2018-12-10T13:48:07Z")

</div>

Some sucess to report - lights are discovered now. No switchable items discovered (only tagged as Switchable) . Hue color bulb discovered as white non color.

Example /api/testuser/lights?debug=true output

Kitchen Desk Lamp Color: Extended color light  
on: true, brightness: 254, hue: 8373, sat: 142, xy: {0.0 0.0 }, ct: 500, alert: none, effect: none, colormode: hs, reachable: true

Frontdoor Outside Light: On/Off plug-in unit  
on: true, reachable: true

---

<div class="post-metadata">

**Author:** ![David\_Graeff](https://community.openhab.org/user_avatar/community.openhab.org/david_graeff/32/61322_2.png) [@David\_Graeff](https://community.openhab.org/u/David_Graeff)\
**Post date:** [December 10, 2018, 3:11pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/15 "2018-12-10T15:11:25Z")

</div>

Perform the discovery multiple times from different Alexa’s and also from the web application at [alexa.amazon.com](http://alexa.amazon.com).

Osram plugs are not recognized by all echo variants.

There was one hot fix that was applied just yesterday, hopefully that is in your current build as well already. But shouldn’t influence the actual search only switching the devices.

---

<div class="post-metadata">

**Author:** ![Gordon\_Geist](https://community.openhab.org/user_avatar/community.openhab.org/gordon_geist/32/29439_2.png) [@Gordon\_Geist](https://community.openhab.org/u/Gordon_Geist)\
**Post date:** [December 11, 2018, 12:06am UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/16 "2018-12-11T00:06:03Z")

</div>

Can switch tags between Lighting and Switchable and moment its Lighting its discovered and then not after moved to Switchable. Repeated it a number of times. I havent looked at the code here closely but in looking at OSRAM - they are distinctly identified differently by country:

DE/FR/IT: Osram Smart Plug  
US/CA: Sylvania Smart Plug

Can you point me to the Alexa doc that has the method for announcing a device and maybe I can be useful to either fork and write some code finally or at least understand why it is a moot point 😉

---

<div class="post-metadata">

**Author:** ![David\_Graeff](https://community.openhab.org/user_avatar/community.openhab.org/david_graeff/32/61322_2.png) [@David\_Graeff](https://community.openhab.org/u/David_Graeff)\
**Post date:** [December 11, 2018, 12:32am UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/17 "2018-12-11T00:32:34Z")

</div>

> [@Gordon\_Geist](#):
>
> DE/FR/IT: Osram Smart Plug  
> US/CA: Sylvania Smart Plug

That would explain why it doesn’t work for US guys, but for me as a German. Most people in forums say that not even coloured bulbs are recognised without a skill. I was fairly surprised that it actually worked for me.

> [@Gordon\_Geist](#):
>
> Can you point me to the Alexa doc that has the method for announcing a device

This is the wet dream of every hue emulation developer 🙂 There are no such docs, this is purely reverse engineered, try and error.

---

<div class="post-metadata">

**Author:** ![ngrodum](https://community.openhab.org/user_avatar/community.openhab.org/ngrodum/32/72255_2.png) [@ngrodum](https://community.openhab.org/u/ngrodum)\
**Post date:** [December 17, 2018, 1:36pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/18 "2018-12-17T13:36:51Z")

</div>

I just upgraded to the 2.4 release version. Now my house “stopped working” - at least the Alexa control which we extensively use. I have a lot of Alexa devices (switchable on/off devices) used directly or in routines, those are now no longer recognized by Alexa. I can see them listed as OSRAM “On/Off plug” V1.04.12 in the Hue emulation /api/../lights api.  
I see that Alexa will recognize my items if I change them from switchable to lightning, which I guess will be my temporary solution.  
And yeah, I’m on a US Amazon account. I know I’m repeating the issue at hand here, but given I’m on the 2.4 release version, I find it to be a pretty serious bug/limitation.

Is this issue tracked somewhere?

---

<div class="post-metadata">

**Author:** ![David\_Graeff](https://community.openhab.org/user_avatar/community.openhab.org/david_graeff/32/61322_2.png) [@David\_Graeff](https://community.openhab.org/u/David_Graeff)\
**Post date:** [December 17, 2018, 1:45pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/19 "2018-12-17T13:45:56Z")

</div>

> [@ngrodum](#):
>
> Is this issue tracked somewhere?

[https://github.com/openhab/openhab2-addons/issues/4293](https://github.com/openhab/openhab2-addons/issues/4293)

There is no solution yet. Someone with a real hue bridge need to find a wall plug that works in the US and is recognised by Alexa.

---

<div class="post-metadata">

**Author:** ![ngrodum](https://community.openhab.org/user_avatar/community.openhab.org/ngrodum/32/72255_2.png) [@ngrodum](https://community.openhab.org/u/ngrodum)\
**Post date:** [December 17, 2018, 1:46pm UTC](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/20 "2018-12-17T13:46:57Z")

</div>

But it used to work well? What about the 2.3 version?

[Next page](https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250.md?page=2)
