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
I got it working using both GPIO14 and GPIO16 at the same time. With this config the transition is not working correctly when turning on lights (second transition starts after first one ends), but it's ok when turning it off (both transitions starts at the same time - correct). I just set transition time to 50ms and I'm done with it.
# 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 - platform: esp8266_pwm pin: GPIO16 inverted: true id: led1b ... # Button LEDs - platform: monochromatic name: "${friendly_name} LED1" #disabled_by_default: true id: light3 output: led1 default_transition_length: 50ms on_turn_on: - light.turn_on: light3b on_turn_off: - light.turn_off: light3b # additional for LED1 to enable bright blue - platform: monochromatic name: "${friendly_name} LED1b" disabled_by_default: true id: light3b output: led1b default_transition_length: 50ms - platform: monochromatic name: "${friendly_name} LED2" #disabled_by_default: true id: light4 output: led2 default_transition_length: 500ms
After our test, there is no problem, you try the firmware in this link https://github.com/tarontop/athom-configs/blob/main/athom-sw02.bin
Thank You, but the led light still doesn't turn blue. When it's off it is dimmed red as it should be, but when it's on (both using old GPIO14 or GPIO16 from v2) it just goes off.
On tasmota I am using GPIO14 and it works, on ESPHome it doesn't. It just goes off for a light1 led status (led1).
The solution to problem 2 is as follows
https://github.com/tarontop/athom-configs/blob/main/athom-sw02_v2.yaml
Problem 1 is solved.
Problem 2 with led1 blue light missing is only present on ESPHome firmware. On Tasmota everything works well.
Final Tasmota configuration (2-Gang):
{"NAME":"Athom SW112EU","GPIO":[576,321,0,32,225,33,0,0,0,224,320,0,0,0],"FLAG":0,"BASE":1}
Update: I tried with tasmota firmware. And there is the same problem. Device keeps restarting when relays are turned on.
I bought 46 of them, paid customs and everything... but it seems it is hardware related. Maybe it works correctly with a neutral line, but I am using a no neutral line configuration as I am unable to have 'with neutral' configuration.
What can I do now?
Tasmota template I was using (for a 2 gang switch)
{"NAME":"Athom SW112EU","GPIO":[158,53,0,17,22,18,0,0,0,21,52,0,0],"FLAG":0,"BASE":1}