File tree 1 file changed +5
-5
lines changed
bundles/org.openhab.binding.energidataservice
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -119,11 +119,11 @@ rule "Calculate total price" do
119
119
120
120
time_series = TimeSeries .new # the default policy is replace
121
121
spot_prices.each do |spot_price |
122
- total_price = spot_price.state +
123
- GridTariff .persisted_state(spot_price.timestamp).state +
124
- SystemTariff .persisted_state(spot_price.timestamp).state +
125
- TransmissionGridTariff .persisted_state(spot_price.timestamp).state +
126
- ElectricityTax .persisted_state(spot_price.timestamp).state
122
+ total_price = spot_price +
123
+ GridTariff .persisted_state(spot_price.timestamp) +
124
+ SystemTariff .persisted_state(spot_price.timestamp) +
125
+ TransmissionGridTariff .persisted_state(spot_price.timestamp) +
126
+ ElectricityTax .persisted_state(spot_price.timestamp)
127
127
time_series.add(spot_price.timestamp, total_price)
128
128
end
129
129
TotalPrice .persist(time_series)
You can’t perform that action at this time.
0 commit comments