@Eduardo wrote:
Hi everyone,
I’m trying to change from Tasmota to ESPHome in the wall switch I use in the kitchen. The sonoff is installed inside the box, and then it’s wired to an external switch with GPIO14.
I flashed it and have tested all kinds of configurations… but I can’t make the external switch to work! Everything else is working fine and if I click on the Sonoff button the relay toggles fine from on to off, as well as on Home Assistant config.
This is the config I have right now. Any help, please?
binary_sensor: - platform: gpio pin: number: GPIO0 mode: INPUT_PULLUP inverted: True name: "Sonoff Basic Button" on_press: - switch.toggle: fakebutton - platform: gpio pin: number: GPIO14 mode: INPUT_PULLUP inverted: True name: "Luz cocina" on_click: min_length: 50ms then: - switch.toggle: fakebutton - platform: status name: "My Status" switch: - platform: template name: "Luz cocina" optimistic: true id: fakebutton turn_on_action: - switch.turn_on: relay - light.turn_on: led turn_off_action: - switch.turn_off: relay - light.turn_off: led - platform: gpio id: relay pin: GPIO12 output: - platform: esp8266_pwm id: basic_green_led pin: number: GPIO13 inverted: True light: - platform: monochromatic name: "Sonoff cocina Green LED" output: basic_green_led id: led sensor: - platform: wifi_signal name: "Sonoff cocina WiFi Signal" update_interval: 60s - platform: uptime name: "Sonoff cocina Uptime" text_sensor: - platform: version name: "Sonoff cocina ESPHome Version"
Posts: 1
Participants: 1