New Gree Air Conditioner Binding

Hi @zhivka.dimova . I have the same problem after upgrading the WIFI module to version 1.23:

This is in the log:
23:23:58.105 [DEBUG] [ing.gree.internal.handler.GreeHandler] - 502cc6d14239: Re-initialize device
23:23:58.106 [DEBUG] [e.internal.discovery.GreeDeviceFinder] - Sending scan packet to 10.0.0.46
23:23:58.223 [DEBUG] [e.internal.discovery.GreeDeviceFinder] - Response received from address 10.0.0.46: {“t”:“dev”,“cid”:“502cc6d14239”,“bc”:“00000000000000000000000000000000”,“brand”:“gree”,“catalog”:“gree”,“mac”:“502cc6d14239”,“mid”:“10001”,“model”:“gree”,“name”:“”,“lock”:0,“series”:“gree”,“vender”:“1”,“ver”:“V2.0.0”,“ModelType”:“32792”,“hid”:“362001065279+U-WB05RT13V1.23.bin”}
23:23:58.224 [DEBUG] [e.internal.discovery.GreeDeviceFinder] - Discovered device at 10.0.0.46:7000
23:23:59.742 [DEBUG] [ing.gree.internal.handler.GreeHandler] - 502cc6d14139: Re-initialize device
23:23:59.744 [DEBUG] [e.internal.discovery.GreeDeviceFinder] - Sending scan packet to 10.0.0.44
23:23:59.861 [DEBUG] [e.internal.discovery.GreeDeviceFinder] - Response received from address 10.0.0.44: {“t”:“dev”,“cid”:“502cc6d14139”,“bc”:“00000000000000000000000000000000”,“brand”:“gree”,“catalog”:“gree”,“mac”:“502cc6d14139”,“mid”:“10001”,“model”:“gree”,“name”:“”,“lock”:0,“series”:“gree”,“vender”:“1”,“ver”:“V2.0.0”,“ModelType”:“32792”,“hid”:“362001065279+U-WB05RT13V1.23.bin”}
23:23:59.863 [DEBUG] [e.internal.discovery.GreeDeviceFinder] - Discovered device at 10.0.0.44:7000
23:24:10.298 [INFO ] [ing.gree.internal.handler.GreeHandler] - 502cc6d13a55: Thing initialization failed: Unable to bind to device
23:24:12.240 [INFO ] [ing.gree.internal.handler.GreeHandler] - 502cc6d14239: Thing initialization failed: Unable to bind to device
23:24:13.880 [INFO ] [ing.gree.internal.handler.GreeHandler] - 502cc6d14139: Thing initialization failed: Unable to bind to device

Faced same issue with v1.23 on Gree AC and OH 4.2.1 - AC easily found, but connection status COMM : ERROR. Is there any solution ? or maybe possible to downgrade v1.23 to v1.17 - as far i know that this is last version that worked well.

1 Like

Hello, can you try to use the (python)[ gree-remote/PythonCLI/gree.py at master · tomikaa87/gree-remote · GitHub] script to communicate with you AC and show me the responses your AC returns for search and if you manage to get the key also for get. When you use the script please use -verbose option.

Hi, this is the response for the search. I don’t know how to get the key.

 /usr/bin/python /var/lib/openhab/etc/scripts/gree.py -b 10.0.0.46 --verbose search
Searching for devices using broadcast address: 10.0.0.46
search_devices: data=b'{"t":"pack","i":1,"uid":0,"cid":"","tcid":"","pack":"LP24Ek0OaYogxs3iQLjL4KBq5C5iG0d/NC9mm5YSYhCMa9lM2RqI/KytvJ32IsGSZXrOr+MakVzzXHbghPeyiui/giRwi/22P1NeJSbhyoDt21IYC5nmTB0FSNCtGSQC/vUbYWZgrfE+TvZwEoeeG6oKYWAQQGLmDA/BTf/kbgwJPRFZzjLrUDkhvMjz32yVMkOVsFsTAafzePY7qSehbZIhsbG6Ck8X1+GBAEqEtdxSARmdHzsfl0hV7CQKMyULqf7+wHqDf2mz9uzNFv2ejQPpn0gG1yCMDrcqGdH2dZ/aQZM3xU7NrlE38PT7UzxFphjtFkYpY2Dv1B44KKRYoLybZ8FWnX20sgLv9snTMGCsH6bNGMeBkcgCC2vvIqV6"}', raw_json=b'{"t":"pack","i":1,"uid":0,"cid":"","tcid":"","pack":"LP24Ek0OaYogxs3iQLjL4KBq5C5iG0d/NC9mm5YSYhCMa9lM2RqI/KytvJ32IsGSZXrOr+MakVzzXHbghPeyiui/giRwi/22P1NeJSbhyoDt21IYC5nmTB0FSNCtGSQC/vUbYWZgrfE+TvZwEoeeG6oKYWAQQGLmDA/BTf/kbgwJPRFZzjLrUDkhvMjz32yVMkOVsFsTAafzePY7qSehbZIhsbG6Ck8X1+GBAEqEtdxSARmdHzsfl0hV7CQKMyULqf7+wHqDf2mz9uzNFv2ejQPpn0gG1yCMDrcqGdH2dZ/aQZM3xU7NrlE38PT7UzxFphjtFkYpY2Dv1B44KKRYoLybZ8FWnX20sgLv9snTMGCsH6bNGMeBkcgCC2vvIqV6"}'
search_devices: pack={'t': 'dev', 'cid': '502cc6d14239', 'bc': '00000000000000000000000000000000', 'brand': 'gree', 'catalog': 'gree', 'mac': '502cc6d14239', 'mid': '10001', 'model': 'gree', 'name': '', 'lock': 0, 'series': 'gree', 'vender': '1', 'ver': 'V2.0.0', 'ModelType': '32792', 'hid': '362001065279+U-WB05RT13V1.23.bin'}
Search finished, found 1 device(s)
Binding device: 10.0.0.46 (, ID: 502cc6d14239)
send_data: ip=10.0.0.46, port=7000, data=b'{"cid":"app","i":1,"t":"pack","uid":0,"tcid":"502cc6d14239","pack":"003olLjlWbJTJLIs5YqXYivcRHhD4CK0Su1dirlLjhuj9mrs/0p7GUTdWxmNaBUt"}'
Traceback (most recent call last):
  File "/var/lib/openhab/etc/scripts/gree.py", line 245, in <module>
    search_devices()
  File "/var/lib/openhab/etc/scripts/gree.py", line 125, in search_devices
    bind_device(r)
  File "/var/lib/openhab/etc/scripts/gree.py", line 135, in bind_device
    result = send_data(search_result.ip, 7000, bytes(request, encoding='utf-8'))
  File "/var/lib/openhab/etc/scripts/gree.py", line 37, in send_data
    return s.recv(1024)
socket.timeout: timed out

Hi @zhivka.dimova according to https://github.com/cmroche/greeclimate/issues/96 the encryption is changed.

Hello @Ben_B,

I was going to suggest that the problem is more likely with the encryption, as visible from the link you added. I will try to change first the python script to see that you can communicate with the AC and then I will try to implement it in the binding. I will text you in private so we don’t float the forum with testing communication.

Hello,

with help from @Ben_B I implemented support for devices with firmware 1.23. Available jar file
@Dmitrijs_Leonenko @CsL007 you can try using the above jar and let me know if it solves your problem.

@practical - I looked at the log you attached but I am not sure what it happening there. Can you try using the gree.py script and send me the result - python3 gree.py --verbose -b 192.168.0.255 search . You can also send me PM, so we don’t flood the topic.

1 Like