Home Assistant Unofficial Reference 2024.12.1
sensor.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.gtfs.sensor.GTFSDepartureSensor
 

Namespaces

 homeassistant.components.gtfs.sensor
 

Functions

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)
 

Variables

 homeassistant.components.gtfs.sensor._LOGGER = logging.getLogger(__name__)
 
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"
 
dictionary homeassistant.components.gtfs.sensor.ICONS
 
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
 
dictionary homeassistant.components.gtfs.sensor.WHEELCHAIR_BOARDING_OPTIONS = {1: True, 2: False}