Comments (8)
Might be related to the broadcast error. Please update the CLI tool with npm i @tuyapi/[email protected] -g
and try again.
If it still doesn't work, please post the output of DEBUG=* sudo tuya-cli link-wizard
.
Also, what's the output of node -v
?
from tuyapi.
well, now I'm getting a timeout error, I'm using the same wifi network that I used with my phone and the tuya app, I'm not sure why I'm getting it.
from tuyapi.
@Minichota please see my above comment. I need more details before I can help.
from tuyapi.
Well, when I used to debugger one, it appeared to work... now my only issue is that I'm using a python version of this api and I'm getting timeout errors when attempting to run it. I think I'm done with this part of the process though
from tuyapi.
Ok. If you're using the Python port, please open future issues at clach04/python-tuya.
I'm closing this for now, feel free to reopen it if you need to.
from tuyapi.
just found this tuyapi and im trying to get the ids and keys right now but im getting the exact same error as Minichota
? Make the indicator light on your device flash.
For most devices, this means holding down the main button.
Press return when it's blinking. Yes
? What's your WiFi called? WIFI
? What's the password for your WiFi? [hidden]
? How many devices do you want to link? 1
? Do you want to save devices that are successfully linked? Yes
⠇ Registering devices(s)...events.js:167
throw er; // Unhandled 'error' event
^
Error [ERR_SOCKET_CANNOT_SEND]: Unable to send data
at Socket.onListenError (dgram.js:335:22)
at Object.onceWrapper (events.js:273:13)
at Socket.emit (events.js:182:13)
at state.handle.lookup (dgram.js:239:14)
at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
at Socket.onListenError (dgram.js:335:8)
at Object.onceWrapper (events.js:273:13)
[... lines matching original stack trace ...]
at process._tickCallback (internal/process/next_tick.js:63:19)
on macOS HighSierra version 10.13.6
from tuyapi.
@Gunnthorian what's your NodeJS version? It should be >=8.0.0.
Can you please try running DEBUG=* tuya-cli link-wizard
and then post the output?
from tuyapi.
@codetheweb my node version is 10.8.0
After running it with the debug the outlet worked (no idea why, I just saw a success message) I will be heading home with more to test and I'll let you know.
update:
works fine now, the 2.4ghz networks are just super slow in an apartment complex so setting the devices up is just really hit or miss. As for the error it hasn't shown up again since.
from tuyapi.
Related Issues (20)
- Error: GET_TOKEN_FAILED 1114, your ip(xxx.xxx.xxx.xxx) don't have access to this API HOT 1
- Some of my localtuya devices periodically become unavailable HOT 2
- App show "no access". I turn on all permissions when creating new Cloud Project. And I cheched my region. All right. HOT 1
- Implement 3.5 protocol
- Setting brightness overrides color / set multiple properties only applies last HOT 2
- Weird encrypted response from tuya bulb ? HOT 6
- Philips Avent Baby Monitor uses Tuya HOT 3
- Virtual device timed out HOT 1
- Tuya IOT Platform error 1106: permission deny HOT 1
- Cannot install with "npm install codetheweb/tuyapi" HOT 1
- device.get() never returns HOT 9
- Not being able to connect using device.connect() HOT 7
- tuya-cli get does not work, ECONNRESET error. HOT 1
- 302 status on my TuyaPlatform plugin HOT 1
- `dp-refresh` fire for all devices of the gateway instead of the only one concerned HOT 1
- is there a breaking change at tuya ? HOT 6
- Use Insecure Algorithm AES-ECB as Default Encryption Method HOT 1
- npm install codetheweb/tuyapi Infinite loading occurs during installation.
- virtual ID HOT 1
- Just lost all my Local Tuya devices HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tuyapi.