Commit graph

81 commits

Author SHA1 Message Date
anbie
72b64d038d
Lambda: support for excess energy specified in negative numbers (#21972) 2025-07-08 16:40:02 +02:00
andig
615969cfe2
Modbus: revert timeout to 3s, backoff duration 10s (#20987) 2025-05-01 19:01:19 +02:00
andig
12d8e448ff
Modbus: increase timeout and backoff (#20730) 2025-04-20 12:24:37 +02:00
andig
b7f83f5479
Modbus: disable mbmd error handling (#20093) 2025-03-25 09:27:32 +01:00
andig
45623bfa15
Modbus: use context (#19301) 2025-03-01 19:13:41 +01:00
andig
1cafc24627
Modbus Proxy: fix yaml serialisation (#19279) 2025-03-01 11:31:35 +01:00
andig
47c77f4254
Sunspec: read model tree only once (BC) (#16832) 2024-10-24 14:58:08 +02:00
andig
11d2b8b85d
Modbus: add bytes setter (#16510) 2024-10-12 11:09:12 +02:00
andig
22db14bb4c
Modbus: always assume RTU for serial devices (#16134) 2024-09-15 16:18:27 +02:00
andig
7837bacb88
Modbus: fix sunspec protocol always treated as tcp (#16086) 2024-09-13 14:53:00 +02:00
andig
333bcfab24
Modbus: validate protocol (#15912) 2024-09-05 20:07:40 +02:00
andig
1430984766 Modbus: overwrite mbmd logger 2024-08-18 19:45:19 +02:00
andig
dc719e4a15
SolarEdge: workaround broken NaNs (#15464) 2024-08-18 11:36:23 +02:00
andig
660f2c6c42 Modbus: mimic mbmd 2024-08-13 17:21:12 +02:00
andig
78b2067c01 chore: remove stray logging 2024-08-13 14:54:34 +02:00
andig
baf15a62e8 chore: log modbus timeouts 2024-08-10 11:07:39 +02:00
andig
fbeb56a620 chore: fix deadlock in logger 2024-08-09 10:17:31 +02:00
andig
1eeeebdadd
Modbus: close connection on error (#15319) 2024-08-09 09:24:01 +02:00
andig
7f86118f1b
Modbus: fix log output no longer displayed (#15276) 2024-08-07 10:06:30 +02:00
andig
03f62e5593
Modbus: add UDP and allow concurrent access (#13676) 2024-08-02 21:32:45 +02:00
andig
f25c0eece6
Modbus: fix writing bool values (#12972) 2024-03-15 14:04:04 +01:00
andig
5c55335c61 chore: better error message for missing mask
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Demo (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled
2024-03-13 12:24:14 +01:00
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
andig
12f3fbf173
Revert "Huawei Smartlogger: add pv and battery support identical to SDongle & Power Sensor (#12628)" (#12842)
This reverts commit fa5330b292.
2024-03-10 13:09:39 +01:00
Christof Musik
fa5330b292
Huawei Smartlogger: add pv and battery support identical to SDongle & Power Sensor (#12628) 2024-03-03 13:34:26 +01:00
andig
2f29659dbe
Modbus: refactor write encoding (#12595) 2024-03-02 17:18:01 +01:00
andig
965799f48a Reapply "Modbus: fix int to float conversion for int setter"
This reverts commit f9538edded.
2024-02-28 22:07:22 +01:00
andig
f9538edded Revert "Modbus: fix int to float conversion for int setter"
This reverts commit 1d322c6330.
2024-02-28 09:04:08 +01:00
andig
1d322c6330 Modbus: fix int to float conversion for int setter 2024-02-22 20:58:30 +01:00
andig
49bf1e6ec6
Sunspec: refactor model selection (#11933) 2024-02-08 20:28:01 +01:00
VolkerK62
e215a8836e
Modbus: address 0 must be possible (#12082)
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Demo (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled
2024-02-05 19:43:26 +01:00
andig
77330d1635
Modbus: fix calculating write length (#11950) 2024-01-29 22:41:53 +01:00
andig
9517277157
Modbus plugin: split modbus and sunspec (BC) (#11663) 2024-01-28 16:30:11 +01:00
andig
7fa3d252c9
chore: remove dead code (#11451) 2024-01-03 22:54:39 +01:00
andig
855185b186 Modbus: add 8N2 2023-12-11 09:38:13 +01:00
andig
58e2421a5b
chore: fix linter (#11028) 2023-12-06 18:29:32 +01:00
andig
5f7f4ead05
SofarSolar: add battery control (#10847) 2023-11-21 11:50:05 +01:00
andig
b92cbf8969
Victron: add battery control (#10753) 2023-11-16 20:10:57 +01:00
andig
6fb28df19b chore: enumer already ensure lower case matching 2023-09-10 14:33:38 +02:00
kscholty
228a01a0fc
Modbus: add coils (#8385) 2023-06-11 12:19:39 +02:00
andig
a5b611a83e
Add Modbus proxy (#4981) 2022-11-03 21:05:34 +01:00
andig
f2f2edfcdf
Modbus: treat nan and inf responses as zero (#4968) 2022-10-30 16:23:40 +01:00
andig
058284145d
Extend decoding of int NaN values to include MaxInt (#4885) 2022-10-21 16:48:33 +02:00
andig
4ec931d8ed Modbus: fix 5a7e9fa point decoding 2022-09-17 10:51:36 +02:00
andig
5a7e9fa56d Modbus: fix wrong sunspec reading retrieved
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled
2022-09-16 23:59:13 +02:00
andig
85ad361ff3 chore: simplify 2022-09-01 18:27:25 +02:00
andig
815cc58555 chore: apply gofumpt 2022-07-12 11:20:05 +02:00
andig
cf9bf6faa2 Add shadow RTU field for rtu: false 2022-05-12 17:28:33 +02:00
andig
6ee4b7e436
EM24: fix decoding (#3348) 2022-05-09 08:25:01 +02:00
andig
f327b5bb35 MBMD: fix rs485 device models not recognized 2022-05-07 16:39:21 +02:00