Sha256: c874fa69a4d575f106edffda7cceac4e928d4ac36d319276908076188b5d873a

Contents?: true

Size: 327 Bytes

Versions: 5

Compression:

Stored size: 327 Bytes

Contents

# frozen_string_literal: true

module Switchbot
  class Humidifier < Device
    def mode(value)
      commands(command: 'setMode', parameter: value.to_s)
    end

    def auto
      mode(:auto)
    end

    def low
      mode(101)
    end

    def medium
      mode(102)
    end

    def high
      mode(103)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
switchbot-0.7.0 lib/switchbot/humidifier.rb
switchbot-0.6.0 lib/switchbot/humidifier.rb
switchbot-0.5.1 lib/switchbot/humidifier.rb
switchbot-0.5.0 lib/switchbot/humidifier.rb
switchbot-0.4.0 lib/switchbot/humidifier.rb