Closed alexgsm022 closed 2 years ago
Very strange, already tested with XBOX and XBSX and both working correct. Are you using the plugin previously correct? What version is installed? Please enable debug mode in Advanced Section and get the log.
It's indeed strange. I'm pretty sure I did nothing wrong as it just stopped working out of nowhere. I have version 2.0.12, the latest right now.
Here's the debug log (I also enabled Homebridge Debug along with XboxTv's Debug:
`[1/11/2022, 12:35:43 AM] [XboxTv] Device: 192.168.1.59 undefined, requesting installed apps from your Xbox Live account.
[1/11/2022, 12:35:43 AM] [XboxTv] Device: 192.168.1.59 undefined, authorized and Web Api enabled.
[1/11/2022, 12:35:43 AM] [XboxTv] Device: 192.168.1.59 undefined, Server listening: 0.0.0.0:55569, start discovering.
[1/11/2022, 12:35:43 AM] Homebridge v1.3.9 (HAP v0.9.8) (Homebridge 6FB8) is running on port 51472.
[1/11/2022, 12:35:43 AM] Publishing external accessory (name: TV, publishInfo: {
username: '4B:FA:A6:14:55:AF',
pincode: '*-*-',
category: 31,
port: undefined,
bind: undefined,
mdns: undefined,
addIdentifyingMaterial: true,
advertiser: 'bonjour-hap'
}).
[1/11/2022, 12:35:43 AM] TV 5FA5 is running on port 58366.
[1/11/2022, 12:35:43 AM] Please add [TV 5FA5] manually in Home app. Setup Code: 728-25-127
[1/11/2022, 12:35:43 AM] [XboxTv] Device: 192.168.1.59 undefined, debug devInfo: {
manufacturer: 'Microsoft',
modelName: 'Xbox One X',
serialNumber: 'FD005B18A2F0DFE1',
firmwareRevision: '10.0.22000'
}
[1/11/2022, 12:35:43 AM] [XboxTv] prepareTelevisionService
[1/11/2022, 12:35:43 AM] [XboxTv] prepareSpeakerService
[1/11/2022, 12:35:43 AM] [XboxTv] prepareInputsService
[1/11/2022, 12:35:43 AM] [XboxTv] Device: 192.168.1.59 undefined, read saved Inputs successful, inpits: [
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object]
]
[1/11/2022, 12:35:43 AM] [XboxTv] Device: 192.168.1.59 undefined, read saved custom Inputs Names successful, names: {}
[1/11/2022, 12:35:43 AM] [XboxTv] Device: 192.168.1.59 undefined, read saved Target Visibility successful, states {}
[1/11/2022, 12:35:43 AM] [XboxTv] prepareInputsButtonService
[1/11/2022, 12:35:43 AM] [XboxTv] Device: 192.168.1.59 undefined, publishExternalAccessories.
[1/11/2022, 12:35:43 AM] Publishing external accessory (name: undefined, publishInfo: {
username: '18:54:9F:DE:26:14',
pincode: '*-*-',
category: 35,
port: undefined,
bind: undefined,
mdns: undefined,
addIdentifyingMaterial: true,
advertiser: 'bonjour-hap'
}).
[1/11/2022, 12:35:43 AM] undefined 87AB is running on port 58367.
[1/11/2022, 12:35:43 AM] Please add [undefined 87AB] manually in Home app. Setup Code: 728-25-127
[1/11/2022, 12:35:44 AM] [XboxTv] Device: 192.168.1.59 undefined, debug getInstalledAppsData: [
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object]
]
[1/11/2022, 12:35:44 AM] [XboxTv] Device: 192.168.1.59 undefined, saved inputs/apps list: [
{
"name": "Screensaver",
"titleId": "851275400",
"reference": "Xbox.IdleScreen_8wekyb3d8bbwe!Xbox.IdleScreen.Application",
"oneStoreProductId": "Screensaver",
"type": "HOME_SCREEN",
"contentType": "Dashboard"
},
{
"name": "Dashboard",
"titleId": "750323071",
"reference": "Xbox.Dashboard_8wekyb3d8bbwe!Xbox.Dashboard.Application",
"oneStoreProductId": "Dashboard",
"type": "HOME_SCREEN",
"contentType": "Dashboard"
},
{
"name": "Settings",
"titleId": "1837352387",
"reference": "Microsoft.Xbox.Settings_8wekyb3d8bbwe!Xbox.Settings.Application",
"oneStoreProductId": "Settings",
"type": "HOME_SCREEN",
"contentType": "Dashboard"
},
{
"name": "Television",
"titleId": "371594669",
"reference": "Microsoft.Xbox.LiveTV_8wekyb3d8bbwe!Microsoft.Xbox.LiveTV.Application",
"oneStoreProductId": "Television",
"type": "HDMI",
"contentType": "systemApp"
},
{
"name": "Settings TV",
"titleId": "2019308066",
"reference": "Microsoft.Xbox.TvSettings_8wekyb3d8bbwe!Microsoft.Xbox.TvSettings.Application",
"oneStoreProductId": "SettingsTv",
"type": "HOME_SCREEN",
"contentType": "Dashboard"
},
{
"name": "Accessory",
"titleId": "758407307",
"reference": "Microsoft.XboxDevices_8wekyb3d8bbwe!App",
"oneStoreProductId": "Accessory",
"type": "HOME_SCREEN",
"contentType": "systemApp"
},
{
"name": "Microsoft Store",
"titleId": "1864271209",
"reference": "Microsoft.storify_8wekyb3d8bbwe!App",
"oneStoreProductId": "MicrosoftStore",
"type": "HOME_SCREEN",
"contentType": "systemApp"
},
{
"name": "Asphalt 9: Legends",
"titleId": 1715349030,
"reference": "A278AB0D.Asphalt9_h6adky7gbf63m!Asphalt9",
"oneStoreProductId": "9NZQPT0MWTD0",
"type": "APPLICATION",
"contentType": "Game"
},
{
"name": "Grand Theft Auto V",
"titleId": 972249091,
"reference": "GTA-V_vesz1v3mcwykm!GTAV",
"oneStoreProductId": "BPJ686W6S0NH",
"type": "APPLICATION",
"contentType": "Game"
},
{
"name": "Just Dance 2018®",
"titleId": 251796387,
"reference": "JD2018EMEA0F021BA3_z1zgv8ff8e49g!JustDance2018Final",
"oneStoreProductId": "BTTV55C2V96T",
"type": "APPLICATION",
"contentType": "Game"
},
{
"name": "Blu-ray Player",
"titleId": 1783797709,
"reference": "Microsoft.BlurayPlayer_8wekyb3d8bbwe!Xbox.BlurayPlayer.Application",
"oneStoreProductId": "9NBLGGH4VVD4",
"type": "APPLICATION",
"contentType": "App"
},
{
"name": "Microsoft Edge",
"titleId": 0,
"reference": "Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe!MSEDGE",
"oneStoreProductId": null,
"type": "APPLICATION",
"contentType": "App"
},
{
"name": "Groove Music",
"titleId": 419416564,
"reference": "Microsoft.ZuneMusic_8wekyb3d8bbwe!Microsoft.ZuneMusic",
"oneStoreProductId": "9WZDNCRFJ3PT",
"type": "APPLICATION",
"contentType": "App"
},
{
"name": "Paladins",
"titleId": 682404126,
"reference": "Paladins_92qpp8rb5ay7p!ChaosGameDingoShipping",
"oneStoreProductId": "C4PZ0V39GXN2",
"type": "APPLICATION",
"contentType": "Game"
},
{
"name": "Sayonara Wild Hearts",
"titleId": 1904355931,
"reference": "Simogo.SayonaraWildHearts_pkc7z5j7q4hb4!App",
"oneStoreProductId": "9P0L4XR9D8L3",
"type": "APPLICATION",
"contentType": "Game"
},
{
"name": "Spotify | Xbox",
"titleId": 1693425033,
"reference": "SpotifyAB.SpotifyMusic-forXbox_zpdnekdrzrea0!App",
"oneStoreProductId": "9NFQ49H668TB",
"type": "APPLICATION",
"contentType": "App"
},
{
"name": "Watch Dogs®: Legion",
"titleId": 84790147,
"reference": "Ubisoft.WatchDogsLegion_ngz4m417e0mpw!Game",
"oneStoreProductId": "C1WRX8ZD77M9",
"type": "APPLICATION",
"contentType": "Game"
},
{
"name": "NOS TV",
"titleId": 2123969530,
"reference": "ZONTVCABOPORTUGALSA.NOSTV_252crk24ewvjj!App",
"oneStoreProductId": "9NBLGGH42X62",
"type": "APPLICATION",
"contentType": "App"
},
{
"name": "Watch Dogs Legion - Brazilian Portuguese Audio Pack",
"titleId": 0,
"reference": null,
"oneStoreProductId": "9MWVLXVJRHVC",
"type": "APPLICATION",
"contentType": "Dlc"
},
{
"name": "Watch Dogs®: Legion Resistance Edition Pack",
"titleId": 0,
"reference": null,
"oneStoreProductId": "9NDP8STWH7CK",
"type": "APPLICATION",
"contentType": "Dlc"
}
]
[1/11/2022, 12:35:44 AM] [XboxTv] Device: 192.168.1.59 undefined, requesting web api storage devices.
[1/11/2022, 12:35:44 AM] [XboxTv] Device: 192.168.1.59 undefined, get Power state successful: OFF
[1/11/2022, 12:35:44 AM] [XboxTv] Device: 192.168.1.59 undefined, get Input successful, input: Screensaver, reference: Xbox.IdleScreen_8wekyb3d8bbwe!Xbox.IdleScreen.Application, product Id: Screensaver
[1/11/2022, 12:35:44 AM] [XboxTv] Device: 192.168.1.59 undefined, get Current Media state successful: STOP
[1/11/2022, 12:35:44 AM] [XboxTv] Device: 192.168.1.59 undefined, get Target Media state successful: STOP
[1/11/2022, 12:35:44 AM] [XboxTv] Device: 192.168.1.59 undefined, get Mute successful: OFF
[1/11/2022, 12:35:44 AM] [XboxTv] Device: 192.168.1.59 undefined, get Volume successful: 0
[1/11/2022, 12:35:44 AM] [XboxTv] Device: 192.168.1.59 undefined, debug getStorageDevicesData, result: {
status: [Object],
deviceId: 'FD005B18A2F0DFE1',
result: [Array],
agentUserId: null
}
[1/11/2022, 12:35:44 AM] [XboxTv] Device: 192.168.1.59 undefined, requesting device info from Web API.
[1/11/2022, 12:35:45 AM] [XboxTv] Device: 192.168.1.59 undefined, debug getConsoleStatusData, result: {
status: [Object],
id: 'FD005B18A2F0DFE1',
name: 'Alex’s Xbox',
locale: 'en-US',
region: 'US',
consoleType: 'XboxOneX',
powerState: 'On',
playbackState: 'Stopped',
loginState: null,
focusAppAumid: '',
isTvConfigured: true,
digitalAssistantRemoteControlEnabled: true,
consoleStreamingEnabled: true,
remoteManagementEnabled: true
}
[1/11/2022, 12:35:48 AM] [XboxTv] Device: 192.168.1.59 undefined, Socket send 16 bytes.
[1/11/2022, 12:35:48 AM] [XboxTv] Device: 192.168.1.59 undefined, Server reveived message from: 192.168.1.59:5050
[1/11/2022, 12:35:48 AM] [XboxTv] Device: 192.168.1.59 undefined, Discovered, send connect request.
[1/11/2022, 12:35:48 AM] [XboxTv] Device: 192.168.1.59 undefined, Signing public key: 04a508231df2994e02078b38ab0e9d1e2af4292a09e0f4bae799be1afd23862c643989c3f311fe46640623c7db046b6cbfbb53aa6e4fe5f65a7fb65342a1c0c182
[1/11/2022, 12:35:48 AM] [XboxTv] Device: 192.168.1.59 undefined, Crypto output object: [object Object]
[1/11/2022, 12:35:48 AM] [XboxTv] Device: 192.168.1.59 undefined, Loading crypto, public key: be413eaa385a32008f7b4c951dee64cd515db1b76c84299a2e8cfa07be140e94a7532a61ef4ade2f661089aadf72292720d74ea249597c3a43a8299a76e355da, and secret: 119a9eda15e79cd219a7969f18f214fa920acbab8721c69e660374653e95c9896447172d7a7587970807e52ca57ac1c98bc35f61d6c83060063c39b9f8fb4ac0
[1/11/2022, 12:35:48 AM] [XboxTv] Device: 192.168.1.59 undefined, Connecting using token.
[1/11/2022, 12:35:48 AM] [XboxTv] Device: 192.168.1.59 undefined, Emit event type: discovery
[1/11/2022, 12:35:48 AM] [XboxTv] Device: 192.168.1.59 undefined, Socket send 170 bytes.
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Socket send 16 bytes.
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Server reveived message from: 192.168.1.59:5050
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Discovered, send connect request.
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Signing public key: 04a508231df2994e02078b38ab0e9d1e2af4292a09e0f4bae799be1afd23862c643989c3f311fe46640623c7db046b6cbfbb53aa6e4fe5f65a7fb65342a1c0c182
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Crypto output object: [object Object]
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Loading crypto, public key: 26333c11568e6bde40737918e5a54172dfabae7f6f351ef56c4bb876845f226670c2e574a46fd249fb028615e5f691cca0462e6f5e8813cc911b099a1a13b1c2, and secret: 5cee31106cb509bb33d83fa8f13b24203020ddea8c658b2a1629981b193da76e6b40c9e813582cd7bbd02272f8eb78dd9463071a3d62bc356ed112cd7c7b0c5f
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Connecting using token.
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Emit event type: discovery
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Socket send 170 bytes.
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Server reveived message from: 192.168.1.59:5050
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Connect response received.
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Request number set to: 1
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Emit event type: connectResponse
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Socket send 122 bytes.
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Server reveived message from: 192.168.1.59:5050
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Emit event type: acknowledge
[1/11/2022, 12:35:53 AM] [XboxTv] Device: 192.168.1.59 undefined, Server reveived message from: 192.168.1.59:5050
[1/11/2022, 12:35:53 AM] RangeError: The value of "offset" is out of range. It must be >= 0 and <= 254. Received 63589
at new NodeError (node:internal/errors:371:5)
at boundsError (node:internal/buffer:86:9)
at Buffer.readUInt16BE (node:internal/buffer:332:5)
at STRUCTURE.readUInt16 (/usr/local/lib/node_modules/homebridge-xbox-tv/src/packet/structure.js:78:34)
at Object.unpack (/usr/local/lib/node_modules/homebridge-xbox-tv/src/packet/message.js:127:60)
at MESSAGE.unpack (/usr/local/lib/node_modules/homebridge-xbox-tv/src/packet/message.js:456:74)
at PACKER.unpack (/usr/local/lib/node_modules/homebridge-xbox-tv/src/packet/packer.js:39:31)
at Socket.
┌────────────┐
│ 728-25-127 │
└────────────┘
[1/11/2022, 12:36:05 AM] [XboxTv] Device: 192.168.1.59 undefined, requesting installed apps from your Xbox Live account. [1/11/2022, 12:36:05 AM] [XboxTv] Device: 192.168.1.59 undefined, authorized and Web Api enabled. [1/11/2022, 12:36:05 AM] [XboxTv] Device: 192.168.1.59 undefined, Server listening: 0.0.0.0:64716, start discovering. [1/11/2022, 12:36:05 AM] Homebridge v1.3.9 (HAP v0.9.8) (Homebridge 6FB8) is running on port 51472. [1/11/2022, 12:36:05 AM] Publishing external accessory (name: TV, publishInfo: { username: '4B:FA:A6:14:55:AF', pincode: '*-*-', category: 31, port: undefined, bind: undefined, mdns: undefined, addIdentifyingMaterial: true, advertiser: 'bonjour-hap' }). [1/11/2022, 12:36:05 AM] TV 5FA5 is running on port 58415. [1/11/2022, 12:36:05 AM] Please add [TV 5FA5] manually in Home app. Setup Code: 728-25-127 [1/11/2022, 12:36:05 AM] [XboxTv] Device: 192.168.1.59 undefined, debug devInfo: { manufacturer: 'Microsoft', modelName: 'Xbox One X', serialNumber: 'FD005B18A2F0DFE1', firmwareRevision: '10.0.22000' } [1/11/2022, 12:36:05 AM] [XboxTv] prepareTelevisionService [1/11/2022, 12:36:05 AM] [XboxTv] prepareSpeakerService [1/11/2022, 12:36:05 AM] [XboxTv] prepareInputsService [1/11/2022, 12:36:05 AM] [XboxTv] Device: 192.168.1.59 undefined, read saved Inputs successful, inpits: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object] ] [1/11/2022, 12:36:05 AM] [XboxTv] Device: 192.168.1.59 undefined, read saved custom Inputs Names successful, names: {} [1/11/2022, 12:36:05 AM] [XboxTv] Device: 192.168.1.59 undefined, read saved Target Visibility successful, states {} [1/11/2022, 12:36:05 AM] [XboxTv] prepareInputsButtonService [1/11/2022, 12:36:05 AM] [XboxTv] Device: 192.168.1.59 undefined, publishExternalAccessories. [1/11/2022, 12:36:05 AM] Publishing external accessory (name: undefined, publishInfo: { username: '18:54:9F:DE:26:14', pincode: '*-*-', category: 35, port: undefined, bind: undefined, mdns: undefined, addIdentifyingMaterial: true, advertiser: 'bonjour-hap' }). [1/11/2022, 12:36:05 AM] undefined 87AB is running on port 58416. [1/11/2022, 12:36:05 AM] Please add [undefined 87AB] manually in Home app. Setup Code: 728-25-127 [1/11/2022, 12:36:06 AM] [XboxTv] Device: 192.168.1.59 undefined, debug getInstalledAppsData: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object] ] [1/11/2022, 12:36:06 AM] [XboxTv] Device: 192.168.1.59 undefined, saved inputs/apps list: [ { "name": "Screensaver", "titleId": "851275400", "reference": "Xbox.IdleScreen_8wekyb3d8bbwe!Xbox.IdleScreen.Application", "oneStoreProductId": "Screensaver", "type": "HOME_SCREEN", "contentType": "Dashboard" }, { "name": "Dashboard", "titleId": "750323071", "reference": "Xbox.Dashboard_8wekyb3d8bbwe!Xbox.Dashboard.Application", "oneStoreProductId": "Dashboard", "type": "HOME_SCREEN", "contentType": "Dashboard" }, { "name": "Settings", "titleId": "1837352387", "reference": "Microsoft.Xbox.Settings_8wekyb3d8bbwe!Xbox.Settings.Application", "oneStoreProductId": "Settings", "type": "HOME_SCREEN", "contentType": "Dashboard" }, { "name": "Television", "titleId": "371594669", "reference": "Microsoft.Xbox.LiveTV_8wekyb3d8bbwe!Microsoft.Xbox.LiveTV.Application", "oneStoreProductId": "Television", "type": "HDMI", "contentType": "systemApp" }, { "name": "Settings TV", "titleId": "2019308066", "reference": "Microsoft.Xbox.TvSettings_8wekyb3d8bbwe!Microsoft.Xbox.TvSettings.Application", "oneStoreProductId": "SettingsTv", "type": "HOME_SCREEN", "contentType": "Dashboard" }, { "name": "Accessory", "titleId": "758407307", "reference": "Microsoft.XboxDevices_8wekyb3d8bbwe!App", "oneStoreProductId": "Accessory", "type": "HOME_SCREEN", "contentType": "systemApp" }, { "name": "Microsoft Store", "titleId": "1864271209", "reference": "Microsoft.storify_8wekyb3d8bbwe!App", "oneStoreProductId": "MicrosoftStore", "type": "HOME_SCREEN", "contentType": "systemApp" }, { "name": "Asphalt 9: Legends", "titleId": 1715349030, "reference": "A278AB0D.Asphalt9_h6adky7gbf63m!Asphalt9", "oneStoreProductId": "9NZQPT0MWTD0", "type": "APPLICATION", "contentType": "Game" }, { "name": "Grand Theft Auto V", "titleId": 972249091, "reference": "GTA-V_vesz1v3mcwykm!GTAV", "oneStoreProductId": "BPJ686W6S0NH", "type": "APPLICATION", "contentType": "Game" }, { "name": "Just Dance 2018®", "titleId": 251796387, "reference": "JD2018EMEA0F021BA3_z1zgv8ff8e49g!JustDance2018Final", "oneStoreProductId": "BTTV55C2V96T", "type": "APPLICATION", "contentType": "Game" }, { "name": "Blu-ray Player", "titleId": 1783797709, "reference": "Microsoft.BlurayPlayer_8wekyb3d8bbwe!Xbox.BlurayPlayer.Application", "oneStoreProductId": "9NBLGGH4VVD4", "type": "APPLICATION", "contentType": "App" }, { "name": "Microsoft Edge", "titleId": 0, "reference": "Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe!MSEDGE", "oneStoreProductId": null, "type": "APPLICATION", "contentType": "App" }, { "name": "Groove Music", "titleId": 419416564, "reference": "Microsoft.ZuneMusic_8wekyb3d8bbwe!Microsoft.ZuneMusic", "oneStoreProductId": "9WZDNCRFJ3PT", "type": "APPLICATION", "contentType": "App" }, { "name": "Paladins", "titleId": 682404126, "reference": "Paladins_92qpp8rb5ay7p!ChaosGameDingoShipping", "oneStoreProductId": "C4PZ0V39GXN2", "type": "APPLICATION", "contentType": "Game" }, { "name": "Sayonara Wild Hearts", "titleId": 1904355931, "reference": "Simogo.SayonaraWildHearts_pkc7z5j7q4hb4!App", "oneStoreProductId": "9P0L4XR9D8L3", "type": "APPLICATION", "contentType": "Game" }, { "name": "Spotify | Xbox", "titleId": 1693425033, "reference": "SpotifyAB.SpotifyMusic-forXbox_zpdnekdrzrea0!App", "oneStoreProductId": "9NFQ49H668TB", "type": "APPLICATION", "contentType": "App" }, { "name": "Watch Dogs®: Legion", "titleId": 84790147, "reference": "Ubisoft.WatchDogsLegion_ngz4m417e0mpw!Game", "oneStoreProductId": "C1WRX8ZD77M9", "type": "APPLICATION", "contentType": "Game" }, { "name": "NOS TV", "titleId": 2123969530, "reference": "ZONTVCABOPORTUGALSA.NOSTV_252crk24ewvjj!App", "oneStoreProductId": "9NBLGGH42X62", "type": "APPLICATION", "contentType": "App" }, { "name": "Watch Dogs Legion - Brazilian Portuguese Audio Pack", "titleId": 0, "reference": null, "oneStoreProductId": "9MWVLXVJRHVC", "type": "APPLICATION", "contentType": "Dlc" }, { "name": "Watch Dogs®: Legion Resistance Edition Pack", "titleId": 0, "reference": null, "oneStoreProductId": "9NDP8STWH7CK", "type": "APPLICATION", "contentType": "Dlc" } ] [1/11/2022, 12:36:06 AM] [XboxTv] Device: 192.168.1.59 undefined, requesting web api storage devices. [1/11/2022, 12:36:06 AM] [XboxTv] Device: 192.168.1.59 undefined, debug getStorageDevicesData, result: { status: [Object], deviceId: 'FD005B18A2F0DFE1', result: [Array], agentUserId: null } [1/11/2022, 12:36:06 AM] [XboxTv] Device: 192.168.1.59 undefined, requesting device info from Web API. [1/11/2022, 12:36:07 AM] [XboxTv] Device: 192.168.1.59 undefined, debug getConsoleStatusData, result: { status: [Object], id: 'FD005B18A2F0DFE1', name: 'Alex’s Xbox', locale: 'en-US', region: 'US', consoleType: 'XboxOneX', powerState: 'On', playbackState: 'Stopped', loginState: null, focusAppAumid: '', isTvConfigured: true, digitalAssistantRemoteControlEnabled: true, consoleStreamingEnabled: true, remoteManagementEnabled: true } [1/11/2022, 12:36:10 AM] [XboxTv] Device: 192.168.1.59 undefined, Socket send 16 bytes. [1/11/2022, 12:36:10 AM] [XboxTv] Device: `
Please post Your config, here is something strange
Try 2.0.13-beta.7
Here's my config:
{ "devices": [ { "name": "Xbox One", "host": "192.168.1.59", "xboxLiveId": "FD005B18A2F0DFE1", "xboxWebApiToken": "M.R3_BAY.a405e491-9783-14a5-bf1a-45fc0dfddbdf", "disableLogInfo": false, "disableLogDeviceInfo": false, "enableDebugMode": true, "webApiControl": true, "volumeControl": 0, "switchInfoMenu": false, "getInputsFromDevice": true, "filterGames": false, "filterApps": false, "filterSystemApps": true, "filterDlc": true } ], "platform": "XboxTv" }
I already tried the beta. I tried many solutions, even installing Homebridge on another OS. Always the same error.
Please try beta.9
I tried beta.10 as it was the only one available and, well, still the same issue...
Are you run as child bridge or normal mode? Which Node ver you use?
Please try b.15
Sorry for the late response. It didn't crash Homebridge! Until I turned my Xbox on. This, on beta 15 I mean. Also, I tried running as both a child bridge and on the main bridge. No difference. It would just crash on the child bridge. My node version is 16.13.1.
This must be something specific on your system enviroment.
Not understanding what it could be. Like one day the Xbox was working the other day it wasn't... 🤷♂️ Do you think resetting the Xbox to factory settings or something would help?
Think what a chnges You made before start report this error, do not reset Xbox there have nothing to do. I want help You but cannot reproduce this. All working fine.
Please try latest beta.
@alexgsm022
I have reproduced this and I think is fixed now, please try 2.0.14-beta.57 and let me know
I also had issues after upgrading.
solved the issue by installing the 2.0.14-beta.57 version
npm install -g homebridge-xbox-tv@2.0.14-beta.57
Linux | openSUSE Leap (15.3) Node.js | v16.13.1 Npm | v8.3.0 homebridge | v1.3.9
Can You also test latest beta.65
Can You also test latest beta.65
version 2.0.14-beta.65 worked aswell without problems.
at least not triggering the homebridge restart loop :)
@frossmant thanks @alexgsm022 can you confirm that latest beta working on your Side?
2.1.0 released
It seems to be working! Greatly appreciate all your help and dedication to solving this issue. Also apologize for my huge delays in replying. All the best :)
I am still having this same issue today on Homebridge 1.4.1 with Raspberry Pi. Node.js v16.15.1 and xbox-tv 2.2.3. This is on an XBOX Series X and only happens when the XBOX is running, but when it is running it happens multiple times a day.
[21/06/2022, 12:56:30] [XboxTv] Device: 192.168.1.54 XBOX Series X, Connect error: undefined [21/06/2022, 12:56:30] RangeError: The value of "offset" is out of range. It must be >= 0 and <= 126. Received 27055 at new NodeError (node:internal/errors:372:5) at boundsError (node:internal/buffer:86:9) at Buffer.readUInt16BE (node:internal/buffer:332:5) at STRUCTURE.readUInt16 (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/structure.js:67:34) at Object.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:132:60) at MESSAGE.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:456:74) at PACKER.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/packer.js:47:37) at Socket.<anonymous> (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/smartglass.js:259:41) at Socket.emit (node:events:527:28) at UDP.onMessage (node:dgram:922:8) [21/06/2022, 12:56:30] [XboxTv] Device: 192.168.1.54 XBOX Series X, Connected. [21/06/2022, 12:56:30] [XboxTv] -------- XBOX Series X -------- [21/06/2022, 12:56:30] [XboxTv] Manufacturer: Microsoft [21/06/2022, 12:56:30] [XboxTv] Model: Model Name [21/06/2022, 12:56:30] [XboxTv] Serialnr: F4000CB61E178405 [21/06/2022, 12:56:30] [XboxTv] Firmware: 10.0.22000 [21/06/2022, 12:56:30] [XboxTv] ---------------------------------- [21/06/2022, 12:56:30] Got SIGTERM, shutting down Homebridge... [21/06/2022, 12:56:30] RangeError: The value of "offset" is out of range. It must be >= 0 and <= 126. Received 27055 at new NodeError (node:internal/errors:372:5) at boundsError (node:internal/buffer:86:9) at Buffer.readUInt16BE (node:internal/buffer:332:5) at STRUCTURE.readUInt16 (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/structure.js:67:34) at Object.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:132:60) at MESSAGE.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:456:74) at PACKER.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/packer.js:47:37) at Socket.<anonymous> (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/smartglass.js:259:41) at Socket.emit (node:events:527:28) at UDP.onMessage (node:dgram:922:8) [21/06/2022, 12:56:31] RangeError: The value of "offset" is out of range. It must be >= 0 and <= 126. Received 27055 at new NodeError (node:internal/errors:372:5) at boundsError (node:internal/buffer:86:9) at Buffer.readUInt16BE (node:internal/buffer:332:5) at STRUCTURE.readUInt16 (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/structure.js:67:34) at Object.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:132:60) at MESSAGE.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:456:74) at PACKER.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/packer.js:47:37) at Socket.<anonymous> (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/smartglass.js:259:41) at Socket.emit (node:events:527:28) at UDP.onMessage (node:dgram:922:8) [21/06/2022, 12:56:31] RangeError: The value of "offset" is out of range. It must be >= 0 and <= 126. Received 27055 at new NodeError (node:internal/errors:372:5) at boundsError (node:internal/buffer:86:9) at Buffer.readUInt16BE (node:internal/buffer:332:5) at STRUCTURE.readUInt16 (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/structure.js:67:34) at Object.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:132:60) at MESSAGE.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:456:74) at PACKER.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/packer.js:47:37) at Socket.<anonymous> (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/smartglass.js:259:41) at Socket.emit (node:events:527:28) at UDP.onMessage (node:dgram:922:8) [21/06/2022, 12:56:32] RangeError: The value of "offset" is out of range. It must be >= 0 and <= 126. Received 27055 at new NodeError (node:internal/errors:372:5) at boundsError (node:internal/buffer:86:9) at Buffer.readUInt16BE (node:internal/buffer:332:5) at STRUCTURE.readUInt16 (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/structure.js:67:34) at Object.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:132:60) at MESSAGE.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:456:74) at PACKER.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/packer.js:47:37) at Socket.<anonymous> (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/smartglass.js:259:41) at Socket.emit (node:events:527:28) at UDP.onMessage (node:dgram:922:8) [21/06/2022, 12:56:32] RangeError: The value of "offset" is out of range. It must be >= 0 and <= 126. Received 27055 at new NodeError (node:internal/errors:372:5) at boundsError (node:internal/buffer:86:9) at Buffer.readUInt16BE (node:internal/buffer:332:5) at STRUCTURE.readUInt16 (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/structure.js:67:34) at Object.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:132:60) at MESSAGE.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:456:74) at PACKER.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/packer.js:47:37) at Socket.<anonymous> (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/smartglass.js:259:41) at Socket.emit (node:events:527:28) at UDP.onMessage (node:dgram:922:8) [21/06/2022, 12:56:33] RangeError: The value of "offset" is out of range. It must be >= 0 and <= 126. Received 27055 at new NodeError (node:internal/errors:372:5) at boundsError (node:internal/buffer:86:9) at Buffer.readUInt16BE (node:internal/buffer:332:5) at STRUCTURE.readUInt16 (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/structure.js:67:34) at Object.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:132:60) at MESSAGE.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/message.js:456:74) at PACKER.unpack (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/packet/packer.js:47:37) at Socket.<anonymous> (/var/lib/homebridge/node_modules/.pnpm/homebridge-xbox-tv@2.2.3/node_modules/homebridge-xbox-tv/src/smartglass.js:259:41) at Socket.emit (node:events:527:28) at UDP.onMessage (node:dgram:922:8) [21/06/2022, 12:56:35] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [21/06/2022, 12:56:40] [HB Supervisor] Restarting Homebridge...
Starting yesterday, Homebridge started restarting constantly and I wondered what could be going on. I opened the Config UI X only to find out the XboxTv Plugin was crashing constantly and making Homebridge restart.
I get this:
[37m[1/8/2022, 11:57:47 AM] [39m[36m[XboxTv][39m Device: 192.168.1.9 Alex's Xbox One X, Connected. [37m[1/8/2022, 11:57:47 AM] [39m[36m[XboxTv][39m -------- Alex's Xbox One X -------- [37m[1/8/2022, 11:57:47 AM] [39m[36m[XboxTv][39m Manufacturer: Microsoft [37m[1/8/2022, 11:57:47 AM] [39m[36m[XboxTv][39m Model: Xbox One X [37m[1/8/2022, 11:57:47 AM] [39m[36m[XboxTv][39m Serialnr: FD005B18A2F0DFE1 [37m[1/8/2022, 11:57:47 AM] [39m[36m[XboxTv][39m Firmware: 10.0.22000 [37m[1/8/2022, 11:57:47 AM] [39m[36m[XboxTv][39m ---------------------------------- [37m[1/8/2022, 11:57:47 AM] [39mGot SIGTERM, shutting down Homebridge... [37m[1/8/2022, 11:57:47 AM] [39m[31mRangeError: The value of "offset" is out of range. It must be >= 0 and <= 318. Received 38875[39m [31m at new NodeError (node:internal/errors:371:5)[39m [31m at boundsError (node:internal/buffer:86:9)[39m [31m at Buffer.readUInt16BE (node:internal/buffer:332:5)[39m [31m at STRUCTURE.readUInt16 (/usr/local/lib/node_modules/homebridge-xbox-tv/src/packet/structure.js:78:34)[39m [31m at Object.unpack (/usr/local/lib/node_modules/homebridge-xbox-tv/src/packet/message.js:127:60)[39m [31m at MESSAGE.unpack (/usr/local/lib/node_modules/homebridge-xbox-tv/src/packet/message.js:456:74)[39m [31m at PACKER.unpack (/usr/local/lib/node_modules/homebridge-xbox-tv/src/packet/packer.js:39:31)[39m [31m at Socket. (/usr/local/lib/node_modules/homebridge-xbox-tv/src/smartglass.js:112:41)[39m
[31m at Socket.emit (node:events:390:28)[39m
[31m at UDP.onMessage (node:dgram:939:8)[39m
Already tried to restart the Mac, restart the Xbox, restart the router, reinstall the plugin, reinstall Homebridge, even tried installing it on Windows. Always getting the same "offset" error.
On the other hand, Homebridge-Smartglass works - the problem is that it's not even half as good as this plug in.
Can't figure out on which side the problem is and how to solve it.