Hi Steve, are there any updates to the code in just posted official openhab2 release for Exec binding or is it still under development for any changes related to the status update from a manual switch?
Also, i just got more time to map those ‘String’ objects as ‘Switchable’ for Alexa control - nothing of this works correctly at all. From BasicUI you indeed can click on those ‘String’ items and they perfom commands. But i think when this ‘string’ is exposed over hue emulation into Alexa - an external command to turn it on or off does not do anything, as it is a ‘string’, not a ‘switch’. and if you define in the items file this item as a ‘switch’ - it refuses to run a command file.
So, whole thing is still not operational at all. I wish somebody simply did a dedicated binding for TPLink switches as it seems this deviation into new channels method is problematic…
OK, i figured out what was going on - it was sending ‘100’ and ‘0’ commands from the Hue emulator instead of ‘ON’ and ‘OFF’, so i altered the shell script to process that. Now it is controlling the switch, but still refuses to send an ‘OFF’ command if switch is flipped manually into ‘ON’.
Also, a command issues to the ‘String’ via Alexa app works, but a command issues to a group this ‘String’ is a part of and propagated (according to logs) to the String item has 0 effect - i see it showing up but script is not executed.
So issue is still same as it was. Definitions are done as:
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:islandlight [command="/opt/openhab2/conf/scripts/hs100.sh 192.168.10.41 9999 %2$s", interval=0, timeout=5, autorun=true]
//Thing exec:command:pluglight [command="/opt/openhab2/conf/scripts/off.sh %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:islandcheck [command="/opt/openhab2/conf/scripts/hs100.sh 192.168.10.41 9999 check", interval=1, timeout=5]
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”}