Module: Tellstick::Nexa
Overview
:nodoc:
Instance Method Summary collapse
- #output ⇒ Object
- #teach(*args) ⇒ Object
- #turn_off(house, unit) ⇒ Object
- #turn_on(house, unit) ⇒ Object
Methods included from ProtocolLoader
Instance Method Details
#output ⇒ Object
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 |