LSC Smart Connect [ACTION]

LCS GU10 yaml and files

For those who interested to use the GU10 with esphome. I got so far as this.
I only get the bulb on with cold white.

1 - First flashed with tuya convert
2 - Flashed with the tasmota interface OTA to esphome
3 - Make a dir custom_components/sm2135 in the esphome folder
4 - Put in the 4 files and reboot HA

Link to the drivers sm2135:

YAML:
esphome:
name: keuken_led_01
platform: ESP8266
board: esp01_1m

wifi:
ssid: “networkname”
password: “password”

ap:
ssid: “Keuken Led 01 Fallback Hotspot”
password: “fwgkHguEzsiE”

captive_portal:

logger:

api:

web_server:
port: 80

ota:

binary_sensor:

  • platform: status
    name: “keuken_led_01 Status”

sensor:

  • platform: wifi_signal
    name: keuken_led_01_wifi_dB
    update_interval: 10s
    id: keuken_led_01_wifi_dB

sm2135:
data_pin: GPIO12
clock_pin: GPIO14

output:

  • platform: sm2135
    id: output_red
    channel: 0
  • platform: sm2135
    id: output_green
    channel: 1
  • platform: sm2135
    id: output_blue
    channel: 2
  • platform: sm2135
    id: output_white
    channel: 3
  • platform: sm2135
    id: output_warmwhite
    channel: 4

light:

  • platform: rgbww
    name: “keuken_led_01”
    red: output_red
    green: output_green
    blue: output_blue
    default_transition_length: 3s
    cold_white: output_white
    warm_white: output_warmwhite
    cold_white_color_temperature: 6536 K
    warm_white_color_temperature: 2000 K

text_sensor:

  • platform: version
    name: “keuken_led_01 ESPHome version”

Interesting, I got about 25 GU10 LSC lights here which I would love to convert to ESPHome.
You can’t turn the lights to “warm light” right now?

I try with E14 , same problem

now with tasmota no problem, but I cant conect with HASSIO

Open the Tasmota console, enter setoption19 1

Hi @francisp

I flashed the GU10 Lights to tasmota, generic 18

{"NAME":"LSC RGBCW GU10","GPIO":[0,0,0,0,0,0,0,0,181,0,180,0,0],"FLAG":0,"BASE":18}

But my slider is acting weird. When I turn the light off it goes to colormode and I have to re-enable the light and then turn off to completely turn off. Did you turn into this by any chance?

1 Like

are there more people with this problem : i bought 2 new LSC plugs and flashed them using tuya convert with this config :slight_smile:

esphome:
  name: stekker_spare
  platform: ESP8266
  board: esp01_1m

substitutions:
  devicename: Stekker spare

wifi:
  ssid: "xxxx"
  password: "xxxx"
  fast_connect: true
  
binary_sensor:
  - platform: gpio
    pin:
      number: GPIO14
      mode: INPUT_PULLUP
      inverted: true
    name: "$devicename Power Button"
    internal: true
    on_press:
      - switch.toggle: relay
  - platform: status
    name: "$devicename Status"

switch:
  - platform: gpio
    id: led
    pin:
      number: GPIO4
      inverted: true
  - platform: gpio
    name: "$devicename"
    icon: "mdi:power-plug"
    pin: GPIO12
    id: relay
    on_turn_on:
      - switch.turn_off: led
    on_turn_off:
      - switch.turn_on: led
      
  - platform: restart
    name: ${devicename}_restart
      
#==============================================================

# Sensors with specific and general information
sensor:
  # Extra sensor to keep an eye on the Wi-Fi signal
  - platform: wifi_signal
    name: ${devicename}_Wi-Fi_Signal
    update_interval: 60s

# Extra sensor to keep track of plug uptime
  - platform: uptime
    name: Uptime
    id: uptime_s
    update_interval: 15s

# Text sensors with general information
text_sensor:
  # Expose ESPHome version as sensor.
  - platform: version
    name: ${devicename}_esphome_version
  # Expose WiFi information as sensors.
  - platform: wifi_info
    ip_address:
      name: ${devicename}_wifi_ip
      icon: mdi:ip
    ssid:
      name: ${devicename}_wifi_ssid
      icon: mdi:wifi
  - platform: template
    name: ${devicename}_Uptime_Sensor
    lambda: |-
      uint32_t dur = id(uptime_s).state;
      int dys = 0;
      int hrs = 0;
      int mnts = 0;
      if (dur > 86399) {
        dys = trunc(dur / 86400);
        dur = dur - (dys * 86400);
      }
      if (dur > 3599) {
        hrs = trunc(dur / 3600);
        dur = dur - (hrs * 3600);
      }
      if (dur > 59) {
        mnts = trunc(dur / 60);
        dur = dur - (mnts * 60);
      }
      char buffer[17];
      sprintf(buffer, "%ud %02uh %02um %02us", dys, hrs, mnts, dur);
      return {buffer};
    icon: mdi:clock-start
    update_interval: 15s

# Enable logging
logger:

# Enable Home Assistant API
api:

web_server:
  port: 80
  
ota:

But when i press the button in front of the plug , the relay doesn’t toggle .
When i use this config on any older plug , the button is working fine, and the relay toggles .

Is there something changed maybe ?

GPIO has changed on v2. Test with gpio 13. See here:
https://templates.blakadder.com/lsc_smart_connect_power_plug_v2.html

1 Like

Has anyone tried flashing the Action PIR sensor? It contains the ESP8266-TYWE3S chip, but I have no idea how to configure the gpio pins for ESPHome …
Also is it battery based? And if so, will ESPhome drain the battery quickly?

edit:

So i found the following github repo that was able to reflash the PIR: https://github.com/brandond/esphome-tuya_pir. The biggest problem is that there is an additional component that is responsible for power control, since the whole device works on batteries.
The repo hasnt been worked on recently. Wondering if it is worth trying out …

1 Like

Cool gonna test this out :slight_smile: thx!

Hi all,

Recently bought a GU10 spot from the Action but it doesn’t seem to pick up the intermediate firmware from tuya-convert. I’m using this repo (https://github.com/ct-Open-Source/tuya-convert) - should that still work for these GU10 spots? I did make the rookie mistake to hook them up to the official LSC app so it might have the newest firmware. Any idea if this will still work?

I did one last week but did not connect it to the app first and it worked

If it is stuck at the second part, it normally is because you were to slow connecting your phone to the vtrust AP.

Thanks all, after some retrying and changing config.txt, it worked fine.

Today I picked up some new light types that Action sells here in NL. They only control light temperature and do not have colors.

I used tuya-convert, but no success. It seems that they are not ESP8266 … :frowning_face:

There is also another light bulb LSC Smart Connect E27 1400 Lumen €8,96 and appartently they have a new version of the LSC Smart Connect Power Plug €8,49.
I did not buy those, so cannot say anything about that.

Hope someone else has better luck.


image
image

1 Like

Thanks for the warning.

I compared the “New” power plug in the store against an “Old” (and converted) power plug I had at home.

  • Both have the same article number is 970760.1 V2.0
  • The bar codes are different
    Old type: 8 712879 142782
    New type: 8 712879 145967

I did not purchase the new plug. If anyone has experience with it please let know.

Confirm, new LCS power plug don’t have ESP8266, inside found WB2S chip. New one don’t have two opening screws.

1 Like

Today I have purchased four lamps today and used to Tuya app to connect the lamps. In Home Assistant I have added the Tuya Integration (via Configuration -> Integrations) and the lamps were added so I could use them.

I can confirm the 806lm & 1400lm E27 CWWW lamps are an ESP8285 and are flashable, just not with tuya-convert… They have a newer version of the Tuya firmware that hasn’t been cracked yet. But you can break it open and flash it via serial.
There is a TYLC6E module in there. They have testpoints for RX, TX and GPIO0 (needed to put the ESP in flash-mode) where you can solder a wire onto.

It’s alot of fidgeting, especially to get everything back in again but is doable.