1 """Constants for Plugwise component."""
3 from __future__
import annotations
5 from datetime
import timedelta
7 from typing
import Final, Literal
11 DOMAIN: Final =
"plugwise"
13 LOGGER = logging.getLogger(__package__)
16 FLOW_SMILE: Final =
"smile (Adam/Anna/P1)"
17 FLOW_STRETCH: Final =
"stretch (Stretch)"
18 FLOW_TYPE: Final =
"flow_type"
19 GATEWAY: Final =
"gateway"
20 GATEWAY_ID: Final =
"gateway_id"
21 LOCATION: Final =
"location"
22 PW_TYPE: Final =
"plugwise_type"
23 REBOOT: Final =
"reboot"
24 SMILE: Final =
"smile"
25 STRETCH: Final =
"stretch"
26 STRETCH_USERNAME: Final =
"stretch"
28 PLATFORMS: Final[list[str]] = [
29 Platform.BINARY_SENSOR,
37 ZEROCONF_MAP: Final[dict[str, str]] = {
39 "smile_thermo":
"Smile Anna",
40 "smile_open_therm":
"Adam",
44 type NumberType = Literal[
45 "maximum_boiler_temperature",
46 "max_dhw_temperature",
50 type SelectType = Literal[
52 "select_gateway_mode",
53 "select_regulation_mode",
56 type SelectOptionsType = Literal[
60 "available_schedules",
64 DEFAULT_MAX_TEMP: Final = 30
65 DEFAULT_MIN_TEMP: Final = 4
66 DEFAULT_PORT: Final = 80
67 DEFAULT_SCAN_INTERVAL: Final[dict[str, timedelta]] = {
72 DEFAULT_USERNAME: Final =
"smile"
74 MASTER_THERMOSTATS: Final[list[str]] = [
76 "thermostatic_radiator_valve",