# Changelog ## 0.6.1 - Calendar view hides appointments that need no charging by default (status "below minimum", train, nearby, no location, manually off) and appointments that are not planned yet and whose own target is at or below evcc's minimum charge level, since evcc charges that anyway. A line above the list shows how many are hidden and shows them all on click; the choice is remembered in the browser. Planned and chained appointments and everything that needs attention stay visible. - Fix: a push that one target rejected (e.g. Telegram refusing "(" in MarkdownV2, HA answers 500) was repeated every run, also to the targets that had already delivered it. Each target now gets its own call and a push counts as sent when at least one accepted it. Text for entities with `telegram` in the id is escaped for MarkdownV2. - Fix: the "plan not effective" and "plan not reachable" warnings are no longer sent for plans whose time has already passed. The plan time in the "not effective" text is shown in local time instead of raw ISO. ## 0.6.0 - Several calendars: `ha.calendar` may be a list. All are read each run; a calendar that cannot be read falls back to its last state (own cache and error notice per calendar), the others are planned regardless. The same appointment (UID and start) in several calendars counts once. - New pushes, checked once a minute from the cached live status (no planning run): warning 10 minutes before the planned charge start if the car is not plugged in; info when the car arrives with less charge than assumed so charging starts earlier (with the new start time; nothing for a higher charge level); warning when the plan can no longer be reached in time (shares its key with the existing evcc overrun warning, so it is sent once). The "earlier" info only comes when the car arrived below the reserve and the start moves at least 10 minutes earlier. A failed push is retried after 5 minutes at the earliest. For overlapping appointments the charge deadline is that of the trip that has to leave first. - Each calendar card shows the display name of its source calendar as a small label behind the title (name from HA `GET /api/calendars`, falls back to the entity id). - Overlapping car appointments (also ones outside the chain window) are no longer planned separately: the first one is planned with enough charge for the longest of the overlapping trips, the others get the status "overlap" and a conflict notice. - Charge buffer: the plan time sent to evcc is earlier by `charge_buffer_min` (3) and, below `consumption.temp_threshold_c`, by `cold_buffer_min` (12) more, so small delays no longer trigger overrun reports. Both editable in the UI. ## 0.5.0 - Run history lists only runs with something to report (plan set or removed, problems, errors). Runs without changes are no longer stored; the tab shows the time of the last run instead. - Identical consecutive entries are merged ("3× until ..."). - Problem texts are stored with each entry and shown in the history. - History is paged (20 per page, "Show more"). `GET /api/history` takes `limit` (1 to 100) and `offset` and returns `total` and `last`. - Charging info inside the calendar card of each planned charge: charging window as a timeline bar (planned start to end, now, plan time), duration, maximum cost, and for the charge under way whether it is ahead of or behind the plan. The card's own bar shows the actual state of charge ("Ist") and where the plan wants it right now ("Soll") next to the target. Later, already chained charges get an estimate (window, cost) too, `charge_est` per item in `/api/status`. A plan that belongs to no calendar card (e.g. a repeating plan in evcc) gets a panel above the calendar. Uses evcc's projected start and end while the car is plugged in, otherwise an estimate from the plan time and the configured charge power. Computed from evcc `/api/state` only (new module `chargeview.py`), `GET /api/live` carries it as `charge`. - Cost forecast: maximum grid cost of the next charge (energy from the current or assumed state of charge to the target, charging losses included, no PV share). The price always comes from evcc (`tariffGrid`, plan slot prices, or the grid forecast over the estimated window); without an evcc price nothing is estimated. Away from home the state of charge on arrival is assumed to be the reserve and shown as estimated. - Cost forecast with PV: "about X (max. Y without PV)". The PV share comes from evcc's solar forecast (`forecast.solar.timeseries`, reduced by `scale` when that is below 1) minus the current house consumption, capped at the charge power, over the charging window. The PV share is valued at the feed-in tariff (`tariffFeedIn`) like evcc does in its sessions; the tooltip shows what is actually paid to the grid. Without a solar forecast only the maximum is shown. While charging, the PV share of what is already charged is estimated with the solar forecast over the charge duration so far (evcc has no measured value for a running session). evcc drops forecast slots that have passed, so the live poller remembers the last forecast value of every quarter hour while it was still ahead and uses that for the time since the charge started (kept in memory, empty after a restart). The cost is for the whole charge from the start of the plan (state of charge at the start derived from the session energy), not for what is left. - Cost, charging time and the energy planned for the trip (there, back, reserve) are shown as bubbles with the explanation as tooltip; the separate "behind the plan" line is gone (the delay in the "charged from - to" line comes from evcc). - The bar of a card now fills left to right in the order the energy is used: there, back, reserve. With the actual ("Ist") and planned ("Soll") markers it shows at a glance what is already covered. - The "Ladeplan gesetzt" push now adds the maximum cost. - New warning when evcc reports that the plan cannot be reached in time (`planOverrun`), once per plan time. - Real cost of finished charging sessions (evcc `GET /api/sessions`, read only): energy, price, PV share and state of charge are added to the history once per session. ## 0.4.0 - Live status on the vehicle card: plugged in, charging, charge power, SoC and charged energy from evcc. Optional PV generation, grid import / feed-in and home consumption when evcc reports them. Missing values are hidden, an unreachable evcc is shown as such. - A background thread polls only evcc `GET /api/state` (new setting `live_poll_s`, default 10 s, 5 to 300, editable in the UI). It never starts a planning run and does no geocoding or routing. The new endpoint `GET /api/live` (login required) serves the cached value only. - Planning runs stay serialized by the runner lock for every trigger (timer, UI change, "Jetzt prüfen"); covered by a test. - Link to the GitHub page next to the version number. - README: roadmap updated, "Future ideas" extended. ## 0.3.0 - New tab "Einstellungen": consumption values, reserve, cap for unclear classification, charge power, trip limits and the car/train rules can be edited in the UI. Values overlay `config.yaml`, are stored in the database and can be reset. Connection data and secrets stay in `config.yaml`. - New tab "Verlauf": the last 300 runs (including "Jetzt prüfen") with the result of each run. - New API endpoints `GET/POST /api/settings` and `GET /api/history` (login required). - Saving settings triggers a run in the configured mode. - Languages: English (default) and German for the UI, push messages and API errors, chosen with `language` in `config.yaml` or in the settings tab. Texts live in `evccplan/static/locales/.json`. **Existing installations that rely on German must set `language: de`.** Logs are English only. - The keywords "car" and "train" work like "Auto" and "Bahn". - Docker build uses the Python base image from the Amazon ECR Public mirror (`public.ecr.aws/docker/library/python`) to avoid Docker Hub rate limits in CI. Release workflow publishes only on version tags; pre-releases never get `latest`. ## 0.2.4 - Fix: no more warning "plan is not effective in evcc" when the battery is already at or above the plan target. evcc does not report such a plan as effective until the battery drops below the target, which is expected. - The "Ladeplan gesetzt" push now adds "Nach dem aktuellen Ladestand (xx %) ist kein weiteres Laden nötig. Der Plan greift, falls der Ladestand darunter sinkt." when the battery is already at or above the target. ## 0.2.3 - Docker image carries OCI labels (source repository, description, license), so the GitHub package is linked to the repo. - Unraid template (`templates/evcc-calendar.xml`) and icon. - An example `config.yaml` is created in the data folder on first start if none exists. - Example config and tests contain only fictional data. ## 0.2.1 - Docker image published to ghcr.io (`ghcr.io/cmdrsabre/evcc-calendar`), built on version tags (`v*.*.*`). - `docker-compose.yml` uses the published image; `--build` still builds locally. - English documentation and comments, MIT license. ## 0.2.0 - Login with a fixed user `admin`; the password is set on first access. - Per-appointment overrides in the UI: automatic / car / no car and charge target (5 to 100 %), also for appointments without an address. - New UI (timeline, charge bar, light/dark, mobile), optional images. - Car is the default and counts as clear. "Unclear" only on contradiction (car and train both in the text). - Routes below `min_car_km` (4 km) count as walk or bike. - Chain window `chain_window_h` is now 5 h, statuses "Folgetermin" and "Später". - Own vehicle image at `/personal/car.webp`: visible only when logged in, overrides the default image, listed in `.gitignore`. - New column and display of the consumption used, including temperature. - New config values: `min_car_km`, `manual_drive_min`; `chain_window_h` defaults to 5. ## 0.1.0 - First working version: calendar via Home Assistant, route via OpenRouteService, plan in evcc, dry run, push via Home Assistant.