Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to construct #10

Closed
quetim opened this issue Dec 2, 2017 · 5 comments
Closed

How to construct #10

quetim opened this issue Dec 2, 2017 · 5 comments

Comments

@quetim
Copy link

quetim commented Dec 2, 2017

Hello @codetheweb,

Thank you for your awesome code. Im a completely noob (I'm a humble MD student trying to make my home smart on a budget) and I'm having a hard time figuring out how to use all the information here to get my outlet to work with Homebridge. For example, I'm able to get all the parameters

ip: 'xxx.yyy.0.zzz', (The IP on the tuya server and the local IP on my router)
id: 'xxxxxxxxxxxxxxxxxxxx',
uid: 'xxxxxxxxxxxxxxxxxxxx',
key: 'xxxxxxxxxxxxxxxx'});

but I have no Idea what to do with them, what file I have to create (if any) or in which file do I have to put them to make it work. Could you please direct me on the right track, or provide me with some links to read and learn how I can make it work?

I would really appreciate any help, and sorry for any inconvenience.

@jepsonrob
Copy link
Contributor

It looks like @codetheweb has a Homebridge Plugin repo, so that might point you in the right direction!

@quetim
Copy link
Author

quetim commented Dec 3, 2017

Thank you @jepsonrob for the information. So that means that I only have to configure things in the Homebridge config and that’s it?

Thanks again!

@codetheweb
Copy link
Owner

Yep, just setup Homebridge according to the instructions in their repo, install my Homebridge plugin, put the needed configuration parameters in your Homebridge configuration, and you should be good to go.

@quetim
Copy link
Author

quetim commented Dec 3, 2017

Thank you. Made it appear on homebridge, now dealing with the { Error: read ECONNRESET (reading this post) but I'm progressing little by little.
Thanks again.

@codetheweb
Copy link
Owner

Not sure if you already did this, but make sure nothing else is also trying to connect to your device. I.E. turn off your phone and see if it works. ECONNRESET is usually due to two different TCP connections being opened simultaneously with a device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants