webdjoe / pyvesync

pyvesync is a python library to manage Etekcity & Levoit smart devices
MIT License
175 stars 83 forks source link

Add Nightlight Support for Dual 200S Humidifier #221

Open tango2590 opened 10 months ago

tango2590 commented 10 months ago

Just picked up a Dual 200S humidifier (LUH-D301S-WUSR) and already have it integrated in HA. I'd like to request the addition of the nightlight feature (color and brightness) which are available in the app. Willing to get captures if someone can tell me how. Thanks!

webdjoe commented 5 months ago

The only way to capture is to install the vesync APK on an Android Emulator (like Android Studio) using a generic android OS version. Then using frida as shown in Sections 4,5 in Ultimate Guide. After SSL pinning is disabled, capture packets with SSL proxy with charles or some other software that installs a root certificate.

Check out this for setting frida up. I never used genymotion, only Android Studio which requires a generic android OS to root the device.