openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.9k stars 3.59k forks source link

[hueemulation] items tagged ["Switchable"] not discovered in Alexa App #12068

Open tommycw1 opened 2 years ago

tommycw1 commented 2 years ago

Been using OH2 for many years (and OH1 for years before that). Had a disk failure so now on fresh install of OH3. In the past with OH2 my switchable items also were not discovered and I was directed to go into the hue emulation set up and add "switchable" to the white item tags (so it is "Lighting,Switchable") and then the switchable items were found in the Alexa app, albeit incorrectly as dimmable devices. Now on OH3, I was hoping this issue was resolved, so first I attempted to not modify the hue emulation setup and have my switchable items discovered as switches. This failed. All of my 'lighting' items were found but none of the switchable items. So, I again went into the hue emulation setup and added 'switchable' to the list of white light item tags. Unfortunately this still does not allow my switchable items to be found.

lsiepel commented 10 months ago

And two years later we moved on to openHAB 4 :-). Not sure it this issue was fixed. But would be nice if you can verify it still exists on 4.x. There seem to be some PR's merged since openHAB 3.0, for example https://github.com/openhab/openhab-addons/pull/13923 might have solved this.

If you upgraded and the issue remains, could you share some configuration details

tommycw1 commented 10 months ago

I am now running the latest OH 4.1.

From the hue Emulation OH page: https://www.openhab.org/addons/integrations/hueemulation/

I copied the three examples given at the bottom of the page:

Switch  TestSwitch      "Kitchen Switch" [ "Switchable" ]    {channel="..."}
Color   TestColorBulb   "Bathroom"       [ "ColorLighting" ] {channel="..."}
Dimmer  TestDimmer      "Hallway"        [ "Lighting" ]      {channel="..."}

I removed the "{channel="..."}" parts and saved these into my temp.items file.

I then opened the Alexa app and ran the device search. It found the "Color Lighting" and "Lighting" items, but it did not find the "Switchable" item, so it seems this is still an open issue that needs to be resolved.

lsiepel commented 8 months ago

I am now running the latest OH 4.1.

From the hue Emulation OH page: https://www.openhab.org/addons/integrations/hueemulation/

I copied the three examples given at the bottom of the page:

Switch  TestSwitch      "Kitchen Switch" [ "Switchable" ]    {channel="..."}
Color   TestColorBulb   "Bathroom"       [ "ColorLighting" ] {channel="..."}
Dimmer  TestDimmer      "Hallway"        [ "Lighting" ]      {channel="..."}

I removed the "{channel="..."}" parts and saved these into my temp.items file.

I then opened the Alexa app and ran the device search. It found the "Color Lighting" and "Lighting" items, but it did not find the "Switchable" item, so it seems this is still an open issue that needs to be resolved.

Did you set org.openhab.hueemulation:restrictToTagsSwitches=Switchable ?