Yes, I agree with you. In general, there is a lot of limitation to control any shade by custom sensors.Of course, Amir Tabadkani, in this topic, was able to control several blinds states with almost such a workflow, but did not explain in more detail.
@rakhmat.aditra , about the same workflow that you explained, is it possible for me to see its algorithm? It can help me a lot.
thanks in advance