Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.teslemetry.switch Namespace Reference

Classes

class  TeslemetryChargeFromGridSwitchEntity
 
class  TeslemetryChargeSwitchEntity
 
class  TeslemetryStormModeSwitchEntity
 
class  TeslemetrySwitchEntity
 
class  TeslemetrySwitchEntityDescription
 
class  TeslemetryVehicleSwitchEntity
 

Functions

None async_setup_entry (HomeAssistant hass, TeslemetryConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

int PARALLEL_UPDATES = 0
 
 VEHICLE_CHARGE_DESCRIPTION
 

Detailed Description

Switch platform for Teslemetry integration.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.teslemetry.switch.async_setup_entry ( HomeAssistant  hass,
TeslemetryConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the Teslemetry Switch platform from a config entry.

Definition at line 90 of file switch.py.

Variable Documentation

◆ PARALLEL_UPDATES

int homeassistant.components.teslemetry.switch.PARALLEL_UPDATES = 0

Definition at line 25 of file switch.py.

◆ VEHICLE_CHARGE_DESCRIPTION

homeassistant.components.teslemetry.switch.VEHICLE_CHARGE_DESCRIPTION
Initial value:
1 = TeslemetrySwitchEntityDescription(
2  key="charge_state_user_charge_enable_request",
3  on_func=lambda api: api.charge_start(),
4  off_func=lambda api: api.charge_stop(),
5  scopes=[Scope.VEHICLE_CMDS, Scope.VEHICLE_CHARGING_CMDS],
6 )

Definition at line 82 of file switch.py.