Please add something like a “Slider”. So you can control blinds.
I have two Relays connected to my Pi. One for up and one for down.
My idea would be to control them via the time.
Example:
… The blinds need 27 seconds to close.
27 sec = 100%
so you can calculate …
If we want 50 %
27 sec = 100 %
13,5 = 50 %
set GPIO[Down] off
set GPIO[UP] on for 13,5 sec
If we want 75 %
27 sec = 100%
20,25 sec = 75 %
20,25 sec - 13,5 sec = 6,75
set GPIO[Down] off
set GPIO[UP] on for 6,75
the same the other way round.
Sorry for my bad english