2022-02-07 15:27:11 +00:00
|
|
|
"""Constants for ZWaveMe."""
|
2023-07-23 21:19:24 +00:00
|
|
|
from enum import StrEnum
|
|
|
|
|
2022-02-07 15:27:11 +00:00
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
|
|
|
# Base component constants
|
|
|
|
DOMAIN = "zwave_me"
|
|
|
|
|
|
|
|
|
|
|
|
class ZWaveMePlatform(StrEnum):
|
|
|
|
"""Included ZWaveMe platforms."""
|
|
|
|
|
|
|
|
BINARY_SENSOR = "sensorBinary"
|
2022-09-14 12:19:17 +00:00
|
|
|
BRIGHTNESS_LIGHT = "lightMultilevel"
|
2022-02-07 15:27:11 +00:00
|
|
|
BUTTON = "toggleButton"
|
|
|
|
CLIMATE = "thermostat"
|
2022-03-20 13:50:16 +00:00
|
|
|
COVER = "motor"
|
2022-04-19 11:06:31 +00:00
|
|
|
FAN = "fan"
|
2022-02-07 15:27:11 +00:00
|
|
|
LOCK = "doorlock"
|
|
|
|
NUMBER = "switchMultilevel"
|
|
|
|
SWITCH = "switchBinary"
|
|
|
|
SENSOR = "sensorMultilevel"
|
2022-03-09 08:09:29 +00:00
|
|
|
SIREN = "siren"
|
2022-02-07 15:27:11 +00:00
|
|
|
RGBW_LIGHT = "switchRGBW"
|
|
|
|
RGB_LIGHT = "switchRGB"
|
|
|
|
|
|
|
|
|
|
|
|
PLATFORMS = [
|
|
|
|
Platform.BINARY_SENSOR,
|
|
|
|
Platform.BUTTON,
|
|
|
|
Platform.CLIMATE,
|
2022-03-20 13:50:16 +00:00
|
|
|
Platform.COVER,
|
2022-04-19 11:06:31 +00:00
|
|
|
Platform.FAN,
|
2022-02-07 15:27:11 +00:00
|
|
|
Platform.LIGHT,
|
|
|
|
Platform.LOCK,
|
|
|
|
Platform.NUMBER,
|
|
|
|
Platform.SENSOR,
|
2022-03-09 08:09:29 +00:00
|
|
|
Platform.SIREN,
|
2022-02-07 15:27:11 +00:00
|
|
|
Platform.SWITCH,
|
|
|
|
]
|