Frankkkkk / python-daikin-altherma

Interfaces with Daikin Altherma heat pumps via LAN adapter BRP069A61/BRP069A62
11 stars 1 forks source link

Problem with self.ws.recv() #11

Closed remy-lavabre closed 10 months ago

remy-lavabre commented 11 months ago

Good morning, When using a Raspberry Pi, it very regularly happens that result = json.loads(self.ws.recv()) in def _requestValue(self, item: str, output_path: str, payload=None): "blocks" execution.

Everything is blocked and only a "CTRL C" allows you to get out! From the tests carried out, it is ws.recv () which is causing the problem.

Sometimes everything works, sometimes it blocks for an indefinite time without giving any error !

Maybe it's a timeout that's causing the problem? Is there a solution to fix this?? THANKS

Frankkkkk commented 10 months ago

Should be fixed in 0.3.3. Thanks