Skip to content

Commit 4509df4

Browse files
committed
Merge pull request #464 from Yveaux/development
Added power metering variables
2 parents e0e78a6 + 27ece9c commit 4509df4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libraries/MySensors/core/MyMessage.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ typedef enum {
6666
S_RAIN, // Rain sensor, V_RAIN, V_RAINRATE
6767
S_UV, // Uv sensor, V_UV
6868
S_WEIGHT, // Personal scale sensor, V_WEIGHT, V_IMPEDANCE
69-
S_POWER, // Power meter, V_WATT, V_KWH
69+
S_POWER, // Power meter, V_WATT, V_KWH, V_VAR, V_VA, V_POWER_FACTOR
7070
S_HEATER, // Header device, V_HVAC_SETPOINT_HEAT, V_HVAC_FLOW_STATE, V_TEMP
7171
S_DISTANCE, // Distance sensor, V_DISTANCE
7272
S_LIGHT_LEVEL, // Light level sensor, V_LIGHT_LEVEL (uncalibrated in percentage), V_LEVEL (light level in lux)
@@ -161,7 +161,10 @@ typedef enum {
161161
V_IR_RECORD, // Record IR codes S_IR for playback
162162
V_PH, // S_WATER_QUALITY, water PH
163163
V_ORP, // S_WATER_QUALITY, water ORP : redox potential in mV
164-
V_EC,// S_WATER_QUALITY, water electric conductivity μS/cm (microSiemens/cm)
164+
V_EC, // S_WATER_QUALITY, water electric conductivity μS/cm (microSiemens/cm)
165+
V_VAR, // S_POWER, Reactive power: volt-ampere reactive (var)
166+
V_VA, // S_POWER, Apparent power: volt-ampere (VA)
167+
V_POWER_FACTOR // S_POWER, Ratio of real power to apparent power: floating point value in the range [-1,..,1]
165168
} mysensor_data;
166169

167170

0 commit comments

Comments
 (0)