Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Define constants for the Growatt Server component."""
2 
3 from homeassistant.const import Platform
4 
5 CONF_PLANT_ID = "plant_id"
6 
7 DEFAULT_PLANT_ID = "0"
8 
9 DEFAULT_NAME = "Growatt"
10 
11 SERVER_URLS = [
12  "https://openapi.growatt.com/", # Other regional server
13  "https://openapi-cn.growatt.com/", # Chinese server
14  "https://openapi-us.growatt.com/", # North American server
15  "https://openapi-au.growatt.com/", # Australia Server
16  "http://server.smten.com/", # smten server
17 ]
18 
19 DEPRECATED_URLS = [
20  "https://server.growatt.com/",
21  "https://server-api.growatt.com/",
22  "https://server-us.growatt.com/",
23 ]
24 
25 DEFAULT_URL = SERVER_URLS[0]
26 
27 DOMAIN = "growatt_server"
28 
29 PLATFORMS = [Platform.SENSOR]
30 
31 LOGIN_INVALID_AUTH_CODE = "502"