If you are looking to just control lighting, then you could use this SmartApp:
If you are looking to control other devices you could use CoRE.