Skip to content

Commit

Permalink
Add Netatmo enums (#1281)
Browse files Browse the repository at this point in the history
* Add netatmo protocol

* Add netatmo gateway

* Add new enums
  • Loading branch information
iMicknl committed Jun 29, 2024
1 parent 316f79c commit dd2e4dc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 21 deletions.
1 change: 1 addition & 0 deletions pyoverkiz/enums/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class GatewayType(IntEnum):
ELIOT = 77
COZYTOUCH_SAUTER = 83
WISER = 88
NETATMO = 92
TAHOMA_SWITCH = 98
SOMFY_CONNECTIVITY_KIT = 99
COZYTOUCH_V2 = 105
Expand Down
44 changes: 23 additions & 21 deletions pyoverkiz/enums/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,37 @@ class Protocol(StrEnum):
"""

UNKNOWN = "unknown"
IO = "io"
RTS = "rts"
RTD = "rtd"
RTDS = "rtds"
RAMSES = "ramses"
ENOCEAN = "enocean"
ZWAVE = "zwave"

AUGUST = "august"
CAMERA = "camera"
OVP = "ovp"
MODBUS = "modbus"
MODBUSLINK = "modbuslink"
ELIOT = "eliot"
ENOCEAN = "enocean"
HLRR_WIFI = "hlrrwifi"
HOMEKIT = "homekit"
HUE = "hue"
VERISURE = "verisure"
INTERNAL = "internal"
IO = "io"
JSW = "jsw"
OPENDOORS = "opendoors"
MODBUS = "modbus"
MODBUSLINK = "modbuslink"
MYFOX = "myfox"
NETATMO = "netatmo"
OGCP = "ogcp"
OGP = "ogp"
OPENDOORS = "opendoors"
OVP = "ovp"
PROFALUX_868 = "profalux868"
RAMSES = "ramses"
RTD = "rtd"
RTDS = "rtds"
RTN = "rtn"
RTS = "rts"
SOMFY_THERMOSTAT = "somfythermostat"
ZIGBEE = "zigbee"
UPNP_CONTROL = "upnpcontrol"
ELIOT = "eliot"
VERISURE = "verisure"
WISER = "wiser"
PROFALUX_868 = "profalux868"
OGP = "ogp"
OGCP = "ogcp"
HOMEKIT = "homekit"
AUGUST = "august"
HLRR_WIFI = "hlrrwifi"
RTN = "rtn"
ZIGBEE = "zigbee"
ZWAVE = "zwave"

@classmethod
def _missing_(cls, value): # type: ignore
Expand Down
6 changes: 6 additions & 0 deletions pyoverkiz/enums/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class UIClass(StrEnum):
AWNING = "Awning"
BALLAST = "Ballast"
CAMERA = "Camera"
CARBON_DIOXIDE_SENSOR = "CarbonDioxideSensor"
CAR_BUTTON_SENSOR = "CarButtonSensor"
CIRCUIT_BREAKER = "CircuitBreaker"
CONFIGURATION_COMPONENT = "ConfigurationComponent"
Expand Down Expand Up @@ -49,6 +50,7 @@ class UIClass(StrEnum):
LIGHT = "Light"
LIGHT_SENSOR = "LightSensor"
MUSIC_PLAYER = "MusicPlayer"
NOISE_SENSOR = "NoiseSensor"
NETWORK_COMPONENT = "NetworkComponent"
OCCUPANCY_SENSOR = "OccupancySensor"
ON_OFF = "OnOff"
Expand Down Expand Up @@ -261,6 +263,10 @@ class UIWidget(StrEnum):
MY_FOX_CAMERA = "MyFoxCamera"
MY_FOX_SECURITY_CAMERA = "MyFoxSecurityCamera"
NODE = "Node"
NETATMO_CONFIGURATION_COMPONENT = "NetatmoConfigurationComponent"
NETATMO_HOME = "NetatmoHome"
NETATMO_WEATHER_STATION_CONFIGURATION = "NetatmoWeatherStationConfiguration"
NOISE_SENSOR = "NoiseSensor"
OVPGENERIC = "OVPGeneric"
OCCUPANCY_SENSOR = "OccupancySensor"
ON_OFF_HEATING_SYSTEM = "OnOffHeatingSystem"
Expand Down

0 comments on commit dd2e4dc

Please sign in to comment.