Skip to content

Instantly share code, notes, and snippets.

@nixterrimus
Created January 25, 2013 05:11
Show Gist options
  • Save nixterrimus/4631943 to your computer and use it in GitHub Desktop.
Save nixterrimus/4631943 to your computer and use it in GitHub Desktop.
Adapter, again
class Adapter::HueAdapter < Adapter::Base
creator "Nick Rowe"
adapts_to "Philips Hue Lighting System"
website "http://github.com/nixterrimus/hue-spirit-adapter"
implements :light
requires_setup true
settings do
ip_address :adapter_address, required: true, description: "The network address of the white puck-shaped hue base station."
string :base_station_nickname
number :fade_time, description: "Fade time in milliseconds"
end
def initialize
end
def apply_device_state(device)
end
def update_device_state(device)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment