plugwise 1.5.1__tar.gz → 1.5.1a3__tar.gz
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.
- {plugwise-1.5.1 → plugwise-1.5.1a3}/PKG-INFO +1 -1
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise/constants.py +25 -25
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise/util.py +3 -1
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise.egg-info/PKG-INFO +1 -1
- {plugwise-1.5.1 → plugwise-1.5.1a3}/pyproject.toml +1 -1
- {plugwise-1.5.1 → plugwise-1.5.1a3}/LICENSE +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/README.md +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise/__init__.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise/common.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise/data.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise/exceptions.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise/helper.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise/legacy/data.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise/legacy/helper.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise/legacy/smile.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise/py.typed +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise/smile.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise.egg-info/SOURCES.txt +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise.egg-info/dependency_links.txt +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise.egg-info/requires.txt +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/plugwise.egg-info/top_level.txt +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/setup.cfg +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/setup.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/tests/test_adam.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/tests/test_anna.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/tests/test_generic.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/tests/test_init.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/tests/test_legacy_anna.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/tests/test_legacy_generic.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/tests/test_legacy_p1.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/tests/test_legacy_stretch.py +0 -0
- {plugwise-1.5.1 → plugwise-1.5.1a3}/tests/test_p1.py +0 -0
@@ -123,7 +123,7 @@ P1_LEGACY_MEASUREMENTS: Final[dict[str, UOM]] = {
|
|
123
123
|
# radiator_valve: 'uncorrected_temperature', 'temperature_offset'
|
124
124
|
|
125
125
|
DEVICE_MEASUREMENTS: Final[dict[str, DATA | UOM]] = {
|
126
|
-
"humidity": UOM(
|
126
|
+
"humidity": UOM(PERCENTAGE), # Specific for a Jip
|
127
127
|
"illuminance": UOM(UNIT_LUMEN), # Specific for an Anna
|
128
128
|
"temperature": UOM(TEMP_CELSIUS), # HA Core thermostat current_temperature
|
129
129
|
"thermostat": DATA("setpoint", TEMP_CELSIUS), # HA Core thermostat setpoint
|
@@ -425,44 +425,44 @@ class SmileBinarySensors(TypedDict, total=False):
|
|
425
425
|
class SmileSensors(TypedDict, total=False):
|
426
426
|
"""Smile Sensors class."""
|
427
427
|
|
428
|
-
battery:
|
428
|
+
battery: float
|
429
429
|
cooling_activation_outdoor_temperature: float
|
430
430
|
cooling_deactivation_threshold: float
|
431
431
|
dhw_temperature: float
|
432
432
|
domestic_hot_water_setpoint: float
|
433
433
|
temperature: float
|
434
|
-
electricity_consumed:
|
435
|
-
electricity_consumed_interval:
|
434
|
+
electricity_consumed: int
|
435
|
+
electricity_consumed_interval:int
|
436
436
|
electricity_consumed_off_peak_cumulative: float
|
437
|
-
electricity_consumed_off_peak_interval:
|
438
|
-
electricity_consumed_off_peak_point:
|
437
|
+
electricity_consumed_off_peak_interval: int
|
438
|
+
electricity_consumed_off_peak_point: int
|
439
439
|
electricity_consumed_peak_cumulative: float
|
440
|
-
electricity_consumed_peak_interval:
|
441
|
-
electricity_consumed_peak_point:
|
442
|
-
electricity_consumed_point:
|
443
|
-
electricity_phase_one_consumed:
|
444
|
-
electricity_phase_two_consumed:
|
445
|
-
electricity_phase_three_consumed:
|
446
|
-
electricity_phase_one_produced:
|
447
|
-
electricity_phase_two_produced:
|
448
|
-
electricity_phase_three_produced:
|
449
|
-
electricity_produced:
|
450
|
-
electricity_produced_interval:
|
440
|
+
electricity_consumed_peak_interval: int
|
441
|
+
electricity_consumed_peak_point: int
|
442
|
+
electricity_consumed_point: int
|
443
|
+
electricity_phase_one_consumed: int
|
444
|
+
electricity_phase_two_consumed: int
|
445
|
+
electricity_phase_three_consumed: int
|
446
|
+
electricity_phase_one_produced: int
|
447
|
+
electricity_phase_two_produced: int
|
448
|
+
electricity_phase_three_produced: int
|
449
|
+
electricity_produced: int
|
450
|
+
electricity_produced_interval: int
|
451
451
|
electricity_produced_off_peak_cumulative: float
|
452
|
-
electricity_produced_off_peak_interval:
|
453
|
-
electricity_produced_off_peak_point:
|
452
|
+
electricity_produced_off_peak_interval: int
|
453
|
+
electricity_produced_off_peak_point: int
|
454
454
|
electricity_produced_peak_cumulative: float
|
455
|
-
electricity_produced_peak_interval:
|
456
|
-
electricity_produced_peak_point:
|
457
|
-
electricity_produced_point:
|
455
|
+
electricity_produced_peak_interval: int
|
456
|
+
electricity_produced_peak_point: int
|
457
|
+
electricity_produced_point: int
|
458
458
|
gas_consumed_cumulative: float
|
459
459
|
gas_consumed_interval: float
|
460
460
|
humidity: float
|
461
461
|
illuminance: float
|
462
462
|
intended_boiler_temperature: float
|
463
|
-
modulation_level:
|
463
|
+
modulation_level: float
|
464
464
|
net_electricity_cumulative: float
|
465
|
-
net_electricity_point:
|
465
|
+
net_electricity_point: int
|
466
466
|
outdoor_air_temperature: float
|
467
467
|
outdoor_temperature: float
|
468
468
|
return_temperature: float
|
@@ -470,7 +470,7 @@ class SmileSensors(TypedDict, total=False):
|
|
470
470
|
setpoint_high: float
|
471
471
|
setpoint_low: float
|
472
472
|
temperature_difference: float
|
473
|
-
valve_position:
|
473
|
+
valve_position: float
|
474
474
|
voltage_phase_one: float
|
475
475
|
voltage_phase_two: float
|
476
476
|
voltage_phase_three: float
|
@@ -173,8 +173,10 @@ def format_measure(measure: str, unit: str) -> float | int:
|
|
173
173
|
result = float(f"{round(float_measure, 1):.1f}")
|
174
174
|
elif abs(float_measure) < 10:
|
175
175
|
result = float(f"{round(float_measure, 2):.2f}")
|
176
|
-
elif abs(float_measure) >= 10:
|
176
|
+
elif abs(float_measure) >= 10 and abs(float_measure) < 100:
|
177
177
|
result = float(f"{round(float_measure, 1):.1f}")
|
178
|
+
elif abs(float_measure) >= 100:
|
179
|
+
result = int(round(float_measure))
|
178
180
|
|
179
181
|
return result
|
180
182
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|