Hello,
got a very good offer and now i have 15 Ledvance SMART+ Plugs with Wifi. After long search i know how the plugs were so cheap. I tried so much ways to get these plugs in HA but every try failed.
But now i have found the right solution with some hints from me, you can feel the same success
Follow these Steps and dont look to the tutorials above this topic! Look at my hints to these steps!!!
Hints:
The Link to the old ledvance app is broken.
Try this Link or search for
LEDVANCE SMART+ WiFi 1.0.0 APK
Please look at the url - there must be the āoriginal-downloading.htmlā. All others are malware or so.
The downloaded app named com-ldvsmartwifi-smart-4.apk
https://www.luckymodapk.com/ledvance-smart-wifi-mod/com.ldvsmartwifi.smart/original-downloading.html
a. Use the powershell in wodows, not the command line (commend line makes some problems)
b. in Step 6 you have to setup the Android Image. Here are some more steps, which are not in this description. Download the image an click in every window āNextā or āFinishā until you see the picture in Step 8.
c. Step 12. Download the linked Frida Server 15.0.17 and no other version. With some other i had problems.
d. Step 15. After setup adb. please run
adb root
in the powershell .
after that run:
adb shell
and you will get theese message :generic_x86_arm:/ # . If there is a # in the end. You are in root modus and you will not get a failure message in step 15 after last commend.
e. Before you go to step 18. Find all device with your Ledvance App on your smartphone. So you must trace only one time. Then install and start the App (link below) on your emulated Android. Log in and you will see all your devices.
f. Step 18. If you start tracing with the frida server - you have to refresh the list with device in the app more than one times. Refresh with Pull down the list with mouse. After first refresh you get some data, but no keys in the powershell window. After the second refresh, i got all devices with device id and localkeys in a long string.
Copy the complete content from powershell into texteditor or a programm were you can search.
Open Ledvance App on your smartphone and click on a plug ā goto settings ā information about device and you will see the device id. search in your list for your device id . after second or third you will see a position in the string named localkey. This is your Key. Copy that and search for the next device id.
In Local Tuya. Use Switch and following id.
Id - 1 (value: True)
Friendly Name: YourPlugName
Current: 18
Current Consumption: 19
Voltage: 20
After Saving there is a window with a binary sensor - click Next/Finish and then set the room an cklick Finish.
Update for showing consumption of the plugs:
I created a new ledvance.yaml and imported this in the configuration.yaml .
Here are 2 Plugs with sensors for current consumption, current and voltage.
You can copy and paste this for more plugs.
# Ledvance Ledvance SmartPlug 01
- host: 192.168.xxx.xxx
device_id: DEVICEID_PLUG_01
local_key: LOCALKEY_PLUG_01
friendly_name: Ledvance SmartPlug 01
protocol_version: "3.3"
entities:
- platform: binary_sensor
friendly_name: SmartPlug Status 01
id: 1
device_class: power
state_on: "true"
state_off: "false"
- platform: switch
friendly_name: smartplug_switch_01
id: 1
- platform: sensor
friendly_name: SmartPlug Current 01
id: 18
unit_of_measurement: "mA"
- platform: sensor
friendly_name: SmartPlug Current Consumption 01
id: 19
scaling: 0.1
unit_of_measurement: "W"
- platform: sensor
friendly_name: SmartPlug Voltage 01
id: 20
scaling: 0.1
unit_of_measurement: "V"
# Ledvance Ledvance SmartPlug 02
- host: 192.168.xxx.xxx
device_id: DEVICEID_PLUG_02
local_key: LOCALKEY_PLUG_02
friendly_name: Ledvance SmartPlug 02
protocol_version: "3.3"
entities:
- platform: binary_sensor
friendly_name: SmartPlug Status 02
id: 1
device_class: power
state_on: "true"
state_off: "false"
- platform: switch
friendly_name: smartplug_switch_02
id: 1
- platform: sensor
friendly_name: SmartPlug Current 02
id: 18
unit_of_measurement: "mA"
- platform: sensor
friendly_name: SmartPlug Current Consumption 02
id: 19
scaling: 0.1
unit_of_measurement: "W"
- platform: sensor
friendly_name: SmartPlug Voltage 02
id: 20
scaling: 0.1
unit_of_measurement: "V"
Bye.
Keules