update light switch & motion sensor messages