File: vehicle_action.charge-mode.rst

package info (click to toggle)
python-renault-api 0.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,892 kB
  • sloc: python: 8,210; makefile: 2
file content (44 lines) | stat: -rw-r--r-- 1,110 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
actions/charge-mode
'''''''''''''''''''

.. rst-class:: endpoint

Base url:
   ``/commerce/v1/accounts/{account_id}/kamereon/kca/car-adapter/v1/cars/{vin}/actions/charge-mode``

Sample payload:
   Use instant charging:

   .. code-block:: JavaScript

      {
         "data": {
            "type": "ChargeMode",
            "attributes": {"action": "always_charging"}
         }
      }

   Use scheduled charging:

   .. code-block:: JavaScript

      {
         "data": {
            "type": "ChargeMode",
            "attributes": {"action": "schedule_mode"}
         }
      }


   Please check the `Contributor Guide`_ to provide extra samples.

.. note::
   All vehicles seem to use `always_charging` and `schedule_mode`.

   On older vehicles, such as Zoe40 (model code X101VE):
      This matches the ``vehicle_data.charge-mode`` return values: ``always_charging`` and ``schedule_mode``.

   On newer vehicles, such as Zoe50 (model code X102VE):
      This DOES NOT match the ``vehicle_data.charge-mode`` return values which are: ``always`` and ``scheduled``.

.. _Contributor Guide: contributing.html