shelly-script-examples
shelly-script-examples copied to clipboard
example for operating 2 outputs on a multioutput device at the saem time
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.
What do you mean by "just one used as master"?
"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.
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.