tomikaa87 / gree-remote

Simple remote control utility for Gree Smart air conditioners
GNU General Public License v3.0
265 stars 62 forks source link

Re-connecting to network #16

Open vladsrynty opened 5 years ago

vladsrynty commented 5 years ago

Hi all!

I have this Gree AC (actually Nordcel in my country) in a country house for keeping 8 degrees in the house during the winter time. I did set up Pi3 with temperature sensors (DHT22) to see if the device is actually working (and it seems from the temperature, that it does) and I also have access over the internet to my Wifi router.

The problem is that after some period Gree AC disconnects itself from Wifi network.

Does anyone of you have an idea how could I reconnect Gree back to the network? Daily automatic restarts somehow? Some sort of timer function? How does the remote control work?

Of course EWPE Smart nor Wifi Smart can see the device.

Hopefully I can jump in and help develop some sort of managing software (web based?) for Gree devices in summer, when I have physical access to the device.

Thank you everybody for your work and help!

jllcunha commented 5 years ago

It is strange that it disconnects from the wifi. It really should not do this at all. You cannot connect to it using the mobile app?

When you inplug and replug the AC to the power it reconnects to wifi?

On 16 Mar 2019, at 09:56, Vladimir Rüntü notifications@github.com<mailto:notifications@github.com> wrote:

Hi all!

I have this Gree AC (actually Nordcel in my country) in a country house for keeping 8 degrees in the house during the winter time. I did set up Pi3 with temperature sensors (DHT22) to see if the device is actually working (and it seems from the temperature, that it does) and I also have access over the internet to my Wifi router.

The problem is that after some period Gree AC disconnects itself from Wifi network.

Does anyone of you have an idea how could I reconnect Gree back to the network? Daily automatic restarts somehow? Some sort of timer function? How does the remote control work?

Of course EWPE Smart nor Wifi Smart can see the device.

Hopefully I can jump in and help develop some sort of managing software (web based?) for Gree devices in summer, when I have physical access to the device.

Thank you everybody for your work and help!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/tomikaa87/gree-remote/issues/16, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AgDOdQID4XQQMSMe2A6hvyY9ObCwLqhQks5vXLGggaJpZM4b3sgY.

vladsrynty commented 5 years ago

I don't know if it reconnects after replugging the power. I have not been near the device for 4 months now. It could also be that the router restarted and connection was lost then.

No, I cannot access it using Mobile App.

I'm thinking if I could somehow make Pi3 act as a remote control?

vladsrynty commented 5 years ago

No, disconnecting from power and reconnecting did not help. Full Wifi reset was needed to reconnect it back to the network.

vladsrynty commented 5 years ago

But how EWPE Smart installed on my phone is able to configure it?

tomikaa87 commented 5 years ago

Occasionally my units does the same and only power cycling them helps. You may try updating the firmware in the units from the official mobile app, or if you can, try with another router, or try change WiFi settings (just listing a few, not all of them available on cheaper devices):

judders commented 5 years ago

My Gree constantly disconnects from my Wifi. Turns out its when I use Alexa to control the heatpump though a Broadlink RM 3. Anyhow... What I did is got my raspberry Pi to connect to the Heatpump AP and wrote my own code to run the command giving in the example to reconnect the heat pump to my Wifi.

IgnatievArkadiy commented 4 years ago

The same, i have cooper hunter AC (it has cree wifi module). If i control my AC from broadlink rm pro(with gree profile) my wifi always go off(i think profile inside broadlink alvays set off fifi module). But if i enable AC from his remout(with wifi indicator on screen ) wifi turn on and work.

grunci commented 4 years ago

Hi, My Fisher ACs (this lib works fine with it) forgets WIFI settings, when there is a power outage. This is the reason I am looking for a solution (or will help in implementing it) to set the wifi settings.

DevChannel-de commented 3 years ago

Hi, fond this thread as well searching for a solution why Gree AC is sporadically disconnecting from the WiFi access point. Sometimes the connection is stable for days, sometimes only for some minutes... :-/ BTW, I don't switch off the AC to get it reconnected again. I'm waiting... After several minutes the AC is connecting again and stays for some time stable... Anyhow, I would be glad if someone would have a hint how to fix it reliable. Thanks.

santasgt commented 2 years ago

Hi, fond this thread as well searching for a solution why Gree AC is sporadically disconnecting from the WiFi access point. Sometimes the connection is stable for days, sometimes only for some minutes... :-/ BTW, I don't switch off the AC to get it reconnected again. I'm waiting... After several minutes the AC is connecting again and stays for some time stable... Anyhow, I would be glad if someone would have a hint how to fix it reliable. Thanks.

I've had a very similar issue with Sinclair AC (with Gree HW) but most of the time I did not see the AC reconnect by itself. What I found out that each has 2 MAC addresses and I suspect that whenever it loses WiFi connection it reconnects with the other MAC address, and sometimes did not get IP properly. Today I've banned 1 of the MAC addresses for each from the network, so far it looks OK.

frmorais commented 2 years ago

Hi, fond this thread as well searching for a solution why Gree AC is sporadically disconnecting from the WiFi access point. Sometimes the connection is stable for days, sometimes only for some minutes... :-/ BTW, I don't switch off the AC to get it reconnected again. I'm waiting... After several minutes the AC is connecting again and stays for some time stable... Anyhow, I would be glad if someone would have a hint how to fix it reliable. Thanks.

I've had a very similar issue with Sinclair AC (with Gree HW) but most of the time I did not see the AC reconnect by itself. What I found out that each has 2 MAC addresses and I suspect that whenever it loses WiFi connection it reconnects with the other MAC address, and sometimes did not get IP properly. Today I've banned 1 of the MAC addresses for each from the network, so far it looks OK.

How did you found the 2nd MAC addresse of the device?

santasgt commented 2 years ago

Hi, fond this thread as well searching for a solution why Gree AC is sporadically disconnecting from the WiFi access point. Sometimes the connection is stable for days, sometimes only for some minutes... :-/ BTW, I don't switch off the AC to get it reconnected again. I'm waiting... After several minutes the AC is connecting again and stays for some time stable... Anyhow, I would be glad if someone would have a hint how to fix it reliable. Thanks.

I've had a very similar issue with Sinclair AC (with Gree HW) but most of the time I did not see the AC reconnect by itself. What I found out that each has 2 MAC addresses and I suspect that whenever it loses WiFi connection it reconnects with the other MAC address, and sometimes did not get IP properly. Today I've banned 1 of the MAC addresses for each from the network, so far it looks OK.

How did you found the 2nd MAC addresse of the device?

I've blocked the first MAC address which connected to the WiFi from the network. Then the AC usually re-joined with the other MAC address (the last 6 digits of the MAC addresses are the same).

frmorais commented 2 years ago

Hi, fond this thread as well searching for a solution why Gree AC is sporadically disconnecting from the WiFi access point. Sometimes the connection is stable for days, sometimes only for some minutes... :-/ BTW, I don't switch off the AC to get it reconnected again. I'm waiting... After several minutes the AC is connecting again and stays for some time stable... Anyhow, I would be glad if someone would have a hint how to fix it reliable. Thanks.

I've had a very similar issue with Sinclair AC (with Gree HW) but most of the time I did not see the AC reconnect by itself. What I found out that each has 2 MAC addresses and I suspect that whenever it loses WiFi connection it reconnects with the other MAC address, and sometimes did not get IP properly. Today I've banned 1 of the MAC addresses for each from the network, so far it looks OK.

How did you found the 2nd MAC addresse of the device?

I've blocked the first MAC address which connected to the WiFi from the network. Then the AC usually re-joined with the other MAC address (the last 6 digits of the MAC addresses are the same).

Thanks for replying. Well, in my case it seems that there is only 1 MAC available per AC.

What I have found is that my router, besides ipv4 dhcp server was also assigning an ipv6 addresse , and for some reason this causes some type of conflit making ACs to loose connection to my router very frequently. Disabling ipv6 dhcp server solved my issue, so far so good.

ic-dev21 commented 3 months ago

Occasionally my units does the same and only power cycling them helps. You may try updating the firmware in the units from the official mobile app, or if you can, try with another router, or try change WiFi settings (just listing a few, not all of them available on cheaper devices):

  • use 802.11b/g instead of 802.11n
  • change the channel to a less occupied frequency
  • adjust the TX power of the WiFi radio
  • enable hardware frame protection (RTS/CTS)
  • enable long preamble

I have all those settings and still get constant dropouts, the wifi module stops acknowledging auth responses. Any other ideas?