{"id":28858028,"url":"https://github.com/febinbaiju/smartthings-shutdown-automation-connector","last_synced_at":"2026-05-04T21:33:38.434Z","repository":{"id":297664037,"uuid":"997503299","full_name":"febinbaiju/smartthings-shutdown-automation-connector","owner":"febinbaiju","description":"A lightweight Node.js SmartApp integration for Samsung SmartThings. This app listens for a virtual switch event and securely triggers a Raspberry Pi system shutdown. Built for automation enthusiasts using SmartThings + Raspberry Pi.","archived":false,"fork":false,"pushed_at":"2025-06-07T08:02:39.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-20T02:04:32.240Z","etag":null,"topics":["automation","iot","nodejs","raspberry-pi","samsung","smartthings","webhook"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/febinbaiju.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-06-06T16:31:31.000Z","updated_at":"2025-06-07T08:02:43.000Z","dependencies_parsed_at":"2025-06-06T18:41:11.558Z","dependency_job_id":null,"html_url":"https://github.com/febinbaiju/smartthings-shutdown-automation-connector","commit_stats":null,"previous_names":["febinbaiju/smartthings-shutdown-automation-connector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/febinbaiju/smartthings-shutdown-automation-connector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febinbaiju%2Fsmartthings-shutdown-automation-connector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febinbaiju%2Fsmartthings-shutdown-automation-connector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febinbaiju%2Fsmartthings-shutdown-automation-connector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febinbaiju%2Fsmartthings-shutdown-automation-connector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/febinbaiju","download_url":"https://codeload.github.com/febinbaiju/smartthings-shutdown-automation-connector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febinbaiju%2Fsmartthings-shutdown-automation-connector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32626141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"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":["automation","iot","nodejs","raspberry-pi","samsung","smartthings","webhook"],"created_at":"2025-06-20T02:04:30.022Z","updated_at":"2026-05-04T21:33:38.427Z","avatar_url":"https://github.com/febinbaiju.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Samsung SmartThings Shutdown Connector\n\nA Node.js-based SmartApp that integrates with Samsung SmartThings and allows you to remotely trigger a system shutdown using a virtual switch.\n\n## 🚀 Features\n\n* Configure a SmartThings virtual switch to trigger system shutdown.\n* Securely integrates using SmartThings SmartApp lifecycle events.\n* Subscribes to `switch.on` events to trigger shutdown.\n* Automatically deletes/re-creates subscriptions on update.\n* Turns off the switch after triggering shutdown.\n\n---\n\n## 📦 Requirements\n\n* Node.js (v16 or later recommended)\n* A SmartThings developer account\n* A Raspberry Pi (or any Linux system that supports `shutdown`)\n\n---\n\n## 📁 Project Structure\n\n```\nsmartthings-shutdown-connector/\n├── app.js           # Main application logic\n├── .env             # Environment variable configuration\n├── package.json     # Project dependencies and scripts\n└── README.md        # You're reading it!\n```\n\n---\n\n## 🔧 Installation\n\n```bash\n# Clone the repo\ngit clone https://github.com/your-username/smartthings-shutdown-connector.git\ncd smartthings-shutdown-connector\n\n# Install dependencies\nnpm install\n\n# Setup environment variables\ncp .env.example .env\n# Edit .env and add required values\n```\n\n### Example `.env`\n\n```ini\nPORT=5165\nAPP_NAME=SmartThings Shutdown\nAPP_DESCRIPTION=Trigger system shutdown from SmartThings\nAPP_ID=your-app-id\n```\n\n---\n\n## 🏃‍♂️ Usage\n\nStart the server:\n\n```bash\nnpm start\n```\n\nMake sure the server is publicly accessible (you can use [ngrok](https://ngrok.com) during development).\n\nThen, install your SmartApp on Samsung SmartThings Developer Workspace:\n\n* Use your public endpoint (e.g., via ngrok) as the SmartApp URL.\n* Grant permissions for `switch` capability.\n* Choose your virtual switch during configuration.\n\n---\n\n## ⚙️ Lifecycle Events Supported\n\n* `CONFIGURATION`\n* `INSTALL`\n* `UPDATE`\n* `EVENT`\n* `UNINSTALL`\n\n---\n\n## ⚠️ Important Notes\n\n* Your server needs `sudo` permission to run `shutdown`.\n* It’s recommended to configure your system to allow passwordless shutdown for your service user.\n* The virtual switch will be turned off automatically after triggering.\n\n---\n\n## 👨‍💻 Author\n\n**Febin Baiju**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffebinbaiju%2Fsmartthings-shutdown-automation-connector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffebinbaiju%2Fsmartthings-shutdown-automation-connector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffebinbaiju%2Fsmartthings-shutdown-automation-connector/lists"}