Skip to content

const

eq3btsmart.const #

Constants for the eq3btsmart library.

EQ3_DEFAULT_AWAY_TEMP module-attribute #

EQ3_DEFAULT_AWAY_TEMP = 12.0

The initial comfort temperature in degrees Celsius.

EQ3_DEFAULT_COMFORT_TEMP module-attribute #

EQ3_DEFAULT_COMFORT_TEMP = 21.0

The initial eco temperature in degrees Celsius.

EQ3_DEFAULT_ECO_TEMP module-attribute #

EQ3_DEFAULT_ECO_TEMP = 17.0

The initial window open temperature in degrees Celsius.

EQ3_DEFAULT_WINDOW_OPEN_TEMP module-attribute #

EQ3_DEFAULT_WINDOW_OPEN_TEMP = 12.0

The initial window open duration in minutes.

EQ3_DEFAULT_WINDOW_OPEN_DURATION module-attribute #

EQ3_DEFAULT_WINDOW_OPEN_DURATION = 15

The initial offset temperature in degrees Celsius.

EQ3_DEFAULT_OFFSET_TEMP module-attribute #

EQ3_DEFAULT_OFFSET_TEMP = 0.0

The minimum temperature that is still displayed as a temperature in degrees Celsius.

EQ3_MIN_TEMP module-attribute #

EQ3_MIN_TEMP = 5.0

The maximum temperature that is still displayed as a temperature in degrees Celsius.

EQ3_MAX_TEMP module-attribute #

EQ3_MAX_TEMP = 29.5

The off temperature in degrees Celsius.

EQ3_OFF_TEMP module-attribute #

EQ3_OFF_TEMP = 4.5

The on temperature in degrees Celsius.

EQ3_ON_TEMP module-attribute #

EQ3_ON_TEMP = 30.0

The minimum offset temperature in degrees Celsius.

EQ3_MIN_OFFSET module-attribute #

EQ3_MIN_OFFSET = -3.5

The maximum offset temperature in degrees Celsius.

EQ3_MAX_OFFSET module-attribute #

EQ3_MAX_OFFSET = 3.5

The default connection timeout in seconds.

DEFAULT_CONNECTION_TIMEOUT module-attribute #

DEFAULT_CONNECTION_TIMEOUT = 10

The default command timeout in seconds.

DEFAULT_COMMAND_TIMEOUT module-attribute #

DEFAULT_COMMAND_TIMEOUT = 5

Eq3Event #

Bases: StrEnum

Event type enumeration.

Source code in eq3btsmart/const.py
72
73
74
75
76
77
78
79
class Eq3Event(StrEnum):
    """Event type enumeration."""

    CONNECTED = auto()
    DISCONNECTED = auto()
    DEVICE_DATA_RECEIVED = auto()
    STATUS_RECEIVED = auto()
    SCHEDULE_RECEIVED = auto()

CONNECTED class-attribute instance-attribute #

CONNECTED = auto()

DISCONNECTED class-attribute instance-attribute #

DISCONNECTED = auto()

DEVICE_DATA_RECEIVED class-attribute instance-attribute #

DEVICE_DATA_RECEIVED = auto()

STATUS_RECEIVED class-attribute instance-attribute #

STATUS_RECEIVED = auto()

SCHEDULE_RECEIVED class-attribute instance-attribute #

SCHEDULE_RECEIVED = auto()

Eq3OperationMode #

Bases: IntEnum

Operation mode enumeration.

Source code in eq3btsmart/const.py
82
83
84
85
86
87
88
89
class Eq3OperationMode(IntEnum):
    """Operation mode enumeration."""

    AUTO = 0x00
    MANUAL = 0x40
    OFF = 0x49
    ON = 0x7B
    AWAY = 0x80

AUTO class-attribute instance-attribute #

AUTO = 0

MANUAL class-attribute instance-attribute #

MANUAL = 64

OFF class-attribute instance-attribute #

OFF = 73

ON class-attribute instance-attribute #

ON = 123

AWAY class-attribute instance-attribute #

AWAY = 128

Eq3Preset #

Bases: IntEnum

Preset mode enumeration.

Source code in eq3btsmart/const.py
92
93
94
95
96
class Eq3Preset(IntEnum):
    """Preset mode enumeration."""

    COMFORT = 0
    ECO = 1

COMFORT class-attribute instance-attribute #

COMFORT = 0

ECO class-attribute instance-attribute #

ECO = 1

Eq3WeekDay #

Bases: EnumBase

Week day enumeration.

Source code in eq3btsmart/const.py
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
class Eq3WeekDay(EnumBase):
    """Week day enumeration."""

    SATURDAY = 0
    SUNDAY = 1
    MONDAY = 2
    TUESDAY = 3
    WEDNESDAY = 4
    THURSDAY = 5
    FRIDAY = 6

    @classmethod
    def from_index(cls, index: int) -> Self:
        """Return the enum value for the given index.

        Args:
            index: The index of the week day starting with 0 for Monday.

        Returns:
            The corresponding enum value.
        """
        adjusted_index = index + 2 if index < 5 else index - 5
        return cls(adjusted_index)

SATURDAY class-attribute instance-attribute #

SATURDAY = 0

SUNDAY class-attribute instance-attribute #

SUNDAY = 1

MONDAY class-attribute instance-attribute #

MONDAY = 2

TUESDAY class-attribute instance-attribute #

TUESDAY = 3

WEDNESDAY class-attribute instance-attribute #

WEDNESDAY = 4

THURSDAY class-attribute instance-attribute #

THURSDAY = 5

FRIDAY class-attribute instance-attribute #

FRIDAY = 6

from_index classmethod #

from_index(index)

Return the enum value for the given index.

Parameters:

Name Type Description Default
index int

The index of the week day starting with 0 for Monday.

required

Returns:

Type Description
Self

The corresponding enum value.

Source code in eq3btsmart/const.py
110
111
112
113
114
115
116
117
118
119
120
121
@classmethod
def from_index(cls, index: int) -> Self:
    """Return the enum value for the given index.

    Args:
        index: The index of the week day starting with 0 for Monday.

    Returns:
        The corresponding enum value.
    """
    adjusted_index = index + 2 if index < 5 else index - 5
    return cls(adjusted_index)