If Withing's sleep sensor detects you get into bed, then turn off Bedroom Lamp

1

Explore more great ways to automate TP-Link Kasa and Withings Sleep