Sha256: 51eb77743d43f33d8f59a6bb2241c82737f463ff71a5f7aae675fa071dcbf7fe

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true

require_relative 'light'

module Wizrb
  module Lighting
    module Products
      class RgbLight < Wizrb::Lighting::Products::Light
        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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wizrb-1.1.2 lib/wizrb/lighting/products/rgb_light.rb