kongkx/homebridge-gree-air-conditioner

Discovery does not work if the ACs are on a different VLAN

Opened this issue · 1 comments

dsylex commented

Describe Your Problem:
Gree AC discovery does not work if the ACs are on a different VLAN. Inter-VLAN routing is properly set up, all other devices communicate.

Default VLAN can communicate with any other VLANs and IoT VLAN can communicate with the internet AND the HUB (raspi4b+)

Scan address is set to the appropriate broadcast address.

Scan runs for set treshhold (10) but still only loads the cached accessories.

Logs:

[31/03/2023, 15:27:13] [Gree AC] Restarting Process...
[31/03/2023, 15:27:14] [Gree AC] Launched child bridge with PID 68982
[31/03/2023, 15:27:14] Registering platform 'homebridge-gree-air-conditioner.GreeAirConditioner'
[31/03/2023, 15:27:14] [Gree AC] Loaded homebridge-gree-air-conditioner v1.3.5 child bridge successfully
[31/03/2023, 15:27:14] Loaded 5 cached accessories from cachedAccessories.0EC8B8613C32.
[31/03/2023, 15:27:14] [Gree AC] Loading accessory from cache: XXXXXXXX5 {
  t: 'dev',
  cid: 'XXXXXXXX5',
  bc: 'gree',
  brand: 'gree',
  catalog: 'gree',
  mac: 'XXXXXXXX5',
  mid: '10001',
  model: 'gree',
  name: '',
  lock: 0,
  series: 'gree',
  vender: '1',
  ver: 'V3.0.0',
  address: '192.168.1.190',
  port: 7000
}
[31/03/2023, 15:27:14] [Gree AC] Loading accessory from cache: XXXXXXXX1 {
  t: 'dev',
  cid: 'XXXXXXXX1',
  bc: '000000000000000000000000000000',
  brand: 'gree',
  catalog: 'gree',
  mac: 'XXXXXXXX1',
  mid: '10001',
  model: 'gree',
  name: '1eb7b74d',
  series: 'gree',
  vender: '1',
  ver: 'V1.2.1',
  lock: 0,
  address: '192.168.1.133',
  port: 7000
}
[31/03/2023, 15:27:14] [Gree AC] Loading accessory from cache: XXXXXXXX2 {
  t: 'dev',
  cid: 'XXXXXXXX2',
  bc: '000000000000000000000000000000',
  brand: 'gree',
  catalog: 'gree',
  mac: 'XXXXXXXX2',
  mid: '10001',
  model: 'gree',
  name: '1eb7b69c',
  series: 'gree',
  vender: '1',
  ver: 'V1.2.1',
  lock: 0,
  address: '192.168.1.100',
  port: 7000
}
[31/03/2023, 15:27:14] [Gree AC] Loading accessory from cache: XXXXXXXX3 {
  t: 'dev',
  cid: 'XXXXXXXX3',
  bc: '000000000000000000000000000000',
  brand: 'gree',
  catalog: 'gree',
  mac: 'XXXXXXXX3',
  mid: '10001',
  model: 'gree',
  name: '1e7616b9',
  series: 'gree',
  vender: '1',
  ver: 'V1.2.1',
  lock: 0,
  address: '192.168.1.194',
  port: 7000
}
[31/03/2023, 15:27:14] [Gree AC] Loading accessory from cache: XXXXXXXX4 {
  t: 'dev',
  cid: 'XXXXXXXX4',
  bc: '00000000000000000000000000000000',
  brand: 'gree',
  catalog: 'gree',
  mac: 'XXXXXXXX4',
  mid: '10001',
  model: 'gree',
  name: '',
  lock: 0,
  series: 'gree',
  vender: '1',
  ver: 'V3.0.0',
  address: '192.168.1.192',
  port: 7000
}
[31/03/2023, 15:27:15] [Gree AC] UDP server bind to 7000
[31/03/2023, 15:27:15] Homebridge v1.6.0 (HAP v0.11.0) (Gree AC) is running on port 37872.
[31/03/2023, 15:27:48] [Gree AC] Scan finished.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

  • Plugin Version:
  • Homebridge Version:
  • Node.js Version:
  • NPM Version:
  • Operating System:
kongkx commented

It may be related to your network topology. You can try setting the broadcast address to 255:255:255:255.