Sha256: 6d01c1ee274f3dba6560e21e71d45564cc728883c8959dddc94410d87c83cec0
Contents?: true
Size: 427 Bytes
Versions: 2
Compression:
Stored size: 427 Bytes
Contents
# frozen_string_literal: true module Switchbot class ColorBulb < Device def toggle commands(command: 'toggle') end def brightness(value) commands(command: 'setBrightness', parameter: value) end def color(value) commands(command: 'setColor', parameter: value) end def color_temperature(value) commands(command: 'setColorTemperature', parameter: value) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
switchbot-0.7.0 | lib/switchbot/color_bulb.rb |
switchbot-0.6.0 | lib/switchbot/color_bulb.rb |