class Redlink::Thermostat

Attributes

can_control_schedule[RW]
device_name[RW]
domain_id[RW]
fan[RW]
humidification[RW]
instance[RW]
mac_id[RW]
thermostat_id[RW]
thermostats_alerts[RW]
ui[RW]
upgrading[RW]
user_defined_device_name[RW]
will_support_schedule[RW]

Public Instance Methods

name() click to toggle source
# File lib/redlink/thermostat.rb, line 11
def name
  user_defined_device_name || device_name
end
refresh() click to toggle source
# File lib/redlink/thermostat.rb, line 19
def refresh
  @ui = Ui.new Endpoint.get_volatile_thermostat_data(self.thermostat_id)
end
to_s() click to toggle source
# File lib/redlink/thermostat.rb, line 15
def to_s
  "#{name} - #{ui}"
end
ui=(val) click to toggle source
# File lib/redlink/thermostat.rb, line 7
def ui=(val)
  @ui = Ui.new(val)
end