Skip to content

Commit

Permalink
Bump to 0.8. Fix #6 by adding battX sensors, and fixing the ignore
Browse files Browse the repository at this point in the history
for the tempf sensors.
  • Loading branch information
garbled1 committed Jun 13, 2020
1 parent faf3ca0 commit a61ed93
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions custom_components/ecowitt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@
TYPE_SOILBATT6 = "soilbatt6"
TYPE_SOILBATT7 = "soilbatt7"
TYPE_SOILBATT8 = "soilbatt8"
TYPE_BATTERY1 = "batt1"
TYPE_BATTERY2 = "batt2"
TYPE_BATTERY3 = "batt3"
TYPE_BATTERY4 = "batt4"
TYPE_BATTERY5 = "batt5"
TYPE_BATTERY6 = "batt6"
TYPE_BATTERY7 = "batt7"
TYPE_BATTERY8 = "batt8"

S_METRIC = 1
S_IMPERIAL = 2
Expand Down Expand Up @@ -342,6 +350,22 @@
None, "mdi:battery", 0),
TYPE_SOILBATT8: ("Soil Moisture 8 Battery", "BATT", TYPE_SENSOR,
None, "mdi:battery", 0),
TYPE_BATTERY1: ("Battery 1", "BATT", TYPE_SENSOR,
None, "mdi:battery", 0),
TYPE_BATTERY2: ("Battery 2", "BATT", TYPE_SENSOR,
None, "mdi:battery", 0),
TYPE_BATTERY3: ("Battery 3", "BATT", TYPE_SENSOR,
None, "mdi:battery", 0),
TYPE_BATTERY4: ("Battery 4", "BATT", TYPE_SENSOR,
None, "mdi:battery", 0),
TYPE_BATTERY5: ("Battery 5", "BATT", TYPE_SENSOR,
None, "mdi:battery", 0),
TYPE_BATTERY6: ("Battery 6", "BATT", TYPE_SENSOR,
None, "mdi:battery", 0),
TYPE_BATTERY7: ("Battery 7", "BATT", TYPE_SENSOR,
None, "mdi:battery", 0),
TYPE_BATTERY8: ("Battery 8", "BATT", TYPE_SENSOR,
None, "mdi:battery", 0),
}

IGNORED_SENSORS = [
Expand All @@ -350,6 +374,11 @@
'temp1f',
'temp2f',
'temp3f',
'temp4f',
'temp5f',
'temp6f',
'temp7f',
'temp8f',
'dateutc',
'windgustms',
'windspeedms',
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ecowitt/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"config_flow": false,
"documentation": "https://www.home-assistant.io/integrations/ecowitt",
"requirements": [
"pyecowitt==0.7"
"pyecowitt==0.8"
],
"ssdp": [],
"zeroconf": [],
Expand Down

0 comments on commit a61ed93

Please sign in to comment.