syssi / nextbike

Nextbike integration for Home Assistant
Apache License 2.0
15 stars 4 forks source link
custom-component free-floating hacktoberfest home-assistant nextbike

Nextbike Sensor

GitHub actions GitHub stars GitHub forks GitHub watchers "Buy Me A Coffee"

The nextbike sensor platform monitors bike availability in a chosen radius of the free-floating areas. If you want to monitor a specific station please use the official citybikes sensor platform.

Install

You can install this custom component by adding this repository (https://github.com/syssi/nextbike) to HACS in the settings menu of HACS first. You will find the custom component in the integration menu afterwards, look for 'Nextbike Integration'. Alternatively, you can install it manually by copying the custom_component folder to your Home Assistant configuration folder.

Setup

# configuration.yaml

sensor:
  - platform: nextbike
    name: Near bikes
    city_id: 547
    radius: 500

  - platform: nextbike
    name: Campus Poppelsdorf
    city_id: 547
    latitude: 50.7284811
    longitude: 7.0852697
    radius: 25

  - platform: nextbike
    name: Berlin
    city_id: 362
    latitude: 52.5258988
    longitude: 13.3697015
    radius: 800

Configuration variables:

City IDs:

Extracted from https://maps.nextbike.net/maps/nextbike-official.json?list_cities=1