Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the ViCare integration."""
2 
3 import enum
4 
5 from homeassistant.const import Platform
6 
7 DOMAIN = "vicare"
8 
9 PLATFORMS = [
10  Platform.BINARY_SENSOR,
11  Platform.BUTTON,
12  Platform.CLIMATE,
13  Platform.FAN,
14  Platform.NUMBER,
15  Platform.SENSOR,
16  Platform.WATER_HEATER,
17 ]
18 
19 UNSUPPORTED_DEVICES = [
20  "Heatbox1",
21  "Heatbox2_SRC",
22  "E3_TCU41_x04",
23  "E3_FloorHeatingCircuitChannel",
24  "E3_FloorHeatingCircuitDistributorBox",
25  "E3_RoomControl_One_522",
26 ]
27 
28 DEVICE_LIST = "device_list"
29 VICARE_NAME = "ViCare"
30 
31 CONF_CIRCUIT = "circuit"
32 CONF_HEATING_TYPE = "heating_type"
33 
34 DEFAULT_CACHE_DURATION = 60
35 
36 VICARE_PERCENT = "percent"
37 VICARE_W = "watt"
38 VICARE_KW = "kilowatt"
39 VICARE_WH = "wattHour"
40 VICARE_KWH = "kilowattHour"
41 VICARE_CUBIC_METER = "cubicMeter"
42 
43 
44 class HeatingType(enum.Enum):
45  """Possible options for heating type."""
46 
47  auto = "auto"
48  gas = "gas"
49  oil = "oil"
50  pellets = "pellets"
51  heatpump = "heatpump"
52  fuelcell = "fuelcell"
53  hybrid = "hybrid"
54 
55 
56 DEFAULT_HEATING_TYPE = HeatingType.auto
57 
58 HEATING_TYPE_TO_CREATOR_METHOD = {
59  HeatingType.auto: "asAutoDetectDevice",
60  HeatingType.gas: "asGazBoiler",
61  HeatingType.fuelcell: "asFuelCell",
62  HeatingType.heatpump: "asHeatPump",
63  HeatingType.oil: "asOilBoiler",
64  HeatingType.pellets: "asPelletsBoiler",
65  HeatingType.hybrid: "asHybridDevice",
66 }