homebridge-melcloud-control 3.10.0-beta.9 → 4.0.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/README.md +79 -77
- package/config.schema.json +197 -108
- package/homebridge-ui/public/index.html +8 -8
- package/index.js +21 -15
- package/package.json +4 -3
- package/src/constants.js +10 -1
- package/src/deviceata.js +67 -96
- package/src/deviceatw.js +63 -92
- package/src/deviceerv.js +68 -97
- package/src/impulsegenerator.js +18 -30
- package/src/melcloud.js +113 -5
- package/src/melcloudata.js +8 -7
- package/src/melcloudatw.js +7 -6
- package/src/melclouderv.js +7 -6
- package/src/mqtt.js +5 -5
- package/src/restful.js +10 -9
package/README.md
CHANGED
|
@@ -207,92 +207,94 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
207
207
|
| `user` | Here set the MELCloud username. |
|
|
208
208
|
| `passwd` | Here set the MELCloud password. |
|
|
209
209
|
| `language` | Here select the MELCloud language. |
|
|
210
|
-
| `ataDevices` | Array of ATA devices created automatically after login to MELCloud from plugin config UI. |
|
|
211
|
-
| `ataDevices.id` | Read only data, do not change it. |
|
|
212
|
-
| `ataDevices.type` | Read only data, do not change it. |
|
|
213
|
-
| `ataDevices.typeString` | Read only data, do not change it. |
|
|
214
|
-
| `ataDevices.name` | Here You can schange the `Accessory Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
215
|
-
| `ataDevices.displayMode` | Here select device control mode `None/Disabled`, `Heater/Cooler`, `Thermostat`. |
|
|
216
|
-
| `ataDevices.heatDryFanMode` | Here select the operatiing mode for `Heat`, if this mode is not supported, it will be disabled. |
|
|
217
|
-
| `ataDevices.coolDryFanMode` | Here select the operatiing mode for `Cool`, if this mode is not supported, it will be disabled. |
|
|
218
|
-
| `ataDevices.autoDryFanMode` | Here select the operatiing mode for `Auto`, if this mode is not supported, it will be disabled.. |
|
|
219
|
-
| `ataDevices.temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
|
|
220
|
-
| `ataDevices.temperatureSensorOutdoor` | This enable extra `Outdoor` temperature sensors to use with automations in HomeKit app. |
|
|
221
|
-
| `ataDevices.refreshInterval` | Here set the background devices state refresh time in (sec), default `5s`. |
|
|
222
|
-
| `ataDevices.presets` | Array of ATA device Presets created automatically after login to MELCloud from plugin config UI. |
|
|
223
|
-
| `ataDevices.presets.id` | Read only data, do not change it. |
|
|
224
|
-
| `ataDevices.presets.name` | Here You can schange the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
225
|
-
| `ataDevices.presets.displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
226
|
-
| `buttonsSensors` | Array of buttons sensors. |
|
|
227
|
-
| `buttonsSensors.name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
|
|
228
|
-
| `buttonsSensors.mode` | Here select button mode, VH - Vane Horizontal, VV - Vane Horizontal. |
|
|
229
|
-
| `buttonsSensors.displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
230
|
-
| `buttonsSensors.namePrefix` | Here enable/disable the accessory name as a prefix for button/sensor name. |
|
|
231
|
-
| `atwDevices` | Array of ATA devices created automatically after login to MELCloud from plugin config UI. |
|
|
232
|
-
| `atwDevices.id` | Read only data, do not change it. |
|
|
233
|
-
| `atwDevices.type` | Read only data, do not change it. |
|
|
234
|
-
| `atwDevices.typeString` | Read only data, do not change it. |
|
|
235
|
-
| `atwDevices.name` | Here You can schange the `Accessory Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
236
|
-
| `atwDevices.displayMode` | Here select main control mode `None/Disabled`, `Heater/Cooler`, `Thermostat`. |
|
|
237
|
-
| `atwDevices.hideZone` | Here select which zone need to be hidden `None/Disabled`, `Heat Pump`, `Heat Pump / Zone 1`, `Heat Pump / Zone 1 / Hot Water`, `Heat Pump / Zone 1 / Zone 2`, `Heat Pump / Hot Water`,`Heat Pump / Hot Water / Zone 2`, `Heat Pump / Zone 2`, `Zone 1`, `Zone 1 / Hot Water`, `Zone 1 / Hot Water / Zone 2`, `Zone 1 / Zone 2`, `Hot Water`, `Hot Water / Zone 2`, `Zone 2`, `All`. |
|
|
238
|
-
| `atwDevices.temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
|
|
239
|
-
| `atwDevices.temperatureSensorFlow` | This enable extra `Flow` temperature sensors to use with automations in HomeKit app. |
|
|
240
|
-
| `atwDevices.temperatureSensorReturn` | This enable extra `Return` temperature sensors to use with automations in HomeKit app. |
|
|
241
|
-
| `atwDevices.temperatureSensorFlowZone1` | This enable extra `Flow Zone 1` temperature sensors to use with automations in HomeKit app. |
|
|
242
|
-
| `atwDevices.temperatureSensorReturnZone1` | This enable extra `Return Zone 1` temperature sensors to use with automations in HomeKit app. |
|
|
243
|
-
| `atwDevices.temperatureSensorFlowWaterTank` | This enable extra `Flow Water Tank` temperature sensors to use with automations in HomeKit app. |
|
|
244
|
-
| `atwDevices.temperatureSensorReturnWaterTank` | This enable extra `Return Water Tank` temperature sensors to use with automations in HomeKit app. |
|
|
245
|
-
| `atwDevices.temperatureSensorFlowZone2` | This enable extra `Flow Zone 2` temperature sensors to use with automations in HomeKit app. |
|
|
246
|
-
| `atwDevices.temperatureSensorReturnZone2` | This enable extra `Return Zone 2` temperature sensors to use with automations in HomeKit app. |
|
|
247
|
-
| `atwDevices.refreshInterval` | Here set the background devices state refresh time in (sec), default `5s`. |
|
|
248
|
-
| `atwDevices.presets` | Array of ATA device Presets created automatically after login to MELCloud from plugin config UI. |
|
|
249
|
-
| `atwDevices.presets.id` | Read only data, do not change it. |
|
|
250
|
-
| `atwDevices.presets.name` | Here You can schange the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
251
|
-
| `atwDevices.presets.displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
252
|
-
| `buttonsSensors` | Array of buttons sensors. |
|
|
253
|
-
| `buttonsSensors.name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
|
|
254
|
-
| `buttonsSensors.mode` | Here select button mode. |
|
|
255
|
-
| `buttonsSensors.displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
256
|
-
| `buttonsSensors.namePrefix` | Here enable/disable the accessory name as a prefix for button/sensor name. |
|
|
257
|
-
| `ervDevices` | Array of ATA devices created automatically after login to MELCloud from plugin config UI. |
|
|
258
|
-
| `ervDevices.id` | Read only data, do not change it. |
|
|
259
|
-
| `ervDevices.type` | Read only data, do not change it. |
|
|
260
|
-
| `ervDevices.typeString` | Read only data, do not change it. |
|
|
261
|
-
| `ervDevices.name` | Here You can schange the `Accessory Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
262
|
-
| `ervDevices.displayMode` | Here select main control mode `None/Disabled`, `Heater/Cooler`, `Thermostat`. |
|
|
263
|
-
| `ervDevices.temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
|
|
264
|
-
| `ervDevices.temperatureSensorOutdoor` | This enable extra `Outdoor` temperature sensors to use with automations in HomeKit app. |
|
|
265
|
-
| `ervDevices.temperatureSensorSupply` | This enable extra `Supply` temperature sensors to use with automations in HomeKit app. |
|
|
266
|
-
| `ervDevices.refreshInterval` | Here set the background devices state refresh time in (sec), default `5s`. |
|
|
267
|
-
| `ervDevices.presets` | Array of ATA device Presets created automatically after login to MELCloud from plugin config UI. |
|
|
268
|
-
| `ervDevices.presets.id` | Read only data, do not change it. |
|
|
269
|
-
| `ervDevices.presets.name` | Here You can schange the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
270
|
-
| `ervDevices.presets.displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
271
|
-
| `buttonsSensors` | Array of buttons sensors. |
|
|
272
|
-
| `buttonsSensors.name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
|
|
273
|
-
| `buttonsSensors.mode` | Here select button mode. |
|
|
274
|
-
| `buttonsSensors.displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
275
|
-
| `buttonsSensors.namePrefix` | Here enable/disable the accessory name as a prefix for button/sensor name. |
|
|
210
|
+
| `ataDevices[]` | Array of ATA devices created automatically after login to MELCloud from plugin config UI. |
|
|
211
|
+
| `ataDevices[].id` | Read only data, do not change it. |
|
|
212
|
+
| `ataDevices[].type` | Read only data, do not change it. |
|
|
213
|
+
| `ataDevices[].typeString` | Read only data, do not change it. |
|
|
214
|
+
| `ataDevices[].name` | Here You can schange the `Accessory Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
215
|
+
| `ataDevices[].displayMode` | Here select device control mode `None/Disabled`, `Heater/Cooler`, `Thermostat`. |
|
|
216
|
+
| `ataDevices[].heatDryFanMode` | Here select the operatiing mode for `Heat`, if this mode is not supported, it will be disabled. |
|
|
217
|
+
| `ataDevices[].coolDryFanMode` | Here select the operatiing mode for `Cool`, if this mode is not supported, it will be disabled. |
|
|
218
|
+
| `ataDevices[].autoDryFanMode` | Here select the operatiing mode for `Auto`, if this mode is not supported, it will be disabled.. |
|
|
219
|
+
| `ataDevices[].temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
|
|
220
|
+
| `ataDevices[].temperatureSensorOutdoor` | This enable extra `Outdoor` temperature sensors to use with automations in HomeKit app. |
|
|
221
|
+
| `ataDevices[].refreshInterval` | Here set the background devices state refresh time in (sec), default `5s`. |
|
|
222
|
+
| `ataDevices[].presets[]` | Array of ATA device Presets created automatically after login to MELCloud from plugin config UI. |
|
|
223
|
+
| `ataDevices[].presets[].id` | Read only data, do not change it. |
|
|
224
|
+
| `ataDevices[].presets[].name` | Here You can schange the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
225
|
+
| `ataDevices[].presets[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
226
|
+
| `ataDevices[].buttonsSensors[]` | Array of buttons sensors. |
|
|
227
|
+
| `ataDevices[].buttonsSensors[].name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
|
|
228
|
+
| `ataDevices[].buttonsSensors[].mode` | Here select button mode, VH - Vane Horizontal, VV - Vane Horizontal. |
|
|
229
|
+
| `ataDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
230
|
+
| `ataDevices[].buttonsSensors[].namePrefix` | Here enable/disable the accessory name as a prefix for button/sensor name. |
|
|
231
|
+
| `atwDevices[]` | Array of ATA devices created automatically after login to MELCloud from plugin config UI. |
|
|
232
|
+
| `atwDevices[].id` | Read only data, do not change it. |
|
|
233
|
+
| `atwDevices[].type` | Read only data, do not change it. |
|
|
234
|
+
| `atwDevices[].typeString` | Read only data, do not change it. |
|
|
235
|
+
| `atwDevices[].name` | Here You can schange the `Accessory Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
236
|
+
| `atwDevices[].displayMode` | Here select main control mode `None/Disabled`, `Heater/Cooler`, `Thermostat`. |
|
|
237
|
+
| `atwDevices[].hideZone` | Here select which zone need to be hidden `None/Disabled`, `Heat Pump`, `Heat Pump / Zone 1`, `Heat Pump / Zone 1 / Hot Water`, `Heat Pump / Zone 1 / Zone 2`, `Heat Pump / Hot Water`,`Heat Pump / Hot Water / Zone 2`, `Heat Pump / Zone 2`, `Zone 1`, `Zone 1 / Hot Water`, `Zone 1 / Hot Water / Zone 2`, `Zone 1 / Zone 2`, `Hot Water`, `Hot Water / Zone 2`, `Zone 2`, `All`. |
|
|
238
|
+
| `atwDevices[].temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
|
|
239
|
+
| `atwDevices[].temperatureSensorFlow` | This enable extra `Flow` temperature sensors to use with automations in HomeKit app. |
|
|
240
|
+
| `atwDevices[].temperatureSensorReturn` | This enable extra `Return` temperature sensors to use with automations in HomeKit app. |
|
|
241
|
+
| `atwDevices[].temperatureSensorFlowZone1` | This enable extra `Flow Zone 1` temperature sensors to use with automations in HomeKit app. |
|
|
242
|
+
| `atwDevices[].temperatureSensorReturnZone1` | This enable extra `Return Zone 1` temperature sensors to use with automations in HomeKit app. |
|
|
243
|
+
| `atwDevices[].temperatureSensorFlowWaterTank` | This enable extra `Flow Water Tank` temperature sensors to use with automations in HomeKit app. |
|
|
244
|
+
| `atwDevices[].temperatureSensorReturnWaterTank` | This enable extra `Return Water Tank` temperature sensors to use with automations in HomeKit app. |
|
|
245
|
+
| `atwDevices[].temperatureSensorFlowZone2` | This enable extra `Flow Zone 2` temperature sensors to use with automations in HomeKit app. |
|
|
246
|
+
| `atwDevices[].temperatureSensorReturnZone2` | This enable extra `Return Zone 2` temperature sensors to use with automations in HomeKit app. |
|
|
247
|
+
| `atwDevices[].refreshInterval` | Here set the background devices state refresh time in (sec), default `5s`. |
|
|
248
|
+
| `atwDevices[].presets[]` | Array of ATA device Presets created automatically after login to MELCloud from plugin config UI. |
|
|
249
|
+
| `atwDevices[].presets[].id` | Read only data, do not change it. |
|
|
250
|
+
| `atwDevices[].presets[].name` | Here You can schange the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
251
|
+
| `atwDevices[].presets[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
252
|
+
| `atwDevices[].buttonsSensors[]` | Array of buttons sensors. |
|
|
253
|
+
| `atwDevices[].buttonsSensors[].name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
|
|
254
|
+
| `atwDevices[].buttonsSensors[].mode` | Here select button mode. |
|
|
255
|
+
| `atwDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
256
|
+
| `atwDevices[].buttonsSensors[].namePrefix` | Here enable/disable the accessory name as a prefix for button/sensor name. |
|
|
257
|
+
| `ervDevices[]` | Array of ATA devices created automatically after login to MELCloud from plugin config UI. |
|
|
258
|
+
| `ervDevices[].id` | Read only data, do not change it. |
|
|
259
|
+
| `ervDevices[].type` | Read only data, do not change it. |
|
|
260
|
+
| `ervDevices[].typeString` | Read only data, do not change it. |
|
|
261
|
+
| `ervDevices[].name` | Here You can schange the `Accessory Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
262
|
+
| `ervDevices[].displayMode` | Here select main control mode `None/Disabled`, `Heater/Cooler`, `Thermostat`. |
|
|
263
|
+
| `ervDevices[].temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
|
|
264
|
+
| `ervDevices[].temperatureSensorOutdoor` | This enable extra `Outdoor` temperature sensors to use with automations in HomeKit app. |
|
|
265
|
+
| `ervDevices[].temperatureSensorSupply` | This enable extra `Supply` temperature sensors to use with automations in HomeKit app. |
|
|
266
|
+
| `ervDevices[].refreshInterval` | Here set the background devices state refresh time in (sec), default `5s`. |
|
|
267
|
+
| `ervDevices[].presets[]` | Array of ATA device Presets created automatically after login to MELCloud from plugin config UI. |
|
|
268
|
+
| `ervDevices[].presets[].id` | Read only data, do not change it. |
|
|
269
|
+
| `ervDevices[].presets[].name` | Here You can schange the `Preset Name` which is exposed to the `Homebridge/HomeKit`. |
|
|
270
|
+
| `ervDevices[].presets[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
271
|
+
| `ervDevices[].buttonsSensors[]` | Array of buttons sensors. |
|
|
272
|
+
| `ervDevices[].buttonsSensors[].name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
|
|
273
|
+
| `ervDevices[].buttonsSensors[].mode` | Here select button mode. |
|
|
274
|
+
| `ervDevices[].buttonsSensors[].displayType` | Here select display type in HomeKit, `0 - None/Disabled`, `1 - Outlet`, `2 - Switch`, `3 - Motion Sensor`, `4 - Occupancy Sensor`, `5 - Contact Sensor`. |
|
|
275
|
+
| `ervDevices[].buttonsSensors[].namePrefix` | Here enable/disable the accessory name as a prefix for button/sensor name. |
|
|
276
276
|
| `refreshInterval` | Here set the background account data refresh time in (sec), default `120s`. |
|
|
277
|
-
| `
|
|
278
|
-
| `
|
|
279
|
-
| `
|
|
280
|
-
| `
|
|
281
|
-
| `
|
|
282
|
-
| `
|
|
283
|
-
| `
|
|
277
|
+
| `log{}` | Log object. |
|
|
278
|
+
| `log.deviceInfo` | If enabled, log device info will be displayed by every connections device to the network. |
|
|
279
|
+
| `log.sSuccess` | If enabled, success log will be displayed in console. |
|
|
280
|
+
| `log.info` | If enabled, info log will be displayed in console. |
|
|
281
|
+
| `log.warn` | If enabled, warn log will be displayed in console. |
|
|
282
|
+
| `log.error` | If enabled, error log will be displayed in console. |
|
|
283
|
+
| `log.debug` | If enabled, debug log will be displayed in console. |
|
|
284
|
+
| `restFul{}` | RSTful object. |
|
|
284
285
|
| `restFul.enable` | If enabled, RESTful server will start automatically and respond to any path request. |
|
|
285
286
|
| `restFul.debug` | If enabled, deep log will be present in homebridge console for RESTFul server. |
|
|
286
|
-
| `mqtt` |
|
|
287
|
+
| `mqtt{}` | MQTT object. |
|
|
287
288
|
| `mqtt.enable` | If enabled, MQTT Broker will start automatically and publish all awailable PV data. |
|
|
288
289
|
| `mqtt.host` | Here set the `IP Address` or `Hostname` for MQTT Broker. |
|
|
289
290
|
| `mqtt.port` | Here set the `Port` for MQTT Broker, default 1883. |
|
|
290
291
|
| `mqtt.clientId` | Here optional set the `Client Id` of MQTT Broker. |
|
|
291
292
|
| `mqtt.prefix` | Here set the `Prefix` for `Topic` or leave empty. |
|
|
292
|
-
| `mqtt.auth` | If enabled, MQTT Broker will use authorization credentials. |
|
|
293
|
-
| `mqtt.user` | Here set the MQTT Broker user. |
|
|
294
|
-
| `mqtt.passwd` | Here set the MQTT Broker password. |
|
|
295
293
|
| `mqtt.debug` | If enabled, deep log will be present in homebridge console for MQTT. |
|
|
294
|
+
| `mqtt.auth{}` | MQTT authorization object. |
|
|
295
|
+
| `mqtt.auth.enable` | Here enable authorization for MQTT Broker. |
|
|
296
|
+
| `mqtt.auth.user` | Here set the MQTT Broker user. |
|
|
297
|
+
| `mqtt.auth.passwd` | Here set the MQTT Broker password. |
|
|
296
298
|
|
|
297
299
|
### RESTful Integration
|
|
298
300
|
|