Module: NatureRemo::Endpoints::Devices

Included in:
NatureRemo::Endpoints
Defined in:
lib/nature_remo/endpoints/devices.rb

Overview

Endpoints for Nature Remo devices

Instance Method Summary collapse

Instance Method Details

#delete_device(device_id:) ⇒ String

Raises:



33
34
35
# File 'lib/nature_remo/endpoints/devices.rb', line 33

def delete_device(device_id:)
  post("devices/#{device_id}/delete")
end

#devicesString

Fetch the list of Remo devices the user has access to. https://swagger.nature.global/#/default/get_1_devices

Raises:



12
13
14
# File 'lib/nature_remo/endpoints/devices.rb', line 12

def devices
  get('devices')
end

#update_device(device_id:, name:) ⇒ String

Raises:



23
24
25
# File 'lib/nature_remo/endpoints/devices.rb', line 23

def update_device(device_id:, name:)
  post("devices/#{device_id}", { name: name })
end

#update_device_humidity_offset(device_id:, offset:) ⇒ String

Raises:



55
56
57
# File 'lib/nature_remo/endpoints/devices.rb', line 55

def update_device_humidity_offset(device_id:, offset:)
  post("devices/#{device_id}/humidity_offset", { offset: offset })
end

#update_device_temperature_offset(device_id:, offset:) ⇒ String

Raises:



44
45
46
# File 'lib/nature_remo/endpoints/devices.rb', line 44

def update_device_temperature_offset(device_id:, offset:)
  post("devices/#{device_id}/temperature_offset", { offset: offset })
end