@mp-consulting/homebridge-daikin-cloud 1.3.29 → 1.3.31

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 CHANGED
@@ -92,6 +92,7 @@ Add the platform to your Homebridge `config.json`:
92
92
  "platforms": [
93
93
  {
94
94
  "platform": "DaikinCloud",
95
+ "name": "Daikin Cloud",
95
96
  "authMode": "developer_portal",
96
97
  "clientId": "<your-client-id>",
97
98
  "clientSecret": "<your-client-secret>",
@@ -8,6 +8,13 @@
8
8
  "schema": {
9
9
  "type": "object",
10
10
  "properties": {
11
+ "name": {
12
+ "title": "Name",
13
+ "type": "string",
14
+ "required": true,
15
+ "default": "Daikin Cloud",
16
+ "description": "Plugin name as displayed in the homebridge log"
17
+ },
11
18
  "authMode": {
12
19
  "title": "Authentication Method",
13
20
  "description": "Choose how to authenticate with Daikin Cloud",
@@ -158,6 +165,7 @@
158
165
  }
159
166
  },
160
167
  "layout": [
168
+ "name",
161
169
  {
162
170
  "type": "fieldset",
163
171
  "title": "Authentication Method",
@@ -553,7 +553,7 @@ const Config = {
553
553
  async save() {
554
554
  try {
555
555
  const config = await homebridge.getPluginConfig();
556
- const platformConfig = config[0] || { platform: 'DaikinCloud' };
556
+ const platformConfig = config[0] || { platform: 'DaikinCloud', name: 'Daikin Cloud' };
557
557
  Object.assign(platformConfig, Wizard.getFormConfig());
558
558
  await homebridge.updatePluginConfig([platformConfig]);
559
559
  await homebridge.savePluginConfig();
@@ -779,7 +779,7 @@ const Settings = {
779
779
  try {
780
780
  this.showStatus(status, 'saving', 'Saving...');
781
781
  const config = await homebridge.getPluginConfig();
782
- const platformConfig = config[0] || { platform: 'DaikinCloud' };
782
+ const platformConfig = config[0] || { platform: 'DaikinCloud', name: 'Daikin Cloud' };
783
783
  Object.assign(platformConfig, this.getFormSettings());
784
784
  await homebridge.updatePluginConfig([platformConfig]);
785
785
  await homebridge.savePluginConfig();
@@ -991,7 +991,7 @@ const MobileAuth = {
991
991
 
992
992
  async saveCredentials(email, password) {
993
993
  const config = await homebridge.getPluginConfig();
994
- const platformConfig = config[0] || { platform: 'DaikinCloud' };
994
+ const platformConfig = config[0] || { platform: 'DaikinCloud', name: 'Daikin Cloud' };
995
995
  Object.assign(platformConfig, { authMode: 'mobile_app', daikinEmail: email, daikinPassword: password });
996
996
  await homebridge.updatePluginConfig([platformConfig]);
997
997
  await homebridge.savePluginConfig();
@@ -1085,7 +1085,7 @@ const AuthMode = {
1085
1085
  async save() {
1086
1086
  try {
1087
1087
  const config = await homebridge.getPluginConfig();
1088
- const platformConfig = config[0] || { platform: 'DaikinCloud' };
1088
+ const platformConfig = config[0] || { platform: 'DaikinCloud', name: 'Daikin Cloud' };
1089
1089
  platformConfig.authMode = this.current;
1090
1090
  await homebridge.updatePluginConfig([platformConfig]);
1091
1091
  await homebridge.savePluginConfig();
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "displayName": "Daikin Cloud",
3
3
  "platformname": "daikincloud",
4
4
  "name": "@mp-consulting/homebridge-daikin-cloud",
5
- "version": "1.3.29",
5
+ "version": "1.3.31",
6
6
  "description": "Integrate with the Daikin Cloud to control your Daikin air conditioning via the cloud",
7
7
  "license": "(Apache-2.0 AND MIT)",
8
8
  "repository": {
@@ -13,7 +13,7 @@
13
13
  "url": "https://github.com/mp-consulting/homebridge-daikin-cloud/issues"
14
14
  },
15
15
  "engines": {
16
- "node": "^20.18.0 || ^22.10.0 || ^24.0.0",
16
+ "node": "^22.10.0 || ^24.0.0 || ^26.0.0",
17
17
  "homebridge": ">=1.5.0 || ^2.0.0-beta.0"
18
18
  },
19
19
  "main": "dist/src/index.js",