homebridge-ac-freedom 2.2.2 → 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",
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "فترة الاستطلاع (ثانية)",
38
38
  "pollIntervalHint": "تكرار جلب حالة المكيف (5–300)",
39
39
  "addDevice": "إضافة جهاز",
40
- "remove": "إزالة"
41
- }
40
+ "remove": "إزالة",
41
+ "featuresHint": "للحصول على مظهر HomeKit أنيق، يُوصى بتفعيل المروحة ووضع إعداد مسبق واحد فقط — يُقترح اختيار النوم."
42
+ }
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "Abfrageintervall (Sekunden)",
38
38
  "pollIntervalHint": "Wie oft der AC-Status abgerufen wird (5–300)",
39
39
  "addDevice": "Gerät hinzufügen",
40
- "remove": "Entfernen"
41
- }
40
+ "remove": "Entfernen",
41
+ "featuresHint": "Für ein übersichtliches HomeKit-Layout wird empfohlen, nur den Lüfter und einen einzigen Voreinstellungsmodus zu aktivieren — empfohlen wird Schlaf."
42
+ }
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "Poll Interval (seconds)",
38
38
  "pollIntervalHint": "How often to fetch the AC state (5–300)",
39
39
  "addDevice": "Add Device",
40
- "remove": "Remove"
41
- }
40
+ "remove": "Remove",
41
+ "featuresHint": "For a clean HomeKit appearance, it is recommended to enable Fan and only one preset mode — Sleep is the suggested choice."
42
+ }
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "Intervalo de consulta (segundos)",
38
38
  "pollIntervalHint": "Con qué frecuencia obtener el estado del AC (5–300)",
39
39
  "addDevice": "Agregar dispositivo",
40
- "remove": "Eliminar"
41
- }
40
+ "remove": "Eliminar",
41
+ "featuresHint": "Para una apariencia limpia en HomeKit, se recomienda activar el Ventilador y solo un modo preestablecido — Sueño es la opción sugerida."
42
+ }
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "Intervalle d'interrogation (secondes)",
38
38
  "pollIntervalHint": "Fréquence de récupération de l'état du climatiseur (5–300)",
39
39
  "addDevice": "Ajouter un appareil",
40
- "remove": "Supprimer"
41
- }
40
+ "remove": "Supprimer",
41
+ "featuresHint": "Pour un affichage HomeKit épuré, il est recommandé d'activer le Ventilateur et un seul mode prédéfini — Sommeil est le choix conseillé."
42
+ }
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "Intervallo polling (secondi)",
38
38
  "pollIntervalHint": "Ogni quanto recuperare lo stato del AC (5–300)",
39
39
  "addDevice": "Aggiungi dispositivo",
40
- "remove": "Rimuovi"
41
- }
40
+ "remove": "Rimuovi",
41
+ "featuresHint": "Per un aspetto HomeKit ordinato, si consiglia di abilitare il Ventilatore e un solo modo preimpostato — Sonno è la scelta suggerita."
42
+ }
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "ポーリング間隔(秒)",
38
38
  "pollIntervalHint": "エアコンの状態を取得する頻度(5〜300)",
39
39
  "addDevice": "デバイスを追加",
40
- "remove": "削除"
41
- }
40
+ "remove": "削除",
41
+ "featuresHint": "すっきりしたHomeKit表示のために、ファンと1つのプリセットモードのみ有効にすることをお勧めします — スリープが推奨です。"
42
+ }
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "폴링 간격 (초)",
38
38
  "pollIntervalHint": "에어컨 상태 조회 빈도 (5–300)",
39
39
  "addDevice": "기기 추가",
40
- "remove": "제거"
41
- }
40
+ "remove": "제거",
41
+ "featuresHint": "깔끔한 HomeKit 화면을 위해 팬과 프리셋 모드 하나만 활성화하는 것을 권장합니다 — 수면을 추천합니다."
42
+ }
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "Poll-interval (seconden)",
38
38
  "pollIntervalHint": "Hoe vaak de AC-status wordt opgehaald (5–300)",
39
39
  "addDevice": "Apparaat toevoegen",
40
- "remove": "Verwijderen"
41
- }
40
+ "remove": "Verwijderen",
41
+ "featuresHint": "Voor een overzichtelijk HomeKit-uiterlijk wordt aanbevolen alleen de Ventilator en één voorkeursmodus in te schakelen — Slaap is de aanbevolen keuze."
42
+ }
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "Interwał odpytywania (sekundy)",
38
38
  "pollIntervalHint": "Jak często pobierać stan klimatyzatora (5–300)",
39
39
  "addDevice": "Dodaj urządzenie",
40
- "remove": "Usuń"
41
- }
40
+ "remove": "Usuń",
41
+ "featuresHint": "Dla przejrzystego wyglądu HomeKit zaleca się włączenie tylko Wentylatora i jednego trybu predefiniowanego — rekomendowany jest Sen."
42
+ }
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "Intervalo de consulta (segundos)",
38
38
  "pollIntervalHint": "Com que frequência buscar o estado do AC (5–300)",
39
39
  "addDevice": "Adicionar dispositivo",
40
- "remove": "Remover"
41
- }
40
+ "remove": "Remover",
41
+ "featuresHint": "Para uma aparência limpa no HomeKit, recomenda-se ativar o Ventilador e apenas um modo predefinido — Sono é a escolha sugerida."
42
+ }
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "Интервал опроса (сек)",
38
38
  "pollIntervalHint": "Как часто запрашивать состояние кондиционера (5–300)",
39
39
  "addDevice": "Добавить устройство",
40
- "remove": "Удалить"
41
- }
40
+ "remove": "Удалить",
41
+ "featuresHint": "Для аккуратного вида HomeKit рекомендуется включить Вентилятор и только один режим предустановки — предпочтительно Сон."
42
+ }
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "Sorgulama Aralığı (saniye)",
38
38
  "pollIntervalHint": "Klima durumunun ne sıklıkla sorgulanacağı (5–300)",
39
39
  "addDevice": "Cihaz Ekle",
40
- "remove": "Kaldır"
41
- }
40
+ "remove": "Kaldır",
41
+ "featuresHint": "Temiz bir HomeKit görünümü için Fan ve yalnızca bir ön ayar modunun (önerilen: Uyku) etkinleştirilmesi tavsiye edilir."
42
+ }
@@ -37,5 +37,6 @@
37
37
  "pollInterval": "轮询间隔(秒)",
38
38
  "pollIntervalHint": "获取空调状态的频率(5–300)",
39
39
  "addDevice": "添加设备",
40
- "remove": "删除"
41
- }
40
+ "remove": "删除",
41
+ "featuresHint": "为保持 HomeKit 界面整洁,建议仅启用风扇和一个预设模式 — 推荐选择睡眠。"
42
+ }
@@ -329,6 +329,7 @@
329
329
 
330
330
  <!-- Features -->
331
331
  <div class="section-hd">${t.features||'Features'}</div>
332
+ <div class="hint" style="margin-bottom:8px">💡 ${t.featuresHint||'For a clean HomeKit appearance, enabling only Fan and Sleep is recommended.'}</div>
332
333
  <div class="toggle-rows">
333
334
  <div class="toggle-row">
334
335
  ${featRow1.map(f => `
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.2",
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 };