forked from wlcrs/huawei_solar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.py
30 lines (23 loc) · 837 Bytes
/
const.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""Constants for the Huawei Solar integration."""
from datetime import timedelta
DOMAIN = "huawei_solar"
DEFAULT_PORT = 502
DEFAULT_SLAVE_ID = 0
DEFAULT_USERNAME = "installer"
DEFAULT_PASSWORD = "00000a"
CONF_SLAVE_IDS = "slave_ids"
CONF_ENABLE_PARAMETER_CONFIGURATION = "enable_parameter_configuration"
DATA_UPDATE_COORDINATORS = "update_coordinators"
UPDATE_INTERVAL = timedelta(seconds=30)
SERVICE_FORCIBLE_CHARGE = "forcible_charge"
SERVICE_FORCIBLE_DISCHARGE = "forcible_discharge"
SERVICE_FORCIBLE_CHARGE_SOC = "forcible_charge_soc"
SERVICE_FORCIBLE_DISCHARGE_SOC = "forcible_discharge_soc"
SERVICE_STOP_FORCIBLE_CHARGE = "stop_forcible_charge"
SERVICES = (
SERVICE_FORCIBLE_CHARGE,
SERVICE_FORCIBLE_DISCHARGE,
SERVICE_FORCIBLE_CHARGE_SOC,
SERVICE_FORCIBLE_DISCHARGE_SOC,
SERVICE_STOP_FORCIBLE_CHARGE,
)