Hello
I’ve got a pretty annoying issue here. I’ve flashed 2 Sonoffs T1EU2C (Touch board ver 1.0) and i’ve lost the possibility to use the button 1. The other is still working great, just the button 1 is not working anymore. I’ve tried with tasmota 8.x and esphome (code below for esphome) but with no luck.
Everything else is working great (i mean i can still turn the relay with ha).
I’m pretty sure it’s not hardware related directly, i’ve flashed 2 of them and got the same issue. The button is still registering presses (if i’m holding it a few secs i can hear a biiip).
Anyone had this issue before? Can this be that the button is not connected to the GPIO0 (i’ve tested with GPIO1 and GPIO01)?
esphome:
name: t1_entree
platform: ESP8266
board: esp8285
substitutions:
#id du switch
switch_id: "t1_entree"
wifi:
ssid: "myssid"
password: "mypw"
captive_portal:
# Enable logging
logger:
api:
ota:
safe_mode: True
binary_sensor:
- platform: gpio
device_class: light
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
on_click:
min_length: 50ms
max_length: 2000ms
then:
- switch.toggle: ${switch_id}_r1
name: "T1 entrée 1"
- platform: gpio
device_class: light
pin:
number: GPIO9
mode: INPUT_PULLUP
inverted: True
on_click:
min_length: 50ms
max_length: 2000ms
then:
- switch.toggle: ${switch_id}_r2
name: "T1 entrée 2"
- platform: status
name: "T1 entrée Status"
switch:
- platform: gpio
name: "T1_entree_R1"
id: ${switch_id}_r1
pin: GPIO12
- platform: gpio
name: "T1_entree_R2"
id: ${switch_id}_r2
pin: GPIO5
output:
- platform: esp8266_pwm
id: blue_led
pin: GPIO13
inverted: True
light:
- platform: monochromatic
name: "T1 entrée Blue LED"
output: blue_led