Philips released an API and iOS SDK for its Hue lighting system.
I love the future, where even lights have an API.