logo elektroda
logo elektroda
X
logo elektroda

Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues

ramsak 3516 1
ADVERTISEMENT
  • #1 20598716
    ramsak
    Level 1  
    nkuehnel86 wrote:
    @pkaczmarek2 Thank you so much for this tutorial / guide. As well as for this hole project and contribution.
    I managed to flash a Aubess device based on several different tutorial and some Youtube videos with the "OpenBK7231N_QIO_1.14.119.bin".
    I couldn't find this device in your database (or I was to stupid) so I had to trial and error with a bit of measuring.
    The Device is called "AUBESS Tuya WiFi MiNi Smart Switch With Energy Monitor 16A 2-way control Timer Wireless Switch"
    So it has the BK7231N MCU (CB2S) and a BL0942 as energy meter IC.
    I figured out the on board LED is on Pin 8, the ToggleChangeOnToggle Pin is on 24 (that's my guess) and the relay is on PIN 26.
    I couldn't the test ToggleChangeOnToggle at PIN 24, I assumed it because "S2" (see picture) is at PIN 24.
    I was not (yet) able to find the Button PIN and S1.

    I had a bit trouble with calibrating. When I set "VoltageSet 225" or "CurrentSet 0.138" it happend to me that the device wasn't anymore reachable and disconnect itself from my WiFi. My guess is some trouble with parsing the command in the backend.
    So I tried a couple of times and it appeared to me the feedback "Command not found", but eventually it worked.

    I'm using ioBroker instead of Hass, but surprisingly it worked somehow with the Hass MQTT structure , except I hat to manually add a "set" datapoint in ioB MQTT Object-Path for the relay.

    So I hope this will help someone else. I'm looking forward to figure out the Button PIN and S1 PIN.


    Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues



    Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues
    Flashing AUBESS Tuya WiFi Mini Smart Switch with OpenBK7231N_QIO_1.14.119.bin & Calibration Issues


    I am trying to include this one to ESPhome LT, but I have issues with energy monitoring and button pin. What I have figured until now:
    
    switch:
      - platform: gpio
        name: ${name}_switch
        pin: D24
        id: switch_1
    #    restore_mode: restore_default_off
    
      - platform: gpio
        name: ${name}_relay
        pin: D26
        id: relay_1
    #    restore_mode: restore_default_off
    
      - platform: gpio
        name: ${name}_button
        pin: D23
        id: button_1
    #    restore_mode: restore_default_off
    
    
    uart:
      id: uart_bus
      tx_pin: P11
      rx_pin: P10
      baud_rate: 4800
      stop_bits: 1
    
    sensor:
      - platform: bl0942
        uart_id: uart_bus
        voltage:
          name: '${name} Voltage'
        current:
          name: '${name} Current'
        power:
          name: '${name} Power'
          filters:
            multiply: -1
        energy:
          name: '${name} Energy'
        frequency:
          name: "${name} Frequency"
          accuracy_decimals: 2
    
        update_interval: 60s
    

    But I have issues with the correct pins, especially for toggle, TX and RX for power monitoring
  • ADVERTISEMENT
  • #2 20598793
    p.kaczmarek2
    Moderator Smart Home
    Hello, I have split the topic, this looks like a separate question and is not really LSPA9 related. Regarding the question itself, I'd suggest opening device physically to check GPIO. Aparat from that, I don't know, I do not recommend using that firmware. In OpenBeken, you could just access Tuya config directly to get 100% reliable config, just like on our guide.
    I have looked up your pin indices, the P10 and P11 and they also seem OK... so I don't know what kind of the issue you are facing. I had many times flashed that kind of device with OBK and had no problems, OBK is optimized to run on it, especially if you enable power save function (otherwise device caps may wear out quickly).
    Helpful post? Buy me a coffee.
ADVERTISEMENT