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

Namespaces

 binary_sensor
 
 button
 
 const
 
 entity
 
 sensor
 
 switch
 

Classes

class  LeafDataStore
 

Functions

datetime|None _extract_start_date (CarwingsLatestBatteryStatusResponse battery_info)
 
bool setup (HomeAssistant hass, ConfigType config)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_VIN = "vin"
 
 CONFIG_SCHEMA
 
list PLATFORMS = [Platform.BINARY_SENSOR, Platform.BUTTON, Platform.SENSOR, Platform.SWITCH]
 
string SERVICE_START_CHARGE_LEAF = "start_charge"
 
string SERVICE_UPDATE_LEAF = "update"
 
 START_CHARGE_LEAF_SCHEMA = vol.Schema({vol.Required(ATTR_VIN): cv.string})
 
 UPDATE_LEAF_SCHEMA = vol.Schema({vol.Required(ATTR_VIN): cv.string})
 

Detailed Description

Support for the Nissan Leaf Carwings/Nissan Connect API.

Function Documentation

◆ _extract_start_date()

datetime | None homeassistant.components.nissan_leaf._extract_start_date ( CarwingsLatestBatteryStatusResponse  battery_info)
private
Extract the server date from the battery response.

Definition at line 200 of file __init__.py.

◆ setup()

bool homeassistant.components.nissan_leaf.setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up the Nissan Leaf integration.

Definition at line 99 of file __init__.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 54 of file __init__.py.

◆ ATTR_VIN

string homeassistant.components.nissan_leaf.ATTR_VIN = "vin"

Definition at line 93 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.nissan_leaf.CONFIG_SCHEMA

Definition at line 56 of file __init__.py.

◆ PLATFORMS

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

Definition at line 88 of file __init__.py.

◆ SERVICE_START_CHARGE_LEAF

string homeassistant.components.nissan_leaf.SERVICE_START_CHARGE_LEAF = "start_charge"

Definition at line 92 of file __init__.py.

◆ SERVICE_UPDATE_LEAF

string homeassistant.components.nissan_leaf.SERVICE_UPDATE_LEAF = "update"

Definition at line 91 of file __init__.py.

◆ START_CHARGE_LEAF_SCHEMA

homeassistant.components.nissan_leaf.START_CHARGE_LEAF_SCHEMA = vol.Schema({vol.Required(ATTR_VIN): cv.string})

Definition at line 96 of file __init__.py.

◆ UPDATE_LEAF_SCHEMA

homeassistant.components.nissan_leaf.UPDATE_LEAF_SCHEMA = vol.Schema({vol.Required(ATTR_VIN): cv.string})

Definition at line 95 of file __init__.py.