1. elgris smartmeter

mkdir -p /config/custom_components/elgris
vi /config/configuration.yaml
///
modbus: !include custom_components/elgris/main.yaml
vi /config/custom_components/elgris/main.yaml
name: elgris
type: tcp
host: mon041.d01.net
port: 502
sensors: !include sensors.yaml
vi /config/custom_components/elgris/sensors.yaml
---
-
  name: PWAT1
  address: 40088
  count: 1
#  data_type: uint
  precision: 0
  scale: 1
  slave: 1
  unit_of_measurement: Watt
-
  name: PWAT2
  address: 40089
  count: 1
#  data_type: uint
  precision: 0
  scale: 1
  slave: 1
  unit_of_measurement: Watt
-
  name: PWAT3
  address: 40090
  count: 1
#  data_type: uint
  precision: 0
  scale: 1
  slave: 1
  unit_of_measurement: Watt