homebridge-gree-ac 2.1.6 → 2.2.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 +55 -1
- package/README.md +156 -47
- package/config.schema.json +33 -18
- package/dist/platform.d.ts +1 -0
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +86 -26
- package/dist/platform.js.map +1 -1
- package/dist/platformAccessory.d.ts +14 -4
- package/dist/platformAccessory.d.ts.map +1 -1
- package/dist/platformAccessory.js +721 -145
- package/dist/platformAccessory.js.map +1 -1
- package/dist/settings.d.ts +9 -1
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/ha_fan.jpg +0 -0
- package/ha_settings.jpg +0 -0
- package/package.json +1 -1
- package/uiconfig.jpg +0 -0
- package/uiconfigcustdef.jpg +0 -0
- package/uiconfigmin.jpg +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.2.0] - 2025-01-??
|
|
4
|
+
|
|
5
|
+
**<ins>Reminders:</ins>**
|
|
6
|
+
- **All devices on the local subnet are automatically added to Homebridge since v2.1.7 Please use the "disabled" parameter to skip any device!**
|
|
7
|
+
- **If the fan control is disabled, the Home App interprets the device in fan mode as if it is turned off.**
|
|
8
|
+
- **Similarly, the dry mode is considered to be off by the Home App, because the dry mode is not supported at all.**
|
|
9
|
+
|
|
10
|
+
When upgrading from v2.0.0 - v2.1.1 to v2.1.2 or later, configuration settings should be updated.
|
|
11
|
+
The following configuration parameters are applied only once, when the device is enabled:
|
|
12
|
+
* name
|
|
13
|
+
* model
|
|
14
|
+
* speedSteps
|
|
15
|
+
* minimumTargetTemperature
|
|
16
|
+
* maximumTargetTemperature
|
|
17
|
+
* temperatureStepSize
|
|
18
|
+
|
|
19
|
+
Changes of the above parameters are ignored until the device is disabled and re-enabled. But keep in mind that disabling the device breaks all associated automations in Home App also.
|
|
20
|
+
|
|
21
|
+
### New features
|
|
22
|
+
- Support of customized default parameters
|
|
23
|
+
- Support of fan mode
|
|
24
|
+
|
|
25
|
+
### Fixes
|
|
26
|
+
- Minimal configuration without a "devices" entry failed to load
|
|
27
|
+
- Sometimes the plugin has sent multiple power commands to the device before device response
|
|
28
|
+
- Vertical swing position was overridden on mode change, which was not the desiged and documented behaviour
|
|
29
|
+
- In some cases, certain speed values could not be set
|
|
30
|
+
- Plugin allowed sending some unsupported combination of parameters to the device
|
|
31
|
+
|
|
32
|
+
### Updates
|
|
33
|
+
- In versions before v2.2.0 fan and dry modes were considered to be auto heating-cooling mode by Home App. Now - by default - these modes are considered to be off by Home App, but fan mode support can be enabled.
|
|
34
|
+
|
|
35
|
+
## [2.1.7] - 2024-12-27
|
|
36
|
+
|
|
37
|
+
**Unlisted devices are not skipped any more if they are on the same subnet. If you want to skip them please add these devices to the configuration and set the "disabled" parameter to true!**
|
|
38
|
+
|
|
39
|
+
**<ins>Reminder:</ins> New (v2) network encryption protocol supported since v2.1.0**
|
|
40
|
+
|
|
41
|
+
When upgrading from v2.0.0 - v2.1.1 to v2.1.2 or later, configuration settings should be updated.
|
|
42
|
+
The following configuration parameters are applied only once, when the device is enabled:
|
|
43
|
+
* name
|
|
44
|
+
* model
|
|
45
|
+
* speedSteps
|
|
46
|
+
* minimumTargetTemperature
|
|
47
|
+
* maximumTargetTemperature
|
|
48
|
+
* temperatureStepSize
|
|
49
|
+
|
|
50
|
+
Changes of the above parameters are ignored until the device is disabled and re-enabled. But keep in mind that disabling the device breaks all associated automations in Home App also.
|
|
51
|
+
|
|
52
|
+
### Updates
|
|
53
|
+
- Addig all devices to the configuration is not needed any more.
|
|
54
|
+
|
|
55
|
+
Starting from version 2.1.7 all devices on the same subnet are detected and used automatically. Addig a device to the configuration is required only if default configuration is not appropriate. Please see the documentation to check default device parameters!
|
|
56
|
+
|
|
3
57
|
## [2.1.6] - 2024-11-28
|
|
4
58
|
|
|
5
59
|
**<ins>Reminder:</ins> New (v2) network encryption protocol supported since v2.1.0**
|
|
@@ -13,7 +67,7 @@ The following configuration parameters are applied only once, when the device is
|
|
|
13
67
|
* maximumTargetTemperature
|
|
14
68
|
* temperatureStepSize
|
|
15
69
|
|
|
16
|
-
Changes of the above parameters are ignored until the device is disabled and re-enabled. But keep in mind that disabling the device
|
|
70
|
+
Changes of the above parameters are ignored until the device is disabled and re-enabled. But keep in mind that disabling the device breaks all associated automations in Home App also.
|
|
17
71
|
|
|
18
72
|
### Updates
|
|
19
73
|
- Extended heating threshold temperature range: 8°C~30°C (works only on selected models)
|
package/README.md
CHANGED
|
@@ -7,25 +7,27 @@
|
|
|
7
7
|
>
|
|
8
8
|
> Please read the [**Upgrade section**](#upgrade) before upgrading from version earlier than **v2.0.0** !
|
|
9
9
|
>
|
|
10
|
-
> _It is also recommended to read the upgrade section before any upgrade. It contains useful information regarding the latest version._
|
|
10
|
+
> _It is also recommended to read the [upgrade section](#upgrade) before any upgrade. It contains useful information regarding the latest version._
|
|
11
11
|
|
|
12
12
|
# Homebridge GREE Air Conditioner Platform Plugin
|
|
13
13
|
|
|
14
|
-
[Homebridge GREE Air Conditioner Platform Plugin](https://github.com/eibenp/homebridge-gree-airconditioner) is a dynamic platform plugin for [Homebridge](https://github.com/homebridge/homebridge) which allows control of GREE Air Conditioner devices from [Apple's Home App](https://www.apple.com/home-app/). (Makes GREE Air
|
|
14
|
+
[Homebridge GREE Air Conditioner Platform Plugin](https://github.com/eibenp/homebridge-gree-airconditioner) is a dynamic platform plugin for [Homebridge](https://github.com/homebridge/homebridge) which allows control of GREE Air Conditioner devices from [Apple's Home App](https://www.apple.com/home-app/). (Makes GREE Air Conditioners HomeKit compatible.)
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
The plugin finds and adds all GREE Air Conditioner devices to the Home App automatically if they are located on the same subnet as Homebridge. In most cases only a minimal configuration is required. If default configuration is not appropriate, then the parameters can be customized. To set some parameters to a custom value assigned to all devices, a special device has to be added to the configuration with MAC address set to 'default'. To customize a specific device you have to specify it's MAC address. Device specific parameters override the default parameters. Each Air Conditioner device appears in the Home App as a Heater Cooler device (and a Fan device if fan control is enabled). It is also possible to add a separate Temperature Sensor accessory to Home App (if temperature sensor is supported by the physical device). This allows to define automations (e.g. turn on) based on current temperature in the room. _Be careful, if the device does not support internal temperature sensor but is added as a separate accessory, Home App will use the target temperature not the measured one._ Child accessory does not appear in Home App if physical sensor is not available in the AC unit.
|
|
17
17
|
|
|
18
|
-
Quiet / Auto / Powerful mode is supported by the fan speed control.
|
|
18
|
+
Quiet / Auto / Powerful mode is supported by the fan speed control. In Heater Cooler accessory zero fan speed means off. Minimum value turns on Quiet mode. Next value is Auto mode. Maximum value is Powerful mode. All other values between them are exact fan speeds (Low, MediumLow**, Medium, MediumHigh**, High) Quiet and Powerful modes are unsupported in Auto mode. If these speed modes are selected in Home App then the device will fix the incorrect settings and the Home App's speed control will be automatically adjusted to the nearest supported value.
|
|
19
|
+
|
|
20
|
+
Optional fan accessory has it's own speed control. It displays fan speed as a percentage value, but the percentage displayed in the Home App is not related to the actual fan speed percentage of the AC device. (GREE Air Conditioners do not support controlling the fan speed by percentage.) Fan accessory's zero fan speed means off. Quiet mode and Powerful mode are not supported by Air Conditioner devices in fan mode. Fan accessory's maximum value (100%) means Auto mode. All other values between 0% and 100% are exact fan speeds (Low, MediumLow**, Medium, MediumHigh**, High). The actual percentage values of the Home App fan accessory is based on the AC device type (3- or 5-speed model).
|
|
19
21
|
|
|
20
22
|
(**) these values are supported only on 5-speed models
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
Devices are identified by MAC Address (Serial Number). It can be queried using the official [GREE+ mobile app](https://apps.apple.com/us/app/gree/id1167857672). (The app is required to connect the devices to the local WiFi network for the first time.) If you want to customize a device (e.g. set a custom name) then you have to add it to the configuration and specify it's MAC address. Adding a device located on a different subnet also requires to add the device to the configuration and specify the MAC address and the IP address. To skip a device from Home App also requires to add it's MAC address to the configuration and set the "disabled" parameter to true. Some parameters are changeable only by disabling and re-enabling the device because they are read by Home App only once. _(These parameters are discussed later.)_ To customize all devices on the same way, a special device has to be added to the configuration. This special device must have the MAC address parameter set to "default". Parameters of devices identified by exact MAC addresses take precedence over parameters set by the "default" device.
|
|
23
25
|
|
|
24
|
-
xFan function is
|
|
26
|
+
xFan function is supported, but it works automatically if enabled in Homebridge configuration. If xFan is enabled for the device, it is automatically turned on when you select a supported operating mode in Home App. If xFan is disabled, the Home App will not modify its actual setting in any case.
|
|
25
27
|
|
|
26
28
|
Temperature display units of the physical device can be controlled using the Home App. (Configuration settings are required to be specified always in Degrees Celsius, independently from the display units.)
|
|
27
29
|
|
|
28
|
-
Vertical swing mode can be turned on/off, but special swing settings can't be controlled using the Home App. If device default vertical swing position is not acceptable
|
|
30
|
+
Vertical swing mode can be turned on/off, but special swing settings can't be controlled using the Home App. If device default vertical swing position is not acceptable when oscillation is disabled, it can be overridden to a pre selected position by configuration settings. (Only default position is overridden when this feature is enabled. Other positions selected by remote control are kept and not modified by Home App.)
|
|
29
31
|
|
|
30
32
|
This plugin is designed to be as simple and clear as possible and supports primarily the functions of the Home App's Heater Cooler accessory.
|
|
31
33
|
|
|
@@ -34,7 +36,7 @@ This plugin is designed to be as simple and clear as possible and supports prima
|
|
|
34
36
|
* Node.js (>= 18.15.0 || >= 20.7.0 || >= 22.0.0) with NPM
|
|
35
37
|
* Homebridge (>= 1.8.0 || >= 2.0.0-beta.0)
|
|
36
38
|
|
|
37
|
-
The plugin finds all supported units automatically if they are located on the same subnet
|
|
39
|
+
The plugin finds all supported units automatically if they are located on the same subnet. AC units on different subnets are also supported if the unit's IP address is set in the configuration. (MAC address have to be set correctly also.)
|
|
38
40
|
|
|
39
41
|
IPv4 address is required. GREE Air Conditioners do not support IPv6 nor other network protocols.
|
|
40
42
|
|
|
@@ -46,21 +48,24 @@ This is not plugin dependency but its good to know that Homebridge server host a
|
|
|
46
48
|
* May work with other GREE compatible AC units (e.g. Sinclair)
|
|
47
49
|
* Successfully tested with Sinclair SIH-13BITW
|
|
48
50
|
|
|
49
|
-
> If you get _"error:1C80006B:Provider routines::wrong final block length"_ error message then your device is not supported.
|
|
51
|
+
> If you get _"error:1C80006B:Provider routines::wrong final block length"_ error message then your device is not supported or incorrect encryption version is selected.
|
|
50
52
|
>
|
|
51
53
|
> If you get _"Error: Device is not bound ..."_ error message then your device may not be supported. (The same error occures when device is malfunctioning but if turning the power supply off and on does not solve the problem then your device is not supported.)
|
|
52
54
|
|
|
55
|
+
It is not recommended to use Home App and the Official GREE+ or Ewpe Smart mobile apps side by side. In some cases the mobile apps can set the Air Conditioner device into a restricted state where Homebridge can't bind the plugin to the device because the device does not respond on device query requests which are required to initalize the plugin. It is highly recommended to use the mobile app only for the initial setup of the air conditioner, and later it is fine to use only the Home App and the physical remote control for everyday tasks. (Usually when the AC device is not responding to the Homebridge plugin but is communicating fine with the mobile app, then power cycling the AC device resolves the problem.)
|
|
56
|
+
|
|
53
57
|
By default this plugin tries to auto detect the network protocol encryption version. If not the right version is selected there can get errors and the AC device will not correctly work. It is possible to force a network protocol encryption version in configuration file. If auto detection does not work then it is recommended to try all possible values to check if the device is compatible or not.
|
|
54
58
|
|
|
55
59
|
## Known limitations
|
|
56
60
|
|
|
57
61
|
This plugin was designed to support the Home App's Heater Cooler functionality using GREE Air Conditioners. Some special features of GREE AC's are not supported natively by Apple and also dismiss support in this plugin.
|
|
58
|
-
* Fan
|
|
62
|
+
* Fan mode is supported by an additional Fan control accessory in Home App. Using this Fan control is optional. If Fan control is disabled, the Home App sees the AC device operating in fan mode as off. The Heater Cooler accessory and the Fan accessory cannot be active at the same time. The Heater Cooler accessory is always inactive if the AC device is operating in fan mode, and the Fan accessory is always inactive if the AC device is operating in heating or cooling mode.
|
|
63
|
+
* Dry mode is not supported. The Home App sees the AC device operating in dry mode as off.
|
|
59
64
|
* Lights of the AC unit can't be controlled.
|
|
60
65
|
* Additional device functions (e.g. health mode, sleep, SE) are not supported.
|
|
61
66
|
* Horizontal swing control is not supported, it remains the same as set directly on the device.
|
|
62
67
|
* GREE AC units do not support temperature ranges in auto mode, so temperature ranges have zero length in Home App.
|
|
63
|
-
* GREE AC units are not able to display decimals of temperature values (if set to half a degree, e.g. 21.5 °C, then unit display may not be in sync with temperature set in Home App). To avoid this inconsistency it is recommended to set the **temperatureStepSize** configuration parameter to 1, when the AC unit is used in Celsius display mode, and to 0.5 in Fahrenheit display mode. The most convenient version is to use the Home App device (e.g. iPhone) in the same temperature display mode as the AC unit and to set the temperatureStepSize parameter to the appropriate value also.
|
|
68
|
+
* GREE AC units are not able to display decimals of temperature values (if set to half a degree, e.g. 21.5 °C, then unit display may not be in sync with temperature set in Home App). To avoid this inconsistency it is recommended to set the **temperatureStepSize** configuration parameter to 1, when the AC unit is used in Celsius display mode, and to 0.5 in Fahrenheit display mode. The most convenient version is to use the Home App device (e.g. iPhone) in the same temperature display mode as the AC unit and to set the temperatureStepSize parameter to the appropriate value also. Set Homebridge UI to the same temperature units.
|
|
64
69
|
* There is no way to get current heating-cooling state from the AC unit in auto mode, so displayed state in the Home App is based on temperature measurement, but internal sensor is not precise enough to always display the correct state.
|
|
65
70
|
* Devices without a built-in temperature sensor display the target temperature as current temperature not the measured one. (Some AC firmware versions do not report the measured temperature but the unit has a built-in sensor. They are handled by the plugin as devices without a sensor.)
|
|
66
71
|
|
|
@@ -72,12 +77,21 @@ Command line install:
|
|
|
72
77
|
```
|
|
73
78
|
npm install homebridge-gree-ac -g
|
|
74
79
|
```
|
|
75
|
-
If successfully installed and configured, your devices will appear on the Homebridge GUI Accessories page and also in Home App (if Homebridge is already connected to the Home App). (If the additional temperature sensor is enabled, then 2 items will be displayed for supported devices (Heater Cooler and Temperature Sensor).)
|
|
80
|
+
If successfully installed and configured, your devices will appear on the Homebridge GUI Accessories page and also in Home App (if Homebridge is already connected to the Home App). (If the additional temperature sensor is enabled, then 2 items will be displayed for supported devices (Heater Cooler and Temperature Sensor). If Fan control is enabled, then an additional Fan accessory is also displayed in Home App.)
|
|
76
81
|
|
|
77
82
|
## Upgrade
|
|
78
83
|
|
|
79
84
|
Always check out your current settings in Homebridge and also in Home App (including scenes and automation rules) before you start an upgrade!
|
|
80
85
|
|
|
86
|
+
### Any version to v2.1.7 - v2.2.0
|
|
87
|
+
|
|
88
|
+
The upgrade is automatic by installing the latest version. If upgrading from v2.1.6 or later no configuration changes are needed to continue the use of the plugin with original settings. Please see the following upgrade sections if upgrading from an earlier version.
|
|
89
|
+
|
|
90
|
+
Fan mode support is new in version v2.2.0. It is disabled by default. To enable it the "fanControlEnabled" parameter must be set in configuration file.
|
|
91
|
+
In v2.2.0 it is also possible to set default customized parameters for multiple devices by adding a special device with MAC address set to 'default'. To use this feature it is required to update the plugin's configuration.
|
|
92
|
+
|
|
93
|
+
**Important change: All devices are automatically added to the Home App if they are not listed and disabled in configuration and they are located on the same subnet.** Earlier versions skipped the devices which were not found in configuration file.
|
|
94
|
+
|
|
81
95
|
### v2.1.2 - v2.1.5 to v2.1.6
|
|
82
96
|
|
|
83
97
|
The upgrade is automatic by installing the latest version but configuration settings should be updated.
|
|
@@ -145,6 +159,8 @@ The upgrade is automatic by installing the latest version but configuration sett
|
|
|
145
159
|
- Restart Homebridge
|
|
146
160
|
- If any device was disabled and re-enabled in previous steps then recreate automations _(automations are lost when you disable a device)_
|
|
147
161
|
|
|
162
|
+
Some new parameters were introduced in version v2.2.0. They have to be added to configuration if the new features should be turned on.
|
|
163
|
+
|
|
148
164
|
### v1.x.x to v2.0.0 or later
|
|
149
165
|
|
|
150
166
|
There is no clean way to update the plugin to release v2.0.0 or later if you are using an older version (v1.x.x). You need to remove and reinstall the plugin during upgrade.
|
|
@@ -158,7 +174,79 @@ There is no clean way to update the plugin to release v2.0.0 or later if you are
|
|
|
158
174
|
1. Assign accessories to rooms and recreate scenes and automations in Home App
|
|
159
175
|
|
|
160
176
|
## Example configuration
|
|
177
|
+
|
|
161
178
|
_Only the relevant part of the configuration file is displayed:_
|
|
179
|
+
|
|
180
|
+
### Minimal configuration
|
|
181
|
+
|
|
182
|
+
Minimal configuration requires no special knowledge and uses default values for all devices.
|
|
183
|
+
|
|
184
|
+
```
|
|
185
|
+
"platforms": [
|
|
186
|
+
{
|
|
187
|
+
"name": "Gree Air Conditioner",
|
|
188
|
+
"platform": "GREEAirConditioner"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
* name - Unique name of the platform plugin
|
|
194
|
+
* platform - **GREEAirConditioner** (fixed name, it identifies the plugin)
|
|
195
|
+
|
|
196
|
+
Minimal configuration is appropriate for 5-speed models. Device names are read from the AC units (usually the MAC address or part of the MAC address). Target temperature can be set between 16 and 30 °C. The temperature display units settings are read from the UI settings (or using Fahrenheit if not set in UI configuration). Target temperature step size is set to 0.5 in Fahrenheit mode and 1 in Celsius mode. xFan function is enabled. No other special features (e.g. additional temperature sensor, fan mode support) are enabled.
|
|
197
|
+
|
|
198
|
+
Minimal configuration:
|
|
199
|
+
|
|
200
|
+

|
|
201
|
+
|
|
202
|
+
### Customized default parameters
|
|
203
|
+
|
|
204
|
+
It is possible to set some or all parameters to a customized value which is assigned to each device which does not override the parameter. This functionality requires a custom device with MAC address set to 'default'.
|
|
205
|
+
|
|
206
|
+
```
|
|
207
|
+
"platforms": [
|
|
208
|
+
{
|
|
209
|
+
"name": "Gree Air Conditioner",
|
|
210
|
+
"platform": "GREEAirConditioner",
|
|
211
|
+
"devices": [
|
|
212
|
+
{
|
|
213
|
+
"mac": "default",
|
|
214
|
+
"statusUpdateInterval": 10,
|
|
215
|
+
"encryptionVersion": 0,
|
|
216
|
+
"model": "Pulse 3.2kW GWH12AGB-K6DNA1A/I",
|
|
217
|
+
"speedSteps": 5,
|
|
218
|
+
"minimumTargetTemperature": 16,
|
|
219
|
+
"maximumTargetTemperature": 30,
|
|
220
|
+
"sensorOffset": 40,
|
|
221
|
+
"temperatureStepSize": 1,
|
|
222
|
+
"temperatureSensor": "disabled",
|
|
223
|
+
"xFanEnabled": true,
|
|
224
|
+
"overrideDefaultVerticalSwing": 0,
|
|
225
|
+
"defaultVerticalSwing": 0,
|
|
226
|
+
"fanControlEnabled": false,
|
|
227
|
+
"disabled": false
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
* mac - this parameter has a special fixed value 'default' if you want to customize parameters to be assigned to multiple devices
|
|
235
|
+
* disabled - if set to 'true' then no parameters are read from the configuration as customized defaults
|
|
236
|
+
|
|
237
|
+
See the [Full configuration section](#full-configuration) for more information about the parameters!
|
|
238
|
+
|
|
239
|
+
The following parameters are ignored in 'default' device entry:
|
|
240
|
+
- name
|
|
241
|
+
- ip
|
|
242
|
+
- port
|
|
243
|
+
|
|
244
|
+

|
|
245
|
+
|
|
246
|
+
You can always override any default parameter by adding a device identified by MAC address.
|
|
247
|
+
|
|
248
|
+
### Full configuration
|
|
249
|
+
|
|
162
250
|
```
|
|
163
251
|
"platforms": [
|
|
164
252
|
{
|
|
@@ -184,6 +272,7 @@ _Only the relevant part of the configuration file is displayed:_
|
|
|
184
272
|
"xFanEnabled": true,
|
|
185
273
|
"overrideDefaultVerticalSwing": 0,
|
|
186
274
|
"defaultVerticalSwing": 0,
|
|
275
|
+
"fanControlEnabled": false,
|
|
187
276
|
"disabled": false
|
|
188
277
|
}
|
|
189
278
|
]
|
|
@@ -192,32 +281,33 @@ _Only the relevant part of the configuration file is displayed:_
|
|
|
192
281
|
```
|
|
193
282
|
_It's not recommended to add the port and ip parameters. The above example contains them but only for showing all optional parameters also._
|
|
194
283
|
|
|
195
|
-
* name - Unique name of the platform plugin
|
|
196
|
-
* platform - **GREEAirConditioner** (fixed name, it identifies the plugin)
|
|
197
|
-
* port - free UDP port (optional) (plugin will use this port for network communication; valid values: 1025 - 65535) **Do not specify a port unless you have trouble with automatic port assignment!**
|
|
198
|
-
* scanInterval - time period in seconds between device query retries (defaults to 60 sec if missing)
|
|
199
|
-
* devices - devices should be listed in this block (specify as many devices as you
|
|
200
|
-
* mac - MAC address (Serial Number) of the device
|
|
201
|
-
* name
|
|
202
|
-
* ip - device IP address (optional) Address is auto detected if this parameter is missing. **Specify only if device is located on a different subnet
|
|
203
|
-
* port - free UDP port (optional) (plugin will listen on this port for data received from the device; valid values: 1025 - 65535) **Do not specify a port unless you have trouble with automatic port assignment!**
|
|
204
|
-
* statusUpdateInterval - device status will be refreshed based on this interval (in seconds, default is 10 seconds)
|
|
205
|
-
* encryptionVersion - Auto (0) is fine for most AC units. If auto does not work then you can force v1 (1) or v2 (2) encryption version to use in network communication
|
|
206
|
-
* model
|
|
207
|
-
* speedSteps
|
|
208
|
-
* minimumTargetTemperature
|
|
209
|
-
* maximumTargetTemperature
|
|
210
|
-
* sensorOffset - device temperature sensor offset value for current temperature calibration (default is 40 °C, must be specified in °C)
|
|
211
|
-
* temperatureStepSize
|
|
212
|
-
* temperatureSensor - controls additional temperature sensor accessory in Home App (disabled = do not add to Home App / child = add as a child accessory / separate = add as a separate (independent) accessory)
|
|
213
|
-
* xFanEnabled - automatically turn on xFan functionality in supported device modes (xFan actual setting is not modified by the Home App if disabled)
|
|
214
|
-
* overrideDefaultVerticalSwing - by default this plugin
|
|
215
|
-
* defaultVerticalSwing - specify the vertical swing position to be used instead of device default when overriding is enabled (Device default (0) = use device default, same position as used by device by default without overriding / one of the following 5 positions: fixed Highest (2), fixed Higher (3), fixed Middle (4), fixed Lower (5), fixed Lowest (6))
|
|
216
|
-
*
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
284
|
+
* **name** - Unique name of the platform plugin
|
|
285
|
+
* **platform** - **GREEAirConditioner** (fixed name, it identifies the plugin)
|
|
286
|
+
* **port** - free UDP port (optional) (plugin will use this port for network communication; valid values: 1025 - 65535) **Do not specify a port unless you have trouble with automatic port assignment!**
|
|
287
|
+
* **scanInterval** - time period in seconds between device query retries (defaults to 60 sec if missing)
|
|
288
|
+
* **devices** - devices should be listed in this block (specify as many devices as you want to customize or disable)
|
|
289
|
+
* **mac** - MAC address (Serial Number) of the device (required to identify the device, also if only one device exists) Use the 'default' keyword instead of the MAC address to define default configuration for multiple devices. **Must be unique across all devices!**
|
|
290
|
+
* **name*** - custom name of the device (optional) Please use only alphanumeric, space, and apostrophe characters. Ensure it starts and ends with an alphabetic or numeric character, and avoid emojis. (The name is changeable in Home App and any changes made in Home App are kept until the device is disabled which removes it from Home App.)
|
|
291
|
+
* **ip** - device IP address (optional) Address is auto detected if this parameter is missing. **Specify only if device is located on a different subnet than homebridge!**
|
|
292
|
+
* **port** - free UDP port (optional) (plugin will listen on this port for data received from the device; valid values: 1025 - 65535) **Do not specify a port unless you have trouble with automatic port assignment!**
|
|
293
|
+
* **statusUpdateInterval** - device status will be refreshed based on this interval (in seconds, default is 10 seconds)
|
|
294
|
+
* **encryptionVersion** - Auto (0) is fine for most AC units. If auto does not work then you can force v1 (1) or v2 (2) encryption version to use in network communication
|
|
295
|
+
* **model*** - model name, information only (optional)
|
|
296
|
+
* **speedSteps*** - fan speed steps of the unit (valid values are: 3 and 5)
|
|
297
|
+
* **minimumTargetTemperature*** - minimum target temperature accepted by the device (default is 16 °C, must be specified in °C, valid values: 8-30, values less than 16 work only in heating mode and on selected models only)
|
|
298
|
+
* **maximumTargetTemperature*** - maximum target temperature accepted by the device (default is 30 °C, must be specified in °C, valid values: 8-30, values less than 16 work only in heating mode and on selected models only)
|
|
299
|
+
* **sensorOffset** - device temperature sensor offset value for current temperature calibration (default is 40 °C, must be specified in °C)
|
|
300
|
+
* **temperatureStepSize*** - numeric parameter, valid values: 0.5 and 1 (if missing then default value is based on the UI configuration: 0.5 if UI is set to Fahrenheit temperature units and 1 if UI is set to Celsius temperature units) Controls the acceptable temperature values in Home App (It is recommended to set it to 1 if Celsius display mode is used on the AC unit and 0.5 in Fahrenheit display mode.)
|
|
301
|
+
* **temperatureSensor** - controls additional temperature sensor accessory in Home App (disabled = do not add to Home App / child = add as a child accessory / separate = add as a separate (independent) accessory) _Only independent accessories can be used by automations to control other accessories._
|
|
302
|
+
* **xFanEnabled** - automatically turn on xFan functionality in supported device modes (xFan actual setting is not modified by the Home App if disabled)
|
|
303
|
+
* **overrideDefaultVerticalSwing** - by default this plugin sets the vertical swing position to the default position of the AC device when oscillation is turned off; this parameter allows the plugin to override the default position (the actual position is controlled by the "defaultVerticalSwing" parameter); valid values: Never (0) = turn off override, let device use default / After power on (1) = override the default position each time the device is powered on / After power on and swing disable (2) = override the default position each time the device is powered on and when oscillation is turned off (by the Home App)
|
|
304
|
+
* **defaultVerticalSwing** - specify the vertical swing position to be used instead of device default when overriding is enabled (Device default (0) = use device default, same position as used by device by default without overriding / one of the following 5 positions: fixed Highest (2), fixed Higher (3), fixed Middle (4), fixed Lower (5), fixed Lowest (6)) _(Only the default position is changing to the selected one when turning on the device. All other positions are kept by the Home App. Turning off oscillation sets the selected fixed position.)_
|
|
305
|
+
* **fanControlEnabled** - by default fan mode is not supported by the plugin because Apple's Heater Cooler accessory does not support fan mode; setting this parameter to true adds an additional Fan accessory to the Home App and turns on fan mode support in the plugin
|
|
306
|
+
* **disabled** - set to true if you do not want to control this device in the Home App _(can be used also to temporarily remove the device from Home App but not if the device is not responding on the network any more)_
|
|
307
|
+
|
|
308
|
+
(*) these parameters are initalized only once on device enable; device must be disabled an re-enabled to apply a new value; name is customizable in Home App independently from Homebridge settings
|
|
309
|
+
|
|
310
|
+
Recommended customized configuration:
|
|
221
311
|
|
|
222
312
|

|
|
223
313
|
|
|
@@ -234,19 +324,22 @@ Open selected device and in the upper right corner select menu symbol:
|
|
|
234
324
|
If you are not familiar with the GREE+ mobile app there is an alternative method to detect the MAC address of your devices:
|
|
235
325
|
|
|
236
326
|
- Install the plugin
|
|
237
|
-
- Do not configure AC unit devices
|
|
327
|
+
- Do not configure any AC unit devices (e.g. use minimal configuration)
|
|
238
328
|
- (Re)start Homebridge
|
|
239
329
|
- GREE Air Conditioner Platform Plugin will auto detect all accessible devices and write an entry to the log
|
|
240
|
-
- The log entry contains the MAC address of the device E.g.: MAC address is 502cc6000000 in the following log entry:
|
|
241
330
|
|
|
242
|
-
|
|
331
|
+
E.g.:
|
|
332
|
+
|
|
333
|
+
> [2025. 01. 05. 22:48:52] [Gree Air Conditioner] [c6000000 -- 192.168.1.2] Device is bound -> 502cc6000000
|
|
334
|
+
|
|
335
|
+
The MAC address is visible at the end of the "Device is bound" entry. 502cc6000000 in the above example.
|
|
243
336
|
|
|
244
|
-
Unfortunaltely if you have multiple devices you will not know which MAC address belongs to which AC unit. In this case you have to test it. This may require some adding - removal - re-adding cycle before final configuration.
|
|
337
|
+
Unfortunaltely if you have multiple devices you will not know which MAC address belongs to which AC unit. In this case you have to test it. This may require some adding - removal - re-adding cycle before final configuration if default or customized default configuration is not appropriate.
|
|
245
338
|
|
|
246
339
|
### Device settings
|
|
247
340
|
|
|
248
341
|
Some settings are initialized by Home App only once (when enabling the device). They can only be changed by disabling and re-enabling the device. The following settings are affected:
|
|
249
|
-
* name
|
|
342
|
+
* name*
|
|
250
343
|
* model
|
|
251
344
|
* speedSteps
|
|
252
345
|
* minimumTargetTemperature
|
|
@@ -255,13 +348,15 @@ Some settings are initialized by Home App only once (when enabling the device).
|
|
|
255
348
|
|
|
256
349
|
Changes of the above parameters are ignored until the device is disabled and re-enabled.
|
|
257
350
|
|
|
351
|
+
(*) name can be customized and changed in Home App any time independently from Homebridge settings
|
|
352
|
+
|
|
258
353
|
All other settings are applied when starting up Homebridge. You have to restart Homebridge to apply changes in configuration settings.
|
|
259
354
|
|
|
260
|
-
|
|
355
|
+
_Keep in mind that disabling the device breaks all associated automations in Home App._
|
|
261
356
|
|
|
262
357
|
### IP address
|
|
263
358
|
|
|
264
|
-
IP addresses of the AC units are determined automatically by the plugin. However this auto detection works only if the AC unit is on the same subnet as homebridge. There is an optional IP address parameter which can be used to specifiy the unit's IP address if it is on a different subnet. (Routing should be correctly set up to communicate with units on different subnets.)
|
|
359
|
+
IP addresses of the AC units are determined automatically by the plugin. However this auto detection works only if the AC unit is on the same subnet as homebridge. There is an optional IP address parameter which can be used to specifiy the unit's IP address if it is on a different subnet. _(Routing should be correctly set up to communicate with units on different subnets.)_
|
|
265
360
|
|
|
266
361
|
### Port
|
|
267
362
|
|
|
@@ -276,7 +371,7 @@ All ports are set up automatically by default. In some cases auto detection is n
|
|
|
276
371
|
|
|
277
372
|
Home App allows to set the device temperature display units but it is independent from the temperature units shown in Home App. Home App always displays temperature values as specified by iOS/iPadOS/MacOS (can be changed in Preferences / Regional settings section). Display unit conversion is made by the Home App device (e.g. iPhone).
|
|
278
373
|
|
|
279
|
-
GREE Air Conditioners do not support displaying decimals of temperature values. If you normally use the AC unit in Celsius display mode then it is recommended to use also the Home App device (e.g. iPhone) in Celsius mode and set the temperatureStepSize parameter to 1. Fahrenheit mode recommends the same consistency (Fahrenheit mode on both sides and temperatureStepSize parameter set to 0.5) This helps to avoid displaying inconsistent values on the connected devices.
|
|
374
|
+
GREE Air Conditioners do not support displaying decimals of temperature values. If you normally use the AC unit in Celsius display mode then it is recommended to use also the Home App device (e.g. iPhone) in Celsius mode and set the "temperatureStepSize" parameter to 1. Fahrenheit mode recommends the same consistency (Fahrenheit mode on both sides and "temperatureStepSize" parameter set to 0.5) This helps to avoid displaying inconsistent values on the connected devices. In minimal configuration - when the device is not listed in the configuration file - the "temperatureStepSize" parameter is based on the Homebridge UI configuration (temperature units parameter). This is also true for all configurations where "temperatureStepSize" parameter is not specified in the configuration file.
|
|
280
375
|
|
|
281
376
|
### Temperature measurement
|
|
282
377
|
|
|
@@ -288,14 +383,26 @@ Some AC units have a built-in temperature sensor but the actual room temperature
|
|
|
288
383
|
|
|
289
384
|
### Fan speed
|
|
290
385
|
|
|
386
|
+
#### Fan speed in heating or cooling mode
|
|
387
|
+
|
|
291
388
|
Fan speed is adjustable on the Heater Cooler's settings page in Home App. There is a gear icon in the buttom right corner of the Heater Cooler page if it was opened from the Home App (gear icon is missing if opened from control center or home view of control center). This gear icon can be used to access settings (and fan speed).
|
|
292
389
|
|
|
293
390
|

|
|
294
391
|
|
|
295
|
-
Slider description: Zero means off. Minimum value turns on Quiet mode. Next value is Auto mode. Maximum value is Powerful mode. All other values between them are exact fan speeds (Low, MediumLow**, Medium, MediumHigh**, High)
|
|
392
|
+
Slider description: Zero means off. Minimum value turns on Quiet mode. Next value is Auto mode. Maximum value is Powerful mode. All other values between them are exact fan speeds (Low, MediumLow**, Medium, MediumHigh**, High) Quiet and Powerful modes are unsupported in Auto mode. If these speed modes are selected in Home App then the device will fix the incorrect settings and the Home App's speed control will be automatically adjusted to the nearest supported value.
|
|
296
393
|
|
|
297
394
|
(**) these values are supported only on 5-speed models
|
|
298
395
|
|
|
396
|
+
#### Fan speed in fan mode
|
|
397
|
+
|
|
398
|
+
Fan speed in fan mode is adjustable directly by the Fan accessory in Home App. It displays fan speed as a percentage value, but the percentage displayed in the Home App is not related to the actual fan speed percentage of the AC device. (GREE Air Conditioners do not support controlling the fan speed by percentage.) Fan accessory's zero fan speed means off. Quiet mode and Powerful mode are not supported by Air Conditioner devices in fan mode. Fan accessory's maximum value (100%) means Auto mode. All other values between 0% and 100% are exact fan speeds (Low, MediumLow**, Medium, MediumHigh**, High). The actual percentage values of the Home App fan accessory is based on the AC device type (3- or 5-speed model).
|
|
399
|
+
|
|
400
|
+
(**) these values are supported only on 5-speed models
|
|
401
|
+
|
|
402
|
+
Fan mode active and speed set to auto:
|
|
403
|
+
|
|
404
|
+

|
|
405
|
+
|
|
299
406
|
### Accessory removal
|
|
300
407
|
|
|
301
408
|
If an AC unit is still working and accessible on the network you can remove the associated accessory by setting the device's "disabled" parameter to true and restarting Homebridge.
|
|
@@ -335,6 +442,8 @@ There is a configuration parameter (temperatureStepSize; available in version v2
|
|
|
335
442
|
|
|
336
443
|
It is recommended to use the appropriate value to let Home App work consistently with GREE Air Conditioner units. GREE AC units do not support decimals of temperature values.
|
|
337
444
|
|
|
445
|
+
In version v2.1.7 and later if the temperatureStepSize is not specified in the configuration file then it is determined based on the Homebridge UI configuration settings. If the Homebridge UI's temperature units is set to Fahrenheit (°F) then temperatureStepSize defaults to 0.5 and if it is set to Celsius (°C) then temperatureStepSize defaults to 1.
|
|
446
|
+
|
|
338
447
|
### Troubleshouting
|
|
339
448
|
|
|
340
449
|
Most known errors are fixed by later versions. If so you can upgrade to the latest version and it will solve the problem. Some errors may require some additional steps.
|
package/config.schema.json
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"mac": {
|
|
30
30
|
"type": "string",
|
|
31
31
|
"required": true,
|
|
32
|
-
"pattern": "^[a-f0-9]{12}$"
|
|
32
|
+
"pattern": "^[a-f0-9]{12}|default$"
|
|
33
33
|
},
|
|
34
34
|
"name": {
|
|
35
35
|
"type": "string",
|
|
@@ -221,6 +221,9 @@
|
|
|
221
221
|
"type": "string",
|
|
222
222
|
"required": false,
|
|
223
223
|
"format": "ipv4"
|
|
224
|
+
},
|
|
225
|
+
"fanControlEnabled": {
|
|
226
|
+
"type": "boolean"
|
|
224
227
|
}
|
|
225
228
|
}
|
|
226
229
|
}
|
|
@@ -267,21 +270,24 @@
|
|
|
267
270
|
"key": "devices[].mac",
|
|
268
271
|
"flex": "1 1 50%",
|
|
269
272
|
"title": "MAC address (Serial Number):",
|
|
270
|
-
"description": "MAC address of the device using lowercase letters and no separators"
|
|
273
|
+
"description": "MAC address of the device using lowercase letters and no separators<br />OR<br />special value: <b>default</b>"
|
|
271
274
|
},
|
|
272
275
|
{
|
|
273
276
|
"key": "devices[].name",
|
|
274
277
|
"flex": "1 1 50%",
|
|
275
278
|
"title": "Device name:",
|
|
276
|
-
"description": "Custom name of the device. Please use only alphanumeric, space, and apostrophe characters. Ensure it starts and ends with an alphabetic or numeric character, and avoid emojis."
|
|
279
|
+
"description": "Custom name of the device. Please use only alphanumeric, space, and apostrophe characters. Ensure it starts and ends with an alphabetic or numeric character, and avoid emojis.",
|
|
280
|
+
"condition": {
|
|
281
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac));"
|
|
282
|
+
}
|
|
277
283
|
},
|
|
278
284
|
{
|
|
279
285
|
"key": "devices[].disabled",
|
|
280
286
|
"flex": "1 1 100%",
|
|
281
287
|
"title": "Disabled",
|
|
282
|
-
"description": "If checked, this accessory will be removed and ignored
|
|
288
|
+
"description": "If checked, this accessory will be removed and ignored by HomeKit",
|
|
283
289
|
"condition": {
|
|
284
|
-
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac));"
|
|
290
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac));"
|
|
285
291
|
}
|
|
286
292
|
},
|
|
287
293
|
{
|
|
@@ -308,7 +314,7 @@
|
|
|
308
314
|
"title": "Status update interval:",
|
|
309
315
|
"description": "Update interval (in seconds)",
|
|
310
316
|
"condition": {
|
|
311
|
-
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
317
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
312
318
|
}
|
|
313
319
|
},
|
|
314
320
|
{
|
|
@@ -317,7 +323,7 @@
|
|
|
317
323
|
"title": "Network protocol encryption version:",
|
|
318
324
|
"description": "Leave this on Auto. If Auto doesn't work then set to the desired version.",
|
|
319
325
|
"condition": {
|
|
320
|
-
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
326
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
321
327
|
}
|
|
322
328
|
},
|
|
323
329
|
{
|
|
@@ -325,7 +331,7 @@
|
|
|
325
331
|
"flex": "1 1 50%",
|
|
326
332
|
"title": "Device model:",
|
|
327
333
|
"condition": {
|
|
328
|
-
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
334
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
329
335
|
}
|
|
330
336
|
},
|
|
331
337
|
{
|
|
@@ -333,7 +339,7 @@
|
|
|
333
339
|
"flex": "1 1 50%",
|
|
334
340
|
"title": "Fan speed steps:",
|
|
335
341
|
"condition": {
|
|
336
|
-
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
342
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
337
343
|
}
|
|
338
344
|
},
|
|
339
345
|
{
|
|
@@ -342,7 +348,7 @@
|
|
|
342
348
|
"title": "Minimum target temperature:",
|
|
343
349
|
"description": "Minimum target temperature (in ℃)",
|
|
344
350
|
"condition": {
|
|
345
|
-
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
351
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
346
352
|
}
|
|
347
353
|
},
|
|
348
354
|
{
|
|
@@ -351,7 +357,7 @@
|
|
|
351
357
|
"title": "Maximum target temperature:",
|
|
352
358
|
"description": "Maximum target temperature (in ℃)",
|
|
353
359
|
"condition": {
|
|
354
|
-
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
360
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
355
361
|
}
|
|
356
362
|
},
|
|
357
363
|
{
|
|
@@ -360,16 +366,16 @@
|
|
|
360
366
|
"title": "Temperature offset:",
|
|
361
367
|
"description": "Temperature sensor calibration (in ℃)",
|
|
362
368
|
"condition": {
|
|
363
|
-
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
369
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
364
370
|
}
|
|
365
371
|
},
|
|
366
372
|
{
|
|
367
373
|
"key": "devices[].temperatureStepSize",
|
|
368
374
|
"flex": "1 1 50%",
|
|
369
375
|
"title": "Temperature step size:",
|
|
370
|
-
"description": "Valid values: 0.5 (for °F) and 1 (for °C)<BR />(
|
|
376
|
+
"description": "Valid values: 0.5 (for °F) and 1 (for °C)<BR />(Calculate from Homebridge UI temperature units parameter if empty or invalid)",
|
|
371
377
|
"condition": {
|
|
372
|
-
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
378
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
373
379
|
}
|
|
374
380
|
},
|
|
375
381
|
{
|
|
@@ -378,7 +384,7 @@
|
|
|
378
384
|
"title": "xFan enabled",
|
|
379
385
|
"description": "If enabled, then xFan functionality is turned on automatically on the device",
|
|
380
386
|
"condition": {
|
|
381
|
-
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
387
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
382
388
|
}
|
|
383
389
|
},
|
|
384
390
|
{
|
|
@@ -387,7 +393,7 @@
|
|
|
387
393
|
"title": "Temperature sensor:",
|
|
388
394
|
"description": "Additional temperature sensor in Home App",
|
|
389
395
|
"condition": {
|
|
390
|
-
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
396
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
391
397
|
}
|
|
392
398
|
},
|
|
393
399
|
{
|
|
@@ -396,7 +402,7 @@
|
|
|
396
402
|
"title": "Override default vertical position:",
|
|
397
403
|
"description": "When to override vertical swing position",
|
|
398
404
|
"condition": {
|
|
399
|
-
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
405
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
400
406
|
}
|
|
401
407
|
},
|
|
402
408
|
{
|
|
@@ -405,7 +411,16 @@
|
|
|
405
411
|
"title": "Vertical position:",
|
|
406
412
|
"description": "Default vertical swing position to be used istead of what device considers a default",
|
|
407
413
|
"condition": {
|
|
408
|
-
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true && model.devices[arrayIndices].overrideDefaultVerticalSwing !== 0);"
|
|
414
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true && model.devices[arrayIndices].overrideDefaultVerticalSwing !== 0);"
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"key": "devices[].fanControlEnabled",
|
|
419
|
+
"flex": "1 1 100%",
|
|
420
|
+
"title": "Fan control enabled",
|
|
421
|
+
"description": "If checked, a fan control is added to Home App and fan mode support is enabled",
|
|
422
|
+
"condition": {
|
|
423
|
+
"functionBody": "return (model.devices && model.devices[arrayIndices] && model.devices[arrayIndices].mac && /^[a-f0-9]{12}|default$/.test(model.devices[arrayIndices].mac) && model.devices[arrayIndices].disabled !== true);"
|
|
409
424
|
}
|
|
410
425
|
}
|
|
411
426
|
]
|
package/dist/platform.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare class GreeACPlatform implements DynamicPlatformPlugin {
|
|
|
20
20
|
private socket;
|
|
21
21
|
private pluginAddresses;
|
|
22
22
|
ports: number[];
|
|
23
|
+
private tempUnit;
|
|
23
24
|
constructor(log: Logger, config: PlatformConfig, api: API);
|
|
24
25
|
/**
|
|
25
26
|
* This function is invoked when homebridge restores cached accessories from disk at startup.
|