logo elektroda
logo elektroda
X
logo elektroda

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

lamero345 129 4
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
    
    
  • ADVERTISEMENT
  • #4 21800977
    p.kaczmarek2
    Moderator Smart Home
    Thanks, those data point mappings can be also useful.
    Helpful post? Buy me a coffee.
  • Helpful post
    #5 21801058
    divadiow
    Level 37  
    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