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
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?
are there more people with this problem : i bought 2 new LSC plugs and flashed them using tuya convert with this config
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 .
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 …
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?
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.