homebridge-smartglass
homebridge-smartglass copied to clipboard
Switch with app selector shows up in Home App, but doesn't work properly
So I figured out how to add the Xbox control switch to my home app. It has to happen manually. Took me a while :)
Anyway, it now in my home app. Here is what happens.
Let's say the xbox is on, and I click the power button, Nothing happens. However, that's that. When I press the button again it will not power on, but produce an error code in the log: [1/17/2023, 2:41:07 PM] [homebridge-smartglass] Failed to turn off xbox using xbox api: { status: 404, body: '{\r\n' + ' "status": {\r\n' + ' "errorCode": "ErrorWNSTempDisconnected",\r\n' + ' "errorMessage": "Xbox temporarily disconnected from WNS"\r\n' + ' },\r\n' + ' "result": null,\r\n' + ' "uiText": null,\r\n' + ' "destination": null,\r\n' + ' "userInfo": null,\r\n' + ' "opId": "fbefea22-b0d5-4c38-840b-xxxxxxxxxxxxxx"\r\n' + '}' } Error: from server 192.168.0.3:61082 Error: connect ECONNREFUSED 192.168.0.3:61082 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) { errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '192.168.0.3', port: 61082 }
When I try to switch between apps it seems to work in Home App, but it doesn't work in Xbox. Seeing the following errors in the log:
' },\r\n' +
' "result": null,\r\n' +
' "uiText": null,\r\n' +
' "destination": null,\r\n' +
' "userInfo": null,\r\n' +
' "opId": "00aeb7e2-ccda-44d6-9ce0-xxxxxxxxxxxxxxx"\r\n' +
'}'
} Error: from server 192.168.0.3:61057 Error: connect ECONNREFUSED 192.168.0.3:61057 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) { errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '192.168.0.3', port: 61057 } [1/17/2023, 2:26:54 PM] [homebridge-smartglass] Rejected app launch (launchApp) { status: 404, body: '{\r\n' + ' "status": {\r\n' + ' "errorCode": "ErrorWNSTempDisconnected",\r\n' + ' "errorMessage": "Xbox temporarily disconnected from WNS"\r\n' + ' },\r\n' + ' "result": null,\r\n' + ' "uiText": null,\r\n' + ' "destination": null,\r\n' + ' "userInfo": null,\r\n' + ' "opId": "ec7c3e16-b854-41f7-b1bc-xxxxxxxxxxxxxxx"\r\n' + '}' } [1/17/2023, 2:27:04 PM] [homebridge-smartglass] Rejected app launch (launchApp) { status: 404, body: '{\r\n' + ' "status": {\r\n' + ' "errorCode": "ErrorWNSTempDisconnected",\r\n' + ' "errorMessage": "Xbox temporarily disconnected from WNS"\r\n' + ' },\r\n' + ' "result": null,\r\n' + ' "uiText": null,\r\n' + ' "destination": null,\r\n' + ' "userInfo": null,\r\n' + ' "opId": "dadbf85f-897b-4281-84d2-xxxxxxxxxxxxxxx"\r\n' + '}' } Error: from server 192.168.0.3:61082 Error: connect ECONNREFUSED 192.168.0.3:61082 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) { errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '192.168.0.3', port: 61082 } [1/17/2023, 2:27:20 PM] [homebridge-smartglass] Rejected app launch (launchApp) { status: 404, body: '{\r\n' + ' "status": {\r\n' + ' "errorCode": "ErrorWNSTempDisconnected",\r\n' + ' "errorMessage": "Xbox temporarily disconnected from WNS"\r\n' + ' },\r\n' + ' "result": null,\r\n' + ' "uiText": null,\r\n' + ' "destination": null,\r\n' + ' "userInfo": null,\r\n' + ' "opId": "0667c604-4231-41ce-b89a-xxxxxxxxxxxx"\r\n' + '}' } Error: from server 192.168.0.3:61057 Error: connect ECONNREFUSED 192.168.0.3:61057 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) { errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '192.168.0.3', port: 61057 }
Also, once it stops responding I can't even turn it off anymore: [1/17/2023, 2:34:27 PM] [homebridge-smartglass] Failed to turn off xbox using xbox api: { status: 404, body: '{\r\n' + ' "status": {\r\n' + ' "errorCode": "ErrorWNSTempDisconnected",\r\n' + ' "errorMessage": "Xbox temporarily disconnected from WNS"\r\n' + ' },\r\n' + ' "result": null,\r\n' + ' "uiText": null,\r\n' + ' "destination": null,\r\n' + ' "userInfo": null,\r\n' + ' "opId": "59deec91-efbe-4170-b127-xxxxxxxxxxxxx"\r\n' + '}' } Error: from server 192.168.0.3:61057 Error: connect ECONNREFUSED 192.168.0.3:61057 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) { errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '192.168.0.3', port: 61057 }