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

[Shelly plus 2pm] Script to prevent 2 output in the same time ( Vent control )

Open Adefx opened this issue 1 year ago • 1 comments

Hi, A feature, implemented on the shelly 2.5 in shutter/cover mode was to disable the run timeout with 0 value It's not possible on the shelly plus 2pm in cover mode

We need that feature since we control 2 speed fan. Powering a motor both speed in the same time === destruction & Fire In relay mode it's possible to switch both relay resulting in the destruction of the fan motor.

The need : a simple script that toggle the state of the two output when On Relay 1 ===> On Relay 2 Off Relay 2 ===> On Relay 1 Off Relay 1 ===> Off do nothing Relay 2 ===> Off do nothing

Thx

Adefx avatar Sep 19 '23 16:09 Adefx

@Adefx Please check this example: https://github.com/ALLTERCO/shelly-script-examples/blob/main/cycle-switch.js

taulfsime avatar May 04 '24 16:05 taulfsime