Core is very powerful, but also very complicated and currently in beta development.
There is also a simpler way which doesn’t require any beta code. You do need a virtual switch. Then it’s very easy.
One) have your trigger turn on the virtual switch.
Two) have the virtual switch set up to turn itself off after X minutes (power allowance)
- have the real switch set up to turn on when the virtual switch turns off. (Smart lighting)
If you don’t know how to create a virtual switch:
All of that said, I personally wouldn’t use SmartThings to control anything involving an aquarium which might harm the fish if it didn’t work correctly. I just don’t find the system reliable enough. I do use it for convenience cases, but not for health and safety, even for pets.