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
Copy file name to clipboardExpand all lines: docs/changelog.mdx
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,23 @@ Feature development of the v1 API has been stopped. No new features will be adde
21
21
22
22
### v2
23
23
24
-
-**2.0.0** - 21-01-2025 - Initial release of the v2 API.
25
-
-**2.0.1** - 30-01-2025 - An issue has been resolved where `energy_import_kwh` and `energy_export_kwh` values in the Plug-In Battery [Measurement API](/docs/v2/measurement#plug-in-battery-hwe-bat) were returning invalid values. The values are now the same as those in the HomeWizard Energy app.
26
-
-**2.1.0** - 01-05-2025 - Support has been added to the P1 Meter to control the Plug-In Battery group mode. See [Plug-In Battery API](/docs/v2/batteries) for more information. This feature is currently in beta.
24
+
#### 2.0.0 - 21-01-2025
25
+
26
+
- Initial release of the v2 API.
27
+
28
+
#### 2.0.1 - 30-01-2025
29
+
30
+
- An issue has been resolved where `energy_import_kwh` and `energy_export_kwh` values in the Plug-In Battery [Measurement API](/docs/v2/measurement#plug-in-battery-hwe-bat) were returning invalid values. The values are now the same as those in the HomeWizard Energy app.
31
+
32
+
#### 2.1.0 - 01-05-2025
33
+
34
+
- Support has been added to the P1 Meter to control the Plug-In Battery group mode. See [Plug-In Battery API](/docs/v2/batteries) for more information.
35
+
36
+
#### 2.2.0 - 01-12-2025 (in beta)
37
+
38
+
- You can now set charge and discharge permissions for the Plug-In Battery group via the `permissions` field in the [Plug-In Battery API](/docs/v2/batteries). See the documentation for more information.
39
+
- A new field has been added to `api/batteries`: `battery_count`, which indicates the number of connected Plug-In Batteries.
40
+
- When `target_power_w` field in `api/batteries` is updated, it is now pushed over WebSocket connections as well.
| P1 Meter |`HWE-P1`| <BadgecolorName='hw-green'icon="mdi:check"detail='v1'>Supported</Badge> | <BadgecolorName='hw-green'icon="mdi:check"detail='2.1.0'>Supported</Badge><BadgecolorName='hw-purple'icon="mdi:test-tube"detail='2.2.0'>In beta, available from firmware 6.03xx</Badge> |
45
+
| Energy Socket |`HWE-SKT`| <BadgecolorName='hw-green'icon="mdi:check"detail='v1'>Supported</Badge> | <BadgecolorName='hw-grey'icon="mdi:wrench">In development</Badge> |
46
+
| Watermeter (Only when powered over USB) |`HWE-WTR`| <BadgecolorName='hw-green'icon="mdi:check"detail='v1'>Supported</Badge> | <BadgecolorName='hw-grey'icon="mdi:wrench">In development</Badge> |
47
+
| kWh Meter (1 phase and 3-phase) |`HWE-KWH1`,<br /> `HWE-KWH3`,<br />`SDM230-wifi` and<br />`SDM630-wifi`| <BadgecolorName='hw-green'icon="mdi:check"detail='v1'>Supported</Badge> | <BadgecolorName='hw-green'icon="mdi:check"detail='2.1.0'>Supported</Badge> <BadgecolorName='hw-purple'icon="mdi:test-tube"detail='2.2.0'>In beta, available from firmware 5.01xx</Badge> |
48
+
| Energy Display |`HWE-DSP`| <BadgecolorName='hw-grey'icon="mdi:close">Not planned</Badge> | <BadgecolorName='hw-grey'icon="mdi:wrench">In development</Badge> |
|[mode](#mode)| <BadgecolorName='hw-green'icon="mdi:check"detail='2.1.0'>Available</Badge> | String | Read/Write | Control mode of the Plug-In Battery. Can be either `zero`, `to_full`, or `standby`. |
30
+
|[permissions](#permissions)| <BadgecolorName='hw-purple'icon="mdi:test-tube"detail='2.2.0'>In beta</Badge> | Array[String]| Read/Write\*| Permissions to allow charging, discharging, both, or neither. _Note: Read-only in `to_full` mode._|
31
+
| battery_count | <BadgecolorName='hw-purple'icon="mdi:test-tube"detail='2.2.0'>In beta</Badge> | Number | Read-only | Number of connected Plug-In Batteries. |
32
+
| power_w | <BadgecolorName='hw-green'icon="mdi:check"detail='2.1.0'>Available</Badge> | Number | Read-only | Current combined power consumption/production of the controlled Plug-In Batteries. |
33
+
| target_power_w | <BadgecolorName='hw-green'icon="mdi:check"detail='2.1.0'>Available</Badge> | Number | Read-only | Target power consumption/production of the controlled Plug-In Batteries. |
34
+
| max_consumption_w | <BadgecolorName='hw-green'icon="mdi:check"detail='2.1.0'>Available</Badge> | Number | Read-only | Maximum allowed consumption power of the controlled Plug-In Batteries. |
35
+
| max_production_w | <BadgecolorName='hw-green'icon="mdi:check"detail='2.1.0'>Available</Badge> | Number | Read-only | Maximum allowed production power of the controlled Plug-In Batteries. |
34
36
35
-
## Mode.
37
+
## Mode
36
38
37
39
The group of connected batteries can be controlled in three different modes:
38
40
39
41
-`zero` - The Plug-In Battery will try to keep the power consumption/production of your home at zero. This means that the Plug-In Battery will charge or discharge to maintain a net-zero power balance. This is the default mode.
40
42
-`to_full` - All connected Plug-In Batteries will be charged to 100%, regardless of the power consumption/production of your home. When all batteries are fully charged, the Plug-In Battery will switch to the **zero** mode.
41
-
-`standby` - Batteries will enter standby mode. This means that the Plug-In Battery will neither charge nor discharge.
43
+
-`standby` - Batteries will enter standby mode. This means that the Plug-In Battery will neither charge nor discharge._For new implementations we recommend to use the `permissions` field to disallow both charging and discharging instead of using this mode._
42
44
43
-
### Examples
45
+
##Permissions
44
46
45
-
#### Get Battery Group Information
47
+
The `permissions` field can be used to set specific permissions for charging and discharging the connected Plug-In Batteries. The possible values are:
48
+
49
+
-`charge_allowed` - Allow the Plug-In Battery to charge.
50
+
-`discharge_allowed` - Allow the Plug-In Battery to discharge.
51
+
52
+
Provide these via an array when updating the `permissions` field. For example, to allow both charging and discharging, set `permissions` to `["charge_allowed", "discharge_allowed"]`. To disallow both, set it to an empty array `[]`.
53
+
54
+
### Backwards compatibility with `standby` mode
55
+
56
+
Mode `standby` is exactly the same as mode `zero` with both charging and discharging disallowed, therefore the following rules apply for backwards compatibility:
57
+
58
+
- When switching to `standby` mode, the `permissions` field will be set to an empty array `[]`.
59
+
- When adding a permission to the `permissions` field while in `standby` mode, the mode will automatically switch to `zero`.
60
+
-`zero` mode with both permissions allowed is the same as the default `zero` mode.
You can set mode and permissions in one request. You cannot set `mode` to `to_full` and change `permissions` at the same time, as `permissions` is read-only in `to_full` mode.
142
+
143
+
Mode will change to standby or zero depending on the provided permissions.
0 commit comments