Arnold-n / P1P2MQTT

Monitor and control Daikin/Rotex (hybrid/Altherma) heat pumps via the 2-wire P1/P2 thermostat interface with an ATmega328P, ESP8266, and electronics. The P1P2Serial library and P1P2Monitor program perform low-level bus operation, the P1P2-bridge-esp8266 program interprets data from/to MQTT supporting Home Assistant MQTT discovery. P1P2Serial may also be used for other Japanese Home Bus System based standards: DIII-NET (F1/F2) bus, Mitsubishi M-Net bus, Toshiba TCC-Link, Hitachi H-link, Panasonic/Sanyo SIII-Net, Haier, York, and others.
Other
324 stars 62 forks source link

P1P2 Serial will not connect to Wifi #84

Closed PietSmits closed 1 year ago

PietSmits commented 1 year ago

Yesterday I had to reset my router and since then P1P2 Serial has lost connection. When I connect to the AP and input the credentials it does not connect anymore. I have not had this issue previously, it always reconnected without issue, even when its power was switched off/on. After entering the credentials and saving it just opens the AP again. Unfortunately I cannot find where things go wrong.

Any suggestions to make the module connect again?

Arnold-n commented 1 year ago

@PietSmits, this may be difficult to debug. It sounds like a poor WiFi signal, or wrong SSID or password, or a router which no longer accepts this ESP as client. You didn't change the SSID or password or other settings on your router?

The only way to debug this is to listen-in on the serial output of the ESP after you set the credentials, how to do that (with the extra ESP-01 that was included with your interface) is described in Annex 2 of your installation guide. Please let me know if you need any help with this.

PietSmits commented 1 year ago

Thanks Arnold, although all my other ESP's connected without any issues I decided to set up the 2.4GHz bit of my router from scratch. After I did that I did see that the module connected, but lost connection again after a few minutes. I decided to leave it for the night, and lo and behold this morning all data was coming in again. No idea what happened but it seems to have solved itself for now. Thanks for your input, it triggered me to do the full reset.

Arnold-n commented 1 year ago

Thanks Piet, let me know if the problem returns. One known cause for "lost connection after a few minutes" is if the MQTT connection isn't restored, but even then it should reconnect to WiFi to retry.

gmcmicken commented 1 year ago

I had a ton of trouble with my Wi-Fi and the P1P2 esp, it would sometimes connect and other times not, or take hours. Eventually I figured it "airtime fairness" of my Wi-Fi router in advanced wireless settings needed to be turned off.

Arnold-n commented 1 year ago

Interesting, thanks for that hint! In that case it might help to change the j-mask setting: if you change it from 13003 (default) to 3002 a lot less data is being communicated as the raw hex data and non-HA parameters are no longer communicated. This can be done with the command "J3002" via telnet or via topic P1P2/W.

gmcmicken commented 1 year ago

Interesting, thanks for that hint! In that case it might help to change the j-mask setting: if you change it from 13003 (default) to 3002 a lot less data is being communicated as the raw hex data and non-HA parameters are no longer communicated. This can be done with the command "J3002" via telnet or via topic P1P2/W.

The issue only manifested in a delay to connect not actually in the quality once connected... strangely! I use output mode J2 so there's not a whole lot of traffic.