Get or set the tariff settings.
Enphase-API is an unofficial project providing an API wrapper and the documentation for Enphase®'s products and services.
More details on the project are available from the project’s homepage.
A HTTP GET to the /admin/lib/tariff.json endpoint provides the following response data.
As of recent Gateway software versions this request requires user authentication and authorisation, see Authentication.
| Name | Type | Values | Description |
|---|---|---|---|
|
Object |
|
Contains details about the electricity tariffs. |
|
Object |
|
Contains details about the different tariffs that apply at different times. |
| Name | Type | Values | Description |
|---|---|---|---|
|
Object |
|
The currency that any amounts are in |
|
String |
String |
??? |
|
Object |
|
Details about the storage settings. |
|
Object |
|
A single rate tariff. |
|
Array(Unknown) |
Array of Unknown |
Details about seasonal changes to electricity import rates. |
|
Array(Unknown) |
Array of Unknown |
Details about seasonal changes to electricity export rates. |
| Name | Type | Values | Description |
|---|---|---|---|
|
String |
String |
The code of the currency that any specified amounts are in (e.g. GBP = Great Britain Pound) |
| Name | Type | Values | Description |
|---|---|---|---|
|
String |
|
Storage profile mode. In the format |
|
String |
String |
??? |
|
Number |
Number |
What State of Charge (SoC) should be reserved for backup. |
|
Number |
Number |
??? |
|
Boolean |
Boolean (e.g. |
Whether charging from the grid is allowed. |
| Name | Type | Values | Description |
|---|---|---|---|
|
Number |
Number |
The rate at which electricity is imported at. |
|
Number |
Number |
The rate at which electricity is sold at. |
| Name | Type | Values | Description |
|---|---|---|---|
|
String |
String |
??? |
|
String |
String |
??? |
|
String |
String |
??? |
|
Number |
Number |
What State of Charge (SoC) should be reserved for backup. |
|
String |
String |
??? |
|
Number |
Number |
What is deemed to be a very low State of Charge (SoC). |
|
Boolean |
Boolean (e.g. |
Whether charging from the grid is allowed during this time. |
{"tariff": {"currency": {"code": "GBP"}, "logger": "mylogger", "storage_settings": {"mode": "self-consumption", "operation_mode_sub_type": "", "reserved_soc": 0.0, "very_low_soc": 5, "charge_from_grid": false}, "single_rate": {"rate": 0.3279, "sell": 0.12}, "seasons": [], "seasons_sell": []}, "schedule": {"source": "Tariff", "date": "2023-04-11 10:14:21 UTC", "version": "00.00.02", "reserved_soc": 0.0, "operation_mode_sub_type": "", "very_low_soc": 5, "charge_from_grid": false}}