Skip to content

Commit 2955fd5

Browse files
authored
Merge pull request #324 from claudegel/Probe-defect
Probe defect detection
2 parents 5cc2534 + 27b7284 commit 2955fd5

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

custom_components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"neviweb130": {
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"local_location": "/custom_components/neviweb130/__init__.py",
55
"remote_location": "https://github.com/claudegel/sinope-130/tree/master/custom_components/__init__.py",
66
"visit_repo": "https://github.com/claudegel/sinope-130",

custom_components/neviweb130/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"dependencies": [],
88
"requirements": [],
99
"iot_class": "cloud_polling",
10-
"version": "3.0.3",
10+
"version": "3.0.4",
1111
"homeassistant": "2025.1.1"
1212
}

custom_components/neviweb130/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
"""Default parameters values."""
4040

41-
VERSION = "3.0.3"
41+
VERSION = "3.0.4"
4242
SCAN_INTERVAL = timedelta(seconds=540)
4343
HOMEKIT_MODE = False
4444
STAT_INTERVAL = 1800

custom_components/neviweb130/sensor.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,8 @@ def update(self):
10781078
+ device_data[ATTR_WATER_LEAK_STATUS]
10791079
+ " for device: "
10801080
+ self._name
1081+
+ ", id: "
1082+
+ str(self._id)
10811083
+ ", Sku: "
10821084
+ self._sku
10831085
+ ", Leak sensor disconnected."
@@ -1208,6 +1210,16 @@ def update(self):
12081210
if "error" not in device_data or device_data is not None:
12091211
if "errorCode" not in device_data:
12101212
self._angle = device_data[ATTR_ANGLE]["value"]
1213+
if self._angle == -2:
1214+
self.notify_ha(
1215+
"Warning: Tank monitor gauge diconnected: "
1216+
+ " for device: "
1217+
+ self._name
1218+
+ ", id: "
1219+
+ str(self._id)
1220+
+ ", Sku: "
1221+
+ self._sku
1222+
)
12111223
self._sampling = device_data[ATTR_ANGLE][ATTR_SAMPLING]
12121224
self._tank_percent = device_data[ATTR_TANK_PERCENT]
12131225
self._tank_type = device_data[ATTR_TANK_TYPE]
@@ -1234,6 +1246,8 @@ def update(self):
12341246
+ str(device_data[ATTR_ERROR_CODE_SET1]["raw"])
12351247
+ " for device: "
12361248
+ self._name
1249+
+ ", id: "
1250+
+ str(self._id)
12371251
+ ", Sku: "
12381252
+ self._sku
12391253
)

0 commit comments

Comments
 (0)