Nissan Leaf Data Store.
Definition at line 213 of file __init__.py.
◆ __init__()
| None homeassistant.components.nissan_leaf.LeafDataStore.__init__ |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
Leaf |
leaf, |
|
|
dict[str, Any]
|
car_config |
|
) |
| |
Initialise the data store.
Definition at line 216 of file __init__.py.
◆ async_get_battery()
| CarwingsLatestBatteryStatusResponse homeassistant.components.nissan_leaf.LeafDataStore.async_get_battery |
( |
|
self | ) |
|
Request battery update from Nissan servers.
Definition at line 347 of file __init__.py.
◆ async_get_climate()
| CarwingsLatestClimateControlStatusResponse homeassistant.components.nissan_leaf.LeafDataStore.async_get_climate |
( |
|
self | ) |
|
Request climate data from Nissan servers.
Definition at line 425 of file __init__.py.
◆ async_refresh_data()
| None homeassistant.components.nissan_leaf.LeafDataStore.async_refresh_data |
( |
|
self, |
|
|
datetime |
now |
|
) |
| |
Refresh the leaf data and update the datastore.
Definition at line 292 of file __init__.py.
◆ async_set_climate()
| bool homeassistant.components.nissan_leaf.LeafDataStore.async_set_climate |
( |
|
self, |
|
|
bool |
toggle |
|
) |
| |
Set climate control mode via Nissan servers.
Definition at line 439 of file __init__.py.
◆ async_start_charging()
| None homeassistant.components.nissan_leaf.LeafDataStore.async_start_charging |
( |
|
self | ) |
|
Request to start charging the car. Used by the button platform.
Definition at line 477 of file __init__.py.
◆ async_update_data()
| None homeassistant.components.nissan_leaf.LeafDataStore.async_update_data |
( |
|
self, |
|
|
datetime |
now |
|
) |
| |
Update data from nissan leaf.
Definition at line 239 of file __init__.py.
◆ get_next_interval()
| datetime homeassistant.components.nissan_leaf.LeafDataStore.get_next_interval |
( |
|
self | ) |
|
Calculate when the next update should occur.
Definition at line 259 of file __init__.py.
◆ schedule_update()
| None homeassistant.components.nissan_leaf.LeafDataStore.schedule_update |
( |
|
self | ) |
|
Set the next update to be triggered in a minute.
Definition at line 482 of file __init__.py.
◆ _remove_listener
| homeassistant.components.nissan_leaf.LeafDataStore._remove_listener |
|
private |
◆ car_config
| homeassistant.components.nissan_leaf.LeafDataStore.car_config |
◆ force_miles
| homeassistant.components.nissan_leaf.LeafDataStore.force_miles |
◆ hass
| homeassistant.components.nissan_leaf.LeafDataStore.hass |
◆ last_battery_response
| homeassistant.components.nissan_leaf.LeafDataStore.last_battery_response |
◆ last_check
| homeassistant.components.nissan_leaf.LeafDataStore.last_check |
◆ last_climate_response
| homeassistant.components.nissan_leaf.LeafDataStore.last_climate_response |
◆ leaf
| homeassistant.components.nissan_leaf.LeafDataStore.leaf |
◆ next_update
| homeassistant.components.nissan_leaf.LeafDataStore.next_update |
◆ request_in_progress
| homeassistant.components.nissan_leaf.LeafDataStore.request_in_progress |
The documentation for this class was generated from the following file: