Comments (17)
Still the same issue with v3.0.1
"Error: find() timed out. Is the device powered on and the ID or IP correct?"
- using either the IP -or- the ID
OK - update - it works it you don't do as told on the node ("Use Device IP or Device Virtual ID (Don't use both)")
....and enter BOTH the ID AND IP!
from node-red-contrib-tuya-smart-device.
I'm experiencing exactly the same problem. But then again, I have essentially the same problem with the command line tuya-cli get
, so it is likely a TuyAPI issue, rather than a node-red-contrib-tuya-smart-device issue.
from node-red-contrib-tuya-smart-device.
Mine is connected OK currently by just using the IP address.
from node-red-contrib-tuya-smart-device.
same problem to me; I want to connect to a door sensor but this doesn't work. All other devices (sockets etc) are working
from node-red-contrib-tuya-smart-device.
same problem, but i have it with sockets as well. does anyone know something about the cause? it's a bit weird, on my notebook it works, but on my raspberryPI - on the same WiFi network, it does not.
from node-red-contrib-tuya-smart-device.
Same problem. I'm happy to help isolate or test a patch.
from node-red-contrib-tuya-smart-device.
@malosaa Can you please confirm if tuya-cli get for the same device is working ?
Usage: cli get [options]
get a property on a device
Options:
-s, --save save key so you can omit it for subsequent commands
--ip <ip_addr> ip address of device
--id <id> id of device
--key [key] key of device
--dps [dps] property index to get (default: 1)
-a, --all get all properties of a device (default: false)
--protocol-version [version] tuya protocol version (default: 3.1)
-h, --help display help for command
from node-red-contrib-tuya-smart-device.
"Error: find() timed out. Is the device powered on and the ID or IP correct?"
There's no way to add the IP using this node.
I can get all my devices to work fine using tuya-cli - but have to specify the IP.
from node-red-contrib-tuya-smart-device.
"Error: find() timed out. Is the device powered on and the ID or IP correct?"
There's no way to add the IP using this node.
I personally cannot confirm this entirely, but I have to report that by providing the IP address as well, I did have success with tuya-cli get
.
from node-red-contrib-tuya-smart-device.
I tested with postman to get connection to the door sensor. The result for the GET request "Query command set supported by device" was:
"code": 2009,
"msg": "not support this device",
"success": false,
"t": 1609690625115
May be this helps for analysis. The request "Get device info" gives following back:
"result": {
"active_time": 1607528534,
"biz_type": 18,
"category": "qt",
"create_time": 1607528534,
"icon": "smart/icon/15318135469lzeqin2vrq_0.jpg",
"id": "75364874ecfxxxxxxxxxx",
"ip": "84.61.xxxxxxxx",
"local_key": "6828e08d0xxxxxxxx",
"name": "Terrassentür",
"online": true,
"owner_id": "322xxxx",
"product_id": "g2l1k6zcfjjtddue",
"product_name": "SH 510",
"status": [],
"sub": false,
"time_zone": "+01:00",
"uid": "eu1547660924990g2hIC",
"update_time": 1607781051,
"uuid": "75364874ecfabc97808e"
},
"success": true,
"t": 1609691184275
So you can see the device is online, but not supported by TuyAPi? (the xxx are unrecognizable made by me)
from node-red-contrib-tuya-smart-device.
I opened a ticket at Tuya and got following answer: "category type "qt" of the product ID hx5ztlztij4yxxvg is wrong".
Than I tested another (new) door sensor with
category "mcs" and product_id "hx5ztlztij4yxxvg".
This one is working with postman but still NOT with node-red. The postman output is following:
"result": {
"active_time": 1609913827,
"biz_type": 18,
"category": "mcs",
"create_time": 1609913827,
"icon": "smart/icon/1551969519maq7h6mi1l_0.jpg",
"id": "xxxx",
"ip": "84.61.141.xxx",
"local_key": "xxx",
"name": "Küchentür",
"online": true,
"owner_id": "xxx",
"product_id": "hx5ztlztij4yxxvg",
"product_name": "Door Detector",
"status": [
{
"code": "doorcontact_state",
"value": false
},
{
"code": "battery_state",
"value": "high"
}
],
"sub": false,
"time_zone": "+01:00",
"uid": "eu1547660924990g2hIC",
"update_time": 1609913879,
"uuid": "xxx"
},
"success": true,
"t": 1610195936215
In node-red I still can not connect to the decvice, the error is "find() timed out. Is the device powered on and the ID or IP correct?"
P.S. I updated the node to version 2.0.0
from node-red-contrib-tuya-smart-device.
"TuyAPI does not support sensors due to the fact that they only connect to the network when their state changes. There are no plans to add support as it's out of scope to intercept network requests."
For that Zigbee sensors are better: we can talk with Zigbee gateway because it is always connected.
For wifi sensor like 'Door Detector' I found a workaround to catch them with node-red: see tuyaTRIGGER
Best regards
m.s.
from node-red-contrib-tuya-smart-device.
Thank you for response. What I not really understand: why do I get connection via postman but via node-red sensors like door sensor are not supported? Isn't postman using the same Tuyapi?
But I tried your suggestion with tuyaTRIGGER; first I had to install the SQL-DB, a bit difficult for the first time and not really necessary at the end; but I learned much new, so it's fine.
It took me a while to understand, that you use another tuya device (bridge) to save the information from the door sensor.
Great idea and it's working. Thank you!
from node-red-contrib-tuya-smart-device.
I am also having problems with it connecting and I see these errors:
"Can't Find Device"
"Error: find() timed out. Is the device powered on and the ID or IP correct?"
I only have one device on my Tuya account a Galaxy Star Projector Light.
Sometimes it connects OK but a lot of the time it doesn't and I see that error.
The tuya-cli wizard is still working for me and returns a Key for the specified device.
Thanks
EDIT: After rebooting my Raspberry Pi a few times my Tuya node has connected now. Will monitor it. Thanks.
from node-red-contrib-tuya-smart-device.
Still the same issue with v3.0.1
"Error: find() timed out. Is the device powered on and the ID or IP correct?"
- using either the IP -or- the ID
Device is fine and controllable from CLI:
tuya-cli set --id [redacted] --key [redacted] --ip [redacted] --set true
- light goes on, etc,.
from node-red-contrib-tuya-smart-device.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from node-red-contrib-tuya-smart-device.
Auto closing the issue
from node-red-contrib-tuya-smart-device.
Related Issues (20)
- Tuning node-red-contib-tuya-smart-device V. 5.1.0 HOT 2
- How to get bluetooth device through Gateway HOT 3
- Error when update to 5.20 HOT 8
- Cannot install HOT 1
- Device not connected HOT 2
- Gateway connection glitch causes restart of Node-Red (uncaught) HOT 4
- Weird key format? HOT 3
- Tuya protocol 3.4, 3.5 support missed HOT 1
- An unusual response - 2 HOT 1
- Node does not work in conjunction with Http in node HOT 1
- how to connect to sub-devices that are managed by a tuya gateway? HOT 2
- Bi-Meter disconnects from node red HOT 5
- GET response the same for schema and DPS ID HOT 3
- unreadable 'data' output from node HOT 2
- Device not connected. Can't send the SET commmand HOT 1
- where do i set the api credentials HOT 1
- [announce] nr_Tuya_OpenAPI_2.0, a node_red flow to access Tuya Cloud HOT 1
- Manage all Tuya devices with node-red HOT 1
- Cluttered log file HOT 7
- Problem with Error code "Payload must be a number in range 0-100" 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 node-red-contrib-tuya-smart-device.