{"id":13573559,"url":"https://github.com/noelportugal/wyze-node","last_synced_at":"2025-04-04T12:31:11.568Z","repository":{"id":37778946,"uuid":"187551158","full_name":"noelportugal/wyze-node","owner":"noelportugal","description":"An un-official API wrapper for Wyze products","archived":false,"fork":false,"pushed_at":"2024-02-04T13:00:14.000Z","size":41,"stargazers_count":174,"open_issues_count":18,"forks_count":22,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-02-26T23:51:33.820Z","etag":null,"topics":["api","javascript","node","sense","sensors","wyze","wyzeapi","wyzecam"],"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/noelportugal.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}},"created_at":"2019-05-20T01:58:30.000Z","updated_at":"2024-12-30T01:48:10.000Z","dependencies_parsed_at":"2024-03-17T04:38:27.888Z","dependency_job_id":"b8d40d94-a7bf-4e52-96fb-c3edeb0567cc","html_url":"https://github.com/noelportugal/wyze-node","commit_stats":{"total_commits":27,"total_committers":7,"mean_commits":3.857142857142857,"dds":0.4444444444444444,"last_synced_commit":"3ff10eb93c02491fe106e99273f98fcadfd10394"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noelportugal%2Fwyze-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noelportugal%2Fwyze-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noelportugal%2Fwyze-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noelportugal%2Fwyze-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noelportugal","download_url":"https://codeload.github.com/noelportugal/wyze-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247179605,"owners_count":20897073,"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":["api","javascript","node","sense","sensors","wyze","wyzeapi","wyzecam"],"created_at":"2024-08-01T15:00:37.594Z","updated_at":"2025-04-04T12:31:06.779Z","avatar_url":"https://github.com/noelportugal.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# wyze-node\nThis is an unofficial Wyze API. This library uses the internal APIs from the Wyze mobile app. A list of all Wyze devices can be retrieved to check the status of Wyze Cameras, Wyze Sense, Wyze Bulbs, Wyze Plugs and possibly Wyze locks (untested). This API can turn on and off cameras, lightbulbs and smart plugs.\n\n## Setup\n`npm install wyze-node --save`\n\n## Example\n```\nconst Wyze = require('wyze-node')\n\nconst options = {\n  username: process.env.username,\n  password: process.env.password\n}\nconst wyze = new Wyze(options)\n\n  ; (async () =\u003e {\n    let device, state, result\n\n    // Get all Wyze devices\n    const devices = await wyze.getDeviceList()\n    console.log(devices)\n\n    // Get a Wyze Bulb by name and turn it off.\n    device = await wyze.getDeviceByName('Porch Light')\n    result = await wyze.turnOff(device)\n    console.log(result)\n\n    // Get the state of a Wyze Sense contact sensor\n    device = await wyze.getDeviceByName('Front Door')\n    state = await wyze.getDeviceState(device)\n    console.log(`${device.nickname} is ${state}`)\n\n  })()\n```\n\n## Run\n`username=first.last@email.om password=123456 node index.js`\n\n## Helper methods\n\nUse this helper methods to interact with wyze-node.\n\n- wyze.getDeviceList()\n- wyze.getDeviceByName(nickname)\n- wyze.getDeviceByMac(mac)\n- wyze.getDevicesByType(type)\n- wyze.getDevicesByModel(model)\n- wyze.getDeviceGroupsList()\n- wyze.getDeviceSortList()\n- wyze.turnOn(device)\n- wyze.turnOff(device)\n- wyze.getDeviceStatus(device)\n- wyze.getDeviceState(device)\n\n\n\n## Internal methods\n\n- wyze.login()\n- wyze.getRefreshToken()\n- wyze.getObjectList()\n- wyze.runAction(instanceId, providerKey, actionKey)\n- wyze.getDeviceInfo(deviceMac, deviceModel)\n- wyze.getPropertyList(deviceMac, deviceModel)\n- wyze.setProperty(deviceMac, deviceModel, propertyId, propertyValue)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoelportugal%2Fwyze-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoelportugal%2Fwyze-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoelportugal%2Fwyze-node/lists"}