Skip to content

Charge_session switch reverts to off within seconds when toggled manually with surplus mode disabled #36

Description

@SergioMonC

Environment

  • Integration version: 2.23.0
  • Home Assistant: 2026.8.2 (Home Assistant OS 18.2, Supervisor 2026.07.5)
  • Charger: 7.4 kW single-phase, profile depow_v2, protocol 3.5

Description

Wednesday afternoon, at a site with little sun left: I started a charging session. With solar surplus mode on, charging speed was very slow, as expected with minimal surplus. I then disabled solar surplus mode (Enable solar surplus mode unchecked) to charge normally instead — this paused the charger.

I tried to resume by turning the charge_session switch on manually from Home Assistant (card_role: charge_session; I've renamed the entity on my instance to switch.cargador_ev_charging_session). When I toggle it:

  1. All the integration's entities briefly go Unavailable, as if the integration reloads or the coordinator restarts.
  2. A couple of seconds later everything comes back, and the switch has reverted to off.

This happens repeatably — every manual attempt to turn it on ends the same way.

Expected

With surplus mode disabled, toggling the charge_session switch on should start and hold a normal charging session, without the entities going unavailable and without the switch reverting on its own.

Actual

The charging session switch cannot be turned on manually while surplus mode is disabled in this scenario — it flips back to off within seconds of every attempt, entities go Unavailable in between, which suggests something is reloading in response to the toggle.

Notes

  • I found tuya_ev_charger.force_charge_for ("Force charge for a duration") in Developer Tools → Actions. Its description reads "Charge unconditionally for a number of minutes, ignoring surplus regulation", and it takes an optional fixed Current parameter. Does it still respect Maximum inverter output / Maximum house power in this scenario, per the fix described in Feature request: cap charging current against total inverter output, not just grid import #22 for 2.13.1? I haven't tested it yet and want to confirm the intended behaviour first.
  • Separately: would it be worth surfacing force-charge somewhere more visible, e.g. a button or field directly in the integration's options/device page, rather than only as an action under Developer Tools? I only found it by searching there — it's not obvious it exists otherwise, and it seems like a natural fallback when the switch doesn't behave as expected.
  • Happy to pull logs from around a toggle attempt, or diagnostics, if useful. Let me know what would help most given the Unavailable symptom — that part especially doesn't feel like normal surplus-mode gating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions