class Redlink::Ui

Attributes

can_set_switch_auto[RW]
can_set_switch_cool[RW]
can_set_switch_emergency_heat[RW]
can_set_switch_heat[RW]
can_set_switch_off[RW]
can_set_switch_southern_away[RW]
commercial[RW]
cool_lower_setpt_limit[RW]
cool_next_period[RW]
cool_setpoint[RW]
cool_upper_setpt_limit[RW]
created[RW]
deadband[RW]
disp_temperature[RW]
displayed_units[RW]
dual_setpoint_status[RW]
heat_lower_setpt_limit[RW]
heat_next_period[RW]
heat_setpoint[RW]
heat_upper_setpt_limit[RW]
hold_until_capable[RW]
indoor_humidity[RW]
outdoor_humidity[RW]
outdoor_temp[RW]
sched_cool_sp[RW]
sched_heat_sp[RW]
schedule_capable[RW]
status_cool[RW]
status_heat[RW]
system_switch_position[RW]
thermostat_locked[RW]
vacation_hold[RW]

Public Instance Methods

cool_setpoint=(val) click to toggle source
# File lib/redlink/ui.rb, line 22
def cool_setpoint=(val)
  @cool_setpoint = val.to_f
end
cooling?() click to toggle source
# File lib/redlink/ui.rb, line 46
def cooling?
  status_cool.to_i == 1
end
disp_temperature=(val) click to toggle source
# File lib/redlink/ui.rb, line 38
def disp_temperature=(val)
  @disp_temperature = val.to_f
end
heat_setpoint=(val) click to toggle source
# File lib/redlink/ui.rb, line 18
def heat_setpoint=(val)
  @heat_setpoint = val.to_f
end
heating?() click to toggle source
# File lib/redlink/ui.rb, line 42
def heating?
  status_heat.to_i == 1
end
outdoor_temp=(val) click to toggle source
# File lib/redlink/ui.rb, line 14
def outdoor_temp=(val)
  @outdoor_temp = val.to_f
end
overridden?() click to toggle source
# File lib/redlink/ui.rb, line 50
def overridden?
  heat_setpoint != sched_heat_sp && cool_setpoint != sched_cool_sp
end
sched_cool_sp=(val) click to toggle source
# File lib/redlink/ui.rb, line 30
def sched_cool_sp=(val)
  @sched_cool_sp = val.to_f
end
sched_heat_sp=(val) click to toggle source
# File lib/redlink/ui.rb, line 26
def sched_heat_sp=(val)
  @sched_heat_sp = val.to_f
end
status() click to toggle source
# File lib/redlink/ui.rb, line 54
def status
  if heating?
    if overridden?
      return '(heating via override)'
    else
      return '(heating)'
    end
  elsif cooling?
    if overridden?
      return '(cooling via override)'
    else
      return '(cooling)'
    end
  end
end
to_s() click to toggle source
# File lib/redlink/ui.rb, line 70
def to_s
  "#{disp_temperature.to_i}° / #{heat_setpoint}° #{status}"
end