• Home

  • Products

    • Local Shipping
    • Tasmota
    • ESPHome
    • WLED
    • Homekit
    • Home Bridge
  • Forum

  • About Shipping

  • Contact Us

  • 更多

    Use tab to navigate through the menu items.
    0
    Um zu sehen wie dies funktioniert, öffne deine veröffentlichte Website.
    • Kategorien
    • Alle Beiträge
    • Meine Beiträge
    Goran Skular
    21. Jan.
    Bearbeitet: 22. Jan.

    ESPHome Switches restarting + LED1 (gpio14) problem - restarting SOLVED

    in ESPHome Related

    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

    7 Kommentare
    0
    7 Kommentare

    Teile deine MeinungBitte anmelden, um einen Kommentar zu hinterlassen.

    G
    Goran Skular
    Goran Skular
    22. Jan.

    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


    Gefällt mir

    Athom_Support
    22. Jan.


    Gefällt mir

    Athom_Support
    22. Jan.

    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

    Gefällt mir

    G
    Goran Skular
    Goran Skular
    22. Jan.

    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).

    Gefällt mir

    Athom_Support
    22. Jan.

    The solution to problem 2 is as follows

    https://github.com/tarontop/athom-configs/blob/main/athom-sw02_v2.yaml

    Gefällt mir

    G
    Goran Skular
    Goran Skular
    21. Jan.

    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}


    Gefällt mir

    G
    Goran Skular
    Goran Skular
    21. Jan.

    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}




    Gefällt mir
    7 Kommentare
    Ähnliche Beiträge
    • Smart switch restarting by itself
    • esphome example config for sw032us two button touch switch
    • ESPHome plug for Switzerland?

    ©2020 by athom.