EDITED Problem 1 solved: Capacitor was not connected well. With better inspection at the light bulb and solving capacitor connection, reboots stopped. Now I just have a problem with led1 not going to bright blue (with ESPHome, with Tasmota it works well).
I bought 46 EU Neutral/NO neutral switches SW11-ESP-xEU and tried several of them with following results:
S O L V E D Problem 1: When switch is pressed and relay is set to on (light bulb goes on) device restarts sometimes immediately, sometimes in a few seconds.
I hoped that I can solve it with new firmware, so I compiled a esphome.bin with provided yaml for a 2 gang switch: https://github.com/athom-tech/athom-configs/blob/main/athom-sw02.yaml
Device is restarting again, so firmware did not help. Even more, now there is a second problem:
Problem 2: With new firmware and athom-sw02.yaml from the github, led1 (for relay1) is not working correctly. When relay1 is powered off, led1 is dimmed red as it should be, but when relay1 is powered on led1 does not become bright blue, it just goes completely off.
I even tried to edit yaml, so that I can just power on and off the led1 and led2 without powering on relays, and led2 is working properly, but led1 just goes off.
Here is a modified snippet that controls both:
on_turn_on:
- light.turn_on: light4
- light.turn_on: light3
on_turn_off:
- light.turn_off: light4
- light.turn_off: light3
The same code is controlling light4 (led2) and light3 (led1). But led1 is completely off when turned on.
Led1 definition from current gihub yaml:
# Button LEDs (1.0 = Blue / 0.0 = Red)
- platform: esp8266_pwm
pin: GPIO14
inverted: true
id: led1
- platform: esp8266_pwm
pin: GPIO1
inverted: true
id: led2
Before firmware updating, led1 (light3) was working corectly.
So, now I have two problems. Restarting, and led1 on (bright blue) light missing.
Kind regards,
Goran
Hello,
I have the same "problem 1" than the one initially reported by @Goran Skular
My setup:
Switch: Athom SW112EU (2 gangs EU wall touch switch)
Firmware: ESPHome (config: https://github.com/tarontop/athom-configs/blob/main/athom-sw02.yaml) NB: I changed this in the config for reverting the state of the leds when relays are turned on/off:
# Button LEDs (1.0 = Blue / 0.0 = Red) - platform: esp8266_pwm pin: GPIO14 inverted: false id: led1 - platform: esp8266_pwm pin: GPIO1 inverted: false id: led2
Wiring: (see bellow picture)
Problem:
Whe I push button 1; relay 1 is switched on and the light bulb is powered; but I can see the leds of my device flickering ~3 seconds. Then the switch reboots (sometime crahes and requires hard reboot) and the light buld is powered off.
I tried several light bulbs ranging from 17w to 23w; and it works in no neutral mode with both Tasmota and ESPHome on 1 gang (sw111eu) and 3 gangs (sw113eu) switchs; but it doesn't work at all with 2 gangs (sw112eu)
I tried another capacitor; but problem is still there.
I activated DEBUG logs to MQTT; but didn't find anything interesting:
switchs/athom/athom-2gang-switch/logs [D][binary_sensor:036]: 'Button1': Sending state ON switchs/athom/athom-2gang-switch/binary_sensor/button1/state ON switchs/athom/athom-2gang-switch/logs [D][binary_sensor:036]: 'Button1': Sending state OFF switchs/athom/athom-2gang-switch/binary_sensor/button1/state OFF switchs/athom/athom-2gang-switch/logs [D][light:036]: 'Light1' Setting: switchs/athom/athom-2gang-switch/logs [D][light:047]: State: ON switchs/athom/athom-2gang-switch/logs [D][light:036]: 'LED1' Setting: switchs/athom/athom-2gang-switch/logs [D][light:047]: State: ON switchs/athom/athom-2gang-switch/logs [D][light:085]: Transition length: 0.5s switchs/athom/athom-2gang-switch/light/led1/state {"color_mode":"brightness","state":"ON","brightness":255,"color":{}} switchs/athom/athom-2gang-switch/light/light1/state {"color_mode":"onoff","state":"ON","color":{}}
What can I do to fix this problem ?
NB: I tried same setup with "neutral" mode and it worked. (but I unfortunatel cannot use this setup in my house)
I think the 2 different 2 gangs switchs I tester have some hardware problem, preventing them from working in no neutral mode.
I also sent an email to Athom support for inbestigation and maybe after sales actions.
Thank you very much for your appreciated help
Best regards