evcc-io/util
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
..
cloud chore: validate server name 2024-03-10 23:00:18 +01:00
config Refactor session settings and apis (BC) (#10335) 2023-12-02 20:56:30 +05:00
jq chore: remove dead code (#11451) 2024-01-03 22:54:39 +01:00
locale chore: remove dead code (#11451) 2024-01-03 22:54:39 +01:00
machine chore: fix linter (#11028) 2023-12-06 18:29:32 +01:00
modbus Huawei Smartlogger: add battery control similar to dongle configuration (#12877) 2024-03-12 09:57:59 +01:00
oauth chore: guard against initial token being nil 2023-12-08 16:45:13 +01:00
pipe chore: remove dead code (#11451) 2024-01-03 22:54:39 +01:00
request chore: remove dead code (#11451) 2024-01-03 22:54:39 +01:00
shortrfc3339 Add ENTSO-E "Day Ahead Pricing" tariff provider (#9794) 2023-10-03 12:04:53 +02:00
sponsor Reapply "chore: remove certificate pinning (before expiry) (#12670)" 2024-03-06 08:02:09 +01:00
telemetry Replace savings with session based stats (#10341) 2023-10-21 10:58:07 +02:00
templates Add AC Thor (#11912) 2024-01-28 15:22:09 +01:00
test chore: fix linter (#11028) 2023-12-06 18:29:32 +01:00
transport Add ENTSO-E "Day Ahead Pricing" tariff provider (#9794) 2023-10-03 12:04:53 +02:00
urlvalues VAG: rewrite integration and add Audi e-tron/Q4 support (#2968) 2022-03-24 16:45:32 +01:00
cache.go chore: flush cache without using timeouts (#6303) 2023-02-18 14:01:40 +01:00
cache_test.go Publish individual pv and battery data (#5497) 2022-12-23 10:07:30 +01:00
decoder.go chore: return config error on invalid yaml template keys (#11394) 2024-01-01 13:38:25 +01:00
decoder_test.go chore: fix linter (#11028) 2023-12-06 18:29:32 +01:00
env.go Add soc client/server implementation (#839) 2021-04-15 22:34:44 +02:00
format.go chore: cleanup event templates (#6304) 2023-02-18 14:28:01 +01:00
format_functions.go Add template formatting 2022-08-24 19:22:17 +02:00
format_test.go chore: cleanup event templates (#6304) 2023-02-18 14:28:01 +01:00
log.go chore: fix linter (#11028) 2023-12-06 18:29:32 +01:00
metering.go Add phase powers and currents (#5539) 2022-12-29 12:46:53 +01:00
monitor.go Monitor: wait once if timeout configured 2023-12-24 14:44:16 +01:00
monitor_test.go chore: replace waiter with monitor (#10727) 2023-11-12 19:05:48 +01:00
net.go chore: apply gofumpt 2022-07-12 11:20:05 +02:00
net_test.go chore: apply gofumpt 2022-07-12 11:20:05 +02:00
param.go Rename SoC to Soc and LoadPoint to Loadpoint (#5549) 2022-12-23 10:19:23 +01:00
param_test.go Rename SoC to Soc and LoadPoint to Loadpoint (#5549) 2022-12-23 10:19:23 +01:00
providerauth.go Implement oauth login proxy (#2425) 2022-01-31 19:42:32 +01:00
queue.go chore: use generic queue 2022-12-12 14:09:00 +01:00
redactor.go Fix data race in log redaction 2021-11-12 13:00:11 +01:00
state.go chore: simplify 2023-11-01 09:03:43 +01:00
tee.go Fix deadlock (#11244) 2023-12-26 23:08:28 +01:00