michalantoszczuk

Results 9 comments of michalantoszczuk

@webdjoe Setting color + brightness: `{ "payload": { "source": "APP", "method": "setLightStatus", "data": { "action": "on", "speed": 0, "green": 169, "brightness": 100, "blue": 177, "red": 255, "colorMode": "color" } },...

@webdjoe Turning on: `{ "payload": { "source": "APP", "method": "setSwitch", "data": { "id": 0, "enabled": true } }, "phoneOS": "iPadOS 15.2", "acceptLanguage": "en", "phoneBrand": "iPad", "cid": "ABC123***", "configModule": "WiFi_Bulb_MulticolorBulb_US", "token":...

@webdjoe Getting status: `{ "payload": { "source": "APP", "method": "getLightStatus", "data": {} }, "phoneOS": "iPadOS 15.2", "acceptLanguage": "en", "phoneBrand": "iPad", "cid": "ABC123***", "configModule": "WiFi_Bulb_MulticolorBulb_US", "token": "ABC123***", "timeZone": "Europe\/Warsaw", "traceId": "ABC123***",...

@webdjoe all should POST https://smartapi.vesync.com/cloud/v2/deviceManaged/bypassV2

@webdjoe macOS 12 (Apple M1) + VeSync app (from AppStore, version iPad/iPhone) + Charles (https://www.charlesproxy.com). If you need more packets, just tell me.

> Thank you, I will work on this. How did you capture packets from the app? > […](#) > On Thu, Feb 24, 2022 at 4:49 PM michalantoszczuk ***@***.***> wrote:...

![pyvesync_list](https://user-images.githubusercontent.com/5592744/180067010-f0ef9a46-f0de-4152-86d0-549bf53be61f.jpg)

@webdjoe anything else? getHomeInfo: Request: `:method POST :scheme https :path /cloud/v1/homeManaged/getHomeInfo :authority smartapi.vesync.com accept */* content-type application/json accept-encoding br;q=1.0, gzip;q=0.9, deflate;q=0.8 user-agent VeSync/3.2.42 (com.etekcity.vesyncPlatform; build:12; iOS 15.5.0) Alamofire/5.2.1 accept-language pl-PL;q=1.0,...

example: `{ "traceId": "123", "code": 0, "msg": "request success", "result": { "traceId": "123", "code": 0, "result": { "action": "on", "brightness": 100, "colorMode": "color", "speed": 0, "red": 255, "green": 1, "blue":...