zwave-js-server-python 0.31.3__py3-none-any.whl → 0.32.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,9 @@
2
2
  from enum import Enum, IntEnum
3
3
 
4
4
  # minimal server schema version we can handle
5
- MIN_SERVER_SCHEMA_VERSION = 10
5
+ MIN_SERVER_SCHEMA_VERSION = 11
6
6
  # max server schema version we can handle (and our code is compatible with)
7
- MAX_SERVER_SCHEMA_VERSION = 10
7
+ MAX_SERVER_SCHEMA_VERSION = 11
8
8
 
9
9
  VALUE_UNKNOWN = "unknown"
10
10
 
@@ -221,3 +221,19 @@ class SecurityClass(IntEnum):
221
221
  S2_AUTHENTICATED = 1
222
222
  S2_ACCESS_CONTROL = 2
223
223
  S0_LEGACY = 7
224
+
225
+
226
+ class QRCodeVersion(IntEnum):
227
+ """Enum for all known QR Code versions."""
228
+
229
+ # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/security/QR.ts#L43-L46
230
+ S2 = 0
231
+ SMART_START = 1
232
+
233
+
234
+ class Protocols(IntEnum):
235
+ """Enum for all known protocols."""
236
+
237
+ # https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/capabilities/Protocols.ts#L1-L4
238
+ ZWAVE = 0
239
+ ZWAVE_LONG_RANGE = 1
@@ -102,3 +102,28 @@ WATER_METER_TYPES: Set[MeterScaleType] = {
102
102
  WaterScale.US_GALLON,
103
103
  WaterScale.PULSE_COUNT,
104
104
  }
105
+
106
+ UNIT_KILOWATT_HOUR: Set[MeterScaleType] = {
107
+ ElectricScale.KILOWATT_HOUR,
108
+ HeatingScale.KILOWATT_HOUR,
109
+ CoolingScale.KILOWATT_HOUR,
110
+ }
111
+ UNIT_KILOVOLT_AMPERE_HOUR: Set[MeterScaleType] = {ElectricScale.KILOVOLT_AMPERE_HOUR}
112
+ UNIT_WATT: Set[MeterScaleType] = {ElectricScale.WATT}
113
+ UNIT_PULSE_COUNT: Set[MeterScaleType] = {
114
+ ElectricScale.PULSE_COUNT,
115
+ GasScale.PULSE_COUNT,
116
+ WaterScale.PULSE_COUNT,
117
+ }
118
+ UNIT_VOLT: Set[MeterScaleType] = {ElectricScale.VOLT}
119
+ UNIT_AMPERE: Set[MeterScaleType] = {ElectricScale.AMPERE}
120
+ UNIT_POWER_FACTOR: Set[MeterScaleType] = {ElectricScale.POWER_FACTOR}
121
+ UNIT_KILOVOLT_AMPERE_REACTIVE: Set[MeterScaleType] = {
122
+ ElectricScale.KILOVOLT_AMPERE_REACTIVE
123
+ }
124
+ UNIT_KILOVOLT_AMPERE_REACTIVE_HOUR: Set[MeterScaleType] = {
125
+ ElectricScale.KILOVOLT_AMPERE_REACTIVE_HOUR
126
+ }
127
+ UNIT_CUBIC_METER: Set[MeterScaleType] = {GasScale.CUBIC_METER, WaterScale.CUBIC_METER}
128
+ UNIT_CUBIC_FEET: Set[MeterScaleType] = {GasScale.CUBIC_FEET, WaterScale.CUBIC_FEET}
129
+ UNIT_US_GALLON: Set[MeterScaleType] = {WaterScale.US_GALLON}