Elektroda.com
Elektroda.com
X

[OpenBeken] Pinout configuration for Lonsonho Tuya X801A-L switch 1 gang no neutral

bozer1978 333 25
  • #1
    bozer1978
    Level 4  
    [OpenBeken] Pinout configuration for Lonsonho Tuya X801A-L switch 1 gang no neutral
    Hello, I can't find my pin. Lonsonho Tuya X801A-L The device is very similar to this: LerLink 1 Gang No Neutral Switch (X801A-L) Link
    [OpenBeken] Pinout configuration for Lonsonho Tuya X801A-L switch 1 gang no neutral [OpenBeken] Pinout configuration for Lonsonho Tuya X801A-L switch 1 gang no neutral
    [OpenBeken] Pinout configuration for Lonsonho Tuya X801A-L switch 1 gang no neutral
    I flashed it, but there are no pin settings to control this device.
  • #2
    p.kaczmarek2
    Moderator Smart Home
    Hello, do you have a multimeter? You will need to check where the traces are going, use the continuity test mode, the one with "beep".

    Or do you maybe happen to have original firmware backup, full 2MB?
  • #3
    bozer1978
    Level 4  
    Yes, there is a full backup, how can I disassemble it?
  • Helpful post
    #6
    p.kaczmarek2
    Moderator Smart Home
    Thank you, please try following configuration:
    - relay on P24
    - button on P6
    - WiFi LED n on P11
    Tell me if it's working for you.
  • #7
    bozer1978
    Level 4  
    Yes it works, thank you very much. Please add support to the next firmware. BK7231T There are also two keyboard players. I can add a little later.
  • #9
    bozer1978
    Level 4  
    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Lonsonho Tuya X801A-L",
      "model": "X801A-L",
      "chip": "BK7231T",
      "board": "TODO",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "6": "Btn;0",
        "11": "WifiLED;0",
        "24": "Rel;0"
      },
      "image": "https://obrazki.elektroda.pl/8870408000_1679247855_thumb.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/viewtopic.php?p=20496045#20496045"
    }
  • #11
    bozer1978
    Level 4  
    The only caveat, for firmware, power is required to be supplied for two nickels near the button. When soldered to the module, it cannot reboot into firmware mode. On the board, some kind of capacitor does not have time to discharge.
  • #12
    p.kaczmarek2
    Moderator Smart Home
    It's also worth to save the device picture:
    [OpenBeken] Pinout configuration for Lonsonho Tuya X801A-L switch 1 gang no neutral

    But you have already flashed, right? If you have capacitor that prevents fast reboot, you can use CEN to reboot. Short CEN to ground for 0.25s
  • #13
    bozer1978
    Level 4  
    CEN not help. Only connecting a separate power supply and breaking. He himself fought half the evening until he connected to these two heels ...[OpenBeken] Pinout configuration for Lonsonho Tuya X801A-L switch 1 gang no neutralScreensh..8.jpg Download (17.34 kB)
    I’m just learning and don’t really understand circuitry, and programming, disassembling someone else’s code, waiting for me in general is a dark forest ... I could have overlooked something or not taken into account ...
    I am writing through google translator... There may be errors.
  • Helpful post
    #14
    p.kaczmarek2
    Moderator Smart Home
    Shorting CEN to ground really should help. I know because I have made those two boards (replaced ESP with WB3S and CB3S):
    [OpenBeken] Pinout configuration for Lonsonho Tuya X801A-L switch 1 gang no neutral
    The RST button resets them by shorting CEN to ground and then I can flash them. But maybe your circuit is different.

    Don't worry about the language. We are here to help. Please submit any other IoT devices that you have. We can help with configuration, or you can just post your configuration to help us.
    We are making a list:
    https://openbekeniot.github.io/webapp/devicesList.html
  • #15
    bozer1978
    Level 4  
    It didn't help... I tried it in different ways... I'll try to flash two keyboardists today. Although I have repairs in the apartment and problems with time.
  • #16
    p.kaczmarek2
    Moderator Smart Home
    Can you show the photos of those two devices that you are going to flash? There is no need to hurry, I can help you when you have time.
  • #17
    bozer1978
    Level 4  
    In general, here is the data on the two-key. He seems to have died. Since I could remove the backup from it, I post it. When clearing the memory, the contact went away. Now I can't connect it. No combinations will go into firmware mode.
    [OpenBeken] Pinout configuration for Lonsonho Tuya X801A-L switch 1 gang no neutral [OpenBeken] Pinout configuration for Lonsonho Tuya X801A-L switch 1 gang no neutral [OpenBeken] Pinout configuration for Lonsonho Tuya X801A-L switch 1 gang no neutralreadResult...-21-07.bin Download (2 MB)

    P.S. Soldered the wires. The effect is the same.No response from the chip.
  • #18
    bozer1978
    Level 4  
    This Lonsonho Tuya X802A-L has (no neutral).. While I can not run the firmware on it ...
  • #19
    p.kaczmarek2
    Moderator Smart Home
    I will forward the binary for analysis and post the details here later today.

    How have you managed to lose the contact with the device? Can you check does it boot up? Connect USB to TTL RX to TXD2 pin of WB3S , set baud 115200 and check can you receive log?
  • #20
    bozer1978
    Level 4  
    Hello, since I supplied power to the patch by closing and opening the contact. Then most likely when my wire got in the wrong place, then the power went on the ground, with all of this consequences. I removed the module with a soldering station. I soldered contacts to it, it is not recognized. Throw off the file, please, I will try to bring it back to life ... I have already flashed three single-key modules, they are perfectly sewn onto your firmware.
  • #21
    p.kaczmarek2
    Moderator Smart Home
    Here is a template for Lonsonho Tuya X802A-L has (no neutral) BK7231T - 2gang:
    - P1 - Button - Channel 1
    - P10 - Button - Channel 2
    - P14 - LED - Channel 1
    - P26 - LED - Channel 2
    - P9 - Relay - Channel 1
    - P8 - Relay - Channel 2
  • #22
    bozer1978
    Level 4  
    p.kaczmarek2 wrote:
    Here is a template for Lonsonho Tuya X802A-L has (no neutral) BK7231T - 2gang:
    - P1 - Button - Channel 1
    - P10 - Button - Channel 2
    - P14 - LED - Channel 1
    - P26 - LED - Channel 2
    - P9 - Relay - Channel 1
    - P8 - Relay - Channel 2


    It turned out to flash the module ... It is recognized and quite normally appeared on the network. Began to set up, please explain how to assign channels? Pressing any of the buttons opens L1.
  • #24
    bozer1978
    Level 4  
    p.kaczmarek2 wrote:
    You can assign channels in Config->Configure module.

    [OpenBeken] Pinout configuration for Lonsonho Tuya X801A-L switch 1 gang no neutral
    Here in the ( pin. setting: ) ?
    I tried, but the device completely stops responding to pressing.
  • Helpful post
    #26
    bozer1978
    Level 4  
    p.kaczmarek2 wrote:
    I will check this, but you can also do it outside web app , in the native HTTP interface...

    Got it. I checked. the dual switch is working.
    Lonsonho Tuya X802A-L has (no neutral)
    [OpenBeken] Pinout configuration for Lonsonho Tuya X801A-L switch 1 gang no neutral
    Here is its configuration:
    
    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Lonsonho Tuya X802A-L has (no neutral)",
      "model": "Tuya X802A-L",
      "chip": "BK7231T",
      "board": "TODO",
      "flags": "1024",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "1": "Btn;1",
        "8": "Rel;2",
        "9": "Rel;1",
        "10": "Btn;2",
        "14": "LED;1",
        "26": "LED;2"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/5853129100_1679750049.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic3965108.html"
    }
    

    This is the code for homeassistant:
    
    mqtt:
      switch:
      - unique_id: "OpenBK7231T_1FD174A2_relay_1"
        name: "obk1FD174A2 1"
        state_topic: "obk1FD174A2/1/get"
        command_topic: "obk1FD174A2/1/set"
        qos: 1
        payload_on: 1
        payload_off: 0
        retain: true
        availability:
          - topic: "obk1FD174A2/connected"
      - unique_id: "OpenBK7231T_1FD174A2_relay_2"
        name: "obk1FD174A2 2"
        state_topic: "obk1FD174A2/2/get"
        command_topic: "obk1FD174A2/2/set"
        qos: 1
        payload_on: 1
        payload_off: 0
        retain: true
        availability:
          - topic: "obk1FD174A2/connected"