Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not supporting SSL / HTTPS. #3

Open
prawnPANDI opened this issue Feb 28, 2023 · 7 comments
Open

Not supporting SSL / HTTPS. #3

prawnPANDI opened this issue Feb 28, 2023 · 7 comments

Comments

@prawnPANDI
Copy link

prawnPANDI commented Feb 28, 2023

Looks like the latest firmware only supports SSL / HTTPS connections. Does the plugin support HTTPS?

[2/28/2023, 10:15:31 PM] [Daikin Smart ACs] AxiosError: connect ECONNREFUSED 192.168.1.26:80 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1487:16) { port: 80, address: '192.168.1.26', syscall: 'connect', code: 'ECONNREFUSED', errno: -111, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [Function: httpAdapter], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function] }, validateStatus: [Function: validateStatus], headers: { Accept: 'application/json, text/plain, */*', 'User-Agent': 'axios/0.27.2' }, method: 'get', url: 'http://192.168.1.26/common/basic_info', data: undefined }, request: <ref *1> Writable { _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: false, decodeStrings: true, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: true, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 0, constructed: true, prefinished: false, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: false, closeEmitted: false, [Symbol(kOnFinished)]: [] }, _events: [Object: null prototype] { response: [Function: handleResponse], error: [Function: handleRequestError], socket: [Function: handleRequestSocket] }, _eventsCount: 3, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: 10485760, protocol: 'http:', path: '/common/basic_info', method: 'GET', headers: [Object], agent: undefined, agents: [Object], auth: undefined, hostname: '192.168.1.26', port: null, nativeProtocols: [Object], pathname: '/common/basic_info' }, _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _onNativeResponse: [Function (anonymous)], _currentRequest: 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: false, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, socket: [Socket], _header: 'GET /common/basic_info HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'User-Agent: axios/0.27.2\r\n' + 'Host: 192.168.1.26\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: [Agent], socketPath: undefined, method: 'GET', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/common/basic_info', _ended: false, res: null, aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: '192.168.1.26', protocol: 'http:', _redirectable: [Circular *1], [Symbol(kCapture)]: false, [Symbol(kBytesWritten)]: 0, [Symbol(kEndCalled)]: true, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype], [Symbol(errored)]: null, [Symbol(kUniqueHeaders)]: null }, _currentUrl: 'http://192.168.1.26/common/basic_info', [Symbol(kCapture)]: false } }

@RaresAil
Copy link
Owner

RaresAil commented Mar 5, 2023

Hey, does your AC have a password?

@prawnPANDI
Copy link
Author

prawnPANDI commented Mar 5, 2023 via email

@homoky
Copy link

homoky commented Jun 12, 2023

Have you get it working @prawnPANDI ?

@prawnPANDI
Copy link
Author

I am using Home Assistant. Haven’t tried again with HomeBridge.

@homoky
Copy link

homoky commented Jun 12, 2023

Ok. Thanks for info. Can here please link a integration that you use for Home Assistant?

@prawnPANDI
Copy link
Author

https://www.home-assistant.io/integrations/daikin/

@RaresAil
Copy link
Owner

I will add a configuration option to switch to https

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants