Method: TenHsServer::Device.off
- Defined in:
- lib/ten_hs_server/device.rb
.off(id) ⇒ Object
Turn off a device.
id - An string describing the device
Returns a true or false describing the status of the device false = off true = on
148 149 150 151 152 153 |
# File 'lib/ten_hs_server/device.rb', line 148 def off id id = URI::encode(id) response = get "?t=99&f=DeviceOff&d=#{id}" parse_toggle_device response.body end |