You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -35,8 +34,6 @@ To understand each value, please read [endpoints](/docs/category/api-v1/).
35
34
36
35
## Getting Started with v2
37
36
38
-
<PreliminaryWarning />
39
-
40
37
In contrast to v1, the v2 API is based on HTTPS and uses authorization to access the data. This means you don't need to enable the local API in the app, but you have to obtain a token.
41
38
42
39
The following example will show you can use the API to get basic information from a P1 Meter.
@@ -35,21 +34,23 @@ Read more about the [new version of the API here](/docs/category/api-v2).
35
34
36
35
To understand the basics of the API, you can read the [getting-started](/docs/getting-started) guide, and read [v1](/docs/category/api-v1) or [v2](/docs/category/api-v2) to know all about the available features.
37
36
38
-
## Devices and API versions {#devices}
39
-
40
-
<PreliminaryWarning />
37
+
## Devices and API Versions {#devices}
41
38
42
39
The following table shows which devices are supported by the API and which API version they support.
The v2 API is available for P1 Meter devices with firmware version 6.00 and higher. This version is currently only available for owners of the Plug-In Battery.
@@ -21,8 +20,6 @@ import PreliminaryWarning from '@site/src/components/PreliminaryWarning.js'
21
20
22
21
---
23
22
24
-
<PreliminaryWarning />
25
-
26
23
The HomeWizard Energy API requires a Bearer token to authorize requests. This token should be included in the `Authorization` header of each request. To get a token you must create a user on the device.
<Badgecolor='hw-orange'icon='mdi:check'subtext='Supported in v1'>kWh Meter</Badge>
@@ -21,8 +20,6 @@ import PreliminaryWarning from '@site/src/components/PreliminaryWarning.js'
21
20
22
21
---
23
22
24
-
<PreliminaryWarning />
25
-
26
23
The `/api` endpoint allows you to get basic information from the device.
27
24
28
25
Your application can use this endpoint to see if your integration is designed to work with this version of the API. You can validate your support based on the combination of `product_type` and `api_version`. Data points in this endpoint that are currently available won't change, but make sure your application can accept new data points for future updates.
<Badgecolor='hw-orange'icon='mdi:check'subtext='Supported in v1'>kWh Meter</Badge>
@@ -20,8 +19,6 @@ import PreliminaryWarning from '@site/src/components/PreliminaryWarning.js'
20
19
21
20
---
22
21
23
-
<PreliminaryWarning />
24
-
25
22
When you perform an invalid request or something went wrong, the API will respond with an error message. You have to check if the HTTP status code returns `200 OK` before parsing the result or `204 No Content` if you expect no content (actions and set requests).
26
23
If you use an endpoint that returns JSON, you also will receive an object with some error information.
0 commit comments