deiger / AirCon

Scripts for controlling Air Conditioners, e.g. with HiSense modules.
GNU General Public License v3.0
212 stars 59 forks source link

aircon service seems to stop #79

Open Corne008 opened 3 years ago

Corne008 commented 3 years ago

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.

deiger commented 3 years ago

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.

Corne008 commented 3 years ago

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.

deiger commented 3 years ago

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?