Tasmota relay control

Hi all,

After having used esphome for a while and finding it to be a brilliant program it seems to having some issue a the minute, which has led me to use Tasmota to control some LEDs and a power supply via HA.

I have everything working OK but I am using a HA automation to control the atx power supply when the light is turned on or off.

Is there a way to do this directly with Tasmota rather than having to use more HA automations.
my tasmota config is very simple.

Thanks

The question is old, but anyway, your solution probably is Rules:

https://tasmota.github.io/docs/Rules/