Running Scenes with Virtual Switches
I'm trying to create few rules which will operate a group of devices just like a scene would do. I did not go the scene way for the reasons:
1. I could not find to trigger multiple IR commands with the same IR device, it shows the IR add command to include in the scene only once.
2. I wanted to be able to turn on and off a scene with just the scene name using Alexa, like "movie on" and "movie off", with scenes I would have to create two scenes with on and off and name them differently.
So basically I'm doing the below:
Created a Virtual switch "Movie"
in Rules: When Movie = On run a set of commands, when movie off run another set of commands.
Similarly, I've a second Scene rules for Cable viewing which I did as below:
Created a Virtual Switch "Cable"
in Rules: When Cable = On then run a set of commands, when cable is off then run another set of commands.
The issue is, if say I've turn the Movie switch on, then instead of switching it off, I ran the Cable switch on. Then I wanted to again turn the Movie switch on and it wont work as the Movie switch is already on. I cant turn the Movie switch off in the end of the rule as it will triger another rule to execute which will switch off all the devices.
Is there a way I can run a set of commands in rules irrespective of its present state ? Or is there a better way of doing scenes ? I want to map the scenes to gestures, touch buttons on the zipatile and be able to run using alexa.