How to cofigure harmony for sensor?

Take a look at the activity template switches I use in this post: