Comments (24)
codetheweb/tuyapi#215 (comment)
from cli.
@codetheweb The lastest changes i did in my stuff to get it successfully working qith all problems cases from users is referenced in codetheweb/tuyapi#250 (comment) ... If you are faster then me to get the changes from there I can also prepare a PR
from cli.
When checking Charles then all requests are done using HTTP/2 and compressed ... compression should be supported by Anyproxy ... But all requests are shown as HTTP/1.1 there ... do'nt know if this is the problem ...
from cli.
Info: it seems that on Android App version 3.9 is working, app 3.10 not ... Android older version could be available at https://github.com/Apollon77/ioBroker.tuya/issues/url
from cli.
Is someone able to dig into the APp to check the differences? I would expect they added client certificated or other cert chain checking to the App ... but then decompiling could help to get the details /certs :)
from cli.
One info from one user (unverified):
The main difference beetween the packages version is the node. I downgraded the debian's 10.15.2 to 8.16.0 from nodesource and the proxy start working, even with the 3.11 Smart Life app. Before that, i got the network error in the app.
from cli.
Just tried with v8.16.0 and no success, although I do have the iOS 13 beta which may be part of the issue.
from cli.
tipp: make the iobroker hom plugin like the hombridge google home assistant plugin
from cli.
What do you mean?
from cli.
i mean like this: https://github.com/basdelfos/homebridge-tuya-web with the google api
from cli.
This is rather limited compared to the solution we have. And in fact the Proxy solution is still somehow working. Please use iobroker forum to get support.
from cli.
Meant to update this but forgot.
I took another look a few days ago and since AnyProxy isn't working with any HTTPS sites, my guess is that the issue is on their side.
I contacted Tuya and asked them if it was possible to add the localKey to responses in the Home Assistant API, but they refused.
from cli.
Maybe then we should open an issues anyproxy side??
from cli.
There's already 176 open issues, many of them similar to the problem we're facing. I think we need to find something else to use.
AnyProxy does work for HTTPS sites when requests come from my laptop, it just doesn't seem to work with iOS for some reason.
from cli.
:-( I searched. very long time till I found Anyproxy to use it here :-(
from cli.
That sounds awesome! I will adjust my code, test by myself and and also let users test it. If that works we are back into the game ;-)
from cli.
Adaopted your code and IT WORKS!! Great man. Thank you vry much!
from cli.
No problem, glad to hear it.
from cli.
@codetheweb I had some users with ECONNRESET and other ssl errors (Apollon77/ioBroker.tuya#67) ... I did some changes inspired from e.g. joeferner/node-http-mitm-proxy#165 and such ... see Apollon77/ioBroker.tuya@83c4a50 (main,js) ... I report back on results
from cli.
@codetheweb also the latest changes did not made it better ... https://forum.iobroker.net/topic/16103/aufruf-neuer-adapter-iobroker-tuya-wlan-devices-tuya-smart-life-und-andere/516 :-(
Still problems
from cli.
Hmm, unfortunately there's a lot variables that can result in weird errors like you're seeing. A few off the top of my head:
- NodeJS version (in the issue you linked to, some versions worked, some didn't)
- The underlying
http-mitm-proxy
package - OSes
- Different localizations (although I don't think this should be an issue for what we're doing)
- Network conditions
All that to say that it's really hard to reproduce most issues users see in this area unless they give great detail about their environment.
If you/others are able to consistently reproduce any problem, please open an issue with as much detail as possible. Otherwise, I'm sorry but I can't really help.
from cli.
@codetheweb I mainly posted it here as status update that you know stuff if tuya-cli users are coming with them ...
from cli.
👍
from cli.
I also did some adjustments on my code like reading full message and not only one chunk. As soon as it is proven I Update here too
from cli.
Related Issues (20)
- Dependency Dashboard
- Some errors are happening HOT 10
- Device-fetching problem HOT 2
- Weird characters on get operation HOT 8
- Possibility to change wifi password on tuya device? HOT 1
- tuya-cli get --id xxxxxx keeps showing the -help content HOT 1
- Tuya-cli not working HOT 2
- Device registered and failed to be registered HOT 1
- scrolling testing text HOT 11
- Feature Request: tuya-cli wizard to show ip and mac address HOT 1
- after connected the smart app no devices show up
- "tuya-cli get" produces a json string that does not conform to standard HOT 1
- Virtual device timed out
- Wizard returns a strange key (encoded ?) HOT 8
- Set true to a Bluetooth subdevice only working sporadically, set off always works HOT 1
- wizard does not show cid HOT 1
- Empty response from tuya-cli get HOT 1
- IGNORE, wrong repo
- Protocol 3.4 - not working
- There was an issue fetching that device. Make sure your account is linked and the ID is correct. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.