Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.powerwall Namespace Reference

Namespaces

 binary_sensor
 
 config_flow
 
 const
 
 entity
 
 models
 
 sensor
 
 switch
 

Classes

class  PowerwallDataManager
 

Functions

PowerwallBaseInfo _call_base_info (Powerwall power_wall, str host)
 
PowerwallData _fetch_powerwall_data (Powerwall power_wall)
 
PowerwallBaseInfo _login_and_fetch_base_info (Powerwall power_wall, str host, str|None password)
 
bool async_last_update_was_successful (HomeAssistant hass, PowerwallConfigEntry entry)
 
None async_migrate_entity_unique_ids (HomeAssistant hass, PowerwallConfigEntry entry, PowerwallBaseInfo base_info)
 
bool async_setup_entry (HomeAssistant hass, PowerwallConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 
float|None get_backup_reserve_percentage (Powerwall power_wall)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
tuple API_CHANGED_ERROR_BODY
 
string API_CHANGED_TITLE = "Unknown powerwall software version"
 
list PLATFORMS = [Platform.BINARY_SENSOR, Platform.SENSOR, Platform.SWITCH]
 

Detailed Description

The Tesla Powerwall integration.

Function Documentation

◆ _call_base_info()

PowerwallBaseInfo homeassistant.components.powerwall._call_base_info ( Powerwall  power_wall,
str  host 
)
private
Return PowerwallBaseInfo for the device.

Definition at line 224 of file __init__.py.

◆ _fetch_powerwall_data()

PowerwallData homeassistant.components.powerwall._fetch_powerwall_data ( Powerwall  power_wall)
private
Process and update powerwall data.

Definition at line 257 of file __init__.py.

◆ _login_and_fetch_base_info()

PowerwallBaseInfo homeassistant.components.powerwall._login_and_fetch_base_info ( Powerwall  power_wall,
str  host,
str | None   password 
)
private
Login to the powerwall and fetch the base info.

Definition at line 215 of file __init__.py.

◆ async_last_update_was_successful()

bool homeassistant.components.powerwall.async_last_update_was_successful ( HomeAssistant  hass,
PowerwallConfigEntry   entry 
)
Return True if the last update was successful.

Definition at line 282 of file __init__.py.

◆ async_migrate_entity_unique_ids()

None homeassistant.components.powerwall.async_migrate_entity_unique_ids ( HomeAssistant  hass,
PowerwallConfigEntry  entry,
PowerwallBaseInfo   base_info 
)
Migrate old entity unique ids to use gateway_din.

Definition at line 191 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.powerwall.async_setup_entry ( HomeAssistant  hass,
PowerwallConfigEntry  entry 
)
Set up Tesla Powerwall from a config entry.

Definition at line 120 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.powerwall.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload a config entry.

Definition at line 294 of file __init__.py.

◆ get_backup_reserve_percentage()

float | None homeassistant.components.powerwall.get_backup_reserve_percentage ( Powerwall  power_wall)
Return the backup reserve percentage.

Definition at line 249 of file __init__.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.powerwall._LOGGER = logging.getLogger(__name__)
private

Definition at line 38 of file __init__.py.

◆ API_CHANGED_ERROR_BODY

tuple homeassistant.components.powerwall.API_CHANGED_ERROR_BODY
Initial value:
1 = (
2  "It seems like your powerwall uses an unsupported version. "
3  "Please update the software of your powerwall or if it is "
4  "already the newest consider reporting this issue.\nSee logs for more information"
5 )

Definition at line 40 of file __init__.py.

◆ API_CHANGED_TITLE

string homeassistant.components.powerwall.API_CHANGED_TITLE = "Unknown powerwall software version"

Definition at line 45 of file __init__.py.

◆ PLATFORMS

list homeassistant.components.powerwall.PLATFORMS = [Platform.BINARY_SENSOR, Platform.SENSOR, Platform.SWITCH]

Definition at line 36 of file __init__.py.