Hello
I just bought a Shelly 2 PM with the purpose to control a fan speed that has two levels.
The cover function of the 2PM seemed promising to me because of the "OR" logic of the two switches...
But then I found that the movement in each direction has a time limit of 300 seconds.
My fan must be on for ours..
I found a solution here
Beitrag
RE: Pro 4PM script - if one switch is on, the other must be off
this is a quick'n dirty solution, but as said: there's probably a few milliseconds delay.
Explaination:
if switch:0 is turned on switch:1 (id: 1) is turned off
if switch:1 is turned on switch:0 (id 0) is turned off
It's still possible to turn off both relays
If you prefer to use the remaining switch 3/4 from the Pro4PM just replace the switch:x and "id": y
(Quelltext, 12 Zeilen)
Explaination:
if switch:0 is turned on switch:1 (id: 1) is turned off
if switch:1 is turned on switch:0 (id 0) is turned off
It's still possible to turn off both relays
If you prefer to use the remaining switch 3/4 from the Pro4PM just replace the switch:x and "id": y
(Quelltext, 12 Zeilen)
Seven of Nine
but the switching between swithces has little lag so two switches are on for a brief time, I fear this could blow my VMC..
Is there any hope in some next firmware upgrades to set time limit optional for cover function?
Thanks