Many TRVs do not accept direct positioning of the valve.
If they do, then they might also have to be set in a special working mode that disable the normal control method of the TRVs, like setpoint temperature (which usually also means the button control on the TRV too).
And please format your code correctly. It is important in order for us to help you.
Point 11 here: