2021-05-10 20:46:50 +00:00
|
|
|
"""Define constants for the Growatt Server component."""
|
2021-12-04 12:26:40 +00:00
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
2021-05-10 20:46:50 +00:00
|
|
|
CONF_PLANT_ID = "plant_id"
|
|
|
|
|
|
|
|
DEFAULT_PLANT_ID = "0"
|
|
|
|
|
|
|
|
DEFAULT_NAME = "Growatt"
|
|
|
|
|
2021-07-21 08:16:02 +00:00
|
|
|
SERVER_URLS = [
|
|
|
|
"https://server.growatt.com/",
|
2021-09-01 05:18:20 +00:00
|
|
|
"https://server-us.growatt.com/",
|
2021-07-21 08:16:02 +00:00
|
|
|
"http://server.smten.com/",
|
|
|
|
]
|
|
|
|
|
|
|
|
DEFAULT_URL = SERVER_URLS[0]
|
|
|
|
|
2021-05-10 20:46:50 +00:00
|
|
|
DOMAIN = "growatt_server"
|
|
|
|
|
2021-12-04 12:26:40 +00:00
|
|
|
PLATFORMS = [Platform.SENSOR]
|
2021-10-05 19:31:23 +00:00
|
|
|
|
|
|
|
LOGIN_INVALID_AUTH_CODE = "502"
|