Skip to content

easee_cloud: power unknown while no car is plugged in #289

Done

Description

@frahlg

What happens

After the Easee driver starts with no car plugged in, it reports the
charger's power as unknown. It stays unknown until a car is plugged in.
Every FTW Core update restarts the driver, so this happens after each one.

Why

drivers/lua/easee_cloud.lua 1.5.0:

  • note_observation ignores TotalPower (observation 120) while op_mode
    (observation 109) is 1, disconnected:
    if latest[OBS_OP_MODE] == 1 then return false end.
  • Noting op_mode 1 calls reset_power_order(), which clears
    latest[OBS_TOTAL_POWER] and latest_at[OBS_TOTAL_POWER].
  • The ev emit then sends control_power_available = false and
    control_power_confirmed = false, because there is no TotalPower.

Easee's cloud records TotalPower only when it changes, and it does not change
without a car. So no TotalPower arrives until a car is plugged in.

This came in with #183 ("reject out-of-order power observations"), merged
24 Nov 2026.

What it breaks in Core

ControlPowerObservation (go/internal/telemetry/control_observations.go)
refuses the sample, and Core marks the EV flow unknown_power:easee:ev.
Home use is grid − PV − battery − EV, so Home use becomes unknown too. History
loses Home use for those hours, and the day's saving goes negative.

Evidence

Fredrik's own box, FTW v0.174.0-beta.1, one Easee charger. Home use was
unknown:

  • 25 Nov 09:35–19:08
  • 27 Nov 11:37–17:23
  • 28 Nov 08:03–08:23
  • from 28 Nov 14:34 onward

Each window starts at a Core restart and ends when a car is plugged in.
/api/ev/status on 30 Nov shows op_mode 1, is_online true,
control_power_available false, control_power_confirmed false,
power_max_age_s 180.

Expected

A charger that the cloud still hears from and that reports op_mode 1 has no
car, so it draws nothing. The driver should report 0 W as a measured,
confirmed reading. #183's guard against out-of-order power while a car is
connected should stay as it is.

Activity

  1. added
    bug
    on Nov 30, 2026
  2. added a commit that references this issue on Nov 30, 2026
    f7102be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions