Class: Wizrb::Lighting::Products::RgbLight

Inherits:
Light show all
Defined in:
lib/wizrb/lighting/products/rgb_light.rb

Constant Summary collapse

MODULE_NAME_IDENTIFIER =
"RGB"
FEATURES =
{
  brightness: true,
  color_temp: true,
  color: true,
  effect: true,
  scenes: %i[
    ocean
    romance
    sunset
    party
    fireplace
    cozy
    forest
    pastel_colors
    wake_up
    bedtime
    warm_white
    daylight
    cool_white
    night_light
    focus
    relax
    true_colors
    tv_time
    plantgrowth
    spring
    summer
    fall
    deepdive
    jungle
    mojito
    club
    christmas
    halloween
    candlelight
    golden_white
    pulse
    steampunk
    rhythm
  ]
}.freeze

Instance Attribute Summary

Attributes inherited from Shared::Products::Device

#ip, #port, #state

Instance Method Summary collapse

Methods inherited from Light

#brightness, #cold_white, #color_temp, #rgb, #scene, #speed, #warm_white, #white_range

Methods inherited from Shared::Products::Device

#dispatch_event, #dispatch_events, #model_config, #module_name, #power_off, #power_on, #power_switch, #reboot, #refresh, #reset, #system_config, #user_config

Constructor Details

#initialize(ip:, port: 38_899) ⇒ RgbLight

Returns a new instance of RgbLight.



52
53
54
# File 'lib/wizrb/lighting/products/rgb_light.rb', line 52

def initialize(ip:, port: 38_899)
  super
end