Create sensor.citybikes.markdown (#2770)

* Create sensor.citybikes.markdown

* Update sensor.citybikes.markdown

Bumped the version of Home Assistant, and updated the description according to changes in the platform.

* Update sensor.citybikes.markdown

Bump release version.
This commit is contained in:
Lev Aronsky 2017-07-05 08:59:18 +03:00 committed by Fabian Affolter
parent f9459f839c
commit c3a4015b95

View File

@ -0,0 +1,46 @@
---
layout: page
title: "CityBikes API sensor"
description: "Instructions on how to integrate data from the CityBikes API into Home Assistant."
date: 2017-06-25 14:20
sidebar: true
comments: false
sharing: true
footer: true
ha_category: Sensor
ha_release: 0.49
---
The `citybikes` sensor platform monitors bike availability at bike sharing stations in a chosen area. The data is provided by [CityBikes](https://citybik.es/#about), which supports bike sharing systems all around the world.
To enable it, add the following lines to your `configuration.yaml`:
```yaml
# Example configuration.yaml entry (using radius)
sensor:
- platform: citybikes
radius: 500
```
Configuration options:
- **name** (*Optional*): The base name of this group of monitored stations. The entity ID of every monitored station in this group will be prefixed with this base name, in addition to the network ID.
- **network** (*Optional*): The name of the bike sharing system to poll. Defaults to the system that operates in the monitored location.
- **latitude** (*Optional*): Latitude of the location, around which bike stations are monitored. Defaults to the latitude in your your `configuration.yaml` file.
- **longitude** (*Optional*): Longitude of the location, around which bike stations are monitored. Defaults to the longitude in your your `configuration.yaml` file.
- **radius** (*Optional*): The radius (in meters or feet, depending on the Home Assistant configuration) around the monitored location. Only stations closer than this distance will be monitored.
- **stations** array (*Optional*): A list of specific stations to monitor. The list should contain station `ID`s or `UID`s, which can be obtained from the CityBikes API.
Additional configuration samples:
```yaml
# Example configuration.yaml entry (using a list of stations)
sensor:
- platform: citybikes
name: Work Stations
stations:
- 123
- 145
- 436
```