ev_smart_charging icon indicating copy to clipboard operation
ev_smart_charging copied to clipboard

Update 2.3.0 apex issues

Open storebatfar opened this issue 10 months ago • 3 comments

After upgrading to version 2.3.0 the Apex chart template for viewing daily prices and best charge periode gets a weird change in design. The line gets jagged and does not keep it's nice curved look.

I know this may be a setting that needs to be changed in the apex card, but I have not been able to find it and fix it.

Version 2.2.0

Image

Version 2.3.0

Image

storebatfar avatar Jan 21 '25 07:01 storebatfar

This is a consequence of the change of time resolution from 60 minutes to 15 minutes, as long as the price information is given with 60 minute resolution. When and if the prices will be given with 15 minute resolution, the graph will become smoother (assuming the prices will be smooth).

Now, if you want to keep the smooth curve, I think it should be possible to adjust the apec card to only use every fourth price element, but I have not looked into that.

jonasbkarlsson avatar Jan 21 '25 08:01 jonasbkarlsson

Thank you @jonasbkarlsson I have played around with the data_generator and updating these have solved the issue.

data_generator: >
  return entity.attributes.raw_two_days.filter((entry, index) => index % 4 === 0)
    .map((entry) => [new Date(entry.start), entry.value]);

data_generator: >
  return entity.attributes.charging_schedule.filter((entry, index) => index % 4 === 0)
    .map((entry) => [new Date(entry.start), entry.value]);

storebatfar avatar Jan 21 '25 11:01 storebatfar

For raw_two_days, the price information, that would make sense. However for charging_schedule you don't want to do this, since the resolution of the scheduling now is 15 minutes.

jonasbkarlsson avatar Jan 21 '25 14:01 jonasbkarlsson