homebridge-xbox-tv 3.3.0-beta.1 → 3.3.0

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
@@ -10,6 +10,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
  - After update to 2.x.x the plugin settings (xboxLiveId) need to be updated
11
11
  - After update to v3.0.0 RESTFull and MQTT config settings need to be updated
12
12
 
13
+ ## [3.3.0] - (19.01.2025)
14
+
15
+ ## Changes
16
+
17
+ - added possibility to disable/enable log success, info, warn, error
18
+ - refactor cnnect code
19
+ - bump dependencies
20
+ - config schema updated
21
+ - redme updated
22
+ - cleanup
23
+
13
24
  ## [3.2.0] - (30.11.2024)
14
25
 
15
26
  ## Changes
package/README.md CHANGED
@@ -106,9 +106,12 @@ Homebridge plugin for Microsoft game Consoles. Tested with Xbox One X/S and Xbox
106
106
  | `volumeControlName` | Here set Your own volume control name or leave empty. |
107
107
  | `volumeControl` | Here choice what a additional volume control mode You want to use (`0 - None/Disabled`, `1 - Lightbulb`, `2 - Fan`), not working yet. |
108
108
  | `infoButtonCommand` | Here select the function of `I` button in RC app. |
109
- | `enableDebugMode` | If enabled, deep log will be present in homebridge console. |
110
- | `disableLogInfo` | If enabled, disable log info, all values and state will not be displayed in Homebridge log console. |
111
109
  | `disableLogDeviceInfo` | If enabled, add ability to disable log device info by every connections device to the network. |
110
+ | `disableLogInfo` | If enabled, disable log info, all values and state will not be displayed in Homebridge log console. |
111
+ | `disableLogSuccess` | If enabled, disable logging device success. |
112
+ | `disableLogWarn` | If enabled, disable logging device warnings. |
113
+ | `disableLogError` | If enabled, disable logging device error. |
114
+ | `enableDebugMode` | If enabled, deep log will be present in homebridge console. |
112
115
  | `restFul` | This is RSTful server. |
113
116
  | `enable` | If enabled, RESTful server will start automatically and respond to any path request. |
114
117
  | `port` | Here set the listening `Port` for RESTful server. |
package/index.js CHANGED
@@ -123,8 +123,9 @@ class XboxPlatform {
123
123
  //start impulse generator
124
124
  impulseGenerator.start([{ name: 'start', sampling: 45000 }]);
125
125
  } catch (error) {
126
- log.error(`Device: ${host} ${deviceName}, Did finish launching error: ${error}`);
126
+ throw new Error(`Device: ${host} ${deviceName}, Did finish launching error: ${error}.`);
127
127
  }
128
+ await new Promise(resolve => setTimeout(resolve, 500));
128
129
  }
129
130
  });
130
131
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Xbox TV",
3
3
  "name": "homebridge-xbox-tv",
4
- "version": "3.3.0-beta.1",
4
+ "version": "3.3.0",
5
5
  "description": "Homebridge plugin to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -634,6 +634,7 @@ class XboxLocalApi extends EventEmitter {
634
634
  }
635
635
  }).bind();
636
636
 
637
+ await new Promise(resolve => setTimeout(resolve, 1500));
637
638
  return true;
638
639
  } catch (error) {
639
640
  throw new Error(`Connect error: ${error.message || error}`);