Giter VIP home page Giter VIP logo

Comments (4)

kaeptnslow avatar kaeptnslow commented on August 19, 2024

sorry, i cant files....here are the code directly:

tuya-smart-device.html:

`<script type="text/javascript">
RED.nodes.registerType('tuya-smart-device', {
category: 'smarthome',
color: '#C7E9C0',
defaults: {
deviceName: { value: "", required: true },
deviceId: { value: "", required: true },
deviceKey: { value: "", required: true },
deviceIp: { value: "", required: false},
version: { value: "3.2", required: false}
},
inputs: 1,
outputs: 1,
icon: "bridge.svg",
label: function () {
return this.deviceName || "tuya smart device";
}
});
</script>

<script type="text/html" data-template-name="tuya-smart-device">
Device Name
Device Virtual IP
Device Virtual ID
Device Key
Version
` **tuya-smart-device.js** ` this.deviceIp = config.deviceIp; this.version = config.version; if (!config.deviceIp) config.deviceIp = ""; if (!config.version) config.version = 3.1; .... let tuyaDevice = new TuyaDevice({ id: node.deviceId, key: node.deviceKey, issueGetOnConnect: false, nullPayloadOnJSONError: false, ip: node.deviceIp, version: node.version }); `

from node-red-contrib-tuya-smart-device.

vinodsr avatar vinodsr commented on August 19, 2024

The code is not clear . Is it possible for you to submit a pull request ?

from node-red-contrib-tuya-smart-device.

kaeptnslow avatar kaeptnslow commented on August 19, 2024

do i need an new branch to do this?

if ask, because it seems that i cant create new branch

from node-red-contrib-tuya-smart-device.

vinodsr avatar vinodsr commented on August 19, 2024

Understood the code . I am working on it.

from node-red-contrib-tuya-smart-device.

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.