cbrandlehner / homebridge-daikin-local

Supports Daikin Air Conditioners on HomeBridge
MIT License
101 stars 18 forks source link

Support for Brazilian version of the app. #354

Open fadsm opened 9 months ago

fadsm commented 9 months ago

Is your feature request related to a problem? Please describe. The Brazilian version of the app, does generates a ECONNEREFUSED error.

[1/5/2024, 2:43:32 AM] [Daikin Quarto] _doSendGetRequest: ERROR: API request to http://192.168.1.23/common/basic_info returned error Error: connect ECONNREFUSED 192.168.1.23:80
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.1.23',
  port: 80,
  response: undefined,
  retries: 5

Both http://192.168.1.23/aircon/get_model_info and http://192.168.1.23/skyfi/aircon/get_model_info retrieves Page Not Found.

I'm pretty sure that the Brazilian version of the app doesn't utilize the default skyfi or aircon. Inspecting the network traffic (HAR attached below), I can see that the app is sending requests to a domain called iotlabs.co.in which seem to be a third-party for the app coding.

Anyway, here's the HARs: har_files.zip

It seems that the AC is managed by sending POST requests to /managething and checking the device status with a POST request to /active.

Please let me know if you need any further information or a new HAR file.

Again, THANKS for coding this amazing plugin! If I can buy you a coffee, just give me the link ❤️

fadsm commented 9 months ago

https://github.com/cbrandlehner/homebridge-daikin-local/issues/123#issuecomment-1309105418