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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3818cdd3c436ede6d451b02220702b2e27ab5c904deed2258b0329e3ddfc85c2
4
- data.tar.gz: 7770c14ff60b4bcc3f3614d57986233cb414b35bbae4857ff7726ca68c3c1796
3
+ metadata.gz: 481ce3017f055baa863a30711f42f43d7d0e800293c46847a015040f66dd1980
4
+ data.tar.gz: f5f12fe2963551372dc6c8f6355cd6e84344bbba3662d15be4fee64b5d8be263
5
5
  SHA512:
6
- metadata.gz: e1d2e8b8a571068f5f905b7bb16ccb53414df338b9bbaf3c39f162015bd3a6dd95ea6fa9067db7a8342e099c6e99ce1311477823348b97da989847b690a0f470
7
- data.tar.gz: 16d8ca6f18aae43bbd4d87b286b4a07da01be0e39a2c10d5e99857b46495ed3cc683692b9d8f553683606716225dbf763592f7812fe6deb80245cffd9dfbb920
6
+ metadata.gz: fb41acba03b2c7dbca36c58ad8c07f022bafa5c13cb4f396a786fca9725125346c0642d5f502f1c959823d81be579135c4ed51d00c0050e4600bcabc78f6188f
7
+ data.tar.gz: d4a6f3d9146b90069ea0488e131f2dc68413200a31866e0c096a448a84510cecd3f4e8643fba9cf609a0b0d0eecfe9d128801eb52ca77a583e45a993b99fad15
@@ -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.line_voltage = value }
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,
@@ -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 << (1150..1153) if energy_monitoring?
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[112]
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 line_voltage=(value)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aurora
4
- VERSION = "1.4.7"
4
+ VERSION = "1.4.8"
5
5
  end
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.7
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-08-12 00:00:00.000000000 Z
11
+ date: 2023-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ccutrer-serialport