Scripts for home automation