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

Functions

ConfigEntry async_get_config_for_device (HomeAssistant hass, dr.DeviceEntry device_entry)
 
dr.DeviceEntry async_get_device_for_service_call (HomeAssistant hass, ServiceCall call)
 
TeslemetryEnergyData async_get_energy_site_for_entry (HomeAssistant hass, dr.DeviceEntry device, ConfigEntry config)
 
TeslemetryVehicleData async_get_vehicle_for_entry (HomeAssistant hass, dr.DeviceEntry device, ConfigEntry config)
 
None async_register_services (HomeAssistant hass)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_DEPARTURE_TIME = "departure_time"
 
string ATTR_ENABLE = "enable"
 
string ATTR_END_OFF_PEAK_TIME = "end_off_peak_time"
 
string ATTR_FIELDS = "fields"
 
string ATTR_GPS = "gps"
 
string ATTR_ID = "id"
 
string ATTR_LOCALE = "locale"
 
string ATTR_OFF_PEAK_CHARGING_ENABLED = "off_peak_charging_enabled"
 
string ATTR_OFF_PEAK_CHARGING_WEEKDAYS = "off_peak_charging_weekdays_only"
 
string ATTR_ORDER = "order"
 
string ATTR_PIN = "pin"
 
string ATTR_PRECONDITIONING_ENABLED = "preconditioning_enabled"
 
string ATTR_PRECONDITIONING_WEEKDAYS = "preconditioning_weekdays_only"
 
string ATTR_TIME = "time"
 
string ATTR_TIMESTAMP = "timestamp"
 
string ATTR_TOU_SETTINGS = "tou_settings"
 
string ATTR_TYPE = "type"
 
string ATTR_VALUE = "value"
 
string SERVICE_NAVIGATE_ATTR_GPS_REQUEST = "navigation_gps_request"
 
string SERVICE_SET_SCHEDULED_CHARGING = "set_scheduled_charging"
 
string SERVICE_SET_SCHEDULED_DEPARTURE = "set_scheduled_departure"
 
string SERVICE_SPEED_LIMIT = "speed_limit"
 
string SERVICE_TIME_OF_USE = "time_of_use"
 
string SERVICE_VALET_MODE = "valet_mode"
 

Detailed Description

Service calls for the Teslemetry integration.

Function Documentation

◆ async_get_config_for_device()

ConfigEntry homeassistant.components.teslemetry.services.async_get_config_for_device ( HomeAssistant  hass,
dr.DeviceEntry   device_entry 
)
Get the config entry related to a device entry.

Definition at line 65 of file services.py.

◆ async_get_device_for_service_call()

dr.DeviceEntry homeassistant.components.teslemetry.services.async_get_device_for_service_call ( HomeAssistant  hass,
ServiceCall   call 
)
Get the device entry related to a service call.

Definition at line 49 of file services.py.

◆ async_get_energy_site_for_entry()

TeslemetryEnergyData homeassistant.components.teslemetry.services.async_get_energy_site_for_entry ( HomeAssistant  hass,
dr.DeviceEntry  device,
ConfigEntry   config 
)
Get the energy site data for a config entry.

Definition at line 89 of file services.py.

◆ async_get_vehicle_for_entry()

TeslemetryVehicleData homeassistant.components.teslemetry.services.async_get_vehicle_for_entry ( HomeAssistant  hass,
dr.DeviceEntry  device,
ConfigEntry   config 
)
Get the vehicle data for a config entry.

Definition at line 77 of file services.py.

◆ async_register_services()

None homeassistant.components.teslemetry.services.async_register_services ( HomeAssistant  hass)
Set up the Teslemetry services.

Definition at line 101 of file services.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.teslemetry.services._LOGGER = logging.getLogger(__name__)
private

Definition at line 18 of file services.py.

◆ ATTR_DEPARTURE_TIME

string homeassistant.components.teslemetry.services.ATTR_DEPARTURE_TIME = "departure_time"

Definition at line 35 of file services.py.

◆ ATTR_ENABLE

string homeassistant.components.teslemetry.services.ATTR_ENABLE = "enable"

Definition at line 29 of file services.py.

◆ ATTR_END_OFF_PEAK_TIME

string homeassistant.components.teslemetry.services.ATTR_END_OFF_PEAK_TIME = "end_off_peak_time"

Definition at line 38 of file services.py.

◆ ATTR_FIELDS

string homeassistant.components.teslemetry.services.ATTR_FIELDS = "fields"

Definition at line 28 of file services.py.

◆ ATTR_GPS

string homeassistant.components.teslemetry.services.ATTR_GPS = "gps"

Definition at line 22 of file services.py.

◆ ATTR_ID

string homeassistant.components.teslemetry.services.ATTR_ID = "id"

Definition at line 21 of file services.py.

◆ ATTR_LOCALE

string homeassistant.components.teslemetry.services.ATTR_LOCALE = "locale"

Definition at line 25 of file services.py.

◆ ATTR_OFF_PEAK_CHARGING_ENABLED

string homeassistant.components.teslemetry.services.ATTR_OFF_PEAK_CHARGING_ENABLED = "off_peak_charging_enabled"

Definition at line 36 of file services.py.

◆ ATTR_OFF_PEAK_CHARGING_WEEKDAYS

string homeassistant.components.teslemetry.services.ATTR_OFF_PEAK_CHARGING_WEEKDAYS = "off_peak_charging_weekdays_only"

Definition at line 37 of file services.py.

◆ ATTR_ORDER

string homeassistant.components.teslemetry.services.ATTR_ORDER = "order"

Definition at line 26 of file services.py.

◆ ATTR_PIN

string homeassistant.components.teslemetry.services.ATTR_PIN = "pin"

Definition at line 31 of file services.py.

◆ ATTR_PRECONDITIONING_ENABLED

string homeassistant.components.teslemetry.services.ATTR_PRECONDITIONING_ENABLED = "preconditioning_enabled"

Definition at line 33 of file services.py.

◆ ATTR_PRECONDITIONING_WEEKDAYS

string homeassistant.components.teslemetry.services.ATTR_PRECONDITIONING_WEEKDAYS = "preconditioning_weekdays_only"

Definition at line 34 of file services.py.

◆ ATTR_TIME

string homeassistant.components.teslemetry.services.ATTR_TIME = "time"

Definition at line 30 of file services.py.

◆ ATTR_TIMESTAMP

string homeassistant.components.teslemetry.services.ATTR_TIMESTAMP = "timestamp"

Definition at line 27 of file services.py.

◆ ATTR_TOU_SETTINGS

string homeassistant.components.teslemetry.services.ATTR_TOU_SETTINGS = "tou_settings"

Definition at line 32 of file services.py.

◆ ATTR_TYPE

string homeassistant.components.teslemetry.services.ATTR_TYPE = "type"

Definition at line 23 of file services.py.

◆ ATTR_VALUE

string homeassistant.components.teslemetry.services.ATTR_VALUE = "value"

Definition at line 24 of file services.py.

◆ SERVICE_NAVIGATE_ATTR_GPS_REQUEST

string homeassistant.components.teslemetry.services.SERVICE_NAVIGATE_ATTR_GPS_REQUEST = "navigation_gps_request"

Definition at line 41 of file services.py.

◆ SERVICE_SET_SCHEDULED_CHARGING

string homeassistant.components.teslemetry.services.SERVICE_SET_SCHEDULED_CHARGING = "set_scheduled_charging"

Definition at line 42 of file services.py.

◆ SERVICE_SET_SCHEDULED_DEPARTURE

string homeassistant.components.teslemetry.services.SERVICE_SET_SCHEDULED_DEPARTURE = "set_scheduled_departure"

Definition at line 43 of file services.py.

◆ SERVICE_SPEED_LIMIT

string homeassistant.components.teslemetry.services.SERVICE_SPEED_LIMIT = "speed_limit"

Definition at line 45 of file services.py.

◆ SERVICE_TIME_OF_USE

string homeassistant.components.teslemetry.services.SERVICE_TIME_OF_USE = "time_of_use"

Definition at line 46 of file services.py.

◆ SERVICE_VALET_MODE

string homeassistant.components.teslemetry.services.SERVICE_VALET_MODE = "valet_mode"

Definition at line 44 of file services.py.