homebridge-melcloud-control 4.14.0-beta.0 → 4.14.0-beta.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 CHANGED
@@ -25,6 +25,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
25
25
  - For plugin < v4.6.0 use Homebridge UI <= v5.5.0
26
26
  - For plugin >= v4.6.0 use Homebridge UI >= v5.13.0
27
27
 
28
+ ## [4.14.0-beta.1] - (17.10.2026)
29
+
30
+ ### Changes
31
+
32
+ - fixed: MELCloud Home, the outdoor temperature of the report was an old value of the previous day, because the report window ended at midnight at the beginning of the current day. The report is now requested from the current day
33
+
28
34
  ## [4.14.0-beta.0] - (17.10.2026)
29
35
 
30
36
  ### Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.14.0-beta.0",
4
+ "version": "4.14.0-beta.1",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -731,8 +731,12 @@ class MelCloudHome extends EventEmitter {
731
731
  // value, so the time of the real measurement is the point before it. Returns null when the unit has no outdoor reading.
732
732
  async getOutdoorTemperature(unitId) {
733
733
  try {
734
- const day = (offset) => new Date(Date.now() + offset * 86400000).toISOString().slice(0, 10);
735
- const params = { unitId, period: 'Daily', from: `${day(-1)}T00:00:00.0000000`, to: `${day(1)}T00:00:00.0000000` };
734
+ // the report is a window of 7 days that ends at midnight after `from` and `to` is ignored, so `from` must be today
735
+ const day = (offset) => {
736
+ const date = new Date(Date.now() + offset * 86400000);
737
+ return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`;
738
+ };
739
+ const params = { unitId, period: 'Daily', from: `${day(0)}T00:00:00.0000000`, to: `${day(1)}T00:00:00.0000000` };
736
740
  const resp = await this.client.get(ApiUrls.Home.Get.ReportTrendSummary, { params });
737
741
  if (this.logDebug) this.emit('debug', `Trend summary unit ${unitId}: ${JSON.stringify(resp.data)}`);
738
742