EDIT Jan 2023: i suggest you all to use: https://github.com/FlagX/ha-ledvance-tuya-resync-localkey
Finally i managed to get localKey for this trashdevices
pretty hacky procedure, but at least i got the key:
i used
- the 1.0.0 (probably also work with the latest) version of LDV smart wifi: https://m.allfreeapk.com/ledvance-smart-wifi,17068539/download.html
- a rooted android 10 device (an emulator and probably also others android versions are okay) with frida-server running: https://frida.re/docs/android/
- macos with frida installed (frida is multiplatform, so any OS should be okay)
login to the app on the android device, than on a terminal of the PC launch this command with the app in foreground frida-trace -U --decorate -j '*!*encodeString*/isu' -F
, refresh the list of device and you will get on the terminal a json-like blob, copy in a text editor and ctrl+f for localKey
(oviusly if you have more than one device you will get multiple keys, also if you configured any group in the app)
Actually i hope i’ll find the right config for localtuya.
EDIT: all is fine with the one suggested for the sylvania bulb
https://community.home-assistant.io/t/sylvania-smart-wifi/223985/25
so, finally got this bulb in HA and working flawlessy!!