Skip to content

Commit

Permalink
0.3.1
Browse files Browse the repository at this point in the history
Another fix  (productionWattsNow) for unmetered Envoy-S (made hard by lack of device...in my defence...)
Hopefully last one
  • Loading branch information
ghawken committed Jun 26, 2020
1 parent b93eb68 commit a21065f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EnphaseEnvoy.indigoPlugin/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>PluginVersion</key>
<string>0.3.0</string>
<string>0.3.1</string>
<key>ServerApiVersion</key>
<string>2.0.0</string>
<key>IwsApiVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion EnphaseEnvoy.indigoPlugin/Contents/Server Plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ def parseStateValues(self, dev):
dev.updateStateOnServer('productionWattsToday', value=int(self.finalDict['production'][1]['whToday']))
dev.updateStateOnServer('productionwhLifetime', value=int(self.finalDict['production'][1]['whLifetime']))
elif self.EnvoyStype == "U":
dev.updateStateOnServer('productionWattsNow', value=int(self.finalDict['production'][1]['wNow']))
dev.updateStateOnServer('productionWattsNow', value=int(unmeteredData['wattsNow']))
productionWatts = int(unmeteredData['wattsNow'])
if unmeteredData is not None:
if 'wattHoursSevenDays' in unmeteredData:
Expand Down

0 comments on commit a21065f

Please sign in to comment.