class Switchbot::Humidifier

Public Instance Methods

auto() click to toggle source
# File lib/switchbot/humidifier.rb, line 9
def auto
  mode(:auto)
end
high() click to toggle source
# File lib/switchbot/humidifier.rb, line 21
def high
  mode(103)
end
low() click to toggle source
# File lib/switchbot/humidifier.rb, line 13
def low
  mode(101)
end
medium() click to toggle source
# File lib/switchbot/humidifier.rb, line 17
def medium
  mode(102)
end
mode(value) click to toggle source
# File lib/switchbot/humidifier.rb, line 5
def mode(value)
  commands(command: 'setMode', parameter: value.to_s)
end