Module: Tellstick::Nexa

Includes:
ProtocolLoader
Included in:
Waveman
Defined in:
lib/tellstick/protocol/nexa.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from ProtocolLoader

included

Instance Method Details

#outputObject



33
34
35
# File 'lib/tellstick/protocol/nexa.rb', line 33

def output
  @output
end

#teach(*args) ⇒ Object



30
31
32
# File 'lib/tellstick/protocol/nexa.rb', line 30

def teach(*args)
  turn_on(*args)
end

#turn_off(house, unit) ⇒ Object



27
28
29
# File 'lib/tellstick/protocol/nexa.rb', line 27

def turn_off(house,unit)
  output.puts "S#{codify(house)}#{codify(unit.to_s)}$k$k$kk$$kk$$k$k$}+"
end

#turn_on(house, unit) ⇒ Object



24
25
26
# File 'lib/tellstick/protocol/nexa.rb', line 24

def turn_on(house,unit)
  output.puts "S#{codify(house)}#{codify(unit.to_s)}$k$k$kk$$kk$$kk$$}+"
end