I have raised this question in smrtthings but have gotten no result so i thought I would try here.
I have a bunch of triggercmd commands containing bat files which controls my x10 lights. For each light switch/dimmer, a have a command for on and separate command for off. They work great in Smartthings except, how do i create a virtual switch in ST that will allow it to function like a normal light switch (1 switch).
For example, let's say I have created 2 triggercmd commands. one is Bedroom light On and the other is Bedroom Light Off. i would want a virtual switch to be able to toggle on and off. More importantly I would want the switch to have discrete on and off buttons. When i press on it would call up the Bedroom Light On command of triggercmd and when I press off it would call on Bedroom Light Off command in triggercmd.