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