tig-robertgrundeken / ghoma-google-home

Low tech way to connect G-homa wifi plugs to your Google Home
6 stars 0 forks source link

webproxy doesn't catch any messages and com #1

Open alexvossatgoogle opened 6 years ago

alexvossatgoogle commented 6 years ago

Hi Robert, it's not an issue with your phpfile but I can't get charles to work properly. When I start the g-homa app on my android phone it doesn't catch any messages when I toggle the light switch. I left the default proxy settings unchanged in charles (port 8888). charles runs on my Mac book with IP 192.168.178.70 and I have set the prxy of my WLAN's connection on my pixel (same WIFI network) to that IP and port. However, nothing is captured?! Any ideas?

What IS captured are messages from my android client (Pixel phone) with IP 192.168.178.69 to the rc.g-homa.com server. However, these messages are not being send out when I toggle the light swtich but seem to be other client app to server related communications.

Any idea?

Looking forward to your relply...

BR, Alex

0o0o0o0o0o commented 6 years ago

Hey same issue for me. I think the problem is that G Homa is probably using https right now and it's encrypted so we can't read the commands anymore. I'm not an expert though.

strikersgh commented 6 years ago

Hey, i captured some packages from the G-Homa app and probably i found something. But i have no idea what is to do next with it :/ hopefully you can help me

captured from the upstream with "Packet Capture" (there is more if you need)

`POST /api/V1/operation/device HTTP/1.1 Content-Type: application/json; charset=utf-8 User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0.1; Nexus 5 Build/M4B30Z) Host: rc.g-homa.com Connection: Keep-Alive Accept-Encoding: gzip Content-Length: 405

{ "body": { "accessToken":"th. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "command":{ "deviceNo":"xxxxxxxxxxxxxxxxxxxxxxxx", "action":"1", "key":"0", "value":"1" } }, "system":{ "ver":"1.0.0", "sign":"xxxxxxxxxxxxxxxxxxxxxx", "appKey":"xxx-xxxx-xxxx-xxx-xxxx", "time":"1513594763", "clientSys":"android-6.0.1", "appVer":"3.0.19", "clientModel":"LGE Nexus5" } }`

Will737 commented 6 years ago

G-Homa changed the app to go over https in the latest versions. However if you download a version of the G-Homa app that is a lot older it will go over HTTP. I'm not sure what version changed to HTTPS but I found a APK which was V2.2.4 and that goes over HTTP.

tig-robertgrundeken commented 6 years ago

@Will737 Great info, thanks!