|
1 | 1 | from __future__ import annotations
|
2 | 2 |
|
| 3 | +from pyoverkiz.servers.atlantic_cozytouch import AtlanticCozytouch |
| 4 | +from pyoverkiz.servers.default import DefaultServer |
| 5 | +from pyoverkiz.servers.nexity import NexityServer |
3 | 6 | from pyoverkiz.servers.overkiz_server import OverkizServer
|
| 7 | +from pyoverkiz.servers.somfy import SomfyServer |
4 | 8 |
|
5 | 9 | SUPPORTED_SERVERS: dict[str, OverkizServer] = {
|
6 |
| - "atlantic_cozytouch": OverkizServer( |
| 10 | + "atlantic_cozytouch": AtlanticCozytouch( |
7 | 11 | name="Atlantic Cozytouch",
|
8 | 12 | endpoint="https://ha110-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
9 | 13 | manufacturer="Atlantic",
|
10 | 14 | configuration_url=None,
|
11 | 15 | ),
|
12 |
| - "brandt": OverkizServer( |
| 16 | + "brandt": DefaultServer( |
13 | 17 | name="Brandt Smart Control",
|
14 | 18 | endpoint="https://ha3-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
15 | 19 | manufacturer="Brandt",
|
16 | 20 | configuration_url=None,
|
17 | 21 | ),
|
18 |
| - "flexom": OverkizServer( |
| 22 | + "flexom": DefaultServer( |
19 | 23 | name="Flexom",
|
20 | 24 | endpoint="https://ha108-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
21 | 25 | manufacturer="Bouygues",
|
22 | 26 | configuration_url=None,
|
23 | 27 | ),
|
24 |
| - "hexaom_hexaconnect": OverkizServer( |
| 28 | + "hexaom_hexaconnect": DefaultServer( |
25 | 29 | name="Hexaom HexaConnect",
|
26 | 30 | endpoint="https://ha5-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
27 | 31 | manufacturer="Hexaom",
|
28 | 32 | configuration_url=None,
|
29 | 33 | ),
|
30 |
| - "hi_kumo_asia": OverkizServer( |
| 34 | + "hi_kumo_asia": DefaultServer( |
31 | 35 | name="Hitachi Hi Kumo (Asia)",
|
32 | 36 | endpoint="https://ha203-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
33 | 37 | manufacturer="Hitachi",
|
34 | 38 | configuration_url=None,
|
35 | 39 | ),
|
36 |
| - "hi_kumo_europe": OverkizServer( |
| 40 | + "hi_kumo_europe": DefaultServer( |
37 | 41 | name="Hitachi Hi Kumo (Europe)",
|
38 | 42 | endpoint="https://ha117-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
39 | 43 | manufacturer="Hitachi",
|
40 | 44 | configuration_url=None,
|
41 | 45 | ),
|
42 |
| - "hi_kumo_oceania": OverkizServer( |
| 46 | + "hi_kumo_oceania": DefaultServer( |
43 | 47 | name="Hitachi Hi Kumo (Oceania)",
|
44 | 48 | endpoint="https://ha203-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
45 | 49 | manufacturer="Hitachi",
|
46 | 50 | configuration_url=None,
|
47 | 51 | ),
|
48 |
| - "nexity": OverkizServer( |
| 52 | + "nexity": NexityServer( |
49 | 53 | name="Nexity Eugénie",
|
50 | 54 | endpoint="https://ha106-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
51 | 55 | manufacturer="Nexity",
|
52 | 56 | configuration_url=None,
|
53 | 57 | ),
|
54 |
| - "rexel": OverkizServer( |
| 58 | + "rexel": DefaultServer( |
55 | 59 | name="Rexel Energeasy Connect",
|
56 | 60 | endpoint="https://ha112-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
57 | 61 | manufacturer="Rexel",
|
58 | 62 | configuration_url="https://utilisateur.energeasyconnect.com/user/#/zone/equipements",
|
59 | 63 | ),
|
60 |
| - "simu_livein2": OverkizServer( # alias of https://tahomalink.com |
| 64 | + "simu_livein2": DefaultServer( # alias of https://tahomalink.com |
61 | 65 | name="SIMU (LiveIn2)",
|
62 | 66 | endpoint="https://ha101-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
63 | 67 | manufacturer="Somfy",
|
64 | 68 | configuration_url=None,
|
65 | 69 | ),
|
66 |
| - "somfy_europe": OverkizServer( # alias of https://tahomalink.com |
| 70 | + "somfy_europe": SomfyServer( # alias of https://tahomalink.com |
67 | 71 | name="Somfy (Europe)",
|
68 | 72 | endpoint="https://ha101-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
69 | 73 | manufacturer="Somfy",
|
70 | 74 | configuration_url="https://www.tahomalink.com",
|
71 | 75 | ),
|
72 |
| - "somfy_america": OverkizServer( |
| 76 | + "somfy_america": DefaultServer( |
73 | 77 | name="Somfy (North America)",
|
74 | 78 | endpoint="https://ha401-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
75 | 79 | manufacturer="Somfy",
|
76 | 80 | configuration_url=None,
|
77 | 81 | ),
|
78 |
| - "somfy_oceania": OverkizServer( |
| 82 | + "somfy_oceania": DefaultServer( |
79 | 83 | name="Somfy (Oceania)",
|
80 | 84 | endpoint="https://ha201-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
81 | 85 | manufacturer="Somfy",
|
82 | 86 | configuration_url=None,
|
83 | 87 | ),
|
84 |
| - "ubiwizz": OverkizServer( |
| 88 | + "ubiwizz": DefaultServer( |
85 | 89 | name="Ubiwizz",
|
86 | 90 | endpoint="https://ha129-1.overkiz.com/enduser-mobile-web/enduserAPI/",
|
87 | 91 | manufacturer="Decelect",
|
|
0 commit comments