33 lines
693 B
Python
33 lines
693 B
Python
|
"""Constants for ZWaveMe."""
|
||
|
from homeassistant.backports.enum import StrEnum
|
||
|
from homeassistant.const import Platform
|
||
|
|
||
|
# Base component constants
|
||
|
DOMAIN = "zwave_me"
|
||
|
|
||
|
|
||
|
class ZWaveMePlatform(StrEnum):
|
||
|
"""Included ZWaveMe platforms."""
|
||
|
|
||
|
BINARY_SENSOR = "sensorBinary"
|
||
|
BUTTON = "toggleButton"
|
||
|
CLIMATE = "thermostat"
|
||
|
LOCK = "doorlock"
|
||
|
NUMBER = "switchMultilevel"
|
||
|
SWITCH = "switchBinary"
|
||
|
SENSOR = "sensorMultilevel"
|
||
|
RGBW_LIGHT = "switchRGBW"
|
||
|
RGB_LIGHT = "switchRGB"
|
||
|
|
||
|
|
||
|
PLATFORMS = [
|
||
|
Platform.BINARY_SENSOR,
|
||
|
Platform.BUTTON,
|
||
|
Platform.CLIMATE,
|
||
|
Platform.LIGHT,
|
||
|
Platform.LOCK,
|
||
|
Platform.NUMBER,
|
||
|
Platform.SENSOR,
|
||
|
Platform.SWITCH,
|
||
|
]
|