Skip to content

Commit

Permalink
Update to goodwe 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mletenay committed May 8, 2024
1 parent a879387 commit 2e3a0a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ Use at own risk.

### Differences between this HACS and native HA integration

- Support for Modbus/TCP
- Special work modes `Eco charge mode` and `Eco discharge mode` (24/7 with defined power and SoC).
- Network configuration parameters `Scan iterval`, `Network retry attempts`, `Network request timeout`.
- Switch `Export Limit Switch`.
- Switch `Load Control` (for ET+ inverters).
- Services for getting/setting inverter configuration parameters

Expand Down Expand Up @@ -119,7 +121,7 @@ The source code implementing the actual communication with GoodWe inverters (whi
## Inverter discovery and communication testing
To test whether the inverter properly responds to UDP request, just execute the `inverter_test.py` script in your python (3.7+) environment.
To test whether the inverter properly responds to UDP request, just execute the `inverter_test.py` script in your python (3.8+) environment.
The `inverter_scan.py` script can be used to discover inverter(s) on your local network.

## References and inspiration
Expand Down
2 changes: 1 addition & 1 deletion custom_components/goodwe/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/mletenay/home-assistant-goodwe-inverter/issues",
"loggers": ["goodwe"],
"requirements": ["goodwe==0.4.0"],
"requirements": ["goodwe==0.4.1"],
"version": "1.0.0"
}
2 changes: 1 addition & 1 deletion custom_components/goodwe/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _get_setting_unit(inverter: Inverter, setting: str) -> str:
native_min_value=0,
native_max_value=100,
getter=lambda inv: inv.read_setting("eco_mode_1"),
mapper=lambda v: abs(v.power) if v.power else 0,
mapper=lambda v: abs(v.get_power()) if v.get_power() else 0,
setter=None,
filter=lambda inv: True,
),
Expand Down

0 comments on commit 2e3a0a1

Please sign in to comment.