evcc-io/util/modbus
Christof Musik a463012f8d
Huawei Smartlogger: add battery control similar to dongle configuration (#12877)
This is v2 of the configuration. The main difference is that it is
mostly backward compatible to the old smartlogger configuration. The
only change is that it is now using register 40521 (active power without
battery discharge) instead of 40525 (active power including battery
discharge).

The grid information comes from the powermeter which has usually the
unit id 11. The pv informations come directly from smartlogger (unit id
0, hardcoded). The battery information is fetched from the hybrid inverter.

A typical configuration should look like this:

```
meters:
- name: grid
  type: template
  template: huawei-smartlogger
  usage: grid
  id: 11
  host: host.fqdn
  port: 502

- name: pv
  type: template
  template: huawei-smartlogger
  usage: pv
  host: host.fqdn
  port: 502

- name: battery
  type: template
  template: huawei-smartlogger
  usage: battery
  id: 3
  host: host.fqdn
  port: 502
  capacity: 10
```
2024-03-12 09:57:59 +01:00
..
functions.go chore: remove dead code (#11451) 2024-01-03 22:54:39 +01:00
mbmd.go Sunspec: refactor model selection (#11933) 2024-02-08 20:28:01 +01:00
modbus.go Modbus plugin: split modbus and sunspec (BC) (#11663) 2024-01-28 16:30:11 +01:00
modbus_test.go Sunspec: refactor model selection (#11933) 2024-02-08 20:28:01 +01:00
register.go Huawei Smartlogger: add battery control similar to dongle configuration (#12877) 2024-03-12 09:57:59 +01:00
register_test.go Modbus: refactor write encoding (#12595) 2024-03-02 17:18:01 +01:00
sunspec.go Sunspec: refactor model selection (#11933) 2024-02-08 20:28:01 +01:00