Classes | |
| class | GTFSDepartureSensor |
Functions | |
| dict | get_next_departure (Any schedule, Any start_station_id, Any end_station_id, datetime.timedelta offset, bool include_tomorrow=False) |
| None | setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| string | ATTR_ARRIVAL = "arrival" |
| string | ATTR_BICYCLE = "trip_bikes_allowed_state" |
| string | ATTR_DAY = "day" |
| string | ATTR_DROP_OFF_DESTINATION = "destination_stop_drop_off_type_state" |
| string | ATTR_DROP_OFF_ORIGIN = "origin_stop_drop_off_type_state" |
| string | ATTR_FIRST = "first" |
| string | ATTR_INFO = "info" |
| string | ATTR_LAST = "last" |
| string | ATTR_LOCATION_DESTINATION = "destination_station_location_type_name" |
| string | ATTR_LOCATION_ORIGIN = "origin_station_location_type_name" |
| ATTR_OFFSET = CONF_OFFSET | |
| string | ATTR_PICKUP_DESTINATION = "destination_stop_pickup_type_state" |
| string | ATTR_PICKUP_ORIGIN = "origin_stop_pickup_type_state" |
| string | ATTR_ROUTE_TYPE = "route_type_name" |
| string | ATTR_TIMEPOINT_DESTINATION = "destination_stop_timepoint_exact" |
| string | ATTR_TIMEPOINT_ORIGIN = "origin_stop_timepoint_exact" |
| string | ATTR_WHEELCHAIR = "trip_wheelchair_access_available" |
| string | ATTR_WHEELCHAIR_DESTINATION = "destination_station_wheelchair_boarding_available" |
| string | ATTR_WHEELCHAIR_ORIGIN = "origin_station_wheelchair_boarding_available" |
| BICYCLE_ALLOWED_DEFAULT = STATE_UNKNOWN | |
| dictionary | BICYCLE_ALLOWED_OPTIONS = {1: True, 2: False} |
| string | CONF_DATA = "data" |
| string | CONF_DESTINATION = "destination" |
| string | CONF_ORIGIN = "origin" |
| string | CONF_TOMORROW = "include_tomorrow" |
| string | DEFAULT_NAME = "GTFS Sensor" |
| string | DEFAULT_PATH = "gtfs" |
| DROP_OFF_TYPE_DEFAULT = STATE_UNKNOWN | |
| dictionary | DROP_OFF_TYPE_OPTIONS |
| string | ICON = "mdi:train" |
| dictionary | ICONS |
| string | LOCATION_TYPE_DEFAULT = "Stop" |
| dictionary | LOCATION_TYPE_OPTIONS |
| PICKUP_TYPE_DEFAULT = STATE_UNKNOWN | |
| dictionary | PICKUP_TYPE_OPTIONS |
| PLATFORM_SCHEMA | |
| dictionary | ROUTE_TYPE_OPTIONS |
| bool | TIMEPOINT_DEFAULT = True |
| dictionary | TIMEPOINT_OPTIONS = {0: False, 1: True} |
| WHEELCHAIR_ACCESS_DEFAULT = STATE_UNKNOWN | |
| dictionary | WHEELCHAIR_ACCESS_OPTIONS = {1: True, 2: False} |
| WHEELCHAIR_BOARDING_DEFAULT = STATE_UNKNOWN | |
| dictionary | WHEELCHAIR_BOARDING_OPTIONS = {1: True, 2: False} |
Support for GTFS (Google/General Transport Format Schema).
| dict homeassistant.components.gtfs.sensor.get_next_departure | ( | Any | schedule, |
| Any | start_station_id, | ||
| Any | end_station_id, | ||
| datetime.timedelta | offset, | ||
| bool | include_tomorrow = False |
||
| ) |
| None homeassistant.components.gtfs.sensor.setup_platform | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| AddEntitiesCallback | add_entities, | ||
| DiscoveryInfoType | None | discovery_info = None |
||
| ) |
|
private |
| string homeassistant.components.gtfs.sensor.ATTR_ARRIVAL = "arrival" |
| string homeassistant.components.gtfs.sensor.ATTR_BICYCLE = "trip_bikes_allowed_state" |
| string homeassistant.components.gtfs.sensor.ATTR_DAY = "day" |
| string homeassistant.components.gtfs.sensor.ATTR_DROP_OFF_DESTINATION = "destination_stop_drop_off_type_state" |
| string homeassistant.components.gtfs.sensor.ATTR_DROP_OFF_ORIGIN = "origin_stop_drop_off_type_state" |
| string homeassistant.components.gtfs.sensor.ATTR_FIRST = "first" |
| string homeassistant.components.gtfs.sensor.ATTR_INFO = "info" |
| string homeassistant.components.gtfs.sensor.ATTR_LAST = "last" |
| string homeassistant.components.gtfs.sensor.ATTR_LOCATION_DESTINATION = "destination_station_location_type_name" |
| string homeassistant.components.gtfs.sensor.ATTR_LOCATION_ORIGIN = "origin_station_location_type_name" |
| homeassistant.components.gtfs.sensor.ATTR_OFFSET = CONF_OFFSET |
| string homeassistant.components.gtfs.sensor.ATTR_PICKUP_DESTINATION = "destination_stop_pickup_type_state" |
| string homeassistant.components.gtfs.sensor.ATTR_PICKUP_ORIGIN = "origin_stop_pickup_type_state" |
| string homeassistant.components.gtfs.sensor.ATTR_ROUTE_TYPE = "route_type_name" |
| string homeassistant.components.gtfs.sensor.ATTR_TIMEPOINT_DESTINATION = "destination_stop_timepoint_exact" |
| string homeassistant.components.gtfs.sensor.ATTR_TIMEPOINT_ORIGIN = "origin_stop_timepoint_exact" |
| string homeassistant.components.gtfs.sensor.ATTR_WHEELCHAIR = "trip_wheelchair_access_available" |
| string homeassistant.components.gtfs.sensor.ATTR_WHEELCHAIR_DESTINATION = "destination_station_wheelchair_boarding_available" |
| string homeassistant.components.gtfs.sensor.ATTR_WHEELCHAIR_ORIGIN = "origin_station_wheelchair_boarding_available" |
| homeassistant.components.gtfs.sensor.BICYCLE_ALLOWED_DEFAULT = STATE_UNKNOWN |
| dictionary homeassistant.components.gtfs.sensor.BICYCLE_ALLOWED_OPTIONS = {1: True, 2: False} |
| string homeassistant.components.gtfs.sensor.CONF_DATA = "data" |
| string homeassistant.components.gtfs.sensor.CONF_DESTINATION = "destination" |
| string homeassistant.components.gtfs.sensor.CONF_ORIGIN = "origin" |
| string homeassistant.components.gtfs.sensor.CONF_TOMORROW = "include_tomorrow" |
| string homeassistant.components.gtfs.sensor.DEFAULT_NAME = "GTFS Sensor" |
| string homeassistant.components.gtfs.sensor.DEFAULT_PATH = "gtfs" |
| homeassistant.components.gtfs.sensor.DROP_OFF_TYPE_DEFAULT = STATE_UNKNOWN |
| dictionary homeassistant.components.gtfs.sensor.DROP_OFF_TYPE_OPTIONS |
| string homeassistant.components.gtfs.sensor.ICON = "mdi:train" |
| string homeassistant.components.gtfs.sensor.LOCATION_TYPE_DEFAULT = "Stop" |
| dictionary homeassistant.components.gtfs.sensor.LOCATION_TYPE_OPTIONS |
| homeassistant.components.gtfs.sensor.PICKUP_TYPE_DEFAULT = STATE_UNKNOWN |
| dictionary homeassistant.components.gtfs.sensor.PICKUP_TYPE_OPTIONS |
| homeassistant.components.gtfs.sensor.PLATFORM_SCHEMA |
| dictionary homeassistant.components.gtfs.sensor.ROUTE_TYPE_OPTIONS |
| bool homeassistant.components.gtfs.sensor.TIMEPOINT_DEFAULT = True |
| dictionary homeassistant.components.gtfs.sensor.TIMEPOINT_OPTIONS = {0: False, 1: True} |
| homeassistant.components.gtfs.sensor.WHEELCHAIR_ACCESS_DEFAULT = STATE_UNKNOWN |
| dictionary homeassistant.components.gtfs.sensor.WHEELCHAIR_ACCESS_OPTIONS = {1: True, 2: False} |
| homeassistant.components.gtfs.sensor.WHEELCHAIR_BOARDING_DEFAULT = STATE_UNKNOWN |