You can either link it to a physical device or to a virtual switch. But that method does end up being the equivalent of a bunch of presets so it may not meet all your needs.
The IFTTT method is pretty simple to set up. But it can introduce some additional lag.
An alternative is to use Core. The setup is complex, but there are many community members who will be glad to help.