gree-remote
gree-remote copied to clipboard
AC not found
Hi
I’m trying to use a Python version on linux. I try to discover my AC in the network but it returns nothing.
python3 gree.py -b 192.168.2.255 search
Searching for devices using broadcast address: 192.168.2.255
Search finished, found 0 device(s)
I used tcpdump in my network. It seem that it produces correct request as described in documentation but my AC does not answer.
I captured also communication between my AC and some server (I guess in China) which happens when I’m controlling my AC from Android app. The messages looks also as you describe in the documentation. However, it uses TCP (not UDP) and uses port 64065 at AC side.
I tried also port scanning in my network and played with ARPs. AC replies to ARP. But seems not to have open ports at all.
Tried also to modify a bit gree.py to use actual MAC and IP of my device (instead of broadcast). Also nothing.
My AC communicates with Android app without any problem.
Do you have any idea of what I’m doing wrong?
Hi @rstankie74,
It's suspicious that the AC unit doesn't seem to have open ports and it also doesn't reply if you send commands directly to its IP and MAC. Since the app communicates with the server instead of the AC unit directly, it's possible that this model doesn't support controlling locally, which is a shame since it must speak to random servers in China. You can try modifying the script to talk to that TCP 64065 port to find out if they just mapped the local protocol to another port, but I'm afraid it won't be that easy. It's possible that the protocol is changed as well. Can you check if the app has a local-only mode (maybe if the internet connection is down on the network) that uses that port? Or it just complains about the absence of internet connection?
Closing this due to inactivity.