Skip to content

Commit 56f7fcc

Browse files
committed
Add p1-3ph constants
1 parent 7a1a4be commit 56f7fcc

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

plugwise/constants.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
ATTR_STATE_CLASS: Final = "state_class"
1616
ATTR_UNIT_OF_MEASUREMENT: Final = "unit_of_measurement"
1717
DEGREE: Final = "°"
18+
ELECTRIC_POTENTIAL_VOLT: Final = "V"
1819
ENERGY_KILO_WATT_HOUR: Final = "kWh"
1920
ENERGY_WATT_HOUR: Final = "Wh"
2021
PERCENTAGE: Final = "%"
@@ -444,7 +445,16 @@
444445
P1_MEASUREMENTS: Final[dict[str, UOM]] = {
445446
"electricity_consumed": UOM(POWER_WATT),
446447
"electricity_produced": UOM(POWER_WATT),
448+
"electricity_phase_one_consumed": UOM(POWER_WATT),
449+
"electricity_phase_two_consumed": UOM(POWER_WATT),
450+
"electricity_phase_three_consumed": UOM(POWER_WATT),
451+
"electricity_phase_one_produced": UOM(POWER_WATT),
452+
"electricity_phase_two_produced": UOM(POWER_WATT),
453+
"electricity_phase_three_produced": UOM(POWER_WATT),
447454
"gas_consumed": UOM(VOLUME_CUBIC_METERS),
455+
"voltage_phase_one": UOM(ELECTRIC_POTENTIAL_VOLT),
456+
"voltage_phase_two": UOM(ELECTRIC_POTENTIAL_VOLT),
457+
"voltage_phase_three": UOM(ELECTRIC_POTENTIAL_VOLT),
448458
}
449459
# Thermostat and Plug/Stretch related measurements
450460
# Excluded:
@@ -559,6 +569,12 @@
559569
"electricity_consumed_peak_interval",
560570
"electricity_consumed_peak_point",
561571
"electricity_consumed_point",
572+
"electricity_phase_one_consumed",
573+
"electricity_phase_two_consumed",
574+
"electricity_phase_three_consumed",
575+
"electricity_phase_one_produced",
576+
"electricity_phase_two_produced",
577+
"electricity_phase_three_produced",
562578
"electricity_produced",
563579
"electricity_produced_interval",
564580
"electricity_produced_off_peak_cumulative",
@@ -585,6 +601,9 @@
585601
"setpoint_low",
586602
"temperature_difference",
587603
"valve_position",
604+
"voltage_phase_one",
605+
"voltage_phase_two",
606+
"voltage_phase_three",
588607
"water_pressure",
589608
"water_temperature",
590609
)
@@ -664,6 +683,12 @@ class SmileSensors(TypedDict, total=False):
664683
electricity_consumed_peak_interval: int
665684
electricity_consumed_peak_point: int
666685
electricity_consumed_point: float
686+
electricity_phase_one_consumed: float
687+
electricity_phase_two_consumed: float
688+
electricity_phase_three_consumed: float
689+
electricity_phase_one_produced: float
690+
electricity_phase_two_produced: float
691+
electricity_phase_three_produced: float
667692
electricity_produced: float
668693
electricity_produced_interval: float
669694
electricity_produced_off_peak_cumulative: float
@@ -690,6 +715,9 @@ class SmileSensors(TypedDict, total=False):
690715
setpoint_low: float
691716
temperature_difference: float
692717
valve_position: float
718+
voltage_phase_one: float
719+
voltage_phase_two: float
720+
voltage_phase_three: float
693721
water_pressure: float
694722
water_temperature: float
695723

0 commit comments

Comments
 (0)