OK, there are at least 3 threads on this topic. I am trying to put something together. There are multiple things that do not work right now but there is a way to work around all that with rules. It is quite like pulling a tooth via ones butt, but, may be done.
The setup I have included Alexa controlling house via groups and directly to switches via hueemulation together with the openhab app on the mobile. To make it work with the interface is relatively straight forward, but voice control and control via groups does not work at all. So the approach is to use combination of things defined as below for commands:
Thing exec:command:pluglight [command="/opt/openhab2/conf/scripts/hs100.sh 192.168.10.42 9999 %2$s", interval=0, timeout=5, autorun=true]
Thing exec:command:pluglightcheck [command="/opt/openhab2/conf/scripts/hs100.sh 192.168.10.42 9999 check", interval=1, timeout=5]
Thing exec:command:islandlight [command="/opt/openhab2/conf/scripts/hs100.sh 192.168.10.41 9999 %2$s", interval=0, timeout=5, autorun=true]
Thing exec:command:islandcheck [command="/opt/openhab2/conf/scripts/hs100.sh 192.168.10.41 9999 check", interval=1, timeout=5]
Thing exec:command:mikelight [command="/opt/openhab2/conf/scripts/hs100.sh 192.168.10.46 9999 %2$s", interval=0, timeout=5, autorun=true]
Thing exec:command:mikecheck [command="/opt/openhab2/conf/scripts/hs100.sh 192.168.10.46 9999 check", interval=1, timeout=5]
Then items for HS100 should be made as strings:
String PlugOne “Lamp One” [ “Switchable” ] {channel=“exec:command:pluglight:input”, channel=“exec:command:pluglightcheck:output”,autoupdate=“false”}
String Island “Island Light” (FF_Kitchen, FF_Lights, FF_Lights1, FF_Lights2, Lights) [ “Switchable” ] {channel=“exec:command:islandlight:input”, channel=“exec:command:islandcheck:output”,autoupdate=“false”}
You can see above i am exposing those strings to hue emulator and into groups. So, what i am working on now is to craft a rule that will actually issue commands to this string from an actual ‘Switch’ item as in this configuration above you can issue a direct command into that string item, or flip it via interface but it refuses to receive commands from the group level.
Also, what is worse - this string refuses to issue an ‘OFF’ command to the HS100 device if you had device originally in the 'OFF" position but them flipped it to ‘ON’ manually. It is a total bummer as Alexa says ‘OK’ to the command but light stays on.
for that I will try to craft a rule to look at statuses and issue a series of OFF/ON commands to deal with this non-sense.