Class: Wizrb::Lighting::Scenes::SpookyScene

Inherits:
Scene
  • Object
show all
Defined in:
lib/wizrb/lighting/scenes/spooky_scene.rb

Constant Summary collapse

DEFAULT_STATE_EVENTS =
[
  Wizrb::Shared::Events::PowerEvent.new(true),
  Wizrb::Lighting::Events::SetSpeedEvent.new(200),
  Wizrb::Lighting::Events::SetColorTempEvent.new(1000),
  Wizrb::Lighting::Events::SetBrightnessEvent.new(100)
].freeze
BLACKOUT_EVENTS =
[
  Wizrb::Shared::Events::PowerEvent.new(false)
].freeze

Instance Method Summary collapse

Methods inherited from Scene

#start, #stop

Constructor Details

#initialize(group, sync: false) ⇒ SpookyScene

Returns a new instance of SpookyScene.



20
21
22
23
# File 'lib/wizrb/lighting/scenes/spooky_scene.rb', line 20

def initialize(group, sync: false)
  @sync = sync
  super(group, stop_delay: 10)
end