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

Support Feit smart bulbs #24

Open
cassidyjames opened this issue Jul 30, 2019 · 3 comments
Open

Support Feit smart bulbs #24

cassidyjames opened this issue Jul 30, 2019 · 3 comments
Milestone

Comments

@cassidyjames
Copy link

I have a couple of LIFX bulbs, but a ton of Feit smart bulbs from Costco. They're much cheaper than LIFX and while they're not as vibrant, they are supported in Google Home and Alexa with the same interface as LIFX or Hue. It would be awesome to be able to control them from my desktop, too!

@meisenzahl, if you don't have access to Feit bulbs, I can send you some as a gift. Shoot me an email and I can hook you up. 😉

@meisenzahl meisenzahl added this to the 0.5.0 milestone Aug 4, 2019
@meisenzahl
Copy link
Member

Apparently the Feit smart bulbs are based on the Tuya platform. So I bought a compatible smart bulb and try to integrate it now.

@meisenzahl
Copy link
Member

My current research has shown that Tuya based lamps are difficult to integrate. I would prefer it if Home would work completely without cloud dependencies. But connecting Tuya based smart bulbs via the local network doesn't seem to be really user-friendly.

The local control protocol was reverse engineered by @codetheweb. (codetheweb/tuyapi) To control smart bulbs locally, however, many manual steps are necessary:

  1. Add any devices you want to use with tuyapi to the Tuya Smart app.
  2. Install the CLI tool by running npm i @tuyapi/cli -g. If it returns an error, you may need to prefix the command with sudo. (Tip: using sudo to install global packages is not considered best practice. See this NPM article for some help.)
  3. Install AnyProxy by running npm i anyproxy -g. Then run anyproxy-ca.
  4. Run tuya-cli list-app. It will print out a QR code; scan it with your phone and install the root certificate. After installation, trust the installed root certificate.
  5. Configure the proxy on your phone with the parameters provided in the console.
  6. Enable full trust of certificate by going to Settings > General > About > Certificate Trust Settings
  7. Open Tuya Smart and refresh the list of devices by "pulling down".
  8. A list of ID and key pairs should appear in the console.
  9. It's recommended to untrust the root certificate after you're done for security purposes.

I will continue to investigate the possibility of implementing a local connection even more user-friendly.

@codetheweb
Copy link

Got mentioned and decided to check this project out, it looks really cool.

You're correct @meisenzahl, getting local control to work is a bit of a chore. I'm not sure how opposed you are to cloud control, but Tuya created an API for Home Assistant that's very easy to use.

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