{"id":24923217,"url":"https://github.com/doarakko/action-switchbot","last_synced_at":"2026-04-29T15:01:59.455Z","repository":{"id":37819739,"uuid":"477401500","full_name":"Doarakko/action-switchbot","owner":"Doarakko","description":"Operate SwitchBot using GitHub Actions.","archived":false,"fork":false,"pushed_at":"2023-09-11T10:29:54.000Z","size":744,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-16T23:04:49.839Z","etag":null,"topics":["github-actions","switchbot","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Doarakko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"Doarakko"}},"created_at":"2022-04-03T16:38:00.000Z","updated_at":"2022-05-10T22:58:30.000Z","dependencies_parsed_at":"2023-02-10T22:45:58.925Z","dependency_job_id":null,"html_url":"https://github.com/Doarakko/action-switchbot","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.4,"last_synced_commit":"5b90ff90309d13f7ba2b5f1914f0cacbd5a89fed"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Doarakko/action-switchbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doarakko%2Faction-switchbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doarakko%2Faction-switchbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doarakko%2Faction-switchbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doarakko%2Faction-switchbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Doarakko","download_url":"https://codeload.github.com/Doarakko/action-switchbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doarakko%2Faction-switchbot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260256241,"owners_count":22981806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["github-actions","switchbot","typescript"],"created_at":"2025-02-02T11:36:51.076Z","updated_at":"2026-04-29T15:01:54.433Z","avatar_url":"https://github.com/Doarakko.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Doarakko"],"categories":[],"sub_categories":[],"readme":"# action-switchbot\n\nOperate SwitchBot using GitHub Actions.\n\nhttps://user-images.githubusercontent.com/21009186/161438435-23a94ada-91e6-47b9-a18f-3071a7e8661b.MOV\n\n## Inputs\n\n### `token`\n\n**Required** SwitchBot token used to create a client.\n\nCheck [here](https://github.com/OpenWonderLabs/SwitchBotAPI#getting-started) for how to get token.\n\nRecommended to use [GitHub Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets).\n\n### `deviceName`\n\nEither `deviceName` or `sceneName` is required.\n\n### `command`\n\nSupports `turnOff`, `turnOn` and `press`.\nDefault is `press`.\n\n### `sceneName`\n\nEither `deviceName` or `sceneName` is required.\n\n## Example usage\n\nIf PR is approved, the light bulb will illuminate.\n\n```yaml\nname: Turn on the light\non:\n  pull_request_review:\n    types: [submitted]\n\njobs:\n  turn-on:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Turn on the light\n        uses: Doarakko/action-switchbot@main\n        with:\n          token: ${{secrets.SWITCHBOT_TOKEN}}\n          deviceName: light AA\n          command: turnOn\n```\n\n## Reference\n\n- [SwitchBot API Documents](https://github.com/OpenWonderLabs/SwitchBotAPI)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoarakko%2Faction-switchbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoarakko%2Faction-switchbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoarakko%2Faction-switchbot/lists"}