Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.growatt_server.const Namespace Reference

Variables

string CONF_PLANT_ID = "plant_id"
 
string DEFAULT_NAME = "Growatt"
 
string DEFAULT_PLANT_ID = "0"
 
list DEFAULT_URL = SERVER_URLS[0]
 
list DEPRECATED_URLS
 
string DOMAIN = "growatt_server"
 
string LOGIN_INVALID_AUTH_CODE = "502"
 
list PLATFORMS = [Platform.SENSOR]
 
list SERVER_URLS
 

Detailed Description

Define constants for the Growatt Server component.

Variable Documentation

◆ CONF_PLANT_ID

string homeassistant.components.growatt_server.const.CONF_PLANT_ID = "plant_id"

Definition at line 5 of file const.py.

◆ DEFAULT_NAME

string homeassistant.components.growatt_server.const.DEFAULT_NAME = "Growatt"

Definition at line 9 of file const.py.

◆ DEFAULT_PLANT_ID

string homeassistant.components.growatt_server.const.DEFAULT_PLANT_ID = "0"

Definition at line 7 of file const.py.

◆ DEFAULT_URL

list homeassistant.components.growatt_server.const.DEFAULT_URL = SERVER_URLS[0]

Definition at line 25 of file const.py.

◆ DEPRECATED_URLS

list homeassistant.components.growatt_server.const.DEPRECATED_URLS
Initial value:
1 = [
2  "https://server.growatt.com/",
3  "https://server-api.growatt.com/",
4  "https://server-us.growatt.com/",
5 ]

Definition at line 19 of file const.py.

◆ DOMAIN

string homeassistant.components.growatt_server.const.DOMAIN = "growatt_server"

Definition at line 27 of file const.py.

◆ LOGIN_INVALID_AUTH_CODE

string homeassistant.components.growatt_server.const.LOGIN_INVALID_AUTH_CODE = "502"

Definition at line 31 of file const.py.

◆ PLATFORMS

list homeassistant.components.growatt_server.const.PLATFORMS = [Platform.SENSOR]

Definition at line 29 of file const.py.

◆ SERVER_URLS

list homeassistant.components.growatt_server.const.SERVER_URLS
Initial value:
1 = [
2  "https://openapi.growatt.com/", # Other regional server
3  "https://openapi-cn.growatt.com/", # Chinese server
4  "https://openapi-us.growatt.com/", # North American server
5  "https://openapi-au.growatt.com/", # Australia Server
6  "http://server.smten.com/", # smten server
7 ]

Definition at line 11 of file const.py.