kongkx / homebridge-gree-air-conditioner

Apache License 2.0
20 stars 8 forks source link

Does this only work for APPLE? #29

Open jiapei100 opened 9 months ago

jiapei100 commented 9 months ago

Describe Your Problem: Is there any support for Android ?

Logs:

➜  homebridge-gree-air-conditioner git:(master) ✗ npm run watch  

> homebridge-gree-air-conditioner@1.5.1 watch
> npm run build && npm link && nodemon

> homebridge-gree-air-conditioner@1.5.1 build
> rimraf ./dist && tsc

changed 1 package, and audited 3 packages in 895ms

found 0 vulnerabilities
[nodemon] 2.0.7
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): src/**/* homebridge/config.json
[nodemon] watching extensions: ts
[nodemon] starting `tsc && homebridge -I -D -U ./homebridge`
Initializing HAP-NodeJS v0.9.2...
[2024-01-28, 4:31:02 p.m.] config.json (....../homebridge-gree-air-conditioner/homebridge/config.json) not found.
[2024-01-28, 4:31:02 p.m.] ---
[2024-01-28, 4:31:02 p.m.] The plugin "homebridge-config-ui-x" requires a Homebridge version of ^1.6.0 which does not satisfy the current Homebridge version of 1.3.1. You may need to update this plugin (or Homebridge) to a newer version. You may face unexpected issues or stability problems running this plugin.
[2024-01-28, 4:31:02 p.m.] Loaded plugin: homebridge-config-ui-x@4.55.1
[2024-01-28, 4:31:02 p.m.] Registering platform 'homebridge-config-ui-x.config'
[2024-01-28, 4:31:02 p.m.] ---
[2024-01-28, 4:31:02 p.m.] Loaded plugin: homebridge-gree-air-conditioner@1.5.1
[2024-01-28, 4:31:02 p.m.] Registering platform 'homebridge-gree-air-conditioner.GreeAirConditioner'
[2024-01-28, 4:31:02 p.m.] ---
Preparing Advertiser for 'Homebridge CAD8' using bonjour-hap backend!
Setup Payload:
X-HM://0023ISYWYWVIP
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ XXX-YY-ZZZ │     
    └────────────┘     

Starting to advertise 'Homebridge CAD8' using bonjour-hap backend!
[2024-01-28, 4:31:02 p.m.] Homebridge v1.3.1 (Homebridge) is running on port 39455.

Plugin Config:

My tsconfig.json:

{
  "compilerOptions": {
    "target": "ES2018", // ~node10
    "module": "commonjs",
    "lib": [
      "es2015",
      "es2016",
      "es2017",
      "es2018"
    ],
    "declaration": true,
    "declarationMap": true,
    "sourceMap": true,
    "outDir": "./dist",
    "rootDir": "./src",
    "strict": true,
    "esModuleInterop": true,
    "noImplicitAny": false
  },
  "include": [
    "src/"
  ],
  "exclude": [
    "**/*.spec.ts"
  ]
}

Screenshots:N/A

Environment:

kongkx commented 9 months ago

No. Homebridge is for homekit on iOS. You may use a web control https://github.com/homebridge/homebridge-config-ui-x . Or check home-assistant and search for related plugin if you are using Android

Pei JIA @.***>于2024年1月28日 周日16:39写道:

Describe Your Problem: Is there any support for Android ?

Logs:

➜ homebridge-gree-air-conditioner git:(master) ✗ npm run watch

@.*** watch npm run build && npm link && nodemon

@.*** build rimraf ./dist && tsc

changed 1 package, and audited 3 packages in 895ms

found 0 vulnerabilities [nodemon] 2.0.7 [nodemon] to restart at any time, enter rs [nodemon] watching path(s): src// homebridge/config.json [nodemon] watching extensions: ts [nodemon] starting tsc && homebridge -I -D -U ./homebridge Initializing HAP-NodeJS v0.9.2... [2024-01-28, 4:31:02 p.m.] config.json (....../homebridge-gree-air-conditioner/homebridge/config.json) not found. [2024-01-28, 4:31:02 p.m.] --- [2024-01-28, 4:31:02 p.m.] The plugin "homebridge-config-ui-x" requires a Homebridge version of ^1.6.0 which does not satisfy the current Homebridge version of 1.3.1. You may need to update this plugin (or Homebridge) to a newer version. You may face unexpected issues or stability problems running this plugin. [2024-01-28, 4:31:02 p.m.] Loaded plugin: @. [2024-01-28, 4:31:02 p.m.] Registering platform 'homebridge-config-ui-x.config' [2024-01-28, 4:31:02 p.m.] --- [2024-01-28, 4:31:02 p.m.] Loaded plugin: @.*** [2024-01-28, 4:31:02 p.m.] Registering platform 'homebridge-gree-air-conditioner.GreeAirConditioner' [2024-01-28, 4:31:02 p.m.] --- Preparing Advertiser for 'Homebridge CAD8' using bonjour-hap backend! Setup Payload: X-HM://0023ISYWYWVIP Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐
│ XXX-YY-ZZZ │
└────────────┘

Starting to advertise 'Homebridge CAD8' using bonjour-hap backend! [2024-01-28, 4:31:02 p.m.] Homebridge v1.3.1 (Homebridge) is running on port 39455.

Plugin Config:

My tsconfig.json:

{ "compilerOptions": { "target": "ES2018", // ~node10 "module": "commonjs", "lib": [ "es2015", "es2016", "es2017", "es2018" ], "declaration": true, "declarationMap": true, "sourceMap": true, "outDir": "./dist", "rootDir": "./src", "strict": true, "esModuleInterop": true, "noImplicitAny": false }, "include": [ "src/" ], "exclude": [ "*/.spec.ts" ] }

Screenshots:N/A

Environment:

  • Plugin Version:
  • Homebridge Version: see the above
  • Node.js Version: v20.11.0
  • NPM Version: 10.4.0
  • Operating System: Ubuntu 22.04.3

— Reply to this email directly, view it on GitHub https://github.com/kongkx/homebridge-gree-air-conditioner/issues/29, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXIOODBUMCLZ4FNVPU5HQTYQYFCPAVCNFSM6AAAAABCOAFPA6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDIMBUGEZDMNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>