This object is in archive! 

What would be the best way to do a series of actions?

David Nguyen shared this idea 9 years ago
Under Consideration

Hello,


I'm wondering what the best way would be to do a series of actions. In my case, it's for setting up the home theater all together which includes, lowering the shutters, lowering the screen, turning off the lights, turning off the music, switching on the amp and setting it to the correct input, turning on the video projector (and for the fun of it playing a THX trailer at the end).


I have managed to do it the way I want it by creating a virtual switch "Movie" and creating a rule triggered by the switch. So if I do On, all these things will happen, if I do Off, it will go the other way.


I can't really use scenes, because for example I need some time between each request to the shutters, because they use 433MHz controls, I can't send all the request at once.

Same for the video project (or the amp), after turning out on, it needs a couple of seconds to be ready before I can send the request to change the input.

So I have "wait" in between the requests.


My problem, is that if for some reason on of the request in the rule doesn't work, I need to do Off, then On again. (shutters on 433MHz don't have a return information, so the bow can't know if it actually received the order, same for the amp or projector as I send an IR command, the box has no way to tell is the equipment has been turned off or on).


The problem then is that if the rule has not been played completely (for example the THX trailer), it will go on until the end. So I'm having the Off rule playing now, with the screen going up and so on, and the On rule still playing (waiting for everything to be set up before playing the trailer). So basically I have the On and Off rule playing at the same time.


How could it be possible if I press Off and the On rule is still playing to have it stopped?

Maybe using a virtual on/off switch is not the best way to do it.


Also for the equipment that have no return information to the box, the rule might conflict with others. What would be the best way there?


Here are the request I have:

- 3x shutters to position 0 (433MHz)

- screen to positon 0 (Zwave)

- Amp on (IR through Socket)

- Amp on Video Input (IR through socket)

- Projector on (IR through socket)

- Projector on Video Input 1 (IR through socket)

- Sonos Off (HTTP)

- Lights off (Zwave)

- Play THX trailer (socket)


Right now I have the socket request in my rule for the amp. But should I create a virtual switch "Amp" and have the socket on/off on a rule based on that switch and then on my "Movie" switch only change the state of this switch?


Let me know what you guys thing, would be the best way to achieve this.

Thanks!!!

Leave a Comment
 
Attach a file