logo elektroda
logo elektroda
X
logo elektroda

AFYEEV 32A 7.2KW EV Charger Type2/Type1 with BK7231N-CBU-IPEX Module Info

lamero345 426 7
ADVERTISEMENT
  • Helpful post
    #1 21800476
    lamero345
    Level 2  
    Name: AFYEEV 32A 7.2KW Type2 Type1EV

    URL: https://www.aliexpress.com/item/1005007587878624.html

    Module: BK7231N - CBU-IPEX

    Photos:

    EV charger 32A with LCD screen, Wi-Fi support, connectors Type1, Type2, GB/T

    Printed circuit board with communication module and connected wires

    Connection: https://developer.tuya.com/en/docs/iot/cbuipex-module-datasheet?id=Kaedsyurckrhu

    Tuya DP
    
    {
      "result": {
        "category": "qccdz",
        "functions": [
          {
            "code": "charge_cur_set",
            "dp_id": 4,
            "type": "Integer",
            "values": "{\"unit\":\"A\",\"min\":1,\"max\":255,\"scale\":0,\"step\":1}"
          },
          {
            "code": "work_mode",
            "dp_id": 14,
            "type": "Enum",
            "values": "{\"range\":[\"charge_now\",\"charge_pct\",\"charge_energy\",\"charge_schedule\"]}"
          },
          {
            "code": "switch",
            "dp_id": 18,
            "type": "Boolean",
            "values": "{}"
          }
        ],
        "lang_config": {},
        "status": [
          {
            "code": "forward_energy_total",
            "dp_id": 1,
            "type": "Integer",
            "values": "{\"unit\":\"kW·h\",\"min\":0,\"max\":99999999,\"scale\":2,\"step\":1}"
          },
          {
            "code": "work_state",
            "dp_id": 3,
            "type": "Enum",
            "values": "{\"range\":[\"charger_free\",\"charger_insert\",\"charger_free_fault\",\"charger_wait\",\"charger_charging\",\"charger_pause\",\"charger_end\",\"charger_fault\"]}"
          },
          {
            "code": "charge_cur_set",
            "dp_id": 4,
            "type": "Integer",
            "values": "{\"unit\":\"A\",\"min\":1,\"max\":255,\"scale\":0,\"step\":1}"
          },
          {
            "code": "sigle_phase_power",
            "dp_id": 5,
            "type": "Integer",
            "values": "{\"unit\":\"kW\",\"min\":0,\"max\":99999999,\"scale\":3,\"step\":1}"
          },
          {
            "code": "power_total",
            "dp_id": 9,
            "type": "Integer",
            "values": "{\"unit\":\"kW\",\"min\":0,\"max\":99999999,\"scale\":3,\"step\":1}"
          },
          {
            "code": "work_mode",
            "dp_id": 14,
            "type": "Enum",
            "values": "{\"range\":[\"charge_now\",\"charge_pct\",\"charge_energy\",\"charge_schedule\"]}"
          },
          {
            "code": "switch",
            "dp_id": 18,
            "type": "Boolean",
            "values": "{}"
          },
          {
            "code": "temp_current",
            "dp_id": 24,
            "type": "Integer",
            "values": "{\"unit\":\"℃\",\"min\":-40,\"max\":200,\"scale\":0,\"step\":1}"
          },
          {
            "code": "charge_energy_once",
            "dp_id": 25,
            "type": "Integer",
            "values": "{\"unit\":\"kW·h\",\"min\":0,\"max\":999999,\"scale\":2,\"step\":1}"
          }
        ]
      },
      "success": true,
      "t": "XXX",
      "tid": "XXX"
    }
  • ADVERTISEMENT
  • #2 21800825
    p.kaczmarek2
    Moderator Smart Home
    Thanks for sharing! I rarely see CBU with antenna. I guess long range really matters there!

    Here is a bit more information about this device that I've found on the Aliexpress page:

    AFYEEV 32A 7.2KW EV Charger Type2/Type1 with BK7231N-CBU-IPEX Module Info
    AFYEEV 32A 7.2KW EV Charger Type2/Type1 with BK7231N-CBU-IPEX Module Info
    AFYEEV 32A 7.2KW EV Charger Type2/Type1 with BK7231N-CBU-IPEX Module Info
    AFYEEV 32A 7.2KW EV Charger Type2/Type1 with BK7231N-CBU-IPEX Module Info
    AFYEEV 32A 7.2KW EV Charger Type2/Type1 with BK7231N-CBU-IPEX Module Info


    AFYEEV 32A 7.2KW EV Charger Type2/Type1 with BK7231N-CBU-IPEX Module Info
    AFYEEV 32A 7.2KW EV Charger Type2/Type1 with BK7231N-CBU-IPEX Module Info
    AFYEEV 32A 7.2KW EV Charger Type2/Type1 with BK7231N-CBU-IPEX Module Info
    AFYEEV 32A 7.2KW EV Charger Type2/Type1 with BK7231N-CBU-IPEX Module Info

    Have you tried configuring OBK already?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 21800972
    lamero345
    Level 2  
    I'm sorry. I am not an expert of OBK template. But I can give you ESPHOME configuration:

    
    uart:
      id: tuya_uart
      rx_pin: RX1
      tx_pin: TX1
      baud_rate: 9600
    
    time:
      - platform: homeassistant
        id: homeassistant_time
    
    tuya:
      uart_id: tuya_uart
      time_id: homeassistant_time
    
    switch:
      - platform: tuya
        id: ev_charger_enable
        name: "EV Charger Enable"
        switch_datapoint: 18
        icon: "mdi:ev-station"
    
    number:
      - platform: tuya
        name: "EV Charge Current"
        number_datapoint: 4
        min_value: 1
        max_value: 32
        step: 1
        unit_of_measurement: "A"
        icon: "mdi:current-ac"
    
    select:
      - platform: tuya
        name: "EV Work Mode"
        enum_datapoint: 14
        icon: "mdi:cog-sync"
        options:
          0: "Charge now"
          1: "Charge by percentage"
          2: "Charge by energy"
          3: "Scheduled charge"
    
    sensor:
      - platform: tuya
        name: "EV Total Energy"
        sensor_datapoint: 1
        unit_of_measurement: "kWh"
        device_class: energy
        state_class: total_increasing
        accuracy_decimals: 2
        filters:
          - multiply: 0.01
    
      - platform: tuya
        name: "EV Power Total"
        sensor_datapoint: 9
        unit_of_measurement: "kW"
        device_class: power
        accuracy_decimals: 3
        filters:
          - multiply: 0.001
    
      - platform: tuya
        name: "EV Single Phase Power"
        sensor_datapoint: 5
        unit_of_measurement: "kW"
        accuracy_decimals: 3
        filters:
          - multiply: 0.001
    
      - platform: tuya
        name: "EV Temperature"
        id: ev_temperature
        sensor_datapoint: 24
        unit_of_measurement: "°C"
        device_class: temperature
        on_value:
          then:
            - if:
                condition:
                  lambda: 'return id(ev_temperature).state > 70;'
                then:
                  - switch.turn_off: ev_charger_enable
    
      - platform: tuya
        name: "EV Session Energy"
        sensor_datapoint: 25
        unit_of_measurement: "kWh"
        accuracy_decimals: 2
        filters:
          - multiply: 0.01
    
    text_sensor:
      - platform: tuya
        id: ev_charger_state
        name: "EV Charger State"
        sensor_datapoint: 3
        icon: "mdi:ev-plug-type2"
        filters:
          - map:
              - from: 0
                to: "Free"
              - from: 1
                to: "Plug inserted"
              - from: 2
                to: "Free fault"
              - from: 3
                to: "Waiting"
              - from: 4
                to: "Charging"
              - from: 5
                to: "Paused"
              - from: 6
                to: "Charge ended"
              - from: 7
                to: "Fault"
    
    binary_sensor:
      - platform: template
        name: "EV Charging"
        device_class: running
        icon: "mdi:ev-station"
        lambda: |-
          return id(ev_charger_state).state == "Charging";
    
      - platform: template
        name: "EV Overheat"
        lambda: |-
          return id(ev_temperature).state > 70;
        device_class: safety
    
    
  • #4 21800977
    p.kaczmarek2
    Moderator Smart Home
    Thanks, those data point mappings can be also useful.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • Helpful post
    #5 21801058
    divadiow
    Level 38  
    boot log from that backup. TMDA/pk:dsmsam7xpb3ht7rl

    Code: Text
    Log in, to see the code


    Code: JSON
    Log in, to see the code
  • ADVERTISEMENT
  • #6 21836508
    ruisjm1
    Level 3  
    >>21800972 Hi, does it work OK with ESPHome? I had one already working with local Tuya, but I really want to install ESPHome to avoid problems in the future; I have a spare CBU module from another EV charger I removed because I do not use Wi-Fi. I will flash it to test
  • #7 21837929
    lamero345
    Level 2  
    Try this

    
    esphome:
      name: wallbox
      friendly_name: wallbox
    
    bk72xx:
      board: cbu
    
    logger:
      baud_rate: 0
      level: INFO
    
    api:
    
    ota:
      platform: esphome
    
    wifi:
      ssid: !secret wifi_ssid
      password: !secret wifi_password
    
    uart:
      id: tuya_uart
      rx_pin: RX1
      tx_pin: TX1
      baud_rate: 9600
    
    time:
      - platform: homeassistant
        id: homeassistant_time
    
    tuya:
      uart_id: tuya_uart
      time_id: homeassistant_time
    
    switch:
      - platform: tuya
        id: ev_charger_enable
        name: "EV Charger Enable"
        switch_datapoint: 18
        icon: "mdi:ev-station"
    
    number:
      - platform: tuya
        name: "EV Charge Current"
        number_datapoint: 4
        min_value: 1
        #max_value: 32
        max_value: 20
        step: 1
        unit_of_measurement: "A"
        icon: "mdi:current-ac"
    
    select:
      - platform: tuya
        name: "EV Work Mode"
        enum_datapoint: 14
        icon: "mdi:cog-sync"
        options:
          0: "Ricarica immediata"
          1: "Ricarica fino a percentuale"
          2: "Ricarica per energia"
          3: "Ricarica programmata"
    
    sensor:
      - platform: tuya
        name: "EV Total Energy"
        sensor_datapoint: 1
        unit_of_measurement: "kWh"
        device_class: energy
        state_class: total_increasing
        accuracy_decimals: 2
        filters:
          - multiply: 0.01
    
      - platform: tuya
        name: "EV Power Total"
        sensor_datapoint: 9
        unit_of_measurement: "kW"
        device_class: power
        accuracy_decimals: 3
        filters:
          - multiply: 0.001
    
      - platform: tuya
        name: "EV Single Phase Power"
        sensor_datapoint: 5
        unit_of_measurement: "kW"
        accuracy_decimals: 3
        filters:
          - multiply: 0.001
    
      - platform: tuya
        name: "EV Temperature"
        id: ev_temperature
        sensor_datapoint: 24
        unit_of_measurement: "°C"
        device_class: temperature
        # SE TEMPERATURA ALTA INTERROMPE
        on_value:
          then:
            - if:
                condition:
                  lambda: 'return id(ev_temperature).state > 70;'
                then:
                  - switch.turn_off: ev_charger_enable
    
      - platform: tuya
        name: "EV Session Energy"
        sensor_datapoint: 25
        unit_of_measurement: "kWh"
        accuracy_decimals: 2
        filters:
          - multiply: 0.01
    
    text_sensor:
      - platform: tuya
        id: ev_charger_state
        name: "EV Charger State"
        sensor_datapoint: 3
        icon: "mdi:ev-plug-type2"
        filters:
          - map:
              - from: 0
                to: "Free"
              - from: 1
                to: "Plug inserted"
              - from: 2
                to: "Free with error"
              - from: 3
                to: "Waiting"
              - from: 4
                to: "Charging"
              - from: 5
                to: "Pause"
              - from: 6
                to: "Charging finished"
              - from: 7
                to: "Fault"
    
    binary_sensor:
      - platform: template
        name: "EV Charging"
        device_class: running
        icon: "mdi:ev-station"
        lambda: |-
          return id(ev_charger_state).state == "Charging";
    
  • #8 21838155
    ruisjm1
    Level 3  
    >>21837929 I will try it. I will replace programmed CBU with ESPHome and see the results. Thanks

Topic summary

The discussion centers on the AFYEEV 32A 7.2KW EV Charger supporting Type2 and Type1 connectors, integrating the BK7231N-CBU-IPEX Wi-Fi module. Shared resources include product images from AliExpress and detailed connection documentation from Tuya's developer site. The BK7231N module features an antenna for extended range, which is uncommon. Configuration examples for ESPHome are provided, demonstrating UART setup at 9600 baud, Tuya protocol integration, and mapping of Tuya data points (DP) such as charge current (DP 4), work mode (DP 14), enable switch (DP 18), and total energy sensor (DP 1). The work mode supports multiple charging strategies including immediate charge, charge by percentage, energy, or scheduled charge. A boot log from the BK7231N firmware version 1.0.1 is also shared, showing system initialization and Ethernet interface messages. The data point mappings and ESPHome configuration offer practical guidance for integrating and controlling the charger via Tuya-compatible smart home systems.
Summary generated by the language model.
ADVERTISEMENT