Giter VIP home page Giter VIP logo

Comments (17)

exemmer avatar exemmer commented on August 19, 2024 2

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.

yasurok avatar yasurok commented on August 19, 2024 1

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.

cw-kid avatar cw-kid commented on August 19, 2024 1

Mine is connected OK currently by just using the IP address.

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

EEAW avatar EEAW commented on August 19, 2024

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.

birdayz avatar birdayz commented on August 19, 2024

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.

cjkring avatar cjkring commented on August 19, 2024

Same problem. I'm happy to help isolate or test a patch.

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

vinodsr avatar vinodsr commented on August 19, 2024

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

exemmer avatar exemmer commented on August 19, 2024

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

yasurok avatar yasurok commented on August 19, 2024

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

EEAW avatar EEAW commented on August 19, 2024

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.

EEAW avatar EEAW commented on August 19, 2024

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.

msillano avatar msillano commented on August 19, 2024

@EEAW see tuyapi:

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

EEAW avatar EEAW commented on August 19, 2024

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.

cw-kid avatar cw-kid commented on August 19, 2024

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.

exemmer avatar exemmer commented on August 19, 2024

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.

stale avatar stale commented on August 19, 2024

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.

stale avatar stale commented on August 19, 2024

Auto closing the issue

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.