{"id":48225919,"url":"https://github.com/iicky/homeassistant-mta-subway","last_synced_at":"2026-04-04T19:21:53.421Z","repository":{"id":152618620,"uuid":"149811283","full_name":"iicky/homeassistant-mta-subway","owner":"iicky","description":"A sensor to provide MTA Subway service statuses for Home Assistant.","archived":false,"fork":false,"pushed_at":"2024-12-02T16:17:16.000Z","size":367,"stargazers_count":25,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-12-02T17:28:21.874Z","etag":null,"topics":["api","home-automation","homeassistant","iot","nyc","nyc-subway-data","sensors","trains","transportation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iicky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-21T19:54:46.000Z","updated_at":"2024-12-02T16:17:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"08287c25-ef64-4344-b2f6-80190122c07f","html_url":"https://github.com/iicky/homeassistant-mta-subway","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/iicky/homeassistant-mta-subway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iicky%2Fhomeassistant-mta-subway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iicky%2Fhomeassistant-mta-subway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iicky%2Fhomeassistant-mta-subway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iicky%2Fhomeassistant-mta-subway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iicky","download_url":"https://codeload.github.com/iicky/homeassistant-mta-subway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iicky%2Fhomeassistant-mta-subway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31410223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","home-automation","homeassistant","iot","nyc","nyc-subway-data","sensors","trains","transportation"],"created_at":"2026-04-04T19:21:51.657Z","updated_at":"2026-04-04T19:21:53.416Z","avatar_url":"https://github.com/iicky.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Home Assistant MTA Subway Service Status Sensor\n\n[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg)](https://github.com/hacs/integration)\n\n## Overview\n\nA sensor to provide MTA Subway service statuses for Home Assistant. The sensor reads from the [goodservice.io](https://goodservice.io) API and provides both the overall line status as a sensor state as well as status descriptions and route directions as sensor attributes. The train line states are updated every minute from the detailed [goodservice.io](https://www.goodservice.io/api/routes?detailed=1) route endpoint.\n\nCredit for the line icons goes to [louh](https://github.com/louh) and his great [NYC Subway Icons repo](https://github.com/louh/nyc-subway-icons) (used with some slight renaming).\n\n### Sensor States\n- Good Service\n- Planned Work\n- Slow\n- Not Good\n- Delays\n- Service Change\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/iicky/homeassistant-mta-subway/main/images/Subway%20Group%20Screen%20Shot.png\" alt=\"Example subway card in Home Assistant\"\u003e\n\u003c/p\u003e\n\n### Sensor Attributes\n\n**Color**\u003cbr\u003e\nIndicates the color of the subway line.\n\n**Scheduled**\u003cbr\u003e\nIndicates whether the route is scheduled or not.\n\n**Direction statuses**\u003cbr\u003e\nIndicates the route status for both route directions.\n\n**Delay summaries**\u003cbr\u003e\nA full description of route delays for both directions.\n\n**Service irregularity summaries**\u003cbr\u003e\nA full description of any service irregularity summaries currently occuring on the line for both route directions.\n\n**Service change summaries**\u003cbr\u003e\nA full description of any planned work currently for both directions individually and combined.\n\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/iicky/homeassistant-mta-subway/main/images/Sensor%20States%20Screen%20Shot.png\" alt=\"Example sensor state and attributes in Home Assistant\"\u003e\n\u003c/p\u003e\n\n## Installation\n\nTo install the sensor, copy the `mta_subway` folder under `custom_components` to a directory called `custom_components` in your Home Assistant configuration directory.\n\nTo use, add the following configuration to your `configuration.yaml` file for Home Assistant, removing any lines that you do not want to monitor:\n\n```\nsensor:\n  - platform: mta_subway\n    line:\n      - '1'\n      - '2'\n      - '3'\n      - '4'\n      - '5'\n      - '6'\n      - '6X'\n      - '7'\n      - '7X'\n      - 'A'\n      - 'B'\n      - 'C'\n      - 'D'\n      - 'E'\n      - 'F'\n      - 'FX'\n      - 'G'\n      - 'J'\n      - 'L'\n      - 'M'\n      - 'N'\n      - 'Q'\n      - 'R'\n      - 'GS'\n      - 'FS'\n      - 'H'\n      - 'SI'\n      - 'W'\n      - 'Z'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiicky%2Fhomeassistant-mta-subway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiicky%2Fhomeassistant-mta-subway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiicky%2Fhomeassistant-mta-subway/lists"}