Huawei Power Meter DTSU-666-H Modbus

Some devices ,may require a login in order to change certain registers.

Hi,
have you manage to solve problem with total energy 0 value?

please help me with integration i try a lot and don"t work
i try with modbus seriel i see the sensor but no value
i try with esp 32 and don<t work .

my configuration yaml
please tell my what are wrong ?
modbus:

  • name: meter
    type: serial
    baudrate: 9600
    bytesize: 8
    method: rtu
    parity: N
    port: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
    stopbits: 1
    sensors:
    • name: sdm630_energy
      address: 1
      input_type: input
      slave: 1
      precision: 2
      data_type: float32
      unit_of_measurement: kWh
      device_class: energy
      state_class: total_increasing

    • name: sdm630_p1
      slave: 1
      address: 2
      input_type: input
      precision: 2
      data_type: float32
      unit_of_measurement: V
      device_class: voltage

    • name: sdm630_p2
      slave: 1
      address: 3
      input_type: input
      precision: 2
      data_type: float32
      unit_of_measurement: V
      device_class: voltage

    • name: sdm630_p3
      slave: 1
      address: 4
      input_type: input
      precision: 2
      data_type: float32
      unit_of_measurement: V
      device_class: voltage

    • name: sdm630_p1_current
      slave: 1
      address: 6
      input_type: input
      precision: 3
      data_type: float32
      unit_of_measurement: A
      device_class: current

    • name: sdm630_p2_current
      slave: 1
      address: 8
      input_type: input
      precision: 3
      data_type: float32
      unit_of_measurement: A
      device_class: current

    • name: sdm630_p3_current
      slave: 1
      address: 10
      input_type: input
      precision: 3
      data_type: float32
      unit_of_measurement: A
      device_class: current

    • name: sdm630_p1
      slave: 1
      address: 12
      input_type: input
      precision: 3
      scale: 0.001
      data_type: float32
      unit_of_measurement: kW
      device_class: power

    • name: sdm630_p2
      slave: 1
      address: 14
      input_type: input
      precision: 3
      scale: 0.001
      data_type: float32
      unit_of_measurement: kW
      device_class: power

    • name: sdm630_p3
      slave: 1
      address: 16
      input_type: input
      precision: 3
      scale: 0.001
      data_type: float32
      unit_of_measurement: kW
      device_class: power

    • name: sdm630_current
      slave: 1
      address: 48
      input_type: input
      precision: 3
      data_type: float32
      unit_of_measurement: A
      device_class: current

    • name: sdm630_power
      slave: 1
      address: 52
      input_type: input
      precision: 3
      scale: 0.001
      data_type: float32
      unit_of_measurement: kW
      device_class: power

    • name: sdm630__power
      slave: 1
      address: 56
      input_type: input
      precision: 2
      data_type: float32
      unit_of_measurement: VA
      device_class: power

    • name: sdm630_reactive_power
      slave: 1
      address: 60
      input_type: input
      precision: 2
      data_type: float32
      unit_of_measurement: VAr
      device_class: power

    • name: sdm630_sum_pf
      slave: 1
      address: 62
      input_type: input
      precision: 2
      data_type: float32
      unit_of_measurement: cosф
      device_class: power_factor

The integration

doesn`t work anymore as modbus seems to be outdated. Several unanswered issues opened at Github since January 2025

Hi, do you get it to work? The communication thru Modbus TCP between Smartlogger and home assist?

My version: GitHub - mryndak/ha_chint_pm: homeassistant Chint power meter integration

(post deleted by author)

my config for DTSU666-H

# packages/dtsu666_modbus.yaml
# Подключение счётчика CHNT DTSU666 через RS485 (USB-конвертер)
# Параметры счётчика: Modbus RTU, адрес 11, 9600 бод, n.2 (No parity, 2 stop bits)

modbus:
  - name: "dtsu666"
    type: serial
    method: rtu
    port: /dev/ttyUSB1
    baudrate: 9600
    stopbits: 2
    bytesize: 8
    parity: N
    timeout: 5
    sensors:
# ========== НОВЫЕ СЕНСОРЫ ИЗ АЛЬТЕРНАТИВНОЙ ДОКУМЕНТАЦИИ ==========
# packages/dtsu666_modbus.yaml
# Подключение счётчика CHNT DTSU666 через RS485 (USB-конвертер)
# Параметры счётчика: Modbus RTU, адрес 11, 9600 бод, n.2 (No parity, 2 stop bits)
      # ========== НАПРЯЖЕНИЯ (фазные) ==========
      - name: dtsu666_ua
        unique_id: dtsu666_ua
        slave: 11
        address: 0x2006          # регистр фазного напряжения A
        data_type: float32
        unit_of_measurement: "V"
        input_type: holding
        precision: 1
        device_class: voltage
        state_class: measurement

      - name: dtsu666_ub
        unique_id: dtsu666_ub
        slave: 11
        address: 0x2008
        data_type: float32
        unit_of_measurement: "V"
        input_type: holding
        precision: 1
        device_class: voltage
        state_class: measurement

      - name: dtsu666_uc
        unique_id: dtsu666_uc
        slave: 11
        address: 0x200A
        data_type: float32
        unit_of_measurement: "V"
        input_type: holding
        precision: 1
        device_class: voltage
        state_class: measurement

      # ========== НАПРЯЖЕНИЯ (линейные) ==========
      - name: dtsu666_uab
        unique_id: dtsu666_uab
        slave: 11
        address: 0x2000
        data_type: float32
        unit_of_measurement: "V"
        input_type: holding
        precision: 1
        device_class: voltage
        state_class: measurement

      - name: dtsu666_ubc
        unique_id: dtsu666_ubc
        slave: 11
        address: 0x2002
        data_type: float32
        unit_of_measurement: "V"
        input_type: holding
        precision: 1
        device_class: voltage
        state_class: measurement

      - name: dtsu666_uca
        unique_id: dtsu666_uca
        slave: 11
        address: 0x2004
        data_type: float32
        unit_of_measurement: "V"
        input_type: holding
        precision: 1
        device_class: voltage
        state_class: measurement

      # ========== ТОКИ ==========
      - name: dtsu666_ia
        unique_id: dtsu666_ia
        slave: 11
        address: 0x200C
        data_type: float32
        unit_of_measurement: "A"
        input_type: holding
        precision: 2
        device_class: current
        state_class: measurement

      - name: dtsu666_ib
        unique_id: dtsu666_ib
        slave: 11
        address: 0x200E
        data_type: float32
        unit_of_measurement: "A"
        input_type: holding
        precision: 2
        device_class: current
        state_class: measurement

      - name: dtsu666_ic
        unique_id: dtsu666_ic
        slave: 11
        address: 0x2010
        data_type: float32
        unit_of_measurement: "A"
        input_type: holding
        precision: 2
        device_class: current
        state_class: measurement

      # ========== АКТИВНАЯ МОЩНОСТЬ (Вт) ==========
      - name: dtsu666_pa
        unique_id: dtsu666_pa
        slave: 11
        address: 0x2014
        data_type: float32
        unit_of_measurement: "W"
        input_type: holding
        precision: 0
        device_class: power
        state_class: measurement

      - name: dtsu666_pb
        unique_id: dtsu666_pb
        slave: 11
        address: 0x2016
        data_type: float32
        unit_of_measurement: "W"
        input_type: holding
        precision: 0
        device_class: power
        state_class: measurement

      - name: dtsu666_pc
        unique_id: dtsu666_pc
        slave: 11
        address: 0x2018
        data_type: float32
        unit_of_measurement: "W"
        input_type: holding
        precision: 0
        device_class: power
        state_class: measurement

      - name: dtsu666_pt          # суммарная активная мощность
        unique_id: dtsu666_pt
        slave: 11
        address: 0x2012
        data_type: float32
        unit_of_measurement: "W"
        input_type: holding
        precision: 0
        device_class: power
        state_class: measurement

      # ========== РЕАКТИВНАЯ МОЩНОСТЬ (вар) ==========
      - name: dtsu666_qa
        unique_id: dtsu666_qa
        slave: 11
        address: 0x201C
        data_type: float32
        unit_of_measurement: "var"
        input_type: holding
        precision: 0
        device_class: reactive_power
        state_class: measurement

      - name: dtsu666_qb
        unique_id: dtsu666_qb
        slave: 11
        address: 0x201E
        data_type: float32
        unit_of_measurement: "var"
        input_type: holding
        precision: 0
        device_class: reactive_power
        state_class: measurement

      - name: dtsu666_qc
        unique_id: dtsu666_qc
        slave: 11
        address: 0x2020
        data_type: float32
        unit_of_measurement: "var"
        input_type: holding
        precision: 0
        device_class: reactive_power
        state_class: measurement

      - name: dtsu666_qt          # суммарная реактивная мощность
        unique_id: dtsu666_qt
        slave: 11
        address: 0x201A
        data_type: float32
        unit_of_measurement: "var"
        input_type: holding
        precision: 0
        device_class: reactive_power
        state_class: measurement

      # ========== КОЭФФИЦИЕНТЫ МОЩНОСТИ ==========
      - name: dtsu666_pft          # суммарный
        unique_id: dtsu666_pft
        slave: 11
        address: 0x202A
        data_type: float32
        input_type: holding
        precision: 3
        device_class: power_factor
        state_class: measurement

      - name: dtsu666_pfa          # фаза A
        unique_id: dtsu666_pfa
        slave: 11
        address: 0x202C
        data_type: float32
        input_type: holding
        precision: 3
        device_class: power_factor
        state_class: measurement

      - name: dtsu666_pfb          # фаза B
        unique_id: dtsu666_pfb
        slave: 11
        address: 0x202E
        data_type: float32
        input_type: holding
        precision: 3
        device_class: power_factor
        state_class: measurement

      - name: dtsu666_pfc          # фаза C
        unique_id: dtsu666_pfc
        slave: 11
        address: 0x2030
        data_type: float32
        input_type: holding
        precision: 3
        device_class: power_factor
        state_class: measurement

      # ========== ЧАСТОТА ==========
      - name: dtsu666_freq
        unique_id: dtsu666_freq
        slave: 11
        address: 0x2044
        data_type: float32
        unit_of_measurement: "Hz"
        input_type: holding
        precision: 2
        device_class: frequency
        state_class: measurement
        
      # ========== Total active power demand ==========
      - name: dtsu666_dmpt
        unique_id: dtsu666_dmpt
        slave: 11
        address: 0x2050
        data_type: float32
        unit_of_measurement: "W"
        input_type: holding
        precision: 2
        device_class: power
        state_class: measurement        

      - name: dtsu666_apparent_power
        unique_id: dtsu666_apparent_power
        slave: 11
        address: 0x085E          # 2142 dec
        data_type: float32
        unit_of_measurement: "kVA"
        input_type: holding
        precision: 2
        device_class: apparent_power
        state_class: measurement
    
      - name: dtsu666_total_active_elec
        unique_id: dtsu666_total_active_elec
        slave: 11
        address: 0x086E          # 2158 dec
        data_type: float32
        unit_of_measurement: "kWh"
        input_type: holding
        precision: 2
        device_class: energy
        state_class: total_increasing
    
    
      - name: dtsu666_total_pos_active_elec
        unique_id: dtsu666_total_pos_active_elec
        slave: 11
        address: 0x0876          # 2166 dec
        data_type: float32
        unit_of_measurement: "kWh"
        input_type: holding
        precision: 2
        device_class: energy
        state_class: total_increasing
    
      - name: dtsu666_total_neg_active_elec
        unique_id: dtsu666_total_neg_active_elec
        slave: 11
        address: 0x087E          # 2174 dec
        data_type: float32
        unit_of_measurement: "kWh"
        input_type: holding
        precision: 2
        device_class: energy
        state_class: total_increasing

CARD =============

type: entities
title: 📊 DTSU666 – полный мониторинг
entities:
  - type: section
    label: ⚡ Напряжения фазные (В)
  - entity: sensor.dtsu666_ua
    icon: mdi:flash
    name: Фаза A
  - entity: sensor.dtsu666_ub
    icon: mdi:flash
    name: Фаза B
  - entity: sensor.dtsu666_uc
    icon: mdi:flash
    name: Фаза C

  - type: section
    label: 🔌 Напряжения линейные (В)
  - entity: sensor.dtsu666_uab
    icon: mdi:flash-triangle
    name: UAB
  - entity: sensor.dtsu666_ubc
    icon: mdi:flash-triangle
    name: UBC
  - entity: sensor.dtsu666_uca
    icon: mdi:flash-triangle
    name: UCA

  - type: section
    label: 🔁 Токи (А)
  - entity: sensor.dtsu666_ia
    icon: mdi:current-ac
    name: Фаза A
  - entity: sensor.dtsu666_ib
    icon: mdi:current-ac
    name: Фаза B
  - entity: sensor.dtsu666_ic
    icon: mdi:current-ac
    name: Фаза C

  - type: section
    label: 🔥 Активная мощность (Вт)
  - entity: sensor.dtsu666_pa
    icon: mdi:flash-outline
    name: Фаза A
  - entity: sensor.dtsu666_pb
    icon: mdi:flash-outline
    name: Фаза B
  - entity: sensor.dtsu666_pc
    icon: mdi:flash-outline
    name: Фаза C
  - entity: sensor.dtsu666_pt
    icon: mdi:flash
    name: Суммарная

  - type: section
    label: 🌀 Реактивная мощность (вар)
  - entity: sensor.dtsu666_qa
    icon: mdi:flash-circle
    name: Фаза A
  - entity: sensor.dtsu666_qb
    icon: mdi:flash-circle
    name: Фаза B
  - entity: sensor.dtsu666_qc
    icon: mdi:flash-circle
    name: Фаза C
  - entity: sensor.dtsu666_qt
    icon: mdi:flash-circle
    name: Суммарная

  - type: section
    label: 📐 Коэффициент мощности (PF)
  - entity: sensor.dtsu666_pft
    icon: mdi:cosine-wave
    name: Общий
  - entity: sensor.dtsu666_pfa
    icon: mdi:cosine-wave
    name: Фаза A
  - entity: sensor.dtsu666_pfb
    icon: mdi:cosine-wave
    name: Фаза B
  - entity: sensor.dtsu666_pfc
    icon: mdi:cosine-wave
    name: Фаза C

  - type: section
    label: 🎵 Частота и спрос
  - entity: sensor.dtsu666_freq
    icon: mdi:sine-wave
    name: Частота (Гц)
  - entity: sensor.dtsu666_dmpt
    icon: mdi:power-plug
    name: Спрос активной мощности (Вт)

  - type: section
    label: 📊 Полная мощность
  - entity: sensor.dtsu666_apparent_power
    icon: mdi:chart-bell-curve
    name: Полная мощность (кВА)

  - type: section
    label: 🔋 Энергия (активная, кВт·ч)
  - entity: sensor.dtsu666_total_active_elec
    icon: mdi:counter
    name: Общая активная (net?)
  - entity: sensor.dtsu666_total_pos_active_elec
    icon: mdi:arrow-up-bold
    name: Положительная (импорт)
  - entity: sensor.dtsu666_total_neg_active_elec
    icon: mdi:arrow-down-bold
    name: Отрицательная (экспорт)