Skip to content

Commit 4e8726c

Browse files
authored
Add Sauter and Thermor servers (alias for Atlantic CozyTouch) (#1358)
* Add Sauter and Thermor aliases * Add new Atlantic servers * fix formatting
1 parent f930f3c commit 4e8726c

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

pyoverkiz/client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,11 @@ async def login(
208208
return True
209209

210210
# CozyTouch authentication using jwt
211-
if self.server == SUPPORTED_SERVERS[Server.ATLANTIC_COZYTOUCH]:
211+
if self.server in [
212+
SUPPORTED_SERVERS[Server.ATLANTIC_COZYTOUCH],
213+
SUPPORTED_SERVERS[Server.THERMOR_COZYTOUCH],
214+
SUPPORTED_SERVERS[Server.SAUTER_COZYTOUCH],
215+
]:
212216
jwt = await self.cozytouch_login()
213217
payload = {"jwt": jwt}
214218

pyoverkiz/const.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@
8080
manufacturer="Rexel",
8181
configuration_url="https://utilisateur.energeasyconnect.com/user/#/zone/equipements",
8282
),
83+
Server.SAUTER_COZYTOUCH: OverkizServer( # duplicate of Atlantic Cozytouch
84+
name="Sauter Cozytouch",
85+
endpoint="https://ha110-1.overkiz.com/enduser-mobile-web/enduserAPI/",
86+
manufacturer="Sauter",
87+
configuration_url=None,
88+
),
8389
Server.SIMU_LIVEIN2: OverkizServer( # alias of https://tahomalink.com
8490
name="SIMU (LiveIn2)",
8591
endpoint="https://ha101-1.overkiz.com/enduser-mobile-web/enduserAPI/",
@@ -104,6 +110,12 @@
104110
manufacturer="Somfy",
105111
configuration_url=None,
106112
),
113+
Server.THERMOR_COZYTOUCH: OverkizServer( # duplicate of Atlantic Cozytouch
114+
name="Thermor Cozytouch",
115+
endpoint="https://ha110-1.overkiz.com/enduser-mobile-web/enduserAPI/",
116+
manufacturer="Thermor",
117+
configuration_url=None,
118+
),
107119
Server.UBIWIZZ: OverkizServer(
108120
name="Ubiwizz",
109121
endpoint="https://ha129-1.overkiz.com/enduser-mobile-web/enduserAPI/",

pyoverkiz/enums/server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ class Server(StrEnum):
2626
HI_KUMO_OCEANIA = "hi_kumo_oceania"
2727
NEXITY = "nexity"
2828
REXEL = "rexel"
29+
SAUTER_COZYTOUCH = "sauter_cozytouch"
2930
SIMU_LIVEIN2 = "simu_livein2"
3031
SOMFY_DEVELOPER_MODE = "somfy_developer_mode"
3132
SOMFY_EUROPE = "somfy_europe"
3233
SOMFY_AMERICA = "somfy_america"
3334
SOMFY_OCEANIA = "somfy_oceania"
35+
THERMOR_COZYTOUCH = "thermor_cozytouch"
3436
UBIWIZZ = "ubiwizz"

0 commit comments

Comments
 (0)