Skip to content

Commit 8d38162

Browse files
committed
Add the 3phase related constants
1 parent 71aa796 commit 8d38162

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

plugwise/constants.py

Lines changed: 20 additions & 1 deletion
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 = "%"
@@ -445,6 +446,7 @@
445446
"electricity_consumed": UOM(POWER_WATT),
446447
"electricity_produced": UOM(POWER_WATT),
447448
"gas_consumed": UOM(VOLUME_CUBIC_METERS),
449+
"voltage": UOM(ELECTRIC_POTENTIAL_VOLT),
448450
}
449451
# Thermostat and Plug/Stretch related measurements
450452
# Excluded:
@@ -558,6 +560,12 @@
558560
"electricity_consumed_peak_interval",
559561
"electricity_consumed_peak_point",
560562
"electricity_consumed_point",
563+
"electricity_phase_one_consumed",
564+
"electricity_phase_two_consumed",
565+
"electricity_phase_three_consumed",
566+
"electricity_phase_one_produced",
567+
"electricity_phase_two_produced",
568+
"electricity_phase_three_produced",
561569
"electricity_produced",
562570
"electricity_produced_interval",
563571
"electricity_produced_off_peak_cumulative",
@@ -583,6 +591,9 @@
583591
"setpoint_low",
584592
"temperature_difference",
585593
"valve_position",
594+
"voltage_phase_one",
595+
"voltage_phase_two",
596+
"voltage_phase_three",
586597
"water_pressure",
587598
"water_temperature",
588599
)
@@ -662,7 +673,12 @@ class SmileSensors(TypedDict, total=False):
662673
electricity_consumed_peak_interval: int
663674
electricity_consumed_peak_point: int
664675
electricity_consumed_point: float
665-
electricity_produced: float
676+
electricity_phase_one_consumed: float
677+
electricity_phase_two_consumed: float
678+
electricity_phase_three_consumed: float
679+
electricity_phase_one_produced: float
680+
electricity_phase_two_produced: float
681+
electricity_phase_three_produced: float
666682
electricity_produced_interval: float
667683
electricity_produced_off_peak_cumulative: float
668684
electricity_produced_off_peak_interval: int
@@ -687,6 +703,9 @@ class SmileSensors(TypedDict, total=False):
687703
setpoint_high: float
688704
setpoint_low: float
689705
temperature_difference: float
706+
voltage_phase_one: float
707+
voltage_phase_two: float
708+
voltage_phase_three: float
690709
valve_position: float
691710
water_pressure: float
692711
water_temperature: float

0 commit comments

Comments
 (0)