homebridge-ac-freedom 2.2.3 → 2.2.4

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
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.2.3
4
+
5
+ - Add localised features hint in config UI (14 languages)
6
+ - Fix README configuration examples (was showing outdated `cloudDevices`/`localDevices` format)
7
+ - Add `pollInterval` to `config.schema.json`
8
+ - Move plugin/platform name constants to `platform.js`
9
+ - Remove unused `FAN_SPEED.MUTE` constant
10
+
11
+ ## 2.2.2
12
+
13
+ - Add custom Homebridge config UI (`homebridge-ui/public/index.html`)
14
+ - Collapsible device cards with Cloud/Local segmented toggle
15
+ - Feature toggle grid (Fan, Sleep, Display / Health, Clean, Eco, Comf. Wind)
16
+ - Auto-save on every change
17
+ - Add i18n support with 14 languages (en, tr, ru, de, fr, es, it, ja, ko, zh-CN, ar, nl, pl, pt)
18
+
19
+ ## 2.2.1
20
+
21
+ - Fan slider snaps to 25% increments only (0 / 25 / 50 / 75 / 100%)
22
+ - Fix local device fan speed mapping (Low/High were swapped)
23
+ - Fan resets to Auto when AC power toggles or HVAC mode changes
24
+ - Sleep preset resets when AC power toggles or HVAC mode changes
25
+ - Remove Mute/Silent fan speed option from slider
26
+
3
27
  ## 2.1.1
4
28
 
5
29
  - Mark plugin as compatible with Homebridge v2
package/README.md CHANGED
@@ -87,12 +87,15 @@ npm install -g homebridge-ac-freedom
87
87
  {
88
88
  "platform": "AcFreedom",
89
89
  "name": "AC Freedom",
90
- "cloudDevices": [
90
+ "devices": [
91
91
  {
92
92
  "name": "Living Room AC",
93
- "email": "your-email@example.com",
94
- "password": "your-password",
95
- "region": "eu"
93
+ "connection": "cloud",
94
+ "cloud": {
95
+ "email": "your-email@example.com",
96
+ "password": "your-password",
97
+ "region": "eu"
98
+ }
96
99
  }
97
100
  ]
98
101
  }
@@ -108,11 +111,14 @@ npm install -g homebridge-ac-freedom
108
111
  {
109
112
  "platform": "AcFreedom",
110
113
  "name": "AC Freedom",
111
- "localDevices": [
114
+ "devices": [
112
115
  {
113
116
  "name": "Bedroom AC",
114
- "ip": "192.168.1.100",
115
- "mac": "AA:BB:CC:DD:EE:FF"
117
+ "connection": "local",
118
+ "local": {
119
+ "ip": "192.168.1.100",
120
+ "mac": "AA:BB:CC:DD:EE:FF"
121
+ }
116
122
  }
117
123
  ]
118
124
  }
@@ -124,27 +130,30 @@ npm install -g homebridge-ac-freedom
124
130
 
125
131
  ## Configuration Options
126
132
 
127
- ### Cloud Device Options
133
+ ### Device Options (all modes)
128
134
 
129
135
  | Option | Type | Required | Default | Description |
130
136
  |--------|------|----------|---------|-------------|
131
137
  | `name` | string | Yes | — | Device name in HomeKit |
138
+ | `connection` | string | Yes | `"cloud"` | Connection mode: `cloud` or `local` |
139
+ | `pollInterval` | integer | No | `30` | Polling interval in seconds (5–300) |
140
+ | `tempStep` | number | No | `0.5` | Temperature step: `0.5` or `1` |
141
+
142
+ ### Cloud Settings (`cloud` object)
143
+
144
+ | Option | Type | Required | Default | Description |
145
+ |--------|------|----------|---------|-------------|
132
146
  | `email` | string | Yes | — | AC Freedom app email |
133
147
  | `password` | string | Yes | — | AC Freedom app password |
134
148
  | `region` | string | No | `"eu"` | Server region: `eu`, `usa`, `cn`, `rus` |
135
149
  | `deviceId` | string | No | — | Specific device ID (leave empty to auto-detect) |
136
- | `showExtras` | boolean | No | `false` | Show fan, sleep, and extra switches |
137
- | `pollInterval` | integer | No | `30` | Polling interval in seconds (5–300) |
138
150
 
139
- ### Local Device Options
151
+ ### Local Settings (`local` object)
140
152
 
141
153
  | Option | Type | Required | Default | Description |
142
154
  |--------|------|----------|---------|-------------|
143
- | `name` | string | Yes | — | Device name in HomeKit |
144
155
  | `ip` | string | Yes | — | AC unit's local IP address |
145
156
  | `mac` | string | Yes | — | AC unit's MAC address (`AA:BB:CC:DD:EE:FF`) |
146
- | `showExtras` | boolean | No | `false` | Show fan, sleep, and extra switches |
147
- | `pollInterval` | integer | No | `30` | Polling interval in seconds (5–300) |
148
157
 
149
158
  ### Feature Switches
150
159
 
@@ -91,6 +91,13 @@
91
91
  "type": "boolean",
92
92
  "default": true
93
93
  },
94
+ "pollInterval": {
95
+ "title": "Poll Interval (seconds)",
96
+ "type": "integer",
97
+ "default": 30,
98
+ "minimum": 5,
99
+ "maximum": 300
100
+ },
94
101
  "tempStep": {
95
102
  "title": "Temperature Step",
96
103
  "type": "number",
package/index.js CHANGED
@@ -5,10 +5,7 @@
5
5
  * Exposes HeaterCooler with linked Switch services for presets inside the climate card.
6
6
  */
7
7
 
8
- const { AcFreedomPlatform } = require('./src/platform');
9
-
10
- const PLUGIN_NAME = 'homebridge-ac-freedom';
11
- const PLATFORM_NAME = 'AcFreedom';
8
+ const { AcFreedomPlatform, PLUGIN_NAME, PLATFORM_NAME } = require('./src/platform');
12
9
 
13
10
  module.exports = (api) => {
14
11
  api.registerPlatform(PLUGIN_NAME, PLATFORM_NAME, AcFreedomPlatform);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-ac-freedom",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "displayName": "Homebridge AC Freedom",
5
5
  "description": "Homebridge plugin for AUX air conditioners via Broadlink (local UDP) and AUX Cloud API",
6
6
  "main": "index.js",
@@ -29,7 +29,7 @@ const CLOUD = {
29
29
  const CLOUD_MODE = { AUTO: 4, COOL: 0, HEAT: 1, DRY: 2, FAN: 3 };
30
30
 
31
31
  // Fan speed values
32
- const FAN_SPEED = { AUTO: 0, LOW: 1, MEDIUM: 2, HIGH: 3, TURBO: 4, MUTE: 5 };
32
+ const FAN_SPEED = { AUTO: 0, LOW: 1, MEDIUM: 2, HIGH: 3, TURBO: 4 };
33
33
 
34
34
  class AcFreedomAccessory {
35
35
  constructor(platform, accessory, config, deviceApi) {
@@ -524,7 +524,7 @@ class AcFreedomAccessory {
524
524
  const api = this.deviceApi.api;
525
525
  api.state.fanSpeed = speed;
526
526
  api.state.turbo = speed === FAN_SPEED.TURBO ? 1 : 0;
527
- api.state.mute = speed === FAN_SPEED.MUTE ? 1 : 0;
527
+ api.state.mute = 0;
528
528
  await api.setState();
529
529
  }
530
530
  }
package/src/platform.js CHANGED
@@ -10,6 +10,9 @@ const { AcFreedomAccessory } = require('./ac-accessory');
10
10
  const { AuxCloudAPI } = require('./cloud-api');
11
11
  const { BroadlinkAcApi } = require('./broadlink-api');
12
12
 
13
+ const PLUGIN_NAME = 'homebridge-ac-freedom';
14
+ const PLATFORM_NAME = 'AcFreedom';
15
+
13
16
  class AcFreedomPlatform {
14
17
  constructor(log, config, api) {
15
18
  this.log = log;
@@ -68,7 +71,7 @@ class AcFreedomPlatform {
68
71
  this.log.info('Adding new accessory: %s', deviceConfig.name);
69
72
  const accessory = new this.api.platformAccessory(deviceConfig.name, uuid);
70
73
  new AcFreedomAccessory(this, accessory, deviceConfig, deviceApi);
71
- this.api.registerPlatformAccessories('homebridge-ac-freedom', 'AcFreedom', [accessory]);
74
+ this.api.registerPlatformAccessories(PLUGIN_NAME, PLATFORM_NAME, [accessory]);
72
75
  this.accessories.set(uuid, accessory);
73
76
  }
74
77
  }
@@ -133,4 +136,4 @@ class AcFreedomPlatform {
133
136
  }
134
137
  }
135
138
 
136
- module.exports = { AcFreedomPlatform };
139
+ module.exports = { AcFreedomPlatform, PLUGIN_NAME, PLATFORM_NAME };