Module: MiOS::Services::SwitchPower1
- Defined in:
- lib/mios/services/switch_power1.rb
Constant Summary collapse
- URN =
'urn:upnp-org:serviceId:SwitchPower1'
Instance Method Summary collapse
- #off!(async = false, &block) ⇒ Object
- #off? ⇒ Boolean
- #on!(async = false, &block) ⇒ Object
- #on? ⇒ Boolean
Instance Method Details
#off!(async = false, &block) ⇒ Object
19 20 21 |
# File 'lib/mios/services/switch_power1.rb', line 19 def off!(async=false, &block) set(URN, 'SetTarget', { "newTargetValue" => 0 }, async, &block) end |
#on!(async = false, &block) ⇒ Object
15 16 17 |
# File 'lib/mios/services/switch_power1.rb', line 15 def on!(async=false, &block) set(URN, 'SetTarget', { "newTargetValue" => 1 }, async, &block) end |