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}) | |
Support for the Nissan Leaf Carwings/Nissan Connect API.
|
private |
Extract the server date from the battery response.
Definition at line 200 of file __init__.py.
| bool homeassistant.components.nissan_leaf.setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Set up the Nissan Leaf integration.
Definition at line 99 of file __init__.py.
|
private |
Definition at line 54 of file __init__.py.
| string homeassistant.components.nissan_leaf.ATTR_VIN = "vin" |
Definition at line 93 of file __init__.py.
| homeassistant.components.nissan_leaf.CONFIG_SCHEMA |
Definition at line 56 of file __init__.py.
| list homeassistant.components.nissan_leaf.PLATFORMS = [Platform.BINARY_SENSOR, Platform.BUTTON, Platform.SENSOR, Platform.SWITCH] |
Definition at line 88 of file __init__.py.
| string homeassistant.components.nissan_leaf.SERVICE_START_CHARGE_LEAF = "start_charge" |
Definition at line 92 of file __init__.py.
| string homeassistant.components.nissan_leaf.SERVICE_UPDATE_LEAF = "update" |
Definition at line 91 of file __init__.py.
| homeassistant.components.nissan_leaf.START_CHARGE_LEAF_SCHEMA = vol.Schema({vol.Required(ATTR_VIN): cv.string}) |
Definition at line 96 of file __init__.py.
| homeassistant.components.nissan_leaf.UPDATE_LEAF_SCHEMA = vol.Schema({vol.Required(ATTR_VIN): cv.string}) |
Definition at line 95 of file __init__.py.