rbroker / ecodan-ha-local

Local HomeAssistant support for Air to Water Heat Pump Data/Control for Mitsubishi Ecodan
GNU General Public License v3.0
46 stars 10 forks source link

Flush port after write #39

Closed gekkekoe closed 5 months ago

gekkekoe commented 5 months ago

I have an automation that sets the tank setpoint to 55c when the legionella prevention starts. This automation sends a mqtt command on state change of the operation mode. The command gets lost when there's communication going on (reading other status info).

If we flush the port after a write, then the problem is fixed. see: https://www.arduino.cc/reference/tr/language/functions/communication/serial/flush/

rbroker commented 5 months ago

LGTM, thank you!