Best way to model a skylight with dynamic external blind

Good morning, I am trying to model a skylight with an external automated blind (rollable curtain). Currently, I have set the algorithm with Honeybee Plus to obtain the UDI value on the annual scale. Now I am trying to set a minimum and maximum value to open/close the external curtain and to change the windows group properties to switch from transparent envelope to opaque envelope. Can you please suggest me the best way to achieve this goal?

Find attached an excerpt of the algorithm for further (491.3 KB)