waterfurnace_aurora 0.3.12 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "aurora/component"
4
+
3
5
  module Aurora
4
- class Thermostat
6
+ class Thermostat < Component
5
7
  attr_reader :target_mode,
6
8
  :target_fan_mode,
7
9
  :ambient_temperature,
8
10
  :cooling_target_temperature,
9
11
  :heating_target_temperature
10
12
 
11
- def initialize(abc)
12
- @abc = abc
13
- end
14
-
15
13
  def refresh(registers)
16
14
  @ambient_temperature = registers[502]
17
15
  @heating_target_temperature = registers[746]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aurora
4
- VERSION = "0.3.12"
4
+ VERSION = "0.4.2"
5
5
  end
data/lib/aurora.rb CHANGED
@@ -3,8 +3,7 @@
3
3
  require "rmodbus"
4
4
 
5
5
  require "aurora/abc_client"
6
- require "aurora/iz2_zone"
7
- require "aurora/thermostat"
6
+ require "aurora/mock_abc"
8
7
  require "aurora/modbus/server"
9
8
  require "aurora/modbus/slave"
10
9
  require "aurora/registers"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waterfurnace_aurora
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-30 00:00:00.000000000 Z
11
+ date: 2021-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ccutrer-serialport
@@ -134,8 +134,11 @@ files:
134
134
  - exe/web_aid_tool
135
135
  - lib/aurora.rb
136
136
  - lib/aurora/abc_client.rb
137
+ - lib/aurora/blower.rb
138
+ - lib/aurora/component.rb
137
139
  - lib/aurora/core_ext/string.rb
138
140
  - lib/aurora/iz2_zone.rb
141
+ - lib/aurora/mock_abc.rb
139
142
  - lib/aurora/modbus/server.rb
140
143
  - lib/aurora/modbus/slave.rb
141
144
  - lib/aurora/registers.rb