B+G E-Tech WS100-1943 Energy Meter via ModBus RTU

Hello, I just want to share how I hooked up a 1TE DIN Rail Energy Meter “WS100-1943” from “B+G E-Tech” to Home Assistant via ModBus RTU. Nothing special, works right away. Technical details including register list can be found here: https://stromzähler.eu/media/ee/97/41/1704818760/WS100-19xx_1123_DE.pdf

(Amazon B0BRVLPC9P)

# configuration.yaml
modbus: !include modbus.yaml

# modbus.yaml
- name: modbus1
  type: serial
  port: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_B001DHIO-if00-port0
  baudrate: 115200
  bytesize: 8
  method: rtu
  parity: N
  stopbits: 1
  sensors:
    - name: "BGE-Active Power"
      device_address: 201
      address: 260
      unit_of_measurement: W
      data_type: int32
      input_type: input
      unique_id: "BGE-260"
      state_class: measurement
    - name: "BGE-Total Fwd"
      device_address: 201
      address: 270
      unit_of_measurement: kWh
      data_type: int32
      input_type: input
      unique_id: "BGE-270"
      state_class: total
      precision: 2
      scale: 0.01
    - name: "BGE-Total Rev"
      device_address: 201
      address: 280
      unit_of_measurement: kWh
      data_type: int32
      input_type: input
      unique_id: "BGE-280"
      state_class: total
      precision: 2
      scale: 0.01

Note I have set my unit to 115200 baud (default 9600) and address 201 (default 1) to adapt to and avoid collision with other devices on my bus.