@@ -4169,6 +4169,11 @@ def publish_json_plan(self, pv_forecast_minute_step, pv_forecast_minute_step10,
4169
4169
output["config"]["metric_battery_value_scaling"] = self.metric_battery_value_scaling
4170
4170
output["config"]["currency"] = self.currency_symbols
4171
4171
4172
+ output["config"]["iboost_enable"] = self.iboost_enable
4173
+ output["config"]["carbon_enable"] = self.carbon_enable
4174
+ output["config"]["car_enable"] = self.num_cars > 0
4175
+
4176
+
4172
4177
minute_now_align = int(self.minutes_now / 30) * 30
4173
4178
end_plan = min(end_record, self.forecast_minutes) + minute_now_align
4174
4179
@@ -4336,13 +4341,13 @@ def publish_json_plan(self, pv_forecast_minute_step, pv_forecast_minute_step10,
4336
4341
slot["cost"]["change"] = self.dp2(metric_change)
4337
4342
4338
4343
# Car charging?
4339
- slot["car"] = {}
4340
4344
if self.num_cars > 0:
4345
+ slot["car"] = {}
4341
4346
slot["car"]["charging_kwh"] = self.car_charge_slot_kwh(minute_start, minute_end)
4342
4347
4343
4348
# iBoost
4344
- slot["iboost"] = {}
4345
4349
if self.iboost_enable:
4350
+ slot["iboost"] = {}
4346
4351
iboost_slot_end = minute_relative_slot_end
4347
4352
iboost_amount = self.predict_iboost_best.get(minute_relative_start, 0)
4348
4353
iboost_amount_end = self.predict_iboost_best.get(minute_relative_slot_end, 0)
@@ -4361,8 +4366,8 @@ def publish_json_plan(self, pv_forecast_minute_step, pv_forecast_minute_step10,
4361
4366
slot["iboost"]["amount_end"] = iboost_amount_end
4362
4367
slot["iboost"]["amount_prev"] = iboost_amount_prev
4363
4368
4364
- slot["carbon"] = {}
4365
4369
if self.carbon_enable:
4370
+ slot["carbon"] = {}
4366
4371
# Work out carbon intensity and carbon use
4367
4372
slot["carbon"]["amount"] = self.predict_carbon_best.get(minute_relative_start, 0)
4368
4373
slot["carbon"]["amount_end"] = self.predict_carbon_best.get(minute_relative_slot_end, 0)
0 commit comments