Skip to content

Control LSC Smart Connect Outlet via Homekit

Unfortunately Tuya has updated their apps and api’s. Unfortunately this strategy does not work anymore. This Youtube video might help, although I didn’t test this myself. Original post follows:

In a Dutch store called “Action” you can buy cheap home automation devices. They have plugs, motion sensors, door sensors, lamps and sirens. The devices are based on the Tuya Smart platform and are branded as LSC Smart Connect, with their own whitelabeled app. They work perfectly, but because of this hard- and software setup, they rely on the Chinese cloud solution provided by Tuya which I don’t like from a privacy perspective. The device are controlled via the cloud and expose unnecessary data beyond the ability for their core function.

That’s why I am more of a fan of Homekit, as only a single device is in control of the home automation with a better privacy approach in mind.

The devices of LSC do not support Homekit, but luckily there is a Homebridge plugin available that allows you to control the hardware via Homekit in possible private way: homebridge-tuya-lan

One important thing is that you install version 1.5.0-rc.12 of the plugin, else the logic won’t work because you need to know the specific ID and key of the device. But the key is something that is only assigned after you’ve registered the device in the cloud. So for this you need to set it up once via the standard procedure, but you’ll have to listen on the line while doing so.

Retrieve identifiers for LSC Smart Connect devices

So to get the ID and Key you need to execute the following steps:

  • Install and run Charles Proxy on your laptop to be able to intercept traffic
  • Look up the local IP address of your laptop, we need to set this up on our phone
  • When the phone is on the same network, enable proxy settings using the IP you just looked up and port 8888
  • Browse to on your phone to install the special certificate provided by Charles
  • Browse to on your laptop, it won’t show anything
  • Look up the log entry of this URL in Charles and enable SSL decryption for this domain
  • Install the LSC Smart Connect app on your phone
  • Use a fake email service like tempmail to register for the app
  • Now you should have the setup for intercepting the data up and running

You can now start adopting the device you bought the standard way in the app. While adopting the device check the log entries in Charles and look for something similar like this URI.

The response on that URL is a JSON structure where the ID and key of the device can be found. The ID can be found is id and uuid, the key can be retrieved via the localKey item.

{{ "result": { "errorDevices": [], "successDevices": [{ "pv": "2.2", "cadVer": "", "icon": "smart/icon/ay1541056239985fDGjj/81fd7e7461b264fe03ac55812bb3de6f.png", "verSw": "1.1.5", "isOnline": false, "lon": "", "isActive": true, "uuid": "00000123456789abcdef", "accessType": 0, "uid": "eu1578860684447z3VXI", "bv": "5.45", "homeKit": false, "ability": 0, "iconUrl": "", "id": "00000123456789abcdef", "lat": "", "runtimeEnv": "prod", "productId": "cuhokdii7ojyw8k2", "activeTime": 1585410796, "ip": "", "gwType": "s", "port": 48718, "name": "Smart Plug-EU", "time": 1585410796, "localKey": "0123456789abcdef" }] }, "t": 1585410797616, "success": true, "status": "ok"}

You’re now ready to setup the config.json of homebridge.

 "platform": "TuyaLan",
 "devices": [
  "name": "Livingroom lamp",
  "type": "Outlet",
  "manufacturer": "LSC",
  "model": "Smart Power Plug",
  "id": "00000123456789abcdef",
  "key": "0123456789abcdef"

And your … almost … done

After this setup you’re good to go and can control the outlet via Homekit.

But, you’re not there yet! Every device is just a standard wifi enabled device which will have the ability to ‘phone home’. I just block that by assigning the device a static IP in a range which I don’t allow outbound traffic on.

Via this way I’m able to control various LSC Smart Connect devices in a cheap and private way!

3 thoughts on “Control LSC Smart Connect Outlet via Homekit”

  1. I have a quick question, I bought one of these modules myself (at the Action NL) to test first but when I setup the proxy it doesn’t display any data. Does this still work now ( I heard they started to encrypt their network traffic).

  2. Dear Jeroen van Dijk,

    When I surf to the link you say i don’t see it in Charles Proxy i see the ip from the website but thats it. Then i just skipped this step sorta. i connected the my lamp i got a response but non of them had raw data containing an id or key

Leave a Reply

Your email address will not be published. Required fields are marked *