34 lines
891 B
Python
34 lines
891 B
Python
"""Constants for the Tesla Powerwall integration."""
|
|
|
|
DOMAIN = "powerwall"
|
|
|
|
POWERWALL_OBJECT = "powerwall"
|
|
POWERWALL_COORDINATOR = "coordinator"
|
|
POWERWALL_API_CHANGED = "api_changed"
|
|
|
|
UPDATE_INTERVAL = 30
|
|
|
|
ATTR_FREQUENCY = "frequency"
|
|
ATTR_INSTANT_AVERAGE_VOLTAGE = "instant_average_voltage"
|
|
ATTR_INSTANT_TOTAL_CURRENT = "instant_total_current"
|
|
ATTR_IS_ACTIVE = "is_active"
|
|
|
|
STATUS_VERSION = "version"
|
|
|
|
POWERWALL_SITE_NAME = "site_name"
|
|
|
|
POWERWALL_API_METERS = "meters"
|
|
POWERWALL_API_CHARGE = "charge"
|
|
POWERWALL_API_GRID_SERVICES_ACTIVE = "grid_services_active"
|
|
POWERWALL_API_GRID_STATUS = "grid_status"
|
|
POWERWALL_API_SITEMASTER = "sitemaster"
|
|
POWERWALL_API_STATUS = "status"
|
|
POWERWALL_API_DEVICE_TYPE = "device_type"
|
|
POWERWALL_API_SITE_INFO = "site_info"
|
|
POWERWALL_API_SERIAL_NUMBERS = "serial_numbers"
|
|
|
|
POWERWALL_HTTP_SESSION = "http_session"
|
|
|
|
MODEL = "PowerWall 2"
|
|
MANUFACTURER = "Tesla"
|