@@ -6,182 +6,182 @@ class ElectricalEnergySystem(Device):
66
77 @handleNotSupported
88 def getPointOfCommonCouplingTransferPowerExchange (self ):
9- return self .service . getProperty ("pcc.transfer.power.exchange" )["properties" ][
9+ return self .getProperty ("pcc.transfer.power.exchange" )["properties" ][
1010 "value"
1111 ]["value" ]
1212
1313 @handleNotSupported
1414 def getPhotovoltaicProductionCumulatedUnit (self ):
15- return self .service . getProperty ("photovoltaic.production.cumulated" )[
15+ return self .getProperty ("photovoltaic.production.cumulated" )[
1616 "properties"
1717 ]["currentDay" ]["unit" ]
1818
1919 @handleNotSupported
2020 def getPhotovoltaicProductionCumulatedCurrentDay (self ):
21- return self .service . getProperty ("photovoltaic.production.cumulated" )[
21+ return self .getProperty ("photovoltaic.production.cumulated" )[
2222 "properties"
2323 ]["currentDay" ]["value" ]
2424
2525 @handleNotSupported
2626 def getPhotovoltaicProductionCumulatedCurrentWeek (self ):
27- return self .service . getProperty ("photovoltaic.production.cumulated" )[
27+ return self .getProperty ("photovoltaic.production.cumulated" )[
2828 "properties"
2929 ]["currentWeek" ]["value" ]
3030
3131 @handleNotSupported
3232 def getPhotovoltaicProductionCumulatedCurrentMonth (self ):
33- return self .service . getProperty ("photovoltaic.production.cumulated" )[
33+ return self .getProperty ("photovoltaic.production.cumulated" )[
3434 "properties"
3535 ]["currentMonth" ]["value" ]
3636
3737 @handleNotSupported
3838 def getPhotovoltaicProductionCumulatedCurrentYear (self ):
39- return self .service . getProperty ("photovoltaic.production.cumulated" )[
39+ return self .getProperty ("photovoltaic.production.cumulated" )[
4040 "properties"
4141 ]["currentYear" ]["value" ]
4242
4343 @handleNotSupported
4444 def getPhotovoltaicProductionCumulatedLifeCycle (self ):
45- return self .service . getProperty ("photovoltaic.production.cumulated" )[
45+ return self .getProperty ("photovoltaic.production.cumulated" )[
4646 "properties"
4747 ]["lifeCycle" ]["value" ]
4848
4949 @handleNotSupported
5050 def getPhotovoltaicStatus (self ):
51- return self .service . getProperty ("photovoltaic.status" )["properties" ]["status" ][
51+ return self .getProperty ("photovoltaic.status" )["properties" ]["status" ][
5252 "value"
5353 ]
5454
5555 @handleNotSupported
5656 def getPhotovoltaicProductionCurrent (self ):
57- return self .service . getProperty ("photovoltaic.production.current" )[
57+ return self .getProperty ("photovoltaic.production.current" )[
5858 "properties"
5959 ]["value" ]["value" ]
6060
6161 @handleNotSupported
6262 def getPhotovoltaicProductionCurrentUnit (self ):
63- return self .service . getProperty ("photovoltaic.production.current" )[
63+ return self .getProperty ("photovoltaic.production.current" )[
6464 "properties"
6565 ]["value" ]["unit" ]
6666
6767 @handleNotSupported
6868 def getPointOfCommonCouplingTransferConsumptionTotal (self ):
69- return self .service . getProperty ("pcc.transfer.consumption.total" )["properties" ][
69+ return self .getProperty ("pcc.transfer.consumption.total" )["properties" ][
7070 "value"
7171 ]["value" ]
7272
7373 @handleNotSupported
7474 def getPointOfCommonCouplingTransferConsumptionTotalUnit (self ):
75- return self .service . getProperty ("pcc.transfer.consumption.total" )["properties" ][
75+ return self .getProperty ("pcc.transfer.consumption.total" )["properties" ][
7676 "value"
7777 ]["unit" ]
7878
7979 @handleNotSupported
8080 def getPointOfCommonCouplingTransferFeedInTotal (self ):
81- return self .service . getProperty ("pcc.transfer.feedIn.total" )["properties" ][
81+ return self .getProperty ("pcc.transfer.feedIn.total" )["properties" ][
8282 "value"
8383 ]["value" ]
8484
8585 @handleNotSupported
8686 def getPointOfCommonCouplingTransferFeedInTotalUnit (self ):
87- return self .service . getProperty ("pcc.transfer.feedIn.total" )["properties" ][
87+ return self .getProperty ("pcc.transfer.feedIn.total" )["properties" ][
8888 "value"
8989 ]["unit" ]
9090
9191 @handleNotSupported
9292 def getElectricalEnergySystemTransferChargeCumulatedUnit (self ):
93- return self .service . getProperty ("ess.transfer.charge.cumulated" )[
93+ return self .getProperty ("ess.transfer.charge.cumulated" )[
9494 "properties"
9595 ]["currentDay" ]["unit" ]
9696
9797 @handleNotSupported
9898 def getElectricalEnergySystemTransferChargeCumulatedCurrentDay (self ):
99- return self .service . getProperty ("ess.transfer.charge.cumulated" )[
99+ return self .getProperty ("ess.transfer.charge.cumulated" )[
100100 "properties"
101101 ]["currentDay" ]["value" ]
102102
103103 @handleNotSupported
104104 def getElectricalEnergySystemTransferChargeCumulatedCurrentWeek (self ):
105- return self .service . getProperty ("ess.transfer.charge.cumulated" )[
105+ return self .getProperty ("ess.transfer.charge.cumulated" )[
106106 "properties"
107107 ]["currentWeek" ]["value" ]
108108
109109 @handleNotSupported
110110 def getElectricalEnergySystemTransferChargeCumulatedCurrentMonth (self ):
111- return self .service . getProperty ("ess.transfer.charge.cumulated" )[
111+ return self .getProperty ("ess.transfer.charge.cumulated" )[
112112 "properties"
113113 ]["currentMonth" ]["value" ]
114114
115115 @handleNotSupported
116116 def getElectricalEnergySystemTransferChargeCumulatedCurrentYear (self ):
117- return self .service . getProperty ("ess.transfer.charge.cumulated" )[
117+ return self .getProperty ("ess.transfer.charge.cumulated" )[
118118 "properties"
119119 ]["currentYear" ]["value" ]
120120
121121 @handleNotSupported
122122 def getElectricalEnergySystemTransferChargeCumulatedLifeCycle (self ):
123- return self .service . getProperty ("ess.transfer.charge.cumulated" )[
123+ return self .getProperty ("ess.transfer.charge.cumulated" )[
124124 "properties"
125125 ]["lifeCycle" ]["value" ]
126126
127127 @handleNotSupported
128128 def getElectricalEnergySystemTransferDischargeCumulatedUnit (self ):
129- return self .service . getProperty ("ess.transfer.discharge.cumulated" )[
129+ return self .getProperty ("ess.transfer.discharge.cumulated" )[
130130 "properties"
131131 ]["currentDay" ]["unit" ]
132132
133133 @handleNotSupported
134134 def getElectricalEnergySystemTransferDischargeCumulatedCurrentDay (self ):
135- return self .service . getProperty ("ess.transfer.discharge.cumulated" )[
135+ return self .getProperty ("ess.transfer.discharge.cumulated" )[
136136 "properties"
137137 ]["currentDay" ]["value" ]
138138
139139 @handleNotSupported
140140 def getElectricalEnergySystemTransferDischargeCumulatedCurrentWeek (self ):
141- return self .service . getProperty ("ess.transfer.discharge.cumulated" )[
141+ return self .getProperty ("ess.transfer.discharge.cumulated" )[
142142 "properties"
143143 ]["currentWeek" ]["value" ]
144144
145145 @handleNotSupported
146146 def getElectricalEnergySystemTransferDischargeCumulatedCurrentMonth (self ):
147- return self .service . getProperty ("ess.transfer.discharge.cumulated" )[
147+ return self .getProperty ("ess.transfer.discharge.cumulated" )[
148148 "properties"
149149 ]["currentMonth" ]["value" ]
150150
151151 @handleNotSupported
152152 def getElectricalEnergySystemTransferDischargeCumulatedCurrentYear (self ):
153- return self .service . getProperty ("ess.transfer.discharge.cumulated" )[
153+ return self .getProperty ("ess.transfer.discharge.cumulated" )[
154154 "properties"
155155 ]["currentYear" ]["value" ]
156156
157157 @handleNotSupported
158158 def getElectricalEnergySystemTransferDischargeCumulatedLifeCycle (self ):
159- return self .service . getProperty ("ess.transfer.discharge.cumulated" )[
159+ return self .getProperty ("ess.transfer.discharge.cumulated" )[
160160 "properties"
161161 ]["lifeCycle" ]["value" ]
162162
163163 @handleNotSupported
164164 def getElectricalEnergySystemSOC (self ):
165- return self .service . getProperty ("ess.stateOfCharge" )["properties" ]["value" ][
165+ return self .getProperty ("ess.stateOfCharge" )["properties" ]["value" ][
166166 "value"
167167 ]
168168
169169 @handleNotSupported
170170 def getElectricalEnergySystemSOCUnit (self ):
171- return self .service . getProperty ("ess.stateOfCharge" )["properties" ]["value" ][
171+ return self .getProperty ("ess.stateOfCharge" )["properties" ]["value" ][
172172 "unit"
173173 ]
174174
175175 @handleNotSupported
176176 def getElectricalEnergySystemPower (self ):
177- return self .service . getProperty ("ess.power" )["properties" ]["value" ]["value" ]
177+ return self .getProperty ("ess.power" )["properties" ]["value" ]["value" ]
178178
179179 @handleNotSupported
180180 def getElectricalEnergySystemPowerUnit (self ):
181- return self .service . getProperty ("ess.power" )["properties" ]["value" ]["unit" ]
181+ return self .getProperty ("ess.power" )["properties" ]["value" ]["unit" ]
182182
183183 @handleNotSupported
184184 def getElectricalEnergySystemOperationState (self ):
185- return self .service . getProperty ("ess.operationState" )["properties" ]["value" ][
185+ return self .getProperty ("ess.operationState" )["properties" ]["value" ][
186186 "value"
187187 ]
0 commit comments