Now its working with openclosevalveclass