Project blind with openhab, mqtt and esp8266


#1

The idea is based on the following scheme, activate rele0 when I want to raise the shutter and activate rele0 and rele1 at the same time when I want to lower the blind.

The engine used would be like this: Powered at 220v / ac
blind%20motor

In addition to going up and down, my intention is to count the time it takes to go up and down and use it as a period that the relays must be activated (0 and 1) although naturally these engines have incorporated end of career, I want to use those times to put a slider and to be able to control the position of the blind with percentages.
I would also like to connect a light sensor to close the window at night and open 50% for example at dawn.
I tried to do this project but I can not make percentage of the rise and fall time.
Please, I need help to do it.
Thank you and best regards