0x5e / homebridge-tuya-platform

Make homebridge-tuya-platform great again.
MIT License
206 stars 58 forks source link

Local/no cloud support? #90

Open soxrok2212 opened 1 year ago

soxrok2212 commented 1 year ago

Looking to see if this verison supports completely offline functionality. I don't want to hook into the cloud to make this work. Seems like the upstream version does not but is "on the roadmap".

0x5e commented 1 year ago

Hi @soxrok2212 , I know lots of people want local control, same as me. However there's some reason why I won't do this:

  1. Tuya as a company has its business plans, they are not just selling the hardware modules for profit, but also paas & saas service. Company won't do charity to support local control because it may have no good to increase the income, but also decrease the software profit. As I know, Xiaomi didn't officialy publish its lan protocol technical detail, and apple won't tell us about the airplay protocol, they are private protocols, so does tuya lan protocol.
  2. I worked in Tuya for years, I know many details about the protocol, and I even have the source code, but It's illegal for me to do so, what I can do is just using Tuya's public APIs and SDKs.
soxrok2212 commented 1 year ago

Understood. Hopefully it comes to fruition one day!

crunchtime2k commented 1 year ago

Hi @soxrok2212 , I know lots of people want local control, same as me. However there's some reason why I won't do this:

  1. Tuya as a company has its business plans, they are not just selling the hardware modules for profit, but also paas & saas service. Company won't do charity to support local control because it may have no good to increase the income, but also decrease the software profit. As I know, Xiaomi didn't officialy publish its lan protocol technical detail, and apple won't tell us about the airplay protocol, they are private protocols, so does tuya lan protocol.
  2. I worked in Tuya for years, I know many details about the protocol, and I even have the source code, but It's illegal for me to do so, what I can do is just using Tuya's public APIs and SDKs.

Not to rant to much as I understand your position however competing products have no issue working seamlessly without the massive headache tuya products require to work on local LAN. TuYa smart products are getting a ever increasing disdain from the smart home enthusiasts and the decisions tuya continues to make regarding the strict cloud based operation of “OUR” products is driving MANY away to competing brands.

Overall the actual amount of people wanting to setup these devices with lan control is most likely less than 1% but when you piss off the most vocal groups it does incredible brand damage. I myself am almost about to return and trash all my tuya powered devices over this local control headache. I have the local keys for the devices but why make it such a headache to implement when it could be done easy. Learn from Wiz lights , easy local control and a much nicer mobile app. Tuya needs to forget WE OWN our products , not them.

0x5e commented 1 year ago

@crunchtime2k agree with you, I'm the 1% people who want lan control too, after 1.7.0 goes to release I will consider how to support this, both legal and workable.

wbln commented 1 year ago

Do you have any idea of when this might happen?

0x5e commented 1 year ago

@wbln I'm not sure, maybe end of this year, or even later :(

SoCuul commented 10 months ago

Has their been any updates on this? Love what you've done with this plugin by the way, it's been amazing to use!

Ramchandani-g commented 3 weeks ago

@0x5e Any update on local support? I don't have any issues with cloud but it is too slow. I see 2-3 seconds delay. Hence the need to go local. Appreciate your efforts.

SoCuul commented 3 weeks ago

@0x5e Any update on local support? I don't have any issues with cloud but it is too slow. I see 2-3 seconds delay. Hence the need to go local. Appreciate your efforts.

https://github.com/iRayanKhan/homebridge-tuya The plugin i linked works locally. Tried it a while ago, and it worked pretty well iirc. Not using homebridge anymore though.