kongkx/homebridge-gree-air-conditioner

Can't see device on Home app

Opened this issue · 4 comments

Describe The Bug:

Can't see device on Home app even though I can see it and fully control from Homebridge app.

To Reproduce:

  1. Install plugin
  2. Enter config details
  3. Restart HB
  4. Open Home app

Expected behavior:

See the Aircon on the app

Logs:

[7/11/2022, 10:58:34 AM] [HB Supervisor] Starting Homebridge with extra flags: -I
[7/11/2022, 10:58:34 AM] [HB Supervisor] Started Homebridge v1.5.0 with PID: 75254
[7/11/2022, 10:58:34 AM] Loaded config.json with 0 accessories and 3 platforms.
[7/11/2022, 10:58:35 AM] Loaded 1 cached accessories from cachedAccessories.
[7/11/2022, 10:58:35 AM] ---
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
[7/11/2022, 10:58:35 AM] Loaded plugin: homebridge-config-ui-x@4.49.0
[7/11/2022, 10:58:35 AM] Registering platform 'homebridge-config-ui-x.config'
[7/11/2022, 10:58:35 AM] ---
[7/11/2022, 10:58:35 AM] Loaded plugin: homebridge-gree-air-conditioner@1.3.0
[7/11/2022, 10:58:35 AM] Registering platform 'homebridge-gree-air-conditioner.GreeAirConditioner'
[7/11/2022, 10:58:35 AM] ---
[7/11/2022, 10:58:35 AM] Loaded plugin: homebridge-tuya-platform@1.5.0
[7/11/2022, 10:58:35 AM] Registering platform 'homebridge-tuya-platform.TuyaPlatform'
[7/11/2022, 10:58:35 AM] ---
[7/11/2022, 10:58:35 AM] Loading 3 platforms...
[7/11/2022, 10:58:35 AM] [TuyaPlatform] Initializing TuyaPlatform platform...
[7/11/2022, 10:58:35 AM] [TuyaPlatform] Initializing child bridge 0E:CC:8A:6E:93:88
[7/11/2022, 10:58:35 AM] [Gree AC] Initializing GreeAirConditioner platform...
[7/11/2022, 10:58:36 AM] [Gree AC] Loading accessory from cache: XXX {
  t: 'dev',
  cid: 'XXX',
  bc: '',
  brand: 'gree',
  catalog: 'gree',
  mac: 'XXX',
  mid: '10001',
  model: 'gree',
  name: 'XXX',
  series: 'gree',
  vender: '1',
  ver: 'V1.2.1',
  lock: 0,
  address: '192.168.0.140',
  port: 7000
}
Setup Payload:
X-HM://XXX
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ XXX-XX-XXX │     
    └────────────┘     
                       
[7/11/2022, 10:58:36 AM] [Gree AC] UDP server bind to 7002
[7/11/2022, 10:58:36 AM] Homebridge v1.5.0 (HAP v0.10.2) (Homebridge 13BD) is running on port 51350.
[7/11/2022, 10:58:36 AM] [TuyaPlatform] Launched child bridge with PID 75260
[7/11/2022, 10:58:36 AM] Registering platform 'homebridge-tuya-platform.TuyaPlatform'
[7/11/2022, 10:58:36 AM] [TuyaPlatform] Loaded homebridge-tuya-platform v1.5.0 child bridge successfully
[7/11/2022, 10:58:36 AM] Loaded 8 cached accessories from cachedAccessories.XXXX.
[7/11/2022, 10:58:36 AM] Homebridge v1.5.0 (HAP v0.10.2) (TuyaPlatform) is running on port 57816.
[7/11/2022, 10:58:39 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Device binded. XXXX
[7/11/2022, 10:58:39 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:58:35"}
[7/11/2022, 10:58:42 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:58:38"}
[7/11/2022, 10:58:45 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:58:41"}
[7/11/2022, 10:58:48 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:58:44"}
[7/11/2022, 10:58:51 AM] [Gree AC] [502cc681905f -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:58:47"}
[7/11/2022, 10:58:54 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:58:50"}
[7/11/2022, 10:58:57 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:58:53"}
[7/11/2022, 10:59:00 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:58:56"}
[7/11/2022, 10:59:03 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:58:59"}
[7/11/2022, 10:59:06 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:59:02"}
[7/11/2022, 10:59:09 AM] [Gree AC] Scan finished.
[7/11/2022, 10:59:09 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:59:05"}
[7/11/2022, 10:59:12 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:59:08"}
[7/11/2022, 10:59:15 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:59:11"}
[7/11/2022, 10:59:18 AM] [Gree AC] [XXX -- 192.168.0.140:7000] Update Status: {"Pow":1,"Mod":4,"SetTem":21,"TemSen":61,"TemUn":0,"TemRec":1,"WdSpd":0,"SwingLfRig":0,"SwUpDn":0,"Blo":0,"Lig":1,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2022-07-11 10:59:14"}

Plugin Config:

{
    "bridge": {
        "name": "Homebridge 13BD",
        "username": "XXX",
        "port": 51350,
        "pin": "XXX",
        "advertiser": "ciao", // also tried Bonjour, no luck.
        "bind": [
            "en0"
        ]
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "dark-mode",
            "tempUnits": "c",
            "lang": "auto",
            "platform": "config"
        },
        {
            "options": {
                "username": "XXX@gmail.com",
                "password": "XXX,
                "accessId": "XXX",
                "accessKey": "XXX",
                "lang": "en",
                "projectType": "2",
                "appSchema": "smartlife",
                "countryCode": "XX",
                "debug": false
            },
            "name": "TuyaPlatform",
            "platform": "TuyaPlatform",
            "_bridge": {
                "username": "XXX",
                "port": 57816
            }
        },
        {
            "name": "Gree AC",
            "language": "en",
            "port": 7002,
            "scanAddress": "192.168.0.255",
            "defaultValue": {
                "statusUpdateInterval": 3,
                "sensorOffset": 40,
                "defaultSpeed": 3,
                "defaultVerticalSwing": 0,
                "defaultHorizontalSwing": 0
            },
            "devices": [
                {
                    "mac": "XXX@",
                    "sensorOffset": 40,
                    "defaultSpeed": 3
                }
            ],
            "platform": "GreeAirConditioner"
        }
    ],
    "disabledPlugins": []
}

Screenshots:

Environment:

  • Plugin Version: v1.3.0
  • Homebridge Version: 1.5.0
  • Node.js Version: 16.15.1
  • NPM Version: 8.11.0
  • Operating System: macOS

I'm sorry, I could not reproduce this situation. It seems to be fine according to the log. You may need to do some debug by yourself.

  1. check if it is "cache" issue from HomeKit App. Remove bridge accessory from your HomeKit APP and readd the bridge by scanning homebridge qrcode.
  2. check if the plugins works fine independently. Enable them one by one.
  3. if all plugins work fine independently, enable two of them to check if there is conflict between plugins.

Thanks for your reply, @kongkx.
I've removed all other plugins and can now see extra options on Homebridge. Still can't see it on Apple Home app tho, I'll try re-adding the bridge.

Btw, is isit normal to see all this options separately? No way to bundle them into one accessory?
image

Thanks again!

I'm running into the same issue. Were you able to get it fixed?