Help with Modbus for my pool

Hello,

I am moving Modbus from open hub to home assistant, and world like to get a help.
I have 16 bit register, which is represented as binary:

So, to open pool, I need to send ‘1’ on address 16 holding register, and use only bit 2 for 3 seconds, to close a pool i need to set ‘1’ bit 3 for 3 seconds. and the status of the pool open/close I can see by address 24 bit 4/

I assume I can use “covers” for that task, but not sure how to define yaml.

Ed