seydx / homebridge-star-projector

Homebridge plugin for controlling tuya/smartlife based star projectors
MIT License
41 stars 2 forks source link

[StarProjector] test: An error occured during connecting to Tuya API: find() timed out #6

Open ManioqTv opened 2 years ago

ManioqTv commented 2 years ago

Hello So first sorry for my english, french here ^^ So I started recently to build my homebridge server and want to add more and more accessories to my homekit. I got this tuya/smartlife star projector for christmas and wanted to connect it with my homebridge/homekit I followed all the step correctly but after rebooting homebridge because of plugin configuration to apply, the logs say the following error : [StarProjector] test: An error occured during connecting to Tuya API: find() timed out. Is the device powered on and the ID or IP correct? - Retry in 60s

image

I have a new button in my homebridge and homekit and can toggle it on or off but nothing happen image

so what's next please ?

ScharV commented 2 years ago

Having the same issue and have been looking for a solution for some weeks. Found this at Tuya Api https://github.com/codetheweb/tuyapi/issues/557 maybe @seydx can have a look on it.

Doppelherz commented 2 years ago

same problem here as well... any hint how to solve this issue?

ScharV commented 2 years ago

Unfortunately not😢

ScharV commented 2 years ago

Did the recommended steps of @adlerre and it is working😍

adlerre commented 2 years ago

What I'm done:

  1. set fixed IP per DHPC for star projector e.g. 192.168.1.10
  2. check with ping 192.168.1.10
  3. double check nmap 192.168.1.10 (6668/tcp should open)
  4. set tuya id, key and ip to 192.168.1.10

voila it's working ;)

csmarshall commented 2 years ago

I had an issue with the find() not working and it turned out to be that my "project" in the Tuya system was associated with the "Eastern US" Datacenter rather than the Western (which is the default). Once I changed that magically everything worked.

Doppelherz commented 2 years ago

@adlerre I've installed v1.0.6 and cannot set the ip in the homebridge plugin form directly. I added "ip": "192.168.178.10", in the config file under "tuyaKey" and rebooted homebridge.

{
            "name": "StarProjector",
            "debug": true,
            "projectors": [
                {
                    "name": "StarProjector",
                    "tuyaId": "abcdefghijk123",
                    "tuyaKey": "abcdefghijk123",
                    "ip": "192.168.178.10",
                    "color": true,
                    "laser": true,
                    "starRotation": true
                }
            ],
            "platform": "StarProjector"
        }

The logs are showing the following again:

[StarProjector] StarProjector: An error occured during connecting to Tuya API: find() timed out. Is the device powered on and the ID or IP correct? - Retry in 60s

@csmarshall where can i change the datacenter directly? I cannot find such option in my tuya iot dev project.

adlerre commented 2 years ago

@Doppelherz v1.0.6 is the old release without this option. But you can install manual, with:

npm i -g seydx/homebridge-star-projector#14aa562

after you should see the IP option in the configuration screen.

Doppelherz commented 2 years ago

ahhh, i tought the merge into master would automatically set a new release version. Your commit works on my machine, too! Thanks. Other thing: Can someone help me to reconnect homebridge to apple home again? 😅

adlerre commented 2 years ago

@Doppelherz I think you need this.

csmarshall commented 2 years ago

@csmarshall where can i change the datacenter directly? I cannot find such option in my tuya iot dev project.

Log into iot.tuya.com -> Cloud -> Development -> (select your project name) -> Overview -> Edit (near the top 3/4ths of the way over).

This will bring up: "Project Name", "Description", "Industry", "Development Method", with the bottom being "Data Center".

From there you want to remove anything present and for me (since I registered my Tuya account as "US") I changed it to "Western America Data Center".

Magically after I saved it the queries seemed to return, and a few minutes later Viola: https://twitter.com/cs_marshall/status/1483300017465135106/video/1

ManioqTv commented 2 years ago

3. 6668

Ok so this worked for me

leobaehre commented 2 years ago

Hello, I still have this issue.,..

I can't find out how to install seydx/homebridge-star-projector#14aa562

Can someone explain?

adlerre commented 2 years ago

Hello @xsubo5

go to CLI and install with:

npm i -g seydx/homebridge-star-projector#14aa562

leobaehre commented 2 years ago

go to CLI and install with:

npm i -g seydx/homebridge-star-projector#14aa562

I have done that.

I dont see a options with ip in the configuration screen.

Thanks

leobaehre commented 2 years ago

Hello @adlerre.

I got your branch working with the command npm install git+https://github.com/seydx/homebridge-star-projector.git\#14aa562

But now I get this error after I put the ip in: image

I can ping the ip so it should work