Boas pessoal,
Tenho um portão de garagem já configurado e a funcionar com 2 reed switch de fins de curso aberto e fechado:
Agora queria implementar algo como os shutters, ou seja abrir meio portão, a mesma filosofia aplicaria ao portão da entrada de duas folhas em que abria um pouco para entrada pedonal.
Pelo que vi no shutters eles usam sempre dois relês mas tb li no link abaixo que alguém pediu isso e que foi implementado, mas não encontro como implementar:
opened 12:20AM - 15 Aug 20 UTC
closed 05:04PM - 09 Sep 20 UTC
enhancement
fixed
<!-- Thanks for suggesting an idea for this project. READ THIS FIRST:
Please … take a few minutes to complete the requested information below. Our ability to provide assistance is greatly hampered without it. The details requested potentially affect which options to pursue. The small amount of time you spend completing the template will also help the volunteers providing the assistance to you to reduce the time required to help you.
DO NOT DELETE ANY TEXT from this template! Otherwise the issue will be auto-closed.
-->
**Have you looked for this feature in other issues and in the docs?**
yes
**Is your feature request related to a problem? Please describe.**
Shutters like garage doors usually are driven by ONE momentary switch / are controlled by ONE pulse meaning OPEN-STOP-CLOSE-OPEN-STOP-etc. In other words the direction is switched internally by the door control and a 2nd relay is NOT needed. Why shutter mode for garage doors? For „side sectional doors“ a shutter mode is conveniant because moving the car in and out you need opening 100% but stepping in/out an opening of 20% might good enough.
**Describe the solution you'd like**
As there is shutter mode 1 and 2 for continues operated motoers, there should be similar 2 shutter modes for pulse motors (first relay: OFF/DOWN, second relay: OFF/UP or first relay: ON/OFF, second relay: UP/DOWN). It can be used for a pulse motor to start/stop and change it's direction or just by leaving the 2nd relay unconnected for the garage door case. Because an additional criteria is needed to select shutter mode 2a or 2b I like to suggest a new and clear command "ShutterMode<x> <value> (0 = off, 1/2 = duration based motors, 2/4 = pulse motors, 5 = stepper, . . ) - SetOption80 can be reused.
**Describe alternatives you've considered**
1. Instead of "ShutterMode<x> <value>" the SetOption80 can be extended (all ShutterRelay<x> then have the same behaviour).
2. Allow a virtual relay instead of a physical one as 2nd relay.
**Additional context**
The command "ShutterRelay<x>" is too unflexible because of allowing only odd numbers and force the following number as 2nd relay. Why not explicitly define both relay numbers like "ShutterRelay<x> <number of 1st relay>,<number of 2nd relay>"?
**(Please, remember to close the issue when the problem has been addressed)**
Alguém sabe como posso implementar e ter 50% aberto, mas apenas usando o mesmo relê para on/off?
Obrigado