Class: Wizrb::Lighting::Products::DimableLight

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

Constant Summary collapse

MODULE_NAME_IDENTIFIER =
"DW"
FEATURES =
{
  brightness: true,
  color_temp: false,
  color: false,
  effect: false,
  scenes: %i[
    wake_up
    bedtime
    cool_white
    night_light
    candlelight
    golden_white
    pulse
    steampunk
  ]
}.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) ⇒ DimableLight

Returns a new instance of DimableLight.



27
28
29
# File 'lib/wizrb/lighting/products/dimable_light.rb', line 27

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