Configuration for Main Home Shut Off Water Valve

I have connect a shutoff valve motor 5 wires with 2 for open/closed and 3 wires for status Valve positon open/close. I got the MiniWemo running Tasmota working fine. But I am not sure how to set the configuration.yaml file. I like the similar concept as cover for garage door. By the way I am using hassio. Any help will be appreciated… Thanks!