victronenergy / gui-v2

Other
30 stars 10 forks source link

EVCS: Unable to change the charge current #1640

Closed ReinvdZee closed 1 month ago

ReinvdZee commented 1 month ago

On Venus OS 3.50~39. Setting the EV charger current no longer works:

https://github.com/user-attachments/assets/9de988e1-39d7-4bc0-9ff4-8ec775b7275f

There are three current-related paths in the evcharger service (dbus wiki):

  1. com.victronenergy.evcharger/Current
  2. com.victronenergy.evcharger/MaxCurrent
  3. com.victronenergy.evcharger/SetCurrent

Gui-v2 attempts to write to /Current, but this path seems to be read-only. Maybe it should write to /SetCurrent instead.

The dbus-wiki is not entirely clear about this, we need to clear that up first before we can fix this.

ReinvdZee commented 1 month ago

@blammit, @chriadam, @DanielMcInnes

The evcharger service creates three paths:

  1. com.victronenergy.evcharger/Current
  2. com.victronenergy.evcharger/MaxCurrent
  3. com.victronenergy.evcharger/SetCurrent

The EV charger page of Gui-v2 tried to write to /Current, but it should write to /SetCurrent to control the charging current. Also, the 'Charging current' field must be read-only when the EVCS mode is set to "Auto".