gree-remote icon indicating copy to clipboard operation
gree-remote copied to clipboard

No devices on Android

Open rjsvieira opened this issue 5 years ago • 2 comments

Hey, I have recently setup a gree air conditioning system and wanted to combine it with some android skills of my own. I've checked out your code and and ran it only to have no devices and no response on the discover method. Could you please provide me with a few simple steps on how to setup the connection between the app and the device? I believe there is something silly and simple escaping my reasoning :)

Remarkable job gathering all this information under this repository! Kind regards,

rjsvieira avatar May 16 '19 18:05 rjsvieira

Hi @rjsvieira,

The current implementation is very simple and may not be usable in all scenarios. It sends out a broadcast packet to the connected network and waits for responses from the active units. Unfortunately, this method won't work if the units are on a different network because most routers keeps broadcast packets in the current network to avoid broadcast storming. Also, these WiFi modules in the AC units are dumb enough to not advertise themselves on multicast addresses.

The only thing comes into my mind is to define a list of networks where the scan should run, or simply look through a range of them, lets say, from 192.168.0.0 to 192.168.255.0, but thats inefficient and slow. That's the reason I've implemented device caching in GreeBlynkBridge to avoid unnecessary overhead of scanning and store the devices.

tomikaa87 avatar Jun 29 '19 09:06 tomikaa87

@rjsvieira connect directly to the AC rhe password is 12345678

uriel-frankel avatar Jan 18 '21 05:01 uriel-frankel

Closing this due to inactivity.

tomikaa87 avatar Aug 30 '22 07:08 tomikaa87