logo elektroda
logo elektroda
X
logo elektroda

OpenBeken Configuration for D52-2066 Energy Meter (BK7231N, TuyaMCU, CBU 2.01.01.103308)

TuyaChal 84 1
ADVERTISEMENT
  • #1 21601154
    TuyaChal
    Level 1  
    Hello, I am new to OpenBeken and trying to get a D52-2066 DIN-rail-mount energy meter working. In the Smart Life app it shows up as a "breaker" and it uses the bk7231n chip (model CBU, p/n 2.01.01.103308) I was able to use Tuya Cloud Cutter with the TAXNELE TVPS1-63LW Circuit Breaker v2.1.6 profile to flash OpenBeken. However, I'm not sure how to configure OpenBeken now.


    OpenBeken Configuration for D52-2066 Energy Meter (BK7231N, TuyaMCU, CBU 2.01.01.103308) OpenBeken Configuration for D52-2066 Energy Meter (BK7231N, TuyaMCU, CBU 2.01.01.103308) OpenBeken Configuration for D52-2066 Energy Meter (BK7231N, TuyaMCU, CBU 2.01.01.103308) OpenBeken Configuration for D52-2066 Energy Meter (BK7231N, TuyaMCU, CBU 2.01.01.103308) OpenBeken Configuration for D52-2066 Energy Meter (BK7231N, TuyaMCU, CBU 2.01.01.103308) OpenBeken Configuration for D52-2066 Energy Meter (BK7231N, TuyaMCU, CBU 2.01.01.103308)

    I've looked at these topics as they are similar

    https://www.elektroda.com/rtvforum/topic3928655.html

    https://www.elektroda.com/rtvforum/topic4000770.html

    There is basically no config data for this device in OpenBeken after I installed it.

    I tried template extraction as shown in this video but seems like I got no useful info:

    Sample screenshot of OpenBeken console showing raw 55 AA serial protocol messages after starting tuyamcu driver.

    As the chip appears to only be connected via RX, TX, GND, POWER, and RESET(CEN) I assume it is using tuyamcu to pass data.

    So, running 
    startdriver tuyamcu
    in the "app" console (http://192.168.4.1/app? logs tab) gives
    Info:CMD:[WebApp Cmd 'startdriver tuyamcu' Result] OK
    
    and then I seem to be getting some of the 55 AA console messages which I believe might be related to the tuyamcu energy data:

    Screenshot of the OpenBeken console showing raw serial “55 AA” messages after running the startdriver tuyamcu command.

    I also tried these commands (for channels 2-9) recommended in another post but the values just show up as zeros:

    setChannelType 2 voltage_div10
    setChannelLabel 2 "Voltage"
    linkTuyaMCUOutputToChannel 101 val 2
    etc, etc.



    If anyone can point me in the right direction that would be much appreciated.
    AI: Do you know which TuyaMCU protocol version your device is using, or have you been able to identify the DPIDs (Data Point IDs) that correspond to voltage, current, power, etc.?
    there are some info in tuya-cloudcutter/device-profiles/taxnele-tvps1-63lw-circuit-breaker-v2.1.6/device.json, for example schemas 000004x6ux, id:1, id: 9, id: 11 etc.
    AI: Could you provide a sample of the raw 55 AA serial messages (from the console logs) that appear after running startdriver tuyamcu? This might help in figuring out the correct channel mappings.
    yes they are included in the post
  • ADVERTISEMENT
  • #2 21601392
    divadiow
    Level 34  
    TuyaChal wrote:
    there are some info in tuya-cloudcutter/device-profiles/taxnele-tvps1-63lw-circuit-breaker-v2.1.6/device.json, for example schemas 000004x6ux, id:1, id: 9, id: 11 etc.


    I wouldn't rely on this schema and the dpID descriptions for taxnele-tvps1-63lw-circuit-breaker because it worked on your device. Firmware version is the most important thing to match in trying a cloudcutter profile to see if it works.

    You could work out the dpIDs:
    https://www.elektroda.com/rtvforum/topic4038151.html
    https://www.elektroda.com/rtvforum/topic3970199.html

    and/or post the tuya config file after extraction here and we can maybe get the dpIDs from Tuya. That should kickstart your journey
    OpenBeken Configuration for D52-2066 Energy Meter (BK7231N, TuyaMCU, CBU 2.01.01.103308)

    Added after 9 [minutes]:

    TuyaChal wrote:
    but seems like I got no useful info

    this is typically the extent of the extraction from TuyaMCU devices using Easy Flasher and is still useful
ADVERTISEMENT