shelly-script-examples icon indicating copy to clipboard operation
shelly-script-examples copied to clipboard

example for operating 2 outputs on a multioutput device at the saem time

Open swa66 opened this issue 3 years ago • 3 comments

More of a suggestion

For e.g. a Shelly Pro 2: a script that makes both outputs on or off at the same time no matter what inputs (network, buttons, ...) are used to switch them (without creating a loop that results in a flip-flop) . Making sure there's no possibility to leave it with one output on and the other off.

Use case: Bathrooms are here are required to switch on and off both the phase and the neutral at the same time.

A foolproof script would be preferred, a script with just one used as master (and operated) and the other as slave (optionally making its controls inoperative if that could be achieved) could be acceptable as well.

swa66 avatar Aug 02 '22 22:08 swa66

What do you mean by "just one used as master"?

Mircho avatar Sep 21 '22 15:09 Mircho

"Master": take one channel and control that one, make the other channel the "slave" that follows what the master does. Best would be to make direct control of the slave impossible.

swa66 avatar Sep 21 '22 21:09 swa66

This is possible by detaching both inputs from the outputs and using one of them for controlling the relays. Instantaneous switching of both relays is impossible. There will always be some delay between the times the two circuits close.

Mircho avatar Sep 26 '22 14:09 Mircho