Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for ZWaveMe."""
2 
3 from enum import StrEnum
4 
5 from homeassistant.const import Platform
6 
7 # Base component constants
8 DOMAIN = "zwave_me"
9 
10 
11 class ZWaveMePlatform(StrEnum):
12  """Included ZWaveMe platforms."""
13 
14  BINARY_SENSOR = "sensorBinary"
15  BRIGHTNESS_LIGHT = "lightMultilevel"
16  BUTTON = "toggleButton"
17  CLIMATE = "thermostat"
18  COVER = "motor"
19  FAN = "fan"
20  LOCK = "doorlock"
21  NUMBER = "switchMultilevel"
22  SWITCH = "switchBinary"
23  SENSOR = "sensorMultilevel"
24  SIREN = "siren"
25  RGBW_LIGHT = "switchRGBW"
26  RGB_LIGHT = "switchRGB"
27 
28 
29 PLATFORMS = [
30  Platform.BINARY_SENSOR,
31  Platform.BUTTON,
32  Platform.CLIMATE,
33  Platform.COVER,
34  Platform.FAN,
35  Platform.LIGHT,
36  Platform.LOCK,
37  Platform.NUMBER,
38  Platform.SENSOR,
39  Platform.SIREN,
40  Platform.SWITCH,
41 ]