Hello @stefan-h
I've tried the similar code as above with an M5CoreS3 and ENV III unit as well and it worked fine for me.
I suggest you try the latest available UIFlow2 firmware version which is UIFlow2.0.0. alpah-28 at the time of this post.
Thanks
Felix