Skip to content

Stopping charge #10

@jumpjack

Description

@jumpjack

fun startCharge(queue: RequestQueue): Observable<JSONObject>

Apparently it is impossible to manually stop charging after starting it manually, both with action "STOP" or "CANCEL", but I have been suggested to switch charging mode from "always" to "scheduled" to have same effect, although I didn't test it yet.
Possibly this would result in "successfull" charges? As of now all my charges have an "error" as final status:

    {
          "chargeStartDate": "2022-03-21T23:35:12Z",
          "chargeEndDate": "2022-03-21T06:32:50Z",
          "chargeDuration": -61342,
          "chargeEndBatteryLevel": 71,
          "chargeEndStatus": "error"
      },
      {
          "chargeStartDate": "2022-03-22T19:43:12Z",
          "chargeEndDate": "2022-03-22T20:58:58Z",
          "chargeDuration": 4546,
          "chargeStartBatteryLevel": 50,
          "chargeEndBatteryLevel": 54,
          "chargeEndStatus": "ok"
      },
      {
          "chargeStartDate": "2022-03-23T01:00:32Z",
          "chargeEndDate": "2022-03-23T05:46:17Z",
          "chargeDuration": 17145,
          "chargeEndBatteryLevel": 51,
          "chargeEndStatus": "error"
      }

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