All Projects → noelportugal → wyze-node

noelportugal / wyze-node

Licence: other
An un-official API wrapper for Wyze products

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to wyze-node

wyzecam-hls
Converts MP4 files from WyzeCam NFS to HLS stream. Much more stable alternative to RTSP firmware.
Stars: ✭ 58 (-61.59%)
Mutual labels:  wyze, wyzecam
docker-wyze-bridge
RTMP/RTSP/LL-HLS bridge for Wyze cams in a docker container
Stars: ✭ 1,146 (+658.94%)
Mutual labels:  wyze, wyzecam
Chataigne
Artist-friendly Modular Machine for Art and Technology
Stars: ✭ 251 (+66.23%)
Mutual labels:  sensors
homebridge-wyze-connected-home
Wyze Connected Home plugin for Homebridge
Stars: ✭ 63 (-58.28%)
Mutual labels:  wyze
benchmarks-attitude-smartphones
Benchmark on Attitude Estimation with Smartphones (datasets & scripts)
Stars: ✭ 30 (-80.13%)
Mutual labels:  sensors
OpenMaterial
3D model exchange format with physical material properties for virtual development, test and validation of automated driving.
Stars: ✭ 23 (-84.77%)
Mutual labels:  sensors
anavi-examples
Examples for getting started and testing ANAVI Internet of Things and add-on boards (HAT & pHAT) for Raspberry Pi
Stars: ✭ 38 (-74.83%)
Mutual labels:  sensors
Smartimu
Inertial Sensor Development Kit,STM32F411C、NRF52810、MPU9250、LPS22HB
Stars: ✭ 231 (+52.98%)
Mutual labels:  sensors
GRT-iOS-HelloWorld
An example of how to integrate the Gesture Recognition Toolkit into an iPhone app
Stars: ✭ 34 (-77.48%)
Mutual labels:  sensors
tinnymodbus
RS485 ModBus tiny multi-sensor module
Stars: ✭ 75 (-50.33%)
Mutual labels:  sensors
CurrentSense-TinyML
Spying on Microcontrollers using Current Sensing and embedded TinyML models
Stars: ✭ 71 (-52.98%)
Mutual labels:  sensors
rpi boat utils
Utilities for Raspberry Pi, mostly for usage on a boat. Includes UART control scripts, traffic measurement tools for Mikrotik (RouterOS) and OpenWrt, AIS wireless daemon, AIS decoder and an extensible boat & IoT sensor daemon for Signal K.
Stars: ✭ 71 (-52.98%)
Mutual labels:  sensors
ZeroSimROSUnity
Robotic simulation in Unity with ROS integration.
Stars: ✭ 112 (-25.83%)
Mutual labels:  sensors
elasticsearch-toolbox
🌳 A simple, easy to use ide for all you elasticsearch needs right from chrome (deprecated as chrome apps are deprecated and app was meant for es 2.)
Stars: ✭ 27 (-82.12%)
Mutual labels:  sense
ESPHome-Devices
A collection of ESPHome custom components, configuration files, and custom code for my various ESP8266/ESP32 devices that integrate with Home Assistant.
Stars: ✭ 83 (-45.03%)
Mutual labels:  sense
Drivers
TinyGo drivers for sensors and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
Stars: ✭ 250 (+65.56%)
Mutual labels:  sensors
long-live-sense
As Hello said Goodbye, this repo is in an effort to keep the Hardware alive
Stars: ✭ 18 (-88.08%)
Mutual labels:  sense
HASS.Agent
Windows-based client for Home Assistant. Provides notifications, quick actions, commands, sensors and more.
Stars: ✭ 590 (+290.73%)
Mutual labels:  sensors
Deep XF
Package towards building Explainable Forecasting and Nowcasting Models with State-of-the-art Deep Neural Networks and Dynamic Factor Model on Time Series data sets with single line of code. Also, provides utilify facility for time-series signal similarities matching, and removing noise from timeseries signals.
Stars: ✭ 83 (-45.03%)
Mutual labels:  sensors
ESPSense
Use ESPHome to emulate TP-Link Kasa HS110 plugs, and report energy usage to your Sense Home Energy Monitor (or anything else on your network!) via ESP8266/ESP32 devices
Stars: ✭ 36 (-76.16%)
Mutual labels:  sense

wyze-node

This 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.

Setup

npm install wyze-node --save

Example

const Wyze = require('wyze-node')

const options = {
  username: process.env.username,
  password: process.env.password
}
const wyze = new Wyze(options)

  ; (async () => {
    let device, state, result

    // Get all Wyze devices
    const devices = await wyze.getDeviceList()
    console.log(devices)

    // Get a Wyze Bulb by name and turn it off.
    device = await wyze.getDeviceByName('Porch Light')
    result = await wyze.turnOff(device)
    console.log(result)

    // Get the state of a Wyze Sense contact sensor
    device = await wyze.getDeviceByName('Front Door')
    state = await wyze.getDeviceState(device)
    console.log(`${device.nickname} is ${state}`)

  })()

Run

[email protected] password=123456 node index.js

Helper methods

Use this helper methods to interact with wyze-node.

  • wyze.getDeviceList()
  • wyze.getDeviceByName(nickname)
  • wyze.getDeviceByMac(mac)
  • wyze.getDevicesByType(type)
  • wyze.getDevicesByModel(model)
  • wyze.getDeviceGroupsList()
  • wyze.getDeviceSortList()
  • wyze.turnOn(device)
  • wyze.turnOff(device)
  • wyze.getDeviceStatus(device)
  • wyze.getDeviceState(device)

Internal methods

  • wyze.login()
  • wyze.getRefreshToken()
  • wyze.getObjectList()
  • wyze.runAction(instanceId, providerKey, actionKey)
  • wyze.getDeviceInfo(deviceMac, deviceModel)
  • wyze.getPropertyList(deviceMac, deviceModel)
  • wyze.setProperty(deviceMac, deviceModel, propertyId, propertyValue)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].