Skip to content

Commit 7e75457

Browse files
committed
OpenDTU: check "producing"
OpenDTU: check for "producing" -> try to fix #242 and #211
1 parent 4bc09c3 commit 7e75457

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## V 1.104
4+
### script
5+
* OpenDTU: check for "producing" -> try to fix https://github.com/reserve85/HoymilesZeroExport/issues/242 and https://github.com/reserve85/HoymilesZeroExport/issues/211
6+
37
## V 1.103
48
### script
59
* removed SetLimit, SetLimitWithPriority -> only one Function for SetLimit (same routine for mixed mode, battery mode, non battery mode)

HoymilesZeroExport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1616

1717
__author__ = "Tobias Kraft"
18-
__version__ = "1.103"
18+
__version__ = "1.104"
1919

2020
import time
2121
from requests.sessions import Session
@@ -1007,7 +1007,7 @@ def CheckMinVersion(self):
10071007

10081008
def GetAvailable(self, pInverterId: int):
10091009
ParsedData = self.GetJson(f'/api/livedata/status?inv={SERIAL_NUMBER[pInverterId]}')
1010-
Reachable = bool(ParsedData['inverters'][0]["reachable"])
1010+
Reachable = bool(ParsedData['inverters'][0]["reachable"]) and bool(ParsedData['inverters'][0]["producing"])
10111011
logger.info('OpenDTU: Inverter "%s" reachable: %s',NAME[pInverterId],Reachable)
10121012
return Reachable
10131013

0 commit comments

Comments
 (0)