waterfurnace_aurora 1.4.7 → 1.4.8
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 +9 -2
- data/lib/aurora/abc_client.rb +5 -3
- 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: 481ce3017f055baa863a30711f42f43d7d0e800293c46847a015040f66dd1980
|
4
|
+
data.tar.gz: f5f12fe2963551372dc6c8f6355cd6e84344bbba3662d15be4fee64b5d8be263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb41acba03b2c7dbca36c58ad8c07f022bafa5c13cb4f396a786fca9725125346c0642d5f502f1c959823d81be579135c4ed51d00c0050e4600bcabc78f6188f
|
7
|
+
data.tar.gz: d4a6f3d9146b90069ea0488e131f2dc68413200a31866e0c096a448a84510cecd3f4e8643fba9cf609a0b0d0eecfe9d128801eb52ca77a583e45a993b99fad15
|
data/exe/aurora_mqtt_bridge
CHANGED
@@ -236,13 +236,13 @@ class MQTTBridge
|
|
236
236
|
state_class: :measurement } })
|
237
237
|
end
|
238
238
|
|
239
|
-
node.property("line-voltage",
|
239
|
+
node.property("line-voltage-setting",
|
240
240
|
"Line Voltage Setting",
|
241
241
|
:integer,
|
242
242
|
@abc.line_voltage,
|
243
243
|
format: 90..635,
|
244
244
|
unit: "V") do |value|
|
245
|
-
@mutex.synchronize { @abc.
|
245
|
+
@mutex.synchronize { @abc.line_voltage_setting = value }
|
246
246
|
end
|
247
247
|
if (-999..999).cover?(@abc.air_coil_temperature)
|
248
248
|
node.property("air-coil-temperature",
|
@@ -255,6 +255,13 @@ class MQTTBridge
|
|
255
255
|
entity_category: :diagnostic } })
|
256
256
|
end
|
257
257
|
if @abc.energy_monitoring?
|
258
|
+
node.property("line-voltage",
|
259
|
+
"Line Voltage",
|
260
|
+
:integer,
|
261
|
+
@abc.line_voltage,
|
262
|
+
format: 90..635,
|
263
|
+
unit: "V")
|
264
|
+
|
258
265
|
node.property("watts",
|
259
266
|
"Total Power Usage",
|
260
267
|
:integer,
|
data/lib/aurora/abc_client.rb
CHANGED
@@ -141,6 +141,7 @@ module Aurora
|
|
141
141
|
:outdoor_temperature,
|
142
142
|
:air_coil_temperature,
|
143
143
|
:line_voltage,
|
144
|
+
:line_voltage_setting,
|
144
145
|
:watts
|
145
146
|
|
146
147
|
alias_method :emergency_shutdown?, :emergency_shutdown
|
@@ -201,7 +202,7 @@ module Aurora
|
|
201
202
|
@registers_to_read << 1104 if axb?
|
202
203
|
@registers_to_read.push(741, 31_003) if awl_communicating?
|
203
204
|
@registers_to_read << (1110..1111) if performance_monitoring?
|
204
|
-
@registers_to_read
|
205
|
+
@registers_to_read.push(16, 1150..1153) if energy_monitoring?
|
205
206
|
@registers_to_read << 900 if awl_axb?
|
206
207
|
zones.each do |z|
|
207
208
|
@registers_to_read.concat(z.registers_to_read)
|
@@ -243,7 +244,8 @@ module Aurora
|
|
243
244
|
@high_pressure_switch = registers[31][:hps]
|
244
245
|
@emergency_shutdown = !!registers[31][:emergency_shutdown]
|
245
246
|
@load_shed = !!registers[31][:load_shed]
|
246
|
-
@line_voltage = registers[
|
247
|
+
@line_voltage = registers[16] if energy_monitoring?
|
248
|
+
@line_voltage_setting = registers[112]
|
247
249
|
@watts = registers[1153]
|
248
250
|
|
249
251
|
@current_mode = if outputs.include?(:lockout)
|
@@ -285,7 +287,7 @@ module Aurora
|
|
285
287
|
@modbus_slave.holding_registers[419] = (value * 10).to_i
|
286
288
|
end
|
287
289
|
|
288
|
-
def
|
290
|
+
def line_voltage_setting=(value)
|
289
291
|
raise ArgumentError unless (90..635).cover?(value)
|
290
292
|
|
291
293
|
@modbus_slave.holding_registers[112] = value
|
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.
|
4
|
+
version: 1.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ccutrer-serialport
|