arthurkrupa / gree-hvac-mqtt-bridge

MQTT Bridge for controlling Gree smart air conditioners, e.g. with Home Assistant or OpenHAB
GNU General Public License v3.0
132 stars 63 forks source link

HVAC WiFI Config #62

Open hirani89 opened 4 years ago

hirani89 commented 4 years ago

Hi, Thanks for developing and sharing the code. I tried to run the wifi command on my macbook while connected to the AC in AP mode.

There was one problem initially when trying to run the nc command. I then realised that when copying the command from GitHub, the quotes are not in the right encoding. Notice the two different kinds of quotes in \”ssid\".

After I fixed that, something interesting happed.

This is what it returns: {"t":"ret","r":200}

It then stays there with the cursor flashing. Can you please write in the readme what the output for that command should be.

Regards,

karolzlot commented 3 years ago

I also have the same return string.

Did you find solution?

karolzlot commented 3 years ago

Ok, this string: {"t":"ret","r":200} means that command was successful and AC will soon connect to Wifi using given credentials.

So just needed to wait a little more. (up to a few minutes)

januszwoj commented 2 years ago

I am trying to connect to my AC in AP mode but I do not know the password. Is there default one?
I have a Vesser air conditioning with a Gree module. I have used EWPE app before.

januszwoj commented 2 years ago

I found it! May be useful to someone - WIFI pass: "12345678".

timnis commented 1 year ago

Just purchased and installed Cooper&Hunter CH-S09FTXAL-SC heat pump and try to setup wifi. Android app Ewpe Smart found it but was unable to connect heat pump to home wifi.

Then I tried with netcat from Linux and it fails also...

Port 7000 is open

` [timo@fedora ~]$ sudo nmap 192.168.1.1 -sU -p 7000 Starting Nmap 7.93 ( https://nmap.org ) at 2023-01-17 19:40 EET Nmap scan report for 192.168.1.1 Host is up (0.0022s latency).

PORT STATE SERVICE 7000/udp open|filtered afs3-fileserver MAC Address: 50:2C:C6:3D:20:A9 (Gree Electric Appliances, OF Zhuhai)

Nmap done: 1 IP address (1 host up) scanned in 13.44 seconds `

But when I try to setup wifi, I get following error

[timo@fedora ~]$ echo -n "{\"psw\": \"wifi pass\",\"ssid\": \"wifi ssid\",\"t\": \"wlan\"}" | nc -cu 192.168.1.1 7000 Ncat: TIMEOUT. [timo@fedora ~]$

Any ideas what could be the problem?

karolswitala commented 2 months ago

For everyone who reached this page from Google and is looking for a command to bind a device to your WiFi - this is the command that worked for me: echo -n '{"psw": "MyPassword", "ssid": "MySSID", "t": "wlan"}' | nc -u -w1 192.168.1.1 7000