Giter Site home page Giter Site logo

Comments (5)

bnjroos avatar bnjroos commented on August 13, 2024

As this has not been updated for a while, you need to modify the tuyapi version to the latest.
tuyapi depency in package.json should be as followed:
"tuyapi": "github:codetheweb/tuyapi"
Then in njsTuya, when creating the tuyadevice object, add the version:

 tuya = new TuyaDevice({
    id: tuyaID,
    key: tuyaKey,
    ip: tuyaIP,
    version: '3.3',

This worked like a charm for me.

from njstuya.

RobsonW70 avatar RobsonW70 commented on August 13, 2024

I updated tuyapi in node_modules
I change version
and it dosn't work ;(
and when I setup version 3.3 the devices with old firmware dont work (they work only with 3.1 ;P(
Still issue with firmware 1.7 ;(
R

from njstuya.

RobsonW70 avatar RobsonW70 commented on August 13, 2024

it doesn't work with my device;(

from njstuya.

steve1066d avatar steve1066d commented on August 13, 2024

did you do a npm update after making the change?

from njstuya.

unparagoned avatar unparagoned commented on August 13, 2024

You should be able to specify the version using the argument -v 3.3.
node njstuya.js -ip 192.168.x.152 -v 3.3 -get '{ "schema": true}'

from njstuya.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.