Class: Aurora::DHW
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#running ⇒ Object
(also: #running?)
readonly
Returns the value of attribute running.
-
#set_point ⇒ Object
Returns the value of attribute set_point.
-
#water_temperature ⇒ Object
readonly
Returns the value of attribute water_temperature.
Instance Method Summary collapse
Methods inherited from Component
Constructor Details
This class inherits a constructor from Aurora::Component
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
7 8 9 |
# File 'lib/aurora/dhw.rb', line 7 def enabled @enabled end |
#running ⇒ Object (readonly) Also known as: running?
Returns the value of attribute running.
7 8 9 |
# File 'lib/aurora/dhw.rb', line 7 def running @running end |
#set_point ⇒ Object
Returns the value of attribute set_point.
7 8 9 |
# File 'lib/aurora/dhw.rb', line 7 def set_point @set_point end |
#water_temperature ⇒ Object (readonly)
Returns the value of attribute water_temperature.
7 8 9 |
# File 'lib/aurora/dhw.rb', line 7 def water_temperature @water_temperature end |
Instance Method Details
#refresh(registers) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/aurora/dhw.rb', line 14 def refresh(registers) @enabled = registers[400] @running = registers[1104].include?(:dhw) @set_point = registers[401] @water_temperature = registers[1114] end |
#registers_to_read ⇒ Object
10 11 12 |
# File 'lib/aurora/dhw.rb', line 10 def registers_to_read [400..401, 1114] end |