diff --git a/CHANGELOG.md b/CHANGELOG.md index df89777..4a05e1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - v3 After update to v3 from previous versions the plugin need to be configured using Config UI X. - do not configure it manually, always using Config UI X +## [3.0.7] - (30.08.2024) + +## Changes + +- improvements in plugin config UI +- config schema update +- cleanup + ## [3.0.0] - (29.08.2024) ## Changes diff --git a/README.md b/README.md index c58d702..19e64a3 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation | `ataDevices` | Array of ATA devices created automatically after login to MELCloud from plugin config UI. | | `ataDevices.id` | Read only data, do not change it. | | `ataDevices.type` | Read only data, do not change it. | +| `ataDevices.typeString` | Read only data, do not change it. | | `ataDevices.name` | Here You can schange the `Accessory Name` which is exposed to the `Homebridge/HomeKit`. | | `ataDevices.displayMode` | Here select device control mode `None/Disabled`, `Heater/Cooler`, `Thermostat`. | | `ataDevices.heatDryFanMode` | Here select the operatiing mode for `Heat`, if this mode is not supported, it will be disabled. | @@ -193,6 +194,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation | `atwDevices` | Array of ATA devices created automatically after login to MELCloud from plugin config UI. | | `atwDevices.id` | Read only data, do not change it. | | `atwDevices.type` | Read only data, do not change it. | +| `atwDevices.typeString` | Read only data, do not change it. | | `atwDevices.name` | Here You can schange the `Accessory Name` which is exposed to the `Homebridge/HomeKit`. | | `atwDevices.displayMode` | Here select main control mode `None/Disabled`, `Heater/Cooler`, `Thermostat`. | | `atwDevices.temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. | @@ -213,6 +215,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation | `ervDevices` | Array of ATA devices created automatically after login to MELCloud from plugin config UI. | | `ervDevices.id` | Read only data, do not change it. | | `ervDevices.type` | Read only data, do not change it. | +| `ervDevices.typeString` | Read only data, do not change it. | | `ervDevices.name` | Here You can schange the `Accessory Name` which is exposed to the `Homebridge/HomeKit`. | | `ervDevices.displayMode` | Here select main control mode `None/Disabled`, `Heater/Cooler`, `Thermostat`. | | `ervDevices.temperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. | diff --git a/config.schema.json b/config.schema.json index 5705c8e..aa53aa8 100644 --- a/config.schema.json +++ b/config.schema.json @@ -15,7 +15,7 @@ "type": "object", "properties": { "name": { - "title": "Account", + "title": "Name", "type": "string", "placeholder": "Account name", "description": "Your own account name.", @@ -220,6 +220,11 @@ "type": "integer", "required": false }, + "typeString": { + "title": "Type", + "type": "string", + "required": false + }, "name": { "title": "Name", "type": "string", @@ -691,6 +696,11 @@ "type": "integer", "required": false }, + "typeString": { + "title": "Type", + "type": "string", + "required": false + }, "name": { "title": "Name", "type": "string", @@ -1029,6 +1039,11 @@ "type": "integer", "required": false }, + "typeString": { + "title": "Type", + "type": "string", + "required": false + }, "name": { "title": "Name", "type": "string", @@ -1463,15 +1478,24 @@ "readonly": true }, { - "key": "accounts[].ataDevices[].type", + "key": "accounts[].ataDevices[].typeString", "readonly": true }, - "accounts[].ataDevices[].name", - "accounts[].ataDevices[].displayMode", - "accounts[].ataDevices[].heatDryFanMode", - "accounts[].ataDevices[].coolDryFanMode", - "accounts[].ataDevices[].autoDryFanMode", - "accounts[].ataDevices[].presets", + { + "key": "accounts[].ataDevices[]", + "type": "section", + "title": "Configuration", + "expandable": true, + "expanded": false, + "items": [ + "accounts[].ataDevices[].name", + "accounts[].ataDevices[].displayMode", + "accounts[].ataDevices[].heatDryFanMode", + "accounts[].ataDevices[].coolDryFanMode", + "accounts[].ataDevices[].autoDryFanMode", + "accounts[].ataDevices[].presets" + ] + }, { "key": "accounts[].ataDevices[]", "type": "section", @@ -1521,12 +1545,21 @@ "readonly": true }, { - "key": "accounts[].atwDevices[].type", + "key": "accounts[].atwDevices[].typeString", "readonly": true }, - "accounts[].atwDevices[].name", - "accounts[].atwDevices[].displayMode", - "accounts[].atwDevices[].presets", + { + "key": "accounts[].atwDevices[]", + "type": "section", + "title": "Configuration", + "expandable": true, + "expanded": false, + "items": [ + "accounts[].atwDevices[].name", + "accounts[].atwDevices[].displayMode", + "accounts[].atwDevices[].presets" + ] + }, { "key": "accounts[].atwDevices[]", "type": "section", @@ -1583,12 +1616,21 @@ "readonly": true }, { - "key": "accounts[].ervDevices[].type", + "key": "accounts[].ervDevices[].typeString", "readonly": true }, - "accounts[].ervDevices[].name", - "accounts[].ervDevices[].displayMode", - "accounts[].ervDevices[].presets", + { + "key": "accounts[].ervDevices[]", + "type": "section", + "title": "Configuration", + "expandable": true, + "expanded": false, + "items": [ + "accounts[].ervDevices[].name", + "accounts[].ervDevices[].displayMode", + "accounts[].ervDevices[].presets" + ] + }, { "key": "accounts[].ervDevices[]", "type": "section", @@ -1624,50 +1666,72 @@ ] } ] - }, - { - "key": "accounts[]", - "title": "System", - "items": [ - "accounts[].enableDebugMode", - "accounts[].disableLogInfo", - "accounts[].disableLogDeviceInfo", - "accounts[].refreshInterval", - "accounts[].deviceRefreshInterval" - ] - }, + } + ] + }, + { + "key": "accounts[]", + "type": "section", + "title": "Advanced Settings", + "expandable": true, + "expanded": false, + "items": [ { "key": "accounts[]", - "title": "External Integrations", + "type": "tabarray", + "title": "{{ value.name }}", "items": [ { "key": "accounts[]", - "type": "tabarray", - "title": "{{ value.title }}", + "title": "Data Refresh", + "items": [ + "accounts[].refreshInterval", + "accounts[].deviceRefreshInterval" + ] + }, + { + "key": "accounts[]", + "title": "Log", + "items": [ + "accounts[].enableDebugMode", + "accounts[].disableLogInfo", + "accounts[].disableLogDeviceInfo" + ] + }, + { + "key": "accounts[]", + "title": "External Integrations", "items": [ { - "key": "accounts[].restFul", - "title": "RESTFul", - "items": [ - "accounts[].restFul.enable", - "accounts[].restFul.debug" - ] - }, - { - "key": "accounts[].mqtt", - "title": "MQTT", + "key": "accounts[]", + "type": "tabarray", + "title": "{{ value.title }}", "items": [ - "accounts[].mqtt.enable", - "accounts[].mqtt.debug", - "accounts[].mqtt.host", - "accounts[].mqtt.port", - "accounts[].mqtt.clientId", - "accounts[].mqtt.prefix", - "accounts[].mqtt.auth", - "accounts[].mqtt.user", { - "key": "accounts[].mqtt.passwd", - "type": "password" + "key": "accounts[].restFul", + "title": "RESTFul", + "items": [ + "accounts[].restFul.enable", + "accounts[].restFul.debug" + ] + }, + { + "key": "accounts[].mqtt", + "title": "MQTT", + "items": [ + "accounts[].mqtt.enable", + "accounts[].mqtt.debug", + "accounts[].mqtt.host", + "accounts[].mqtt.port", + "accounts[].mqtt.clientId", + "accounts[].mqtt.prefix", + "accounts[].mqtt.auth", + "accounts[].mqtt.user", + { + "key": "accounts[].mqtt.passwd", + "type": "password" + } + ] } ] } diff --git a/homebridge-ui/public/index.html b/homebridge-ui/public/index.html index f810f17..1bf81b4 100644 --- a/homebridge-ui/public/index.html +++ b/homebridge-ui/public/index.html @@ -1,13 +1,13 @@ -