{"id":16759169,"url":"https://github.com/alcalzone/iobroker.tradfri","last_synced_at":"2025-03-17T02:31:11.382Z","repository":{"id":20305320,"uuid":"89400881","full_name":"AlCalzone/ioBroker.tradfri","owner":"AlCalzone","description":"Tradfri Adapter for ioBroker","archived":false,"fork":false,"pushed_at":"2023-05-01T03:01:43.000Z","size":8033,"stargazers_count":29,"open_issues_count":21,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-27T16:40:51.162Z","etag":null,"topics":["blinds","home-smart","ikea","iobroker","lighting","smart-blinds","smart-light","tradfri"],"latest_commit_sha":null,"homepage":null,"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/AlCalzone.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG_OLD.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"AlCalzone","patreon":"AlCalzone","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-04-25T19:55:17.000Z","updated_at":"2023-05-29T11:10:09.000Z","dependencies_parsed_at":"2024-10-27T11:52:40.970Z","dependency_job_id":"cc02a66e-ad1f-4777-8e1c-145d01e34602","html_url":"https://github.com/AlCalzone/ioBroker.tradfri","commit_stats":{"total_commits":1155,"total_committers":15,"mean_commits":77.0,"dds":0.5922077922077922,"last_synced_commit":"adf4d5886c2ef9e5f4adc38abb6fe13630fa9cc5"},"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlCalzone%2FioBroker.tradfri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlCalzone%2FioBroker.tradfri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlCalzone%2FioBroker.tradfri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlCalzone%2FioBroker.tradfri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlCalzone","download_url":"https://codeload.github.com/AlCalzone/ioBroker.tradfri/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243837004,"owners_count":20355812,"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":["blinds","home-smart","ikea","iobroker","lighting","smart-blinds","smart-light","tradfri"],"created_at":"2024-10-13T04:07:30.565Z","updated_at":"2025-03-17T02:31:10.822Z","avatar_url":"https://github.com/AlCalzone.png","language":"TypeScript","funding_links":["https://github.com/sponsors/AlCalzone","https://patreon.com/AlCalzone"],"categories":[],"sub_categories":[],"readme":"![Logo](admin/tradfri.png)\n# ioBroker.tradfri\n\n![Build Status](https://action-badges.now.sh/AlCalzone/ioBroker.tradfri)\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/AlCalzone/ioBroker.tradfri.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/AlCalzone/ioBroker.tradfri/alerts/)\n\n![Number of Installations](http://iobroker.live/badges/tradfri-installed.svg) ![Number of Installations](http://iobroker.live/badges/tradfri-stable.svg)\n\n## Requirements\n* Linux (e.g. Raspberry Pi) / OSX / Windows\n* NodeJS \u003e= 12.x\n* Trådfri gateway\n\n## Installation\n1. Install this adapter over the iobroker admin GUI or via `npm install iobroker.tradfri --production` \n1. In the ioBroker GUI, add an adapter instance. \n1. Configure the instance by entering the IP/hostname of your gateway and the security code that can be found on the label at the bottom.\n\n### Troubleshooting installation issues:\n#### Linux/OSX:\nMake sure you install the most recent released version. If there are compilation errors, you might have to install build-essential:\n```\napt-get -y install build-essential\n```\n\n#### Windows:\nIf you are running on older NodeJS versions (\u003c 10), the installation may fail with the following error somewhere in the log:\n```\nCan't find Python executable \"python\", you can set the PYTHON env variable.\n```\n\nTo solve it, open an administrative shell:\n1. Press the \u003ckbd\u003e\u0026#8862;\u0026nbsp;Windows\u003c/kbd\u003e key\n2. Enter `cmd`, press \u003ckbd\u003eCtrl\u003c/kbd\u003e + \u003ckbd\u003eShift\u003c/kbd\u003e + \u003ckbd\u003eEnter\u003c/kbd\u003e\n3. Confirm the UAC prompt\nand run the following command:\n```\nnpm install --add-python-to-path --global windows-build-tools\n```\nThis may take a while... afterwards the installation should succeed.\n\n## Sending custom CoAP packets\nYou can send custom CoAP packets from other adapters by using `sendTo`. Example from JavaScript:\n```js\nsendTo(\"tradfri.0\", \"request\", options, (ret) =\u003e {\n\t// do something with the result\n});\n```\nThe `options` object looks as follows:\n```js\n{\n\tpath: string,\n\tmethod?: \"get\" | \"post\" | \"put\" | \"delete\", // optional, default = \"get\"\n\tpayload?: object                            // optional, should be a JSON object\n}\n```\nThe result object `ret` looks as follows:\n```js\n{\n\terror: string | null,\n\tresult: {\n\t\tcode: string,            // see https://tools.ietf.org/html/rfc7252#section-12.1.2\n\t\tpayload: object | Buffer\n\t}\n}\n```\n\n## Changelog\n[Older changes](CHANGELOG_OLD.md)\n\u003c!--\n\tPlaceholder for next release:\n\t### __WORK IN PROGRESS__\n--\u003e\n### 3.1.3 (2022-04-24)\n* Fix: support for Node.js 18\n\n### 3.1.2 (2021-12-31)\n* Fixed a typo preventing the adapter from controlling air purifiers\n\n### 3.1.1 (2021-12-21)\n* Fix: actually create states for STARKVIND Air Purifier\n\n### 3.1.0 (2021-12-19)\n* Add support for STARKVIND Air Purifier\n\n### 3.0.2 (2021-12-03)\n* Improve support for older browsers\n* Update dependencies\n\n## License\nThe MIT License (MIT)\n\nCopyright (c) 2017-2022 AlCalzone \u003cd.griesel@gmx.net\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falcalzone%2Fiobroker.tradfri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falcalzone%2Fiobroker.tradfri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falcalzone%2Fiobroker.tradfri/lists"}