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
304 stars 61 forks source link

Some action not taken into account when multiple writes are triggered at almost the same time in HA #109

Open Tmbao opened 3 months ago

Tmbao commented 3 months ago

Hi Arnold, I've got an issue that if multiple commands are sent to the bridge at almost the same time (they're all triggered via a HA automation), one of the command isn't effective. In the example below, I've got 2nd, 3rd and 5th which all update the controller state. Without the 5 second delay (4th action), the 5th seems to be ignored.

image

I think in one of the recent changes, some command buffering was added. Wondering if this is due to some race condition?

Arnold-n commented 3 months ago

Hi Bao, my mistake, the release notes for v0.9.53 indeed included a message that buffering was added, but that change was moved to a later release. It is currently under test. I will send you the test version by e-mail.

nicx commented 1 week ago

@Arnold-n could you send me the test version as well? I have the same problem... as a workaround I configured some Wait-Timers in the automation. But this is not reliable.

Arnold-n commented 1 week ago

Bao received the F-series test version. I am working on the E-series version and will send it to you later.