class Simms::ElectricityDataBeacon
Public Instance Methods
accumulated_apparent_energy()
click to toggle source
In Wh - see accumulated_real_energy
for counter info
# File lib/simms/electricity_data_beacon.rb, line 26 def accumulated_apparent_energy @bytes.sint32(12) end
accumulated_real_energy()
click to toggle source
May be negative, as in the case of a solar power installation. Is a counter, ie to get the real energy (Wh) for a given interval, you need to diff against past values
# File lib/simms/electricity_data_beacon.rb, line 21 def accumulated_real_energy @bytes.sint32(8) end
current_peak()
click to toggle source
# File lib/simms/electricity_data_beacon.rb, line 65 def current_peak @bytes.uint16(44) end
current_rms()
click to toggle source
# File lib/simms/electricity_data_beacon.rb, line 44 def current_rms @bytes.float(28) end
error_state()
click to toggle source
TODO What does this mean? What are the valid values?
# File lib/simms/electricity_data_beacon.rb, line 15 def error_state @bytes.uint8(7) end
max_demand()
click to toggle source
# File lib/simms/electricity_data_beacon.rb, line 53 def max_demand @bytes.float(36) end
phase()
click to toggle source
Which phase this beacon represents
# File lib/simms/electricity_data_beacon.rb, line 10 def phase @bytes.uint8(6) end
power_factor()
click to toggle source
In VA
# File lib/simms/electricity_data_beacon.rb, line 49 def power_factor @bytes.float(32) end
present_apparent_power()
click to toggle source
In W
# File lib/simms/electricity_data_beacon.rb, line 36 def present_apparent_power @bytes.float(20) end
present_real_power()
click to toggle source
In W
# File lib/simms/electricity_data_beacon.rb, line 31 def present_real_power @bytes.float(16) end
volts_peak()
click to toggle source
# File lib/simms/electricity_data_beacon.rb, line 61 def volts_peak @bytes.uint16(42) end
volts_rms()
click to toggle source
# File lib/simms/electricity_data_beacon.rb, line 40 def volts_rms @bytes.float(24) end
volts_sag()
click to toggle source
# File lib/simms/electricity_data_beacon.rb, line 57 def volts_sag @bytes.uint16(40) end