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.
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
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