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â}