Skip to content

Commit 2eeef97

Browse files
Add support of historical values in _read_parameters()
historyDataList is a list. The internal fields are not renamed. The output is somethink like: parameters currencyUnit : € energyConsumption : 14.321999999999994 estimatedCost : 0.0 historyDataList : dataNumber : 0 consumption : 0.6610000000000003 cost : 0.0 averageSettingTemp: 28.5 averageInsideTemp: 26.52083396911621 averageOutsideTemp: 30.18181800842285 dataNumber : 1 consumption : 0.08200000000000002 cost : 0.0 averageSettingTemp: 28.5 averageInsideTemp: 26.29166603088379 averageOutsideTemp: -255.0 [...]
1 parent a2e883d commit 2eeef97

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pcomfortcloud/session.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,10 @@ def _read_parameters(self, parameters = {}):
402402
'insideTemperature': 'temperatureInside',
403403
'outTemperature': 'temperatureOutside',
404404
'temperatureSet': 'temperature',
405+
'currencyUnit': 'currencyUnit',
406+
'energyConsumption': 'energyConsumption',
407+
'estimatedCost': 'estimatedCost',
408+
'historyDataList': 'historyDataList',
405409
}
406410
for key in _convert:
407411
if key in parameters:

0 commit comments

Comments
 (0)