enable light switch socket code