{"id":21596896,"url":"https://github.com/romaintalleu/homebridge-hcsr501-sensor-script","last_synced_at":"2026-05-19T11:09:53.552Z","repository":{"id":57265444,"uuid":"225133650","full_name":"romaintalleu/homebridge-hcsr501-sensor-script","owner":"romaintalleu","description":"Execute custom scripts with hc-sr501 motion sensor","archived":false,"fork":false,"pushed_at":"2019-12-02T20:15:16.000Z","size":74,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T22:34:40.989Z","etag":null,"topics":["homebridge","homebridge-hcsr501-script","homebridge-hcsr501-sensor-script","homebridge-plugin","homekit"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/romaintalleu.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}},"created_at":"2019-12-01T09:08:10.000Z","updated_at":"2024-05-31T08:40:49.000Z","dependencies_parsed_at":"2022-08-25T03:40:43.880Z","dependency_job_id":null,"html_url":"https://github.com/romaintalleu/homebridge-hcsr501-sensor-script","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romaintalleu%2Fhomebridge-hcsr501-sensor-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romaintalleu%2Fhomebridge-hcsr501-sensor-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romaintalleu%2Fhomebridge-hcsr501-sensor-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romaintalleu%2Fhomebridge-hcsr501-sensor-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romaintalleu","download_url":"https://codeload.github.com/romaintalleu/homebridge-hcsr501-sensor-script/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244207747,"owners_count":20416109,"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":["homebridge","homebridge-hcsr501-script","homebridge-hcsr501-sensor-script","homebridge-plugin","homekit"],"created_at":"2024-11-24T18:07:07.555Z","updated_at":"2026-05-19T11:09:43.540Z","avatar_url":"https://github.com/romaintalleu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# homebridge-hcsr501-sensor-script\n\n[Homebridge](https://github.com/nfarina/homebridge) pluging for execute custom scripts when hc-sr501 motion sensor on a Raspberry Pi is trigger.\n\n![alt text](images/hcsr501.jpeg \"HCSR501 Motion Sensor \u0026 Raspberry Pi ZW\")\n\n## Installation\n\nRun the following command\n```\nnpm install -g --unsafe-perm homebridge-hcsr501-sensor-script\n```\n\n**Note:** depending on your platform you might need to run `npm install -g` with root privileges.\n\nSee the [Homebridge documentation](https://github.com/nfarina/homebridge#readme) for more information.\n\n## Configuration\n\nUpdate your Homebridge `config.json` file. See [config-sample.json](config-sample.json) for a complete example.\n\n```\n\"accessories\" : [\n    {\n        \"accessory\": \"HCSR501-script\",\n        \"name\": \"Motion Sensor\",\n        \"pinId\": 24,\n        \"start\": \"~/start.sh\",\n        \"stop\": \"~/stop.sh\"\n    }\n]\n```\n\nName | Value | Required | Notes\n----------- | ------- | -------------- | --------------\naccessory | HCSR501-script | yes | Must be set to \"HCSR501-script\"\nname | _(custom)_ | yes | Name of accessory that will appear in [HomeKit](https://www.apple.com/ios/home/) app\npinId | _(custom)_ | yes | The pin you connected the motion sensor\nstart | _(custom)_ | yes | Location of script to execute the start action\nstop | _(custom)_ | yes | Location of script to execute the stop action\nmanufacturer | _(custom)_ | optional | The text of manufacturer\nmodel | _(custom)_ | optional | The text of model\nserial | _(custom)_ | optional | The text of serial\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromaintalleu%2Fhomebridge-hcsr501-sensor-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromaintalleu%2Fhomebridge-hcsr501-sensor-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromaintalleu%2Fhomebridge-hcsr501-sensor-script/lists"}