homebridge-solaxcloud-api 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +172 -164
- package/LICENSE +175 -175
- package/README.md +223 -196
- package/config.sample +15 -15
- package/config.schema.json +113 -113
- package/dist/platformInverter.d.ts +5 -0
- package/dist/platformInverter.d.ts.map +1 -1
- package/dist/platformInverter.js +20 -7
- package/dist/platformInverter.js.map +1 -1
- package/package.json +60 -59
- package/test/batteryAccessory.test.ts +16 -16
- package/test/helpers.ts +80 -80
- package/test/lightSensorAccessory.test.ts +73 -73
- package/test/motionAccessory.test.ts +36 -36
- package/test/outletAccessory.test.ts +75 -75
- package/test/platformAccessory.test.ts +24 -24
- package/test/platformConfig.test.ts +188 -188
- package/test/platformTotalizer.test.ts +157 -123
- package/test/statistics.test.ts +50 -50
package/CHANGELOG.md
CHANGED
|
@@ -1,164 +1,172 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
## [v2.5.
|
|
6
|
-
###
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
### Fixed
|
|
11
|
-
*
|
|
12
|
-
|
|
13
|
-
## [v2.
|
|
14
|
-
###
|
|
15
|
-
*
|
|
16
|
-
###
|
|
17
|
-
* Updated
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
* Updated
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
* Bumped
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
*
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
*
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
*
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
### Changes
|
|
54
|
-
*
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
* Bumped dependencies.
|
|
65
|
-
|
|
66
|
-
## [v2.1.
|
|
67
|
-
### Changes
|
|
68
|
-
* Bumped dependencies.
|
|
69
|
-
|
|
70
|
-
## [v2.1.
|
|
71
|
-
### Changes
|
|
72
|
-
* Bumped dependencies.
|
|
73
|
-
|
|
74
|
-
## [v2.1.
|
|
75
|
-
### Changes
|
|
76
|
-
* Bumped dependencies.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
*
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
### Changed
|
|
115
|
-
*
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
*
|
|
125
|
-
|
|
126
|
-
## [v1.
|
|
127
|
-
### Fixed
|
|
128
|
-
*
|
|
129
|
-
|
|
130
|
-
## [v1.
|
|
131
|
-
###
|
|
132
|
-
*
|
|
133
|
-
|
|
134
|
-
## [v1.4.
|
|
135
|
-
### Fixed
|
|
136
|
-
*
|
|
137
|
-
|
|
138
|
-
## [v1.4.
|
|
139
|
-
### Fixed
|
|
140
|
-
*
|
|
141
|
-
|
|
142
|
-
## [v1.4.
|
|
143
|
-
### Fixed
|
|
144
|
-
*
|
|
145
|
-
|
|
146
|
-
## [v1.4.
|
|
147
|
-
###
|
|
148
|
-
*
|
|
149
|
-
|
|
150
|
-
## [v1.
|
|
151
|
-
### Fixed
|
|
152
|
-
*
|
|
153
|
-
|
|
154
|
-
## [v1.
|
|
155
|
-
### Changed
|
|
156
|
-
*
|
|
157
|
-
|
|
158
|
-
## [v1.
|
|
159
|
-
### Fixed
|
|
160
|
-
*
|
|
161
|
-
|
|
162
|
-
## [v1.
|
|
163
|
-
### Changed
|
|
164
|
-
*
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [v2.5.1] - 2026-10-28
|
|
6
|
+
### Changed
|
|
7
|
+
* Matter electrical sensors are now created whenever Matter is enabled for the bridge; `pureHomeApp` is no longer required.
|
|
8
|
+
* Renamed the `pureHomeApp` UI option to clarify that it is only a legacy Apple Home fallback.
|
|
9
|
+
* Advertised both Matter and HAP support in the package metadata.
|
|
10
|
+
### Fixed
|
|
11
|
+
* Decoupled Matter power and energy updates from the legacy `pureHomeApp` setting.
|
|
12
|
+
|
|
13
|
+
## [v2.5.0] - 2026-10-27
|
|
14
|
+
### Added
|
|
15
|
+
* Added Matter electrical sensor support for power and cumulative energy in Apple Home.
|
|
16
|
+
### Changed
|
|
17
|
+
* Updated the project for Homebridge 2.4, modern Node.js, TypeScript, and ESM compatibility.
|
|
18
|
+
### Fixed
|
|
19
|
+
* Corrected Matter device registration, measurement schemas, unit conversions, and accessory deduplication.
|
|
20
|
+
|
|
21
|
+
## [v2.4.2] - 2026-06-03
|
|
22
|
+
### Changed
|
|
23
|
+
* Bumped Homebridge Lib dependency.
|
|
24
|
+
### Fixed
|
|
25
|
+
* Updated Eve HomeKit type loading for Homebridge Lib v8.
|
|
26
|
+
|
|
27
|
+
## [v2.4.1] - 2026-06-03
|
|
28
|
+
### Added
|
|
29
|
+
* Added unit coverage for all accessory types, platform config validation, and totalizer inverter creation.
|
|
30
|
+
* Added `enableHistory` config option to disable Eve/fakegato history services.
|
|
31
|
+
### Changed
|
|
32
|
+
* Bumped Fakegato dependency.
|
|
33
|
+
* Updated the test command to exit cleanly after running Mocha.
|
|
34
|
+
### Fixed
|
|
35
|
+
* Handled malformed inverter entries cleanly during platform config validation.
|
|
36
|
+
|
|
37
|
+
## [v2.4.0] - 2026-06-03
|
|
38
|
+
### Changed
|
|
39
|
+
* Replaced the local Solax Cloud API implementation with the external `solax-cloud-api` package.
|
|
40
|
+
* Bumped Mocha test dependency.
|
|
41
|
+
### Fixed
|
|
42
|
+
* Kept battery charge state reads in sync after updates.
|
|
43
|
+
* Rejected polling frequencies that would break meter smoothing.
|
|
44
|
+
* Prevented the multi-inverter totalizer from making cloud requests without real inverter credentials.
|
|
45
|
+
|
|
46
|
+
## [v2.3.3] - 2024-08-02
|
|
47
|
+
### Fixed
|
|
48
|
+
* Updated URL for Solax cloud API fetches.
|
|
49
|
+
|
|
50
|
+
## [v2.3.2] - 2024-07-04
|
|
51
|
+
### Fixed
|
|
52
|
+
* Updated README with fixed image logos.
|
|
53
|
+
### Changes
|
|
54
|
+
* Bumped dependencies.
|
|
55
|
+
|
|
56
|
+
## [v2.3.1] - 2024-04-08
|
|
57
|
+
### Fixed
|
|
58
|
+
* Changed max TokenID size to 24 ([#08](https://github.com/AllMightySauron/homebride-solaxcloud-api/issues/8)).
|
|
59
|
+
|
|
60
|
+
## [v2.3.0] - 2024-03-14
|
|
61
|
+
### Changes
|
|
62
|
+
* Added support for inverters from QCells through the QCells cloud API.
|
|
63
|
+
* **Breaking change** - plug-in configuration must be re-done to support inverters from multiple brands.
|
|
64
|
+
* Bumped dependencies.
|
|
65
|
+
|
|
66
|
+
## [v2.1.12] - 2023-05-31
|
|
67
|
+
### Changes
|
|
68
|
+
* Bumped dependencies.
|
|
69
|
+
|
|
70
|
+
## [v2.1.11] - 2023-03-14
|
|
71
|
+
### Changes
|
|
72
|
+
* Bumped dependencies.
|
|
73
|
+
|
|
74
|
+
## [v2.1.10] - 2022-12-13
|
|
75
|
+
### Changes
|
|
76
|
+
* Bumped dependencies.
|
|
77
|
+
|
|
78
|
+
## [v2.1.9] - 2022-11-16
|
|
79
|
+
### Changes
|
|
80
|
+
* Bumped dependencies.
|
|
81
|
+
|
|
82
|
+
## [v2.1.8] - 2022-07-20
|
|
83
|
+
### Changes
|
|
84
|
+
* Bumped dependencies.
|
|
85
|
+
### Fixed
|
|
86
|
+
* Update on polling logic to prevent event memory leak issue ([#04](https://github.com/AllMightySauron/homebride-solaxcloud-api/issues/4)).
|
|
87
|
+
|
|
88
|
+
## [v2.1.7] - 2022-05-03
|
|
89
|
+
### Changes
|
|
90
|
+
* Bumped dependencies.
|
|
91
|
+
* Unit testing for multiple inverters.
|
|
92
|
+
### Fixed
|
|
93
|
+
* Documentation updates.
|
|
94
|
+
|
|
95
|
+
## [v2.1.6] - 2022-04-07
|
|
96
|
+
### Changes
|
|
97
|
+
* Battery totals SoC updated to "All inverters".
|
|
98
|
+
### Fixed
|
|
99
|
+
* Compressed image size for README information.
|
|
100
|
+
|
|
101
|
+
## [v2.1.5] - 2022-04-07
|
|
102
|
+
### Changed
|
|
103
|
+
* New inverter accessory **Battery** for State of Charge (SoC) information.
|
|
104
|
+
* Support for battery charge level, charge state and low battery handler (<10%).
|
|
105
|
+
|
|
106
|
+
## [v2.1.4] - 2022-04-06
|
|
107
|
+
### Changed
|
|
108
|
+
* Added "All inverters" virtual inverter for totalizing inverter figures for all sensors.
|
|
109
|
+
* Preliminary battery support with **From Battery** and **To Battery** charge power ([#02](https://github.com/AllMightySauron/homebride-solaxcloud-api/issues/2)).
|
|
110
|
+
|
|
111
|
+
## [v2.1.2] - 2022-03-31
|
|
112
|
+
### Fixed
|
|
113
|
+
* Bumped dependencies to latest versions.
|
|
114
|
+
### Changed
|
|
115
|
+
* Initial support for multiple inverters.
|
|
116
|
+
|
|
117
|
+
## [v2.0.3] - 2022-01-25
|
|
118
|
+
### Fixed
|
|
119
|
+
* Fixed dependabot detected vulnerabilities.
|
|
120
|
+
|
|
121
|
+
## [v2.0.2] - 2022-01-24
|
|
122
|
+
### Changed
|
|
123
|
+
* Added support for "pure" Home app accessories (power consumption displayed as Ambient Light Sensors) ([#01](https://github.com/AllMightySauron/homebride-solaxcloud-api/issues/1)).
|
|
124
|
+
* Created optional accessories to display smooth value from raw API data (minimizing sporadic events like a cloud passing).
|
|
125
|
+
|
|
126
|
+
## [v1.5.1] - 2022-01-08
|
|
127
|
+
### Fixed
|
|
128
|
+
* Disabled repeat last data for history (connection problems may lead to strange values).
|
|
129
|
+
|
|
130
|
+
## [v1.5.0] - 2021-12-31
|
|
131
|
+
### Changed
|
|
132
|
+
* Homebridge certified!
|
|
133
|
+
|
|
134
|
+
## [v1.4.6] - 2021-12-28
|
|
135
|
+
### Fixed
|
|
136
|
+
* Added extended parameter check (including Solax Cloud limits).
|
|
137
|
+
|
|
138
|
+
## [v1.4.5] - 2021-12-27
|
|
139
|
+
### Fixed
|
|
140
|
+
* Sanity checks for mandatory config parameters.
|
|
141
|
+
|
|
142
|
+
## [v1.4.4] - 2021-12-22
|
|
143
|
+
### Fixed
|
|
144
|
+
* Automation example added to documentation.
|
|
145
|
+
|
|
146
|
+
## [v1.4.3] - 2021-12-21
|
|
147
|
+
### Fixed
|
|
148
|
+
* Code cleanup and optimizations.
|
|
149
|
+
|
|
150
|
+
## [v1.4.1] - 2021-12-21
|
|
151
|
+
### Fixed
|
|
152
|
+
* First working version with fakegato-history for Eve.
|
|
153
|
+
|
|
154
|
+
## [v1.4.0] - 2021-12-20
|
|
155
|
+
### Changed
|
|
156
|
+
* Initial fakegato-history release for Eve.
|
|
157
|
+
|
|
158
|
+
## [v1.3.1] - 2021-12-14
|
|
159
|
+
### Fixed
|
|
160
|
+
* Documentation updated to reflect new **Total Energy** characteristic on Inverter AC.
|
|
161
|
+
|
|
162
|
+
## [v1.3.0] - 2021-12-14
|
|
163
|
+
### Changed
|
|
164
|
+
* Added support for total energy consumption.
|
|
165
|
+
|
|
166
|
+
## [v1.2.1] - 2021-12-14
|
|
167
|
+
### Fixed
|
|
168
|
+
* Updates to the official documentation.
|
|
169
|
+
|
|
170
|
+
## [v1.2.0] - 2021-12-13
|
|
171
|
+
### Changed
|
|
172
|
+
* First official release.
|