waterfurnace_aurora 1.2.1 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/aurora_mqtt_bridge +25 -5
- data/lib/aurora/compressor.rb +18 -6
- data/lib/aurora/registers.rb +10 -8
- data/lib/aurora/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da4fc2ec80153f77b6f1f0971346cc3bdab4cfa59937d6855a1fb4de0be798e0
|
4
|
+
data.tar.gz: a92c46be932d97012865a308f60f890146eab3db29ec9e2499dc88552dd74a29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d126de657ef1ae47513c8f9a0cfa6c94d4a335e4f4fc4fb467bd3bca9aa193957e6edd506d8fe2ef0d87ec26ba3b4d34dbfa921e9977af3d7182f6db9bdc1341
|
7
|
+
data.tar.gz: 9098c02eb4ce2ac480ebd70739ae6f96b5ca6c7114a040a9374e7edf614b7ffcdd15f28c2750603ff69482cc6f21eede51c58ed686f7a4e82723545ed7b332a7
|
data/exe/aurora_mqtt_bridge
CHANGED
@@ -282,6 +282,19 @@ class MQTTBridge
|
|
282
282
|
unit: "W",
|
283
283
|
hass: { sensor: { device_class: :power,
|
284
284
|
state_class: :measurement } })
|
285
|
+
node.property("heat-of-extraction",
|
286
|
+
"Heat of Extraction",
|
287
|
+
:integer,
|
288
|
+
@abc.compressor.heat_of_extraction,
|
289
|
+
unit: "Btuh",
|
290
|
+
hass: { sensor: { state_class: :measurement } })
|
291
|
+
node.property("heat-of-rejection",
|
292
|
+
"Heat of Rejection",
|
293
|
+
:integer,
|
294
|
+
@abc.compressor.heat_of_rejection,
|
295
|
+
unit: "Btuh",
|
296
|
+
hass: { sensor: { state_class: :measurement } })
|
297
|
+
|
285
298
|
end
|
286
299
|
|
287
300
|
next unless @abc.compressor.is_a?(Aurora::Compressor::VSDrive)
|
@@ -372,10 +385,18 @@ class MQTTBridge
|
|
372
385
|
hass: { sensor: { device_class: :temperature,
|
373
386
|
state_class: :measurement,
|
374
387
|
entity_category: :diagnostic } })
|
375
|
-
node.property("
|
376
|
-
"
|
388
|
+
node.property("subcool-temperature",
|
389
|
+
"SubCool Temperature",
|
390
|
+
:float,
|
391
|
+
@abc.compressor.subcool_temperature,
|
392
|
+
unit: "°F",
|
393
|
+
hass: { sensor: { device_class: :temperature,
|
394
|
+
state_class: :measurement,
|
395
|
+
entity_category: :diagnostic } })
|
396
|
+
node.property("eev-open-percentage",
|
397
|
+
"Electronic Expansion Valve Open Percentage",
|
377
398
|
:integer,
|
378
|
-
@abc.compressor.
|
399
|
+
@abc.compressor.eev_open_percentage,
|
379
400
|
unit: "%",
|
380
401
|
format: 0..100,
|
381
402
|
hass: { sensor: { state_class: :measurement,
|
@@ -437,8 +458,7 @@ class MQTTBridge
|
|
437
458
|
|
438
459
|
next unless @abc.blower.is_a?(Aurora::Blower::ECM)
|
439
460
|
|
440
|
-
presets = %w[blower-only aux-heat]
|
441
|
-
presets.concat %w[low-compressor high-compressor] unless @abc.iz2?
|
461
|
+
presets = %w[blower-only aux-heat low-compressor high-compressor]
|
442
462
|
presets.each do |setting|
|
443
463
|
field = "#{setting.tr("-", "_")}_speed"
|
444
464
|
node.property("#{setting}-speed",
|
data/lib/aurora/compressor.rb
CHANGED
@@ -5,7 +5,12 @@ require "aurora/component"
|
|
5
5
|
module Aurora
|
6
6
|
module Compressor
|
7
7
|
class GenericCompressor < Component
|
8
|
-
attr_reader :speed,
|
8
|
+
attr_reader :speed,
|
9
|
+
:watts,
|
10
|
+
:cooling_liquid_line_temperature,
|
11
|
+
:saturated_condensor_discharge_temperature,
|
12
|
+
:heat_of_extraction,
|
13
|
+
:heat_of_rejection
|
9
14
|
|
10
15
|
def initialize(abc, stages)
|
11
16
|
super(abc)
|
@@ -22,7 +27,7 @@ module Aurora
|
|
22
27
|
|
23
28
|
def registers_to_read
|
24
29
|
result = [19, 1134]
|
25
|
-
result
|
30
|
+
result.concat([1146..1147, 1154..1157]) if abc.energy_monitoring?
|
26
31
|
result
|
27
32
|
end
|
28
33
|
|
@@ -37,7 +42,12 @@ module Aurora
|
|
37
42
|
end
|
38
43
|
@cooling_liquid_line_temperature = registers[19]
|
39
44
|
@saturated_condensor_discharge_temperature = registers[1134]
|
40
|
-
|
45
|
+
|
46
|
+
return unless abc.energy_monitoring?
|
47
|
+
|
48
|
+
@watts = registers[1146]
|
49
|
+
@heat_of_extraction = registers[1154]
|
50
|
+
@heat_of_rejection = registers[1156]
|
41
51
|
end
|
42
52
|
end
|
43
53
|
|
@@ -54,7 +64,8 @@ module Aurora
|
|
54
64
|
:suction_temperature,
|
55
65
|
:saturated_evaporator_discharge_temperature,
|
56
66
|
:superheat_temperature,
|
57
|
-
:
|
67
|
+
:subcool_temperature,
|
68
|
+
:eev_open_percentage
|
58
69
|
|
59
70
|
def initialize(abc)
|
60
71
|
super(abc, 12)
|
@@ -65,7 +76,7 @@ module Aurora
|
|
65
76
|
end
|
66
77
|
|
67
78
|
def registers_to_read
|
68
|
-
result = super + [209, 3000..3001, 3322..3327, 3522, 3524, 3808, 3903..3906]
|
79
|
+
result = super + [209, 1135..1136, 3000..3001, 3322..3327, 3522, 3524, 3808, 3903..3906]
|
69
80
|
result << 564 if abc.iz2?
|
70
81
|
result
|
71
82
|
end
|
@@ -82,10 +93,11 @@ module Aurora
|
|
82
93
|
@drive_temperature = registers[3327]
|
83
94
|
@inverter_temperature = registers[3522]
|
84
95
|
@fan_speed = registers[3524]
|
85
|
-
@
|
96
|
+
@eev_open_percentage = registers[3808]
|
86
97
|
@suction_temperature = registers[3903]
|
87
98
|
@saturated_evaporator_discharge_temperature = registers[3905]
|
88
99
|
@superheat_temperature = registers[3906]
|
100
|
+
@subcool_temperature = registers[registers[30].include?(:rv) ? 1136 : 1135]
|
89
101
|
|
90
102
|
@iz2_desired_speed = registers[564] if abc.iz2?
|
91
103
|
end
|
data/lib/aurora/registers.rb
CHANGED
@@ -44,10 +44,11 @@ module Aurora
|
|
44
44
|
totals
|
45
45
|
end
|
46
46
|
|
47
|
+
NEGATABLE = ->(v) { v & 0x8000 == 0x8000 ? v - 0x10000 : v }
|
47
48
|
TO_HUNDREDTHS = ->(v) { v.to_f / 100 }
|
48
49
|
TO_TENTHS = ->(v) { v.to_f / 10 }
|
50
|
+
TO_SIGNED_TENTHS = ->(v) { NEGATABLE.call(v).to_f / 10 }
|
49
51
|
TO_LAST_LOCKOUT = ->(v) { v & 0x8000 == 0x8000 ? v & 0x7fff : nil }
|
50
|
-
NEGATABLE = ->(v) { v & 0x8000 == 0x8000 ? v - 0x10000 : v }
|
51
52
|
|
52
53
|
def from_bitmask(value, flags)
|
53
54
|
result = []
|
@@ -488,18 +489,20 @@ module Aurora
|
|
488
489
|
REGISTER_CONVERTERS = {
|
489
490
|
TO_HUNDREDTHS => [2, 3, 417, 418, 801, 804, 807, 813, 816, 817, 819, 820, 825, 828],
|
490
491
|
method(:dipswitch_settings) => [4, 33],
|
491
|
-
TO_TENTHS => [
|
492
|
-
1105, 1106, 1107, 1108,
|
493
|
-
3322, 3323,
|
492
|
+
TO_TENTHS => [401, 419, 745, 746, 901,
|
493
|
+
1105, 1106, 1107, 1108, 1115, 1116, 1117, 1119,
|
494
|
+
3322, 3323,
|
494
495
|
12_619, 12_620,
|
495
496
|
21_203, 21_204,
|
496
497
|
21_212, 21_213,
|
497
498
|
21_221, 21_222,
|
498
499
|
21_230, 22_131,
|
499
500
|
21_239, 21_240,
|
500
|
-
21_248, 21_249,
|
501
|
-
|
502
|
-
|
501
|
+
21_248, 21_249],
|
502
|
+
TO_SIGNED_TENTHS => [19, 20, 501, 502, 567, 740, 747, 900, 903,
|
503
|
+
1109, 1110, 1111, 1112, 1113, 1114, 1124, 1125, 1134, 1135, 1136,
|
504
|
+
3325, 3326, 3327, 3330, 3522, 3903, 3905, 3906,
|
505
|
+
31_003, 31_007, 31_010, 31_013, 31_016, 31_019, 31_022],
|
503
506
|
TO_LAST_LOCKOUT => [26],
|
504
507
|
->(v) { from_bitmask(v, SYSTEM_OUTPUTS) } => [27, 30],
|
505
508
|
->(v) { from_bitmask(v, SYSTEM_INPUTS) } => [28],
|
@@ -530,7 +533,6 @@ module Aurora
|
|
530
533
|
->(v) { COMPONENT_STATUS[v] } => [800, 803, 806, 812, 815, 818, 824, 827],
|
531
534
|
method(:axb_inputs) => [1103],
|
532
535
|
->(v) { from_bitmask(v, AXB_OUTPUTS) } => [1104],
|
533
|
-
->(v) { TO_TENTHS.call(NEGATABLE.call(v)) } => [1135, 1136],
|
534
536
|
method(:to_int32) => [1146, 1148, 1150, 1152, 1154, 1156, 1164, 3422, 3424],
|
535
537
|
method(:manual_operation) => [3002],
|
536
538
|
method(:thermostat_configuration2) => [12_006],
|
data/lib/aurora/version.rb
CHANGED
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: 1.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ccutrer-serialport
|