AirCon icon indicating copy to clipboard operation
AirCon copied to clipboard

aircon service seems to stop

Open Corne008 opened this issue 4 years ago • 3 comments

Hi,

I'm running the aircon module for 3 units in our house on a Raspberry Pi 4 (and tried it on a Raspberry Pi Zero). The issue is that after a few hours (Pi Zero) or on the Pi 4 after a few days aircon seems to stop sending/ receiving mqtt messages. The processes seem to run (see the 2 lines below), but there are no mqtt messages anymore.

pi 1054 0.1 1.3 35580 25420 ? Ss Jan29 11:03 /usr/bin/python3.7 -m aircon run --port 10001 --config config_ac000w002881442.json --type fgl --mqtt_host 192.168.2.xx --mqtt_user a:b --mqtt_topic Airco pi 1070 0.1 1.3 35324 25280 ? Ss Jan29 10:32 /usr/bin/python3.7 -m aircon run --port 10002 --config config_ac000w003135360.json --type fgl --mqtt_host 192.168.2.xx --mqtt_user a:b --mqtt_topic Airco

My question is "can you provide me with some tips about where to start looking to solve this problem". Restarting the srevice with the crontab is not the best solutions I think.

Thanks in advance.

Corne008 avatar Feb 03 '21 13:02 Corne008

Strange. It seem that you are running an old version of the server. Would you care to update to the most recent one? It runs a single server for all your units, in docker - and if you're using HA as an add-on.

deiger avatar Feb 03 '21 18:02 deiger

Hi, I updated to the latest version. With the previous installation I did start the proces 3 times, sorry. Now it is 1 proces with 3 A/C’s. But I still have the issue of losing communication. In the syslog I could see that the proces produces errors when the IP addresses are not reachable for some time for whatever reason.

BTW I have ‘lent’ an Airco plugin for Domoticz and modified it to work with your solution.It is nicely integrated now for 3 functions using mqtt . Selecting the operation mode, temperature setting and fan mode. If you are interested I could provide you with the code.

Corne008 avatar Feb 22 '21 20:02 Corne008

Sure, I'd be happy to integrate it. Please feel free to send a PR. It's pretty hard to track down these communication issues. Would you mind uploading the relevant syslog to Gist?

deiger avatar Feb 26 '21 22:02 deiger