Updated script for autostart Wall Switch