With the move to 2.0, I have resolved to simplify things and take advantage of SmartThings apps and integrations as much as possible. Since none of these can talk to HAM Bridge, I have set up a number of virtual switches that do that.
The problem is presented in the following scenario:
A virtual switch, when turned on, calls HAM Bridge to run a script that turns on a home theatre system, and starts a source playing. When turned off, just the opposite (it turns everything off).
The problem I am working with is that if the switch is currently in the off state, then an OFF event is not sent from a Routine that is set up to turn that switch off, and I need it to be due to the possibility (heaven forbid) that someone turns it on manually.
My current workflow is something I consider little better than a kludge at synchronization that I won’t bore you with. The ideal solution is just to have the virtual switches receive and execute the OFF handlers even though they are off. I have other switches that do this with filter events false, but these don’t behave the same.
Thoughts? Am I missing something simple, or is this just not going to happen with the “Turn these switches off” in the default SmartApps?