A sensor to provide NYC Citi Bike Station status. The sensor pulls from the official Citi Bike GBFS Feed
A new sensor will be created for each station listed in your config.
The state of the sensor is the number of bikes available.
The following attributes are provided for each sensor:
- station_id
- latitude
- longitude
- station_capacity
- last_reported
- docks_available
- is_renting
- is_returning
- num_bikes_available
- available_bike_types
- Human Powered
- Electric Powered
- num_bikes_disabled
- num_docks_disabled
Add https://github.com/ruchoff/homeassistant-citibike
to HACS Custom Repository. Download the CitiBike integration using HACS.
Copy citibike
folder to your custom_components
folder in your Home Assistant configuration directory.
In your configuration.yaml
file, add the following sensor:
sensor:
- platform: citibike
stations:
- id: "6432.11"
name: "E 40 St & Park Ave"
stations
accepts a list of one or many Citibike stations you want to track.
-
id
is a required field, and is the Site ID of the Citibike station you want to track. Getting the id is available on Citibike's webside. On the map, select the station and you will seeSite ID
at the bottom of the info card. -
name
is optional. If omitted, sensor name will default to station's official name as provided in the API, withcitibike_station_
as the prefix.