How to keep track of the time a device is running

What pump do you have? I cannot control mine by Homey :woozy_face:

I don’t have a pump, so I used a light to demonstrate the principle.

Super, thank you. My pump is always ‘in’. I installeer a ‘valve’… I ‘see’ the valve with his ip adress, but I cannot control it… IF you have any ideas, please feel free to communicate them8