-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7924d4
commit 7dc0f3e
Showing
11 changed files
with
70 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="pybls21", | ||
version="3.0.1", | ||
version="3.0.2", | ||
author="Julius Vitkauskas", | ||
author_email="[email protected]", | ||
description="An api allowing control of AC state (temperature, on/off, speed) of an Blauberg S21 device locally over TCP", | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
112 changes: 56 additions & 56 deletions
112
pybls21/models.py → src/pybls21/models.py
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
from typing import List, NamedTuple, Optional | ||
|
||
from enum import Enum | ||
|
||
|
||
TEMP_CELSIUS: str = "°C" | ||
|
||
|
||
class ClimateEntityFeature(int, Enum): | ||
TARGET_TEMPERATURE = 1 | ||
FAN_MODE = 8 | ||
|
||
|
||
class HVACMode(str, Enum): | ||
OFF = "off" | ||
HEAT = "heat" | ||
COOL = "cool" | ||
AUTO = "auto" | ||
FAN_ONLY = "fan_only" | ||
|
||
|
||
class HVACAction(str, Enum): | ||
COOLING = "cooling" | ||
FAN = "fan" | ||
HEATING = "heating" | ||
IDLE = "idle" | ||
OFF = "off" | ||
|
||
|
||
class ClimateDevice(NamedTuple): | ||
available: bool | ||
name: str | ||
unique_id: str | ||
temperature_unit: str | ||
precision: float | ||
current_temperature: float | ||
target_temperature: float | ||
target_temperature_step: float | ||
max_temp: float | ||
min_temp: float | ||
current_humidity: Optional[float] | ||
hvac_mode: str | ||
hvac_action: str | ||
hvac_modes: List[str] | ||
fan_mode: Optional[int] | ||
fan_modes: Optional[List[int]] | ||
supported_features: int | ||
manufacturer: str | ||
model: Optional[str] | ||
sw_version: Optional[str] | ||
is_boosting: bool | ||
current_intake_temperature: float | ||
manual_fan_speed_percent: int | ||
max_fan_level: int | ||
filter_state: int | ||
alarm_state: int | ||
from typing import List, NamedTuple, Optional | ||
|
||
from enum import Enum | ||
|
||
|
||
TEMP_CELSIUS: str = "°C" | ||
|
||
|
||
class ClimateEntityFeature(int, Enum): | ||
TARGET_TEMPERATURE = 1 | ||
FAN_MODE = 8 | ||
|
||
|
||
class HVACMode(str, Enum): | ||
OFF = "off" | ||
HEAT = "heat" | ||
COOL = "cool" | ||
AUTO = "auto" | ||
FAN_ONLY = "fan_only" | ||
|
||
|
||
class HVACAction(str, Enum): | ||
COOLING = "cooling" | ||
FAN = "fan" | ||
HEATING = "heating" | ||
IDLE = "idle" | ||
OFF = "off" | ||
|
||
|
||
class ClimateDevice(NamedTuple): | ||
available: bool | ||
name: str | ||
unique_id: str | ||
temperature_unit: str | ||
precision: float | ||
current_temperature: float | ||
target_temperature: float | ||
target_temperature_step: float | ||
max_temp: float | ||
min_temp: float | ||
current_humidity: Optional[float] | ||
hvac_mode: str | ||
hvac_action: str | ||
hvac_modes: List[str] | ||
fan_mode: Optional[int] | ||
fan_modes: Optional[List[int]] | ||
supported_features: int | ||
manufacturer: str | ||
model: Optional[str] | ||
sw_version: Optional[str] | ||
is_boosting: bool | ||
current_intake_temperature: float | ||
manual_fan_speed_percent: int | ||
max_fan_level: int | ||
filter_state: int | ||
alarm_state: int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters