Automate wall switch with smart plug

Hello,

I have installed home assistant on synology,
The whole idea is that I have a Konyks interi wall switch. Linked via tuya
I also have a smart plug from philips for a lamp.
What I am looking to achieve is when I turn the lights on with the switch the smartplug turns on the lamp.
Same for off.

I am brand new to HA. I don’t seem to understand how to access the yaml files as well.
Can someone help?

Regards

Start by reading the automation docs in detail. Then try to create an automation and if you fail or need help, post your non-working code and I’m sure we’re able to help you.