{"id":36612756,"url":"https://github.com/dandean/logitech-litra-beam","last_synced_at":"2026-01-12T09:00:12.949Z","repository":{"id":63921609,"uuid":"570708869","full_name":"dandean/logitech-litra-beam","owner":"dandean","description":"Library for controlling a Logitech Litra Beam light","archived":false,"fork":false,"pushed_at":"2022-11-27T06:29:30.000Z","size":22,"stargazers_count":15,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-26T17:29:19.379Z","etag":null,"topics":["lights","litra-beam","logitech"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/dandean.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}},"created_at":"2022-11-25T22:15:52.000Z","updated_at":"2024-12-15T19:17:02.000Z","dependencies_parsed_at":"2023-01-14T14:15:35.540Z","dependency_job_id":null,"html_url":"https://github.com/dandean/logitech-litra-beam","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dandean/logitech-litra-beam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dandean%2Flogitech-litra-beam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dandean%2Flogitech-litra-beam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dandean%2Flogitech-litra-beam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dandean%2Flogitech-litra-beam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dandean","download_url":"https://codeload.github.com/dandean/logitech-litra-beam/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dandean%2Flogitech-litra-beam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["lights","litra-beam","logitech"],"created_at":"2026-01-12T09:00:11.683Z","updated_at":"2026-01-12T09:00:12.898Z","avatar_url":"https://github.com/dandean.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logitech Litra Beam\n\nThis library provides an API for controlling the Logitech Litra Beam light with\nTypeScript and JavaScript.\n\nSupported functionality:\n\n- on/off\n- brightness (0 - 255)\n- color temperature by degree (2700k warm to 6500k cool)\n- color temperature by percentage (0 warm to 100% cool)\n\nThe library tries its best to automatically identify the connected Litra Beam,\nbut there is some nuance and limitation.\n\nDevices are identified using the HID API (via the [hid](https://github.com/hyperdivision/hid) \nlibrary). This can find the device whether it's connected via USB or Bluetooth.\nIf the device is connected via both USB _and_ Bluetooth, then the device is\nlisted twice – once for each connection type.\n\nUnfortunately, at the time of writing, this library cannot use the Bluetooth\nconnection because its descriptor is missing the device serial number, so all\nattempts to send messages to it fail. For this reason, **only direct USB-\nconnected devices are supported\".\n\nIf you have multiple Litra Beams connected, the first one found will be used\nUNLESS you provide a specific Litra Beam serial number to the constructor.\nDevice serial numbers are printed in obscenely small print on the back of the\ndevice. Thankfully, you can print all connected Litra Beam device descriptor,\nwhich contain serial numbers:\n\n```sh\nnode -p \"new (require('logitech-litra-beam').LitraBeam)().getDescriptors()\"\n```\n\n## API\n\nThis library is written in TypeScript, so the API is discoverable in that\ncontext. You can also [read the source code directly](https://github.com/dandean/litra-beam/blob/main/src/main.ts).\n\nHere's a quick example to show how it works. This will:\n\n- connect to the light\n- turn it on\n- set the color temperature to neutral\n- set the brightness to 150\n- wait 10 seconds, and then turn it off\n\n```ts\nimport { LitraBeam } from 'logitech-litra-beam';\n\nconst light = new LitraBeam();\n\nlight.on();\nlight.setTemperaturePercentage(50);\nlight.setBrightness(150);\n\nsetTimeout(() =\u003e light.off, 10000);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdandean%2Flogitech-litra-beam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdandean%2Flogitech-litra-beam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdandean%2Flogitech-litra-beam/lists"}