Commit graph

61 commits

Author SHA1 Message Date
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
premultiply
4113139e97
Generic NaN types (#3120) 2022-04-10 14:27:09 +02:00
andig
4487bf192f
Modbus: add (u)int16/32 sma data types (#3032) 2022-03-29 22:18:21 +02:00
andig
7a3c30729b Fix data race
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Publish Github & APT release (push) Has been cancelled
2022-03-15 21:44:22 +00:00
andig
6bde1cc5a4
Amtron: fix decodings (#2814) 2022-03-08 11:34:02 +00:00
andig
d18d895a08
Modbus: streamline tcp configuration (#2783) 2022-03-05 12:15:44 +01:00
Andreas Linde
fbd0d6559d
Fix build error
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Publish Github & APT release (push) Has been cancelled
2022-01-29 18:57:20 +01:00
andig
05bd765623 Modbus: fix using tcp instead of rtu over serial 2022-01-29 18:13:40 +01:00
andig
11cd612026
Refactor modbus config (#2373) 2022-01-26 09:20:55 +01:00
andig
2bad26596e
Modbus: expose request delay (#2109) 2022-01-10 17:12:10 +01:00
andig
20a8acb365
Modbus: add bool16 type and supporting bitmask (#2196) 2022-01-03 19:06:55 +01:00
andig
7a54e50a3c
chore: introduce CoilOn const (#1927) 2021-11-24 09:20:59 +01:00
andig
dbc09b49ed Handle yaml 8e1 transparently 2021-09-08 09:54:10 +02:00
andig
701ff96831
Minor 2021-08-21 23:44:48 +02:00
andig
93e5fd39d4 Validate comset parameter 2021-08-21 14:25:55 +02:00
andig
c77e455809 Update evcc repo uri 2021-08-21 12:53:25 +02:00
andig
7f95e78eb4
Add ABL eMH1 (#1298) 2021-08-12 21:41:19 +02:00
andig
502f25f017
Fix creating RS485 meters as Sunspec when RTU is not enabled (#977) 2021-05-08 20:55:35 +02:00
andig
6d88b7be2b
Expose modbus handler timeout (#603) 2021-01-22 17:29:29 +01:00
andig
6f0fb943dc
Add remaining modbus getters and setters (#550) 2020-12-31 12:54:25 +01:00
andig
b30bb4e77e Add default scheme and port for http, websockets and modbus 2020-12-19 17:44:20 +01:00