{"id":51300659,"url":"https://github.com/kirbo/switchboard-ha","last_synced_at":"2026-06-30T19:01:36.566Z","repository":{"id":364699402,"uuid":"1268898575","full_name":"Kirbo/switchboard-ha","owner":"Kirbo","description":"Home Assistant custom integration for Switchboard — the cross-platform streaming control hub (OBS, Twitch, Spotify, Discord).","archived":false,"fork":false,"pushed_at":"2026-06-24T16:24:39.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-24T18:12:23.682Z","etag":null,"topics":["custom-component","hacs","hacs-integration","home-assistant","homeassistant","obs","spotify","streaming","switchboard","twitch"],"latest_commit_sha":null,"homepage":"https://gitlab.com/KirboDev/agentic-coding/switchboard","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kirbo.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-14T04:13:19.000Z","updated_at":"2026-06-24T16:24:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Kirbo/switchboard-ha","commit_stats":null,"previous_names":["kirbo/switchboard-ha"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Kirbo/switchboard-ha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kirbo%2Fswitchboard-ha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kirbo%2Fswitchboard-ha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kirbo%2Fswitchboard-ha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kirbo%2Fswitchboard-ha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kirbo","download_url":"https://codeload.github.com/Kirbo/switchboard-ha/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kirbo%2Fswitchboard-ha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34979578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["custom-component","hacs","hacs-integration","home-assistant","homeassistant","obs","spotify","streaming","switchboard","twitch"],"created_at":"2026-06-30T19:01:35.295Z","updated_at":"2026-06-30T19:01:36.561Z","avatar_url":"https://github.com/Kirbo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Switchboard — Home Assistant integration\n\nA [Home Assistant](https://www.home-assistant.io/) custom integration for\n[Switchboard](https://gitlab.com/KirboDev/agentic-coding/switchboard), the cross-platform streaming\ncontrol hub (OBS, Twitch, Spotify, Discord, with an event→action rules engine).\n\nIt consumes Switchboard's **External API** (the same authenticated surface documented in the app's\n`docs/HA.md`): it streams every Switchboard event onto the HA bus, exposes OBS/Spotify/AFK state as\nentities, and lets HA drive Switchboard actions through services.\n\n\u003e **Local push.** State arrives over a long-lived websocket — no polling. The integration fetches a\n\u003e snapshot once on connect, then stays live from the event stream.\n\n## What you get\n\n**Entities** (one device per OBS / Twitch connection, plus a Switchboard service device):\n\n- **Binary sensors** — per OBS connection: `connected`, `streaming`, `recording`; per Twitch\n  connection: `Live`; global: `AFK`, `Watched app active` (app-detection — a watched app is\n  focused/running), `Update available`.\n- **Sensors** — per OBS connection: current `Scene`; per Twitch connection: `Viewers`, `Chatters`,\n  `Category` (with box-art URL + title attributes); global: `Spotify` playback\n  (`playing`/`paused`/`stopped`) with now-playing attributes (title, artist, album, art_url, …),\n  `Focused app` (the in-play app id from app-detection), and `Version` (with any pending-update\n  attributes).\n\n**Services** (→ `POST /api/command`):\n\n- `switchboard.run_action` — generic passthrough for **any** action (`action_type`, `target`,\n  `value`, `action_params`); forward-compatible with new Switchboard actions.\n- `switchboard.obs_scene_set` — switch an OBS connection's program scene.\n- `switchboard.overlay_alert` — show an alert on the Switchboard alerts overlay.\n- `switchboard.set_machine_state` — set Switchboard's machine state (`afk` / `active`), e.g. from an\n  HA presence automation; fires Switchboard's `machine_state_*` triggers so it runs its own AFK\n  automations (and flips back to active on input).\n\n`target` accepts a friendly connection **label** or its **id** (anything that isn't a known\nconnection — e.g. the `spotify` sentinel — is passed through unchanged).\n\n**Bus event** — every Switchboard event is re-fired as `switchboard_event` (with its raw `type` and\nfields), so you can trigger HA automations on `twitch_event`, `rule_fired`, `obs_scene_changed`, etc.\n\n```yaml\nautomation:\n  - alias: Announce raids\n    trigger:\n      - platform: event\n        event_type: switchboard_event\n        event_data:\n          type: twitch_event\n          kind: raid\n    action:\n      - service: switchboard.overlay_alert\n        data:\n          text: \"Incoming raid!\"\n```\n\n## Requirements\n\n- Switchboard running with the **External API enabled** — generate a token in\n  **Settings → External API** (shown once).\n- The **Events** and **Control** IP ACLs (`events_access_*` / `control_access_*`) must allow your\n  Home Assistant host. They default to **local-only**, so if HA runs on a different machine than\n  Switchboard, add HA's IP to both ACLs in **Settings → External API** — otherwise the websocket\n  (Events) and service calls (Control) are rejected with `403`.\n\n## Installation\n\n### HACS (recommended)\n\nHACS → ⋮ → **Custom repositories** → add `https://github.com/Kirbo/switchboard-ha` with category\n**Integration** → install **Switchboard** → restart Home Assistant.\n\n### Manual\n\nCopy `custom_components/switchboard` into your HA `config/custom_components/` directory and restart.\n\n## Configuration\n\n**Settings → Devices \u0026 Services → Add Integration → Switchboard**, then provide:\n\n| Field | Notes |\n|---|---|\n| **Host** | Switchboard machine's hostname or IP. |\n| **Port** | `38474` (the TLS mesh/API port) unless changed. |\n| **API token** | The External API bearer token from Switchboard. |\n| **Verify TLS certificate** | Leave **off** for the self-signed cert (default) unless you front it with a trusted certificate. |\n| **TLS fingerprint** | *Optional, recommended.* SHA-256 fingerprint to pin (shown on Switchboard's Peers tab) — pins the self-signed cert instead of skipping verification. |\n\n## Notes\n\n- The API event/command schema is **additive**: new event types and fields appear over time and are\n  ignored if unknown. New OBS connections added in Switchboard trigger a reload so their entities\n  appear.\n- This integration lives in its own repo (not the Switchboard monorepo) because HACS only installs\n  from GitHub. The API contract it targets is documented in the app's `docs/HA.md`.\n\n## Related\n\n- **[Switchboard](https://gitlab.com/KirboDev/agentic-coding/switchboard)** — the desktop app this\n  integration controls (OBS / Twitch / Spotify / Discord + an event→action rules engine). The `/api`\n  contract is [`docs/HA.md`](https://gitlab.com/KirboDev/agentic-coding/switchboard/-/blob/main/docs/HA.md).\n- **[OpenDeck plugin](https://gitlab.com/KirboDev/agentic-coding/opendeck/opendeck-switchboard)** — the\n  sibling plugin: live Switchboard state on a Stream Deck / OpenDeck, plus command keys. Same `/api`\n  surface, a different consumer.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirbo%2Fswitchboard-ha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkirbo%2Fswitchboard-ha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirbo%2Fswitchboard-ha/lists"}