DIY Smart home project: Presence-activated lights

Background
I got these Antela smart bulbs a while ago. They connect to my home network, and I control them from my phone via either the Tuya Smart app (Tuya is a Chinese IoT service provider)...