RaresAil / homebridge-tp-link-tapo

A platform to implement the tp-link tapo device and Adaptive Lighting for light bulbs
https://www.npmjs.com/package/homebridge-tp-link-tapo
Apache License 2.0
66 stars 5 forks source link

is the Hub H200 & TP-LINK Tapo Smart Temperature & Humidity T310 supported??? #74

Closed cohen-sydney closed 4 months ago

cohen-sydney commented 10 months ago

Describe The Bug

is the Hub H200 & TP-LINK Tapo Smart Temperature & Humidity T310 supported???

Expected behavior

is the Hub H200 & TP-LINK Tapo Smart Temperature & Humidity T310 supported???

Logs

none

Plugin Config

by ip

Plugin Version

latest

Homebridge Version

1.7

Node.js Version

2

NPM Version

2

Operating System

raspian

RaresAil commented 10 months ago

Hey, sadly only Hub 100 works, you can try to see if 200 works but i am not sure if is using a different API, as for the temp/hum, there no support as i am very busy at this time

cohen-sydney commented 10 months ago

200 does not work neither the 310. sadly. any time frame you think to add these?? I know your probably very busy.

RaresAil commented 10 months ago

200 does not work neither the 310. sadly.

any time frame you think to add these?? I know your probably very busy.

For the 200, what are the logs?

cohen-sydney commented 10 months ago

only thing I see in the main log onscreen is [17/11/2023, 18:57:24] [TPLink Tapo Platform] Initializing HomebridgeTPLinkTapo platform...

is there some other Log you need.?? config is standard with the IP address of the H200.

cohen-sydney commented 10 months ago

I did get an error

[17/11/2023, 19:06:05] [TPLink Tapo Platform] Error sending command: deviceInfo AxiosError: connect ETIMEDOUT 192.168.123.134:80 at Function.AxiosError.from (/var/lib/homebridge/node_modules/homebridge-tp-link-tapo/node_modules/axios/lib/core/AxiosError.js:89:14) at RedirectableRequest.handleRequestError (/var/lib/homebridge/node_modules/homebridge-tp-link-tapo/node_modules/axios/lib/adapters/http.js:593:25) at RedirectableRequest.emit (node:events:514:28) at ClientRequest.eventHandlers. (/var/lib/homebridge/node_modules/homebridge-tp-link-tapo/node_modules/follow-redirects/index.js:14:24) at ClientRequest.emit (node:events:514:28) at Socket.socketErrorListener (node:_http_client:495:9) at Socket.emit (node:events:514:28) at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at processTicksAndRejections (node:internal/process/task_queues:82:21) { port: 80, address: '192.168.123.134', syscall: 'connect', code: 'ETIMEDOUT', errno: -110, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: 'http', transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: Object [AxiosHeaders] { Accept: 'application/json, text/plain, /', 'Content-Type': 'application/json', 'User-Agent': 'axios/1.5.0', 'Content-Length': '352', 'Accept-Encoding': 'gzip, compress, deflate, br' }, httpAgent: Agent { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, defaultPort: 80, protocol: 'http:', 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,

},
method: 'post',
url: 'http://192.168.123.134/app',
data: '{"method":"handshake","params":{"key":"-----BEGIN PUBLIC KEY-----removed by user.  n-----END PUBLIC KEY-----\\n"},"requestTimeMils":1700208234030}'

}, request: <ref *1> Writable { _writableState: WritableState { state: 802924, highWaterMark: 16384, defaultEncoding: 'utf8', length: 0, corked: 0, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, pendingcb: 0, errored: null,

},
_events: [Object: null prototype] {
  response: [Function: handleResponse],
  error: [Function: handleRequestError],
  socket: [Function: handleRequestSocket]
},
_eventsCount: 3,
_maxListeners: undefined,
_options: {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/app',
  method: 'POST',
  headers: [Object: null prototype],
  agents: [Object],
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: [Object],
  hostname: '192.168.123.134',
  port: '',
  agent: [Agent],
  nativeProtocols: [Object],
  pathname: '/app'
},
_ended: false,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 352,
_requestBodyBuffers: [ [Object] ],
_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: true,
  sendDate: false,
  _removedConnection: false,
  _removedContLen: false,
  _removedTE: false,
  strictContentLength: false,
  _contentLength: '352',
  _hasBody: true,
  _trailer: '',
  finished: false,
  _headerSent: true,
  _closed: false,
  socket: [Socket],
  _header: 'POST /app HTTP/1.1\r\n' +
    'Accept: application/json, text/plain, */*\r\n' +
    'Content-Type: application/json\r\n' +
    'User-Agent: axios/1.5.0\r\n' +
    'Content-Length: 352\r\n' +
    'Accept-Encoding: gzip, compress, deflate, br\r\n' +
    'Host: 192.168.123.134\r\n' +
    'Connection: close\r\n' +
    '\r\n',
  _keepAliveTimeout: 0,
  _onPendingData: [Function: nop],
  agent: [Agent],
  socketPath: undefined,
  method: 'POST',
  maxHeaderSize: undefined,
  insecureHTTPParser: undefined,
  joinDuplicateHeaders: undefined,
  path: '/app',
  _ended: false,
  res: null,
  aborted: false,
  timeoutCb: null,
  upgradeOrConnect: false,
  parser: null,
  maxHeadersCount: null,
  reusedSocket: false,
  host: '192.168.123.134',
  protocol: 'http:',
  _redirectable: [Circular *1],
  [Symbol(kCapture)]: false,
  [Symbol(kBytesWritten)]: 0,
  [Symbol(kNeedDrain)]: false,
  [Symbol(corked)]: 0,
  [Symbol(kOutHeaders)]: [Object: null prototype],
  [Symbol(errored)]: null,
  [Symbol(kHighWaterMark)]: 16384,
  [Symbol(kRejectNonStandardBodyWrites)]: false,
  [Symbol(kUniqueHeaders)]: null
},
_currentUrl: 'http://192.168.123.134/app',
[Symbol(kCapture)]: false

}, cause: Error: connect ETIMEDOUT 192.168.123.134:80 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) { errno: -110, code: 'ETIMEDOUT', syscall: 'connect', address: '192.168.123.134', port: 80 } } [17/11/2023, 19:06:05] [TPLink Tapo Platform] Failed to get info about: 192.168.123.134

warmo1 commented 10 months ago

Hi, I have an H100 hub with a couple of temp /humidity sensors. they don't appear to come through cleanly get the following message. Do I need to config anything

Failed to register child accessory "ccc Room" of type "Unknown" (SMART.TAPOSENSOR)

RaresAil commented 10 months ago

Hey, they are not supported yet

RaresAil commented 4 months ago

Tapo added support for matter even in H100, so all the hubs will no longer receive any updates