Lyft


The Lyft integration has been marked deprecated and is pending removal in Home Assistant Core 2021.10. It is considered impossible to obtain the needed API keys to use this integration.

The lyft sensor will give you time and price estimates for all available Lyft products at the given start_latitude and start_longitude.The ATTRIBUTES are used to provide extra information about products, such as vehicle capacity and fare rates. If an end_latitude and end_longitude are specified, a price estimate will also be provided. One sensor will be created for each product at the given start location, for pickup time. A second sensor for each product, for estimated price, will be created if a destination is specified. The sensor is powered by the official Lyft API.

You must create an application here to obtain a client_id and client_secret.

To enable this sensor, add the following lines to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: lyft
    client_id: CLIENT_ID
    client_secret: CLIENT_SECRET

Configuration Variables

client_id string Required

A client id obtained from developer.lyft.com after creating an app.

client_secret string Required

A client secret obtained from developer.lyft.com after creating an app.

start_latitude float (Optional)

The starting latitude for a trip.

Default:

The latitude defined under the homeassistant key in configuration.yaml.

start_longitude float (Optional)

The starting longitude for a trip.

Default:

The longitude defined under the homeassistant key in configuration.yaml.

end_latitude float (Optional)

The ending latitude for a trip. While end_latitude is optional, providing an end_latitude/end_longitude allows price estimates as well as time.

end_longitude float (Optional)

The ending longitude for a trip. While end_longitude is optional, providing an end_latitude/end_longitude allows price estimates as well as time.

product_ids list | string (Optional)

A list of Lyft product IDs.

A full configuration entry could look like the sample below:

# Example configuration.yaml entry
sensor:
  - platform: lyft
    client_id: CLIENT_ID
    client_secret: CLIENT_SECRET
    start_latitude: 37.8116380
    start_longitude: -122.2648050
    end_latitude: 37.615223
    end_longitude: -122.389977
    product_ids:
      - 'lyft'
      - 'lyft_plus'