yup, worked like a charm, indeed!
I have been at this for 3 hoursâŚ
I am SO close. But i keep getting
âNo frontmost application on Android Emulator 5554â
frida-trace --version
15.0.17
adb shell
generic_x86_arm:/ #
When i look at the app version on the virtual phone it shows as version 1.2.0?
I followed the link from HowTo - Ledvance SMART+ Plug Wifi in Home Assistant (Solution)
Also, no matter what i do i keep getting
âUnable to locate adbâ when i start the AVD. But isnt ADB working when i am able to install the app?
SUCCESS!!
i had to open the shell with
adb shell
and then run these two commands âmanuallyâ
chmod 755 /data/local/tmp/frida-server
/data/local/tmp/frida-server &
Then it worked
BTW. I am trying to integrate LEDVANCE GARDEN POLE RGB + WHITE
These are my settings in local Tuya
Great work guys!
I was able to trace in powershell but my JS bloob does not contain any localkeysâŚ
Thanks
Edit: I managed to find key, had to refresh devices multiple times
Hi Flag - Iâve been trying this for a day now and canât get âadd rootâ to execute. Normally comes back with âcanât run in production modesâ or something. Can you help?
Hi @Flag - Iâve gotten pretty far now but have the same two issues.
-
adb shell /data/local/tmp/frida-server &
Always says cant because itâs a directory -
frida-trace -U --decorate -j *!encodeString/isu -F
Always returns âNo frontmost application on Android Emulator 5554â
I have the emulator running with the app and I can see my devices so Iâm not sure whatâs wrong at this point.
Please help!
Hi Frank,
try to run the comman one by one.
first: adb shell (press enter) and then the other commands line by line!
Do you haave the right Android Version in the emulator running?
With the first tutorial, i got crazy because many steps are not included. I spent days with trial and error. Today, wouldnt buy theese plugs and would take better one with zigbee.
Hey - thanks for responding. Iâm all up and running! I am buying Zigbee stuff in the future.
@FlyingHippo, thanks a lot for the screenshot detailing your entity setup, it saved me the trouble of trial-and-error to configure it myself.
I am myself dealing with a Classic A 100 E27 14W Multicolor bulb (#4058075485518)
And only the color temperature (aka white warmth) was different from what you posted.
Here is my config :
Maybe itâll help you in return, if it works for your lamp as well.
Cheers
BigT
Hey all, Ledvance made consumer life really hard preventing tuya/smartlife integration for customers even though they use tuyaâs app core and services. It would be so easy to manage devices locally and with 3rd parties even with customisations, if they didnt remove tuya/smartlife integration from their app. Anyway, looks like there is only one workaround that is getting local key from ledvance for local/3rd party integrations. The problem is its really cumbersome method. I was wondering about getting local key from the files in app folder on a rooted emulator/device? Some of old smart life app versions save local key in plaintext on xml file. Anyone have any experience with that method for Ledvance devices? Cheers
No local file.
You can get localkey only sniffing.
Hey Francesco thanks a lot for your work and guide.
FYI:
This solution took a fair amount of fiddling for me, and in the end it works 20% of the way. When toggling the lightbulb off in Home Assistant, the light does turn off, but only after turning it on via the Alexa app.
The light cannot be turned on from HA, and even after turning it on in Alexa, the colour/brightness cannot be changed from HA.
The state also doesnât seem to update in the Alexa app, when toggling the lights off in HA, until you tap on the light to ârefreshâ it in the Alexa app. Then it ârealisesâ that the light has been turned off, and it appears in Alexa as off.
In the configuration.yaml you provided, donât lines 7 and 8 need entity IDs and a service?
At least, for me, HA gave me yaml errors, until I added a service call and entity IDâs for turn_on / turn_off in the yaml:
light:
- platform: template
lights:
joes_office_light_1:
friendly_name: "Ceiling Light 1"
temperature_template: "{{states('input_number.temperature_input') | int}}"
color_template: "({{states('input_number.h_input') | int}}, {{states('input_number.s_input') | int}})"
turn_on:
service: light.turn_on
entity_id: light.joes_office_light_1
turn_off:
service: light.turn_off
entity_id: light.joes_office_light_1
set_temperature:
service: input_number.set_value
data:
color_temp: "{{ color_temp }}"
entity_id: input_number.temperature_input
set_color:
- service: input_number.set_value
data:
value: "{{ h }}"
entity_id: input_number.h_input
- service: input_number.set_value
data:
value: "{{ s }}"
entity_id: input_number.s_input'
The âturn offâ from HA seems to be working fine, but the âturn onâ gives the following error in Node-RED:
function : (error)
"TypeError: Cannot read properties of undefined (reading '0')"
The error is with the âfunctionâ node, but I have no clue whatâs wrong with it or what I need to change.
I also see some errors in Home Assistant itself:
Failed to call service light/turn_on. not a valid value for dictionary value @ data[âentity_idâ]
Failed to call service light/turn_on. extra keys not allowed @ data[âcolor_tempâ]
Do you have any suggestions?
Iâm determined to make this work - my house is FULL of these bulbs!
OK, the entity IDs of my helpers were incorrect (silly mistake).
Iâve corrected them all, and the lights can now be turned on via HA, and the brightness can be set.
However, colour and temp cannot be set from HA (I cannot change them from being set at pure white). The error shown in Node-RED is just âno JSONâ on the top routine node, after the âswitchâ.
I think something is going wrong with my config when it comes to the set_color / set_temperature. I still see these errors in HA when trying to change the colour and temperature.
Failed to call service light/turn_on. not a valid value for dictionary value @ data[âentity_idâ]
Failed to call service light/turn_on. extra keys not allowed @ data[âcolor_tempâ]
thnaks a ton for this threat, was able to add 2 LEDVANCE Wifi SMART+ Outdoor Neon Flex LED stripes for my balcony with this threat and an old rooted android phone!
config was similar to @BigTweety Classic bulb.
side note there are two different APKâs. One says incorrect password/username or âuser not existâ.
LEDVANCE APM SMART+ Wi-Fi
LEDVANCE SMART+ WiFi
Hello, Hello, I followed the steps but I get stuck when I try the command (frida-trace -U --decorate -j â*!encodeString/isuâ -F) I get :
frida-trace: The term âfrida-traceâ is not recognized as a cmdlet name, function,
script file or executable program. Check the spelling of the name, or if a path
exists, check that the path is correct and try again.
To Line:1 character : 1
- frida-trace -U --decorate -j *!encodeString/is -F
+ CategoryInfo: ObjectNotFound: (frida-trace:String) [], CommandNotFoundException + FullyQualifiedErrorId: CommandNotFoundException
I tried many versions of frida, sill the same, does anyone have any idea how to solve this issue?
Regards
I got it working, I just installed frida tools
Hello,
is the topic still being worked on?
Iâm slowly getting desperate. Iâve been trying to read my Ledvance according to the instructions for some time now.
Unfortunately without success. Unfortunately I canât find a link for version 1.0.0 anymore
Please help