waterfurnace_aurora 1.2.2 → 1.3.2
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 +23 -3
- data/lib/aurora/compressor.rb +18 -6
- data/lib/aurora/registers.rb +18 -10
- 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: e09071363ccbd485b256f1e79c2f363e03bc3b2d4d94af9149e50295d0f38d38
|
4
|
+
data.tar.gz: a092a806f450e77559de1899173b9b4cb63349a73220c17af6f67382daa30280
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e915833530cbf2d78f9e4de98dda9efbcdd0c4eca386716ef4d455e030a28d1847c38d1df379773bff24581cfd4dee765e86bf6d61d5eec706e20dd8bafd4f8
|
7
|
+
data.tar.gz: 7cb9b9b8ca0b3f17a88cf2dc66c937c52a396eb52cfd955fb311732a432e7b648c5514b12b14faafe99f76d19243e837b24f2dade224f6177c14a1c543e60e01
|
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 } })
|
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 } })
|
375
396
|
node.property("eev-open-percentage",
|
376
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 = []
|
@@ -59,11 +60,16 @@ module Aurora
|
|
59
60
|
result
|
60
61
|
end
|
61
62
|
|
62
|
-
def
|
63
|
+
def to_uint32(registers, idx)
|
63
64
|
Aurora&.logger&.warn("Missing register #{idx + 1}") unless registers[idx + 1]
|
64
65
|
(registers[idx] << 16) + registers[idx + 1]
|
65
66
|
end
|
66
67
|
|
68
|
+
def to_int32(registers, idx)
|
69
|
+
v = to_uint32(registers, idx)
|
70
|
+
v & 0x80000000 == 0x80000000 ? v - 0x100000000 : v
|
71
|
+
end
|
72
|
+
|
67
73
|
def to_string(registers, idx, length)
|
68
74
|
(idx...(idx + length)).map do |i|
|
69
75
|
next "\ufffd" unless registers[i] # missing data? add unicode invalid character
|
@@ -488,18 +494,20 @@ module Aurora
|
|
488
494
|
REGISTER_CONVERTERS = {
|
489
495
|
TO_HUNDREDTHS => [2, 3, 417, 418, 801, 804, 807, 813, 816, 817, 819, 820, 825, 828],
|
490
496
|
method(:dipswitch_settings) => [4, 33],
|
491
|
-
TO_TENTHS => [
|
492
|
-
1105, 1106, 1107, 1108,
|
493
|
-
3322, 3323,
|
497
|
+
TO_TENTHS => [401, 419, 745, 746, 901,
|
498
|
+
1105, 1106, 1107, 1108, 1115, 1116, 1117, 1119,
|
499
|
+
3322, 3323,
|
494
500
|
12_619, 12_620,
|
495
501
|
21_203, 21_204,
|
496
502
|
21_212, 21_213,
|
497
503
|
21_221, 21_222,
|
498
504
|
21_230, 22_131,
|
499
505
|
21_239, 21_240,
|
500
|
-
21_248, 21_249,
|
501
|
-
|
502
|
-
|
506
|
+
21_248, 21_249],
|
507
|
+
TO_SIGNED_TENTHS => [19, 20, 501, 502, 567, 740, 747, 900, 903,
|
508
|
+
1109, 1110, 1111, 1112, 1113, 1114, 1124, 1125, 1134, 1135, 1136,
|
509
|
+
3325, 3326, 3327, 3330, 3522, 3903, 3905, 3906,
|
510
|
+
31_003, 31_007, 31_010, 31_013, 31_016, 31_019, 31_022],
|
503
511
|
TO_LAST_LOCKOUT => [26],
|
504
512
|
->(v) { from_bitmask(v, SYSTEM_OUTPUTS) } => [27, 30],
|
505
513
|
->(v) { from_bitmask(v, SYSTEM_INPUTS) } => [28],
|
@@ -530,8 +538,8 @@ module Aurora
|
|
530
538
|
->(v) { COMPONENT_STATUS[v] } => [800, 803, 806, 812, 815, 818, 824, 827],
|
531
539
|
method(:axb_inputs) => [1103],
|
532
540
|
->(v) { from_bitmask(v, AXB_OUTPUTS) } => [1104],
|
533
|
-
|
534
|
-
method(:to_int32) => [
|
541
|
+
method(:to_uint32) => [1146, 1148, 1150, 1152, 1164, 3422, 3424],
|
542
|
+
method(:to_int32) => [1154, 1156],
|
535
543
|
method(:manual_operation) => [3002],
|
536
544
|
method(:thermostat_configuration2) => [12_006],
|
537
545
|
->(v) { HEATING_MODE[v] } => [12_606, 21_202, 21_211, 21_220, 21_229, 21_238, 21_247],
|
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.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: 2022-02-
|
11
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ccutrer-serialport
|