NorthernMan54 / homebridge-tcc

Honeywell Total Connect Comfort support for Homebridge
62 stars 23 forks source link

No device created #121

Closed white8398 closed 1 year ago

white8398 commented 1 year ago

This worked form me for a year then with the latest Homebridge I have tried installing on several plateforms (windows, PI) I get the same error and it forces a restart of my homebridge server.

running a PI Zero W 64MG

Error: GetLocations Error: AxiosError: Request failed with status code 500 at settle (/var/lib/homebridge/node_modules/homebridge-tcc/node_modules/axios/lib/core/settle.js:19:12) at IncomingMessage.handleStreamEnd (/var/lib/homebridge/node_modules/homebridge-tcc/node_modules/axios/lib/adapters/http.js:512:11) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1359:12) at processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'ERR_BAD_RESPONSE', config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 10000, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: AxiosHeaders { Accept: '/', 'Content-Type': 'text/xml;charset=UTF-8', 'user-agent': 'TCCStageC/1092 CFNetwork/1125.2 Darwin/19.4.0', ADRUM: 'isAjax:true', 'Accept-Language': 'en-ca', 'Accept-Encoding': 'gzip, deflate, br', ADRUM_1: 'isMobile:true', soapAction: 'http://services.alarmnet.com/Services/MobileV2/GetLocations', 'Content-Length': '390' }, method: 'post', url: 'https://tccna.honeywell.com/ws/MobileV2.asmx', data: '<?xml version="1.0" encoding="utf-8"?>7F1ACBA0-F0BF-4A01-B83C-E8F45450A803</soap:Body></soap:Envelope>' }, request: <ref 1> ClientRequest { _events: [Object: null prototype] { abort: [Function (anonymous)], aborted: [Function (anonymous)], connect: [Function (anonymous)], error: [Function (anonymous)], socket: [Function (anonymous)], timeout: [Function (anonymous)], finish: [Function: requestOnFinish] }, _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '390', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, socket: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'tccna.honeywell.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype], _eventsCount: 10, connecting: false, _hadError: false, _parent: null, _host: 'tccna.honeywell.com', _closeAfterHandlingError: false, _readableState: [ReadableState], _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: [TLSWrap], _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular 1], timeout: 10000,

  [Symbol(verified)]: true,
  [Symbol(pendingSession)]: null,
  [Symbol(async_id_symbol)]: 110,
  [Symbol(kHandle)]: [TLSWrap],
  [Symbol(lastWriteQueueSize)]: 0,
  [Symbol(timeout)]: Timeout {
    _idleTimeout: 10000,
    _idlePrev: [TimersList],
    _idleNext: [TimersList],
    _idleStart: 51284,
    _onTimeout: [Function: bound ],
    _timerArgs: undefined,
    _repeat: null,
    _destroyed: false,
    [Symbol(refed)]: false,
    [Symbol(kHasPrimitive)]: false,
    [Symbol(asyncId)]: 118,
    [Symbol(triggerId)]: 113
  },
  [Symbol(kBuffer)]: null,
  [Symbol(kBufferCb)]: null,
  [Symbol(kBufferGen)]: null,
  [Symbol(kCapture)]: false,
  [Symbol(kSetNoDelay)]: false,
  [Symbol(kSetKeepAlive)]: true,
  [Symbol(kSetKeepAliveInitialDelay)]: 60,
  [Symbol(kBytesRead)]: 0,
  [Symbol(kBytesWritten)]: 0,
  [Symbol(connect-options)]: [Object]
},
_header: 'POST /ws/MobileV2.asmx HTTP/1.1\r\n' +
  'Accept: */*\r\n' +
  'Content-Type: text/xml;charset=UTF-8\r\n' +
  'user-agent: TCCStageC/1092 CFNetwork/1125.2 Darwin/19.4.0\r\n' +
  'ADRUM: isAjax:true\r\n' +
  'Accept-Language: en-ca\r\n' +
  'Accept-Encoding: gzip, deflate, br\r\n' +
  'ADRUM_1: isMobile:true\r\n' +
  'soapAction: http://services.alarmnet.com/Services/MobileV2/GetLocations\r\n' +
  'Content-Length: 390\r\n' +
  'Host: tccna.honeywell.com\r\n' +
  'Connection: close\r\n' +
  '\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
  _events: [Object: null prototype],
  _eventsCount: 2,
  _maxListeners: undefined,
  defaultPort: 443,
  protocol: 'https:',
  options: [Object: null prototype],
  requests: [Object: null prototype] {},
  sockets: [Object: null prototype],
  freeSockets: [Object: null prototype] {},
  keepAliveMsecs: 1000,
  keepAlive: false,
  maxSockets: Infinity,
  maxFreeSockets: 256,
  scheduling: 'lifo',
  maxTotalSockets: Infinity,
  totalSocketCount: 1,
  maxCachedSessions: 100,
  _sessionCache: [Object],
  [Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/ws/MobileV2.asmx',
_ended: true,
res: IncomingMessage {
  _readableState: [ReadableState],
  _events: [Object: null prototype],
  _eventsCount: 4,
  _maxListeners: undefined,
  socket: [TLSSocket],
  httpVersionMajor: 1,
  httpVersionMinor: 1,
  httpVersion: '1.1',
  complete: true,
  rawHeaders: [Array],
  rawTrailers: [],
  aborted: false,
  upgrade: false,
  url: '',
  method: null,
  statusCode: 500,
  statusMessage: 'Internal Server Error',
  client: [TLSSocket],
  _consuming: false,
  _dumped: false,
  req: [Circular *1],
  responseUrl: 'https://tccna.honeywell.com/ws/MobileV2.asmx',
  redirects: [],
  [Symbol(kCapture)]: false,
  [Symbol(kHeaders)]: [Object],
  [Symbol(kHeadersCount)]: 18,
  [Symbol(kTrailers)]: null,
  [Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'tccna.honeywell.com',
protocol: 'https:',
_redirectable: Writable {
  _writableState: [WritableState],
  _events: [Object: null prototype],
  _eventsCount: 3,
  _maxListeners: undefined,
  _options: [Object],
  _ended: true,
  _ending: true,
  _redirectCount: 0,
  _redirects: [],
  _requestBodyLength: 390,
  _requestBodyBuffers: [],
  _onNativeResponse: [Function (anonymous)],
  _currentRequest: [Circular *1],
  _currentUrl: 'https://tccna.honeywell.com/ws/MobileV2.asmx',
  _timeout: null,
  [Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kEndCalled)]: true,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
  accept: [Array],
  'content-type': [Array],
  'user-agent': [Array],
  adrum: [Array],
  'accept-language': [Array],
  'accept-encoding': [Array],
  adrum_1: [Array],
  soapaction: [Array],
  'content-length': [Array],
  host: [Array]
},
[Symbol(kUniqueHeaders)]: null

}, response: { status: 500, statusText: 'Internal Server Error', headers: AxiosHeaders { 'cache-control': 'private', 'content-type': 'text/xml; charset=utf-8', server: 'Microsoft-IIS/8.5', 'x-xss-protection': '1; mode=block', 'x-content-type-options': 'nosniff', date: 'Tue, 17 Jan 2023 21:29:10 GMT', connection: 'close', 'content-length': '1035', 'set-cookie': [Array] }, config: { transitional: [Object], adapter: [Array], transformRequest: [Array], transformResponse: [Array], timeout: 10000, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: [Object], validateStatus: [Function: validateStatus], headers: [AxiosHeaders], method: 'post', url: 'https://tccna.honeywell.com/ws/MobileV2.asmx', data: '<?xml version="1.0" encoding="utf-8"?>7F1ACBA0-F0BF-4A01-B83C-E8F45450A803</soap:Body></soap:Envelope>' }, request: <ref 1> ClientRequest { _events: [Object: null prototype], _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '390', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, socket: [TLSSocket], _header: 'POST /ws/MobileV2.asmx HTTP/1.1\r\n' + 'Accept: /*\r\n' + 'Content-Type: text/xml;charset=UTF-8\r\n' + 'user-agent: TCCStageC/1092 CFNetwork/1125.2 Darwin/19.4.0\r\n' + 'ADRUM: isAjax:true\r\n' + 'Accept-Language: en-ca\r\n' + 'Accept-Encoding: gzip, deflate, br\r\n' + 'ADRUM_1: isMobile:true\r\n' + 'soapAction: http://services.alarmnet.com/Services/MobileV2/GetLocations\r\n' + 'Content-Length: 390\r\n' + 'Host: tccna.honeywell.com\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: [Agent], socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/ws/MobileV2.asmx', _ended: true, res: [IncomingMessage], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'tccna.honeywell.com', protocol: 'https:', _redirectable: [Writable],

  [Symbol(kBytesWritten)]: 0,
  [Symbol(kEndCalled)]: true,
  [Symbol(kNeedDrain)]: false,
  [Symbol(corked)]: 0,
  [Symbol(kOutHeaders)]: [Object: null prototype],
  [Symbol(kUniqueHeaders)]: null
},
data: '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Server was unable to process request. ---&gt; An exception has been raised that is likely due to a transient failure. If you are connecting to a SQL Azure database consider using SqlAzureExecutionStrategy. ---&gt; The underlying provider failed on Open. ---&gt; An exception has been raised that is likely due to a transient failure. If you are connecting to a SQL Azure database consider using SqlAzureExecutionStrategy. ---&gt; A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) ---&gt; The specified network name is no longer available</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>'

} } [17/01/2023, 16:29:12] [Thermostat] Critical Error - No devices created, please restart. [17/01/2023, 16:29:12] [Thermostat] AxiosError: Request failed with status code 500

Config: { "name": "Thermostat", "username": "xxx", "password": "xxx", "refresh": 1212, "storage": "fs", "platform": "tcc", "_bridge": { "username": "0E:D9:E9:21:D7:EF", "port": 32397 }

white8398 commented 1 year ago

Sorry - reviewed my settings in the (https://www.mytotalconnectcomfort.com/) website and had an error in the setup so that resolved this issue with adding the device.

NorthernMan54 commented 1 year ago

Tks