Changed so that it doesn't use binary__sensor input from switch device