Skip to content

Commit 5ef5560

Browse files
committed
- Bump version to 1.0.7
- Fix plant power threshold condition Battery discharge binary sensor is active with no power #66
1 parent 85e3e68 commit 5ef5560

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom_components/sigen/binary_sensor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class SigenergyBinarySensorEntityDescription(
6363
icon="mdi:battery-negative", # Standard HA icon
6464
source_key="plant_ess_power",
6565
value_fn=lambda data: (val := data.get("plant_ess_power")) \
66-
is not None and Decimal(str(val)) < Decimal("0.01"),
66+
is not None and Decimal(str(val)) < Decimal("-0.01"),
6767
),
6868
SigenergyBinarySensorEntityDescription(
6969
key="plant_exporting_to_grid",

custom_components/sigen/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
"loggers": ["custom_components.sigen"],
2222
"quality_scale": "custom",
2323
"requirements": ["pymodbus>=3.0.0"],
24-
"version": "1.0.6"
24+
"version": "1.0.7"
2525
}

0 commit comments

Comments
 (0)