Upgrading Legacy Lighting Controls for Smart Automation Lighting Controls Building Automation Systems (BAS)