Skip to content

ruchoff/homeassistant-citibike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Assistant CitiBike Station Status Sensor

hacs_badge

Overview

A sensor to provide NYC Citi Bike Station status. The sensor pulls from the official Citi Bike GBFS Feed

Sensor

A new sensor will be created for each station listed in your config.

Sensor State

The state of the sensor is the number of bikes available.

Sensor Attributes

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

Installation

HACS (Recommended)

Add https://github.com/ruchoff/homeassistant-citibike to HACS Custom Repository. Download the CitiBike integration using HACS.

Manual

Copy citibike folder to your custom_components folder in your Home Assistant configuration directory.

Configuration

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 see Site 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, with citibike_station_ as the prefix.