ecobee Thermostat enters Smart Home/Away. Philips Hue Turn on lights.

If motion is detected then turn on the lights.

65