{"id":17091290,"url":"https://github.com/jhurliman/node-motionblinds","last_synced_at":"2025-10-26T23:05:24.525Z","repository":{"id":40439294,"uuid":"341336061","full_name":"jhurliman/node-motionblinds","owner":"jhurliman","description":"A node.js library for interfacing with Motion Blinds from Coulisse B.V","archived":false,"fork":false,"pushed_at":"2024-08-15T18:32:44.000Z","size":364,"stargazers_count":7,"open_issues_count":5,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-30T22:02:09.495Z","etag":null,"topics":["blinds","coulisse","home-automation","nodejs","omniablinds","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/jhurliman.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}},"created_at":"2021-02-22T21:00:57.000Z","updated_at":"2023-01-13T23:50:12.000Z","dependencies_parsed_at":"2025-04-14T12:15:53.356Z","dependency_job_id":null,"html_url":"https://github.com/jhurliman/node-motionblinds","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jhurliman/node-motionblinds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fnode-motionblinds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fnode-motionblinds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fnode-motionblinds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fnode-motionblinds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhurliman","download_url":"https://codeload.github.com/jhurliman/node-motionblinds/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fnode-motionblinds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272912489,"owners_count":25014077,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"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":["blinds","coulisse","home-automation","nodejs","omniablinds","typescript"],"created_at":"2024-10-14T13:58:10.219Z","updated_at":"2025-10-26T23:05:19.493Z","avatar_url":"https://github.com/jhurliman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-motionblinds\n\nnode.js library for interfacing with Motion Blinds from Coulisee B.V. including\nderivative products such as OmniaBlinds.\n\n### Retrieving Your Key\n\nThe Motion Blinds API uses a 16 character key that can be retrieved from the\nofficial \"Motion Blinds\" app for iOS or Android. Open the app, click the 3 dots\nin the top right corner, go to \"Settings\", go to \"About MOTION\", then quickly\ntap the screen five times. A popup will appear showing your key.\n\n### Usage\n\nSee [`hiltest/hiltest.ts`](https://github.com/jhurliman/node-motionblinds/blob/main/hiltest/hiltest.ts)\nfor examples of reading and writing to blinds.\n\n```javascript\nimport MotionGateway from 'motionblinds'\n\n(async function main () {\n  // Initialize the MotionGateway class. Passing in the optional `key` parameter\n  // enables write commands\n  const gw = new MotionGateway({ key: '\u003cYOUR_MOTION_KEY\u003e' })\n  // Open read and write sockets for UDP multicast communication with Motion\n  // blinds. This will automatically be called when any outgoing message needs\n  // to be sent, so it only needs to manually be called if you intend to\n  // passively listen for broadcast messages\n  // gw.start()\n\n  // Listen for \"report\" events, broadcast by devices when a state transition\n  // has completed\n  gw.on('report', (report) =\u003e {\n    console.dir(report)\n  })\n\n  // Sends the `getDeviceList()` command followed by a `readDevice()` for each\n  // returned device. This calls `start()` as a side effect of communication.\n  // The `token` member will also be set as a side effect of the\n  // `getDeviceList()` call, enabling write commands after this completes\n  const devices = await gw.readAllDevices()\n  for (const device of devices) {\n    if (device.deviceType === MotionGateway.Blind) {\n      // Send a Close/Down command for each discovered device of type Blind\n      await gw.writeDevice(device.mac, device.deviceType, {\n        operation: MotionGateway.Operation.CloseDown,\n      })\n    }\n  }\n\n  // Disconnect the send and receive UDP sockets\n  gw.stop()\n}())\n```\n\n### Test\n\nRun `yarn test` to verify basic offline functionality of the library. To run the\nhardware-in-the-loop tests against real blinds, use\n`MOTION_KEY=\"\u003cYOUR_MOTION_KEY\u003e\" yarn test:hil`\n\n### License\n\nnode-motionblinds is licensed under [MIT](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhurliman%2Fnode-motionblinds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhurliman%2Fnode-motionblinds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhurliman%2Fnode-motionblinds/lists"}