Licznik energii dwukierunkowy VCX DTS-1946 + ESPHome + Home Asistant

zrobiłem i działa.

jakby ktoś potrzebował to wrzucam kod z esphome.

za pare dni opowiem jak wyglądają wskazania w porównaniu z Iskra od Tauronu

logger:
    level: DEBUG
    baud_rate: 0

uart:
  id: mod_bus
  tx_pin: D6
  rx_pin: D7
  baud_rate: 9600
  stop_bits: 1

modbus:
  #flow_control_pin: 23
  send_wait_time: 200ms
  id: mod_bus_vcx

modbus_controller:
  - id: vcx
    ## the Modbus device addr
    address: 0x1
    modbus_id: mod_bus_vcx
    command_throttle: 100ms
    setup_priority: -10
    update_interval: 1s

sensor:
  - platform: modbus_controller
    id: faza_l1_napiecie
    name: "Faza L1 napięcie"
    state_class: measurement
    register_type: read
    address: 0x200
    unit_of_measurement: "V"
    value_type: S_WORD
    accuracy_decimals: 2
#    skip_updates: 60
    filters:
      - multiply: 0.1
  - platform: modbus_controller
    id: faza_l2_napiecie
    name: "Faza L2 napięcie"
    state_class: measurement
    register_type: read
    address: 0x201
    unit_of_measurement: "V"
    value_type: S_WORD
    accuracy_decimals: 2
#    skip_updates: 60
    filters:
      - multiply: 0.1
  - platform: modbus_controller
    id: faza_l3_napiecie
    name: "Faza L3 napięcie"
    address: 0x202
    state_class: measurement
    unit_of_measurement: "V"
    register_type: read
    value_type: S_WORD
    accuracy_decimals: 2
#    skip_updates: 60
    filters:
      - multiply: 0.1
  - platform: modbus_controller
    id: czestotliwosc
    name: "Częstotliwość"
    register_type: read
    state_class: measurement
    address: 0x219
    unit_of_measurement: "Hz"
    value_type: S_WORD
    accuracy_decimals: 2
#    skip_updates: 60
    filters:
      - multiply: 0.01
  - platform: modbus_controller
    id: faza_l1_prad
    name: "Faza L1 prąd"
    register_type: read
    state_class: measurement
    address: 0x206
    unit_of_measurement: "A"
    value_type: S_WORD
    accuracy_decimals: 3
#    skip_updates: 60
    filters:
      - multiply: 0.001
  - platform: modbus_controller
    id: faza_l2_prad
    name: "Faza L2 prąd"
    register_type: read
    state_class: measurement
    address: 0x207
    unit_of_measurement: "A"
    value_type: S_WORD
    accuracy_decimals: 3
#    skip_updates: 60
    filters:
      - multiply: 0.001
  - platform: modbus_controller
    id: faza_l3_prad
    name: "Faza L3 prąd"
    register_type: read
    state_class: measurement
    address: 0x208
    unit_of_measurement: "A"
    value_type: S_WORD
    accuracy_decimals: 3
#    skip_updates: 60
    filters:
      - multiply: 0.001
  - platform: modbus_controller
    id: faza_l1_moc_czynna
    name: "Faza L1 moc czynna"
    register_type: read
    state_class: measurement
    address: 0x209
    unit_of_measurement: "W"
    value_type: S_WORD
#    accuracy_decimals: 2
#    skip_updates: 60
    #filters:
    #  - multiply: 10
  - platform: modbus_controller
    id: faza_l2_moc_czynna
    name: "Faza L2 moc czynna"
    register_type: read
    state_class: measurement
    address: 0x20A
    unit_of_measurement: "W"
    value_type: S_WORD
#    accuracy_decimals: 2
#    skip_updates: 60
    #filters:
    #  - multiply: 10   
  - platform: modbus_controller
    id: faza_l3_moc_czynna
    name: "Faza L3 moc czynna"
    register_type: read
    state_class: measurement
    address: 0x20B
    unit_of_measurement: "W"
    value_type: S_WORD
#    accuracy_decimals: 2
#    skip_updates: 60
    #filters:
    # - multiply: 10 
  - platform: modbus_controller
    id: calkowita_moc_czynna
    name: "Całkowita moc czynna"
    register_type: read
    state_class: measurement
    address: 0x20C
    unit_of_measurement: "kW"
    value_type: S_WORD
    accuracy_decimals: 3
#    skip_updates: 300
    filters:
     - multiply: 0.001  
  - platform: modbus_controller
    id: moc_czynna_pobrana
    name: "Moc czynna pobrana"
    register_type: read
    icon: mdi:circle-slice-3
    device_class: energy
    state_class: total_increasing
    address: 0x034
    unit_of_measurement: "kWh"
    value_type: FP32
    accuracy_decimals: 1
    skip_updates: 60
    # filters:
    #   - multiply: 0.01    
  - platform: modbus_controller
    id: moc_czynna_oddana
    name: "Moc czynna oddana"
    register_type: read
    icon: mdi:circle-slice-3
    device_class: energy
    state_class: total_increasing
    address: 0x036
    unit_of_measurement: "kWh"
    value_type: FP32
    accuracy_decimals: 1
    skip_updates: 60
    # filters:
    #   - multiply: 0.01 
  - platform: modbus_controller
    id: faza_l1_cos
    name: "Faza L1 cosφ"
    register_type: read
    state_class: measurement
    address: 0x215
    unit_of_measurement: ""
    value_type: S_WORD
    accuracy_decimals: 2
    skip_updates: 5
    filters:
      - multiply: 0.001 
  - platform: modbus_controller
    id: faza_l2_cos
    name: "Faza L2 cosφ"
    register_type: read
    state_class: measurement
    address: 0x216
    unit_of_measurement: ""
    value_type: S_WORD
    accuracy_decimals: 2
    skip_updates: 5
    filters:
      - multiply: 0.001  
  - platform: modbus_controller
    id: faza_l3_cos
    name: "Faza L3 cosφ"
    register_type: read
    state_class: measurement
    address: 0x217
    unit_of_measurement: ""
    value_type: S_WORD
    accuracy_decimals: 2
    skip_updates: 5
    filters:
      - multiply: 0.001  
  
  
1 polubienie