Skip to content

Commit

Permalink
Revert "OpenDTU: check "producing""
Browse files Browse the repository at this point in the history
This reverts commit 7e75457.
  • Loading branch information
reserve85 committed Sep 15, 2024
1 parent 7e75457 commit 9ae90e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Changelog

## V 1.104
### script
* OpenDTU: check for "producing" -> try to fix https://github.com/reserve85/HoymilesZeroExport/issues/242 and https://github.com/reserve85/HoymilesZeroExport/issues/211

## V 1.103
### script
* removed SetLimit, SetLimitWithPriority -> only one Function for SetLimit (same routine for mixed mode, battery mode, non battery mode)
Expand Down
4 changes: 2 additions & 2 deletions HoymilesZeroExport.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

__author__ = "Tobias Kraft"
__version__ = "1.104"
__version__ = "1.103"

import time
from requests.sessions import Session
Expand Down Expand Up @@ -1007,7 +1007,7 @@ def CheckMinVersion(self):

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

Expand Down

0 comments on commit 9ae90e5

Please sign in to comment.