dubocr / homebridge-tahoma

Homebridge plugin for TaHoma, Connexoon, Cozytouch, Energeasy Connect.
Apache License 2.0
131 stars 42 forks source link

Unresponsive or No Response for Atlantic Cozytouch #166

Closed louisjeck closed 4 years ago

louisjeck commented 4 years ago

Hi, I've been trying to setup my 3 Atlantic Heaters on HomeBrige but with no much success. They do appear in Home App, but mostly show up as No Response or are really unresponsive and slow to set any temperature. Whenever I manage to set the temperature it takes a full minute to complete according to the logs (and the accessory still goes to no response status). After a while all heaters show up as "No response". Also opening the details triggers setOperatingMode["auto"] that also takes foreaver to complete and seems to prevent temp setting in the meantime. Here is a snippet of the logs, you can see the time it takes to set a temp :

[3/26/2020, 7:39:36 PM] [Cozytouch - Atlantic] [Radiateur] setOperatingMode["auto"]

[3/26/2020, 7:39:42 PM] [Cozytouch - Atlantic]

[3/26/2020, 7:39:46 PM] [Cozytouch - Atlantic] [Radiateur] setOperatingMode["auto"]

[3/26/2020, 7:39:52 PM] [Cozytouch - Atlantic] Listener registered 1824b6f0-3626-5439-296b-27ff7453830d

[3/26/2020, 7:40:01 PM] [Cozytouch - Atlantic] [Radiateur] setOperatingMode COMPLETED

[3/26/2020, 7:40:01 PM] [Cozytouch - Atlantic] Callback already triggered

[3/26/2020, 7:42:08 PM] [Cozytouch - Atlantic] [Radiateur] setTargetTemperature[19]

[3/26/2020, 7:42:52 PM] [Cozytouch - Atlantic] [Radiateur] setTargetTemperature COMPLETED

[3/26/2020, 7:42:52 PM] [Cozytouch - Atlantic] Callback already triggered

[3/26/2020, 7:43:07 PM] [Cozytouch - Atlantic] [Radiateur] setTargetTemperature[17]

[3/26/2020, 7:44:07 PM] [Cozytouch - Atlantic] [Radiateur] setTargetTemperature COMPLETED

[3/26/2020, 7:44:07 PM] [Cozytouch - Atlantic] Callback already triggered

[3/26/2020, 7:50:30 PM] [Cozytouch - Atlantic] [Radiateur] setOperatingMode["auto"]

I exported my config on your website, and I'm using a brand new HomeBridge with only this plugin installed.

I would really appreciate some help setting this up ! Thanks

louisjeck commented 4 years ago

I ended up resolving my responsiveness issue by using a Docker image for some reason, but I had to rewrite most of Thermostat.js for it to work with my AtlanticElectricalHeaterWithAdjustableTemperatureSetpoint. Otherwise the reported values didn't match and the heaters behaved unexpectedly. I had to separate my code from the big switch inside onStateUpdate. Thank you for your webapp https://dev.duboc.pro/tools/setup though it has been extremely useful !