tomaszkoperski / com.zehnder-systems.comfoconnect

Homey app for controlling ventilation systems via Zehner ComfoConnect LAN C gateway
GNU General Public License v3.0
6 stars 1 forks source link

Fix behaviour when IP / PIN are changed in Settings #2

Open tomaszkoperski opened 2 years ago

tomaszkoperski commented 2 years ago

Right now the change is not picked up properly, as the app will fail to connect to the new IP address because the previous connection keeps the port open. I haven't found a way to destrony the bridge in a way that would unblock the port.

tomaszkoperski commented 2 years ago

This is because the node-comfoair discovery() binds an UDP listener on a port and waits for the gateway to connect back to it. It can be triggered either by sending the challenge to specific IP (this is what we do currently) or to Multicast address (this is not supported yet). I haven't found a way to gracefully terminate that listener once it's started (ex. to try to use different IP when it's changed in settings).

MikeMighty commented 11 months ago

Hi tomaszkoperski,

New to homey I installed your app, gave my Q450 a static adress in my router and added that IP (with code 0000) in the app. No matter what i do, i cant connect to the Lan C unit and I dont get any readouts. I am not sure what to do now. I already re-installed the app and the Lan C unit in the homey app. I removed the static IP although that doesnt change the IP adress.

Any ideas?

tomaszkoperski commented 11 months ago

Hi,

Please go to the app page -> settings and submit a diagnostic report. Ideally do this after attempting to add the device.

In most cases something is not right with the IP or PIN. The Disgnostic report should contain more info.

Kind regards, TK

Sent via smartphone

mobile: +48 696 455 140 e-mail: @.*** url: www.futuremind.com

Future Mind Sp. z o.o. ul. Puławska 182 02-670 Warszawa

tel: +48 22 253 38 31 e-mail: @.***


Sąd Rejonowy dla M. St. Warszawy, XIII Wydział Gospodarczy Krajowego Rejestru Sądowego, nr KRS: 0000309577, wysokość kapitału zakładowego: 140.000 zł, NIP: 113-27-30-440, REGON: 141498999. Ta wiadomość zawiera poufne informacje przeznaczone tylko dla adresata. Jeżeli nie jesteście Państwo jej adresatem, bądź otrzymaliście ją przez pomyłkę, prosimy o powiadomienie o tym nadawcy oraz trwałe jej usunięcie. Odmienne zachowanie jest niezgodne z interesem Future Mind Sp. z o.o. i może naruszać prawo. This message contains confidential information intended solely for the addressee. If you are not the addressee or if you have received the message in error, please contact the sender and delete it permanently. Failing to comply is contrary to Future Mind Sp. z o.o. interest and may be unlawful.

On Sat, 30 Sep 2023 at 17:12, MikeMighty @.***> wrote:

Hi tomaszkoperski,

New to homey I installed your app, gave my Q450 a static adress in my router and added that IP (with code 0000) in the app. No matter what i do, i cant connect to the Lan C unit and I dont get any readouts. I am not sure what to do now. I already re-installed the app and the Lan C unit in the homey app. I removed the static IP although that doesnt change the IP adress.

Any ideas?

— Reply to this email directly, view it on GitHub https://github.com/tomaszkoperski/com.zehnder-systems.comfoconnect/issues/2#issuecomment-1741786999, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJBQ5U6K234RJK7IMNQRRTX5AZEZANCNFSM55FCPHYQ . You are receiving this because you authored the thread.Message ID: <tomaszkoperski/com.zehnder-systems.comfoconnect/issues/2/1741786999@ github.com>

MikeMighty commented 11 months ago
    f11c7265-7bf2-4583-9b7c-03e29ebc59df
    Met vriendelijke groet,Michael

EDIT: the pin I used is 0000. But i noticed that when i want to save the changes, the button doesnt have a 'nice' 'click' when safing and no prompt is shown after saving making you wonder if the process of saving gone right. But when i close the app and reopen it, the ip and pin seem to be saved.  

tomaszkoperski commented 11 months ago

OK, so it appears that the device is in fact reachable, but PIN is not correct. The device is returning “NOT_ALLOWED” to all commands sent to it.

Can you double check the PIN?

Sent via smartphone

mobile: +48 696 455 140 e-mail: @.*** url: www.futuremind.com

Future Mind Sp. z o.o. ul. Puławska 182 02-670 Warszawa

tel: +48 22 253 38 31 e-mail: @.***


Sąd Rejonowy dla M. St. Warszawy, XIII Wydział Gospodarczy Krajowego Rejestru Sądowego, nr KRS: 0000309577, wysokość kapitału zakładowego: 140.000 zł, NIP: 113-27-30-440, REGON: 141498999. Ta wiadomość zawiera poufne informacje przeznaczone tylko dla adresata. Jeżeli nie jesteście Państwo jej adresatem, bądź otrzymaliście ją przez pomyłkę, prosimy o powiadomienie o tym nadawcy oraz trwałe jej usunięcie. Odmienne zachowanie jest niezgodne z interesem Future Mind Sp. z o.o. i może naruszać prawo. This message contains confidential information intended solely for the addressee. If you are not the addressee or if you have received the message in error, please contact the sender and delete it permanently. Failing to comply is contrary to Future Mind Sp. z o.o. interest and may be unlawful.

On Sat, 30 Sep 2023 at 17:42, MikeMighty @.***> wrote:

f11c7265-7bf2-4583-9b7c-03e29ebc59df Met vriendelijke groet,Michael

Van: Tomasz Koperski @.>Verzonden: zaterdag, september 30, 2023 5:14 PMAan: tomaszkoperski/com.zehnder-systems.comfoconnect @.>CC: MikeMighty @.>; Comment @.>Onderwerp: Re: [tomaszkoperski/com.zehnder-systems.comfoconnect] Fix behaviour when IP / PIN are changed in Settings (Issue #2) Hi,

Please go to the app page -> settings and submit a diagnostic report.

Ideally do this after attempting to add the device.

In most cases something is not right with the IP or PIN. The Disgnostic

report should contain more info.

Kind regards,

TK

Sent via smartphone

--

mobile: +48 696 455 140

e-mail: @.***

url: www.futuremind.com

Future Mind Sp. z o.o.

ul. Puławska 182 https://www.google.com/maps/search/ul.+Pu%C5%82awska+182+%0D%0A+%0D%0A02-670+Warszawa?entry=gmail&source=g

https://www.google.com/maps/search/ul.+Pu%C5%82awska+182+%0D%0A+%0D%0A02-670+Warszawa?entry=gmail&source=g 02-670 Warszawa https://www.google.com/maps/search/ul.+Pu%C5%82awska+182+%0D%0A+%0D%0A02-670+Warszawa?entry=gmail&source=g

tel: +48 22 253 38 31

e-mail: @.***


Sąd Rejonowy dla M. St. Warszawy, XIII Wydział Gospodarczy Krajowego

Rejestru Sądowego, nr KRS: 0000309577,

wysokość kapitału zakładowego: 140.000 zł,

NIP: 113-27-30-440, REGON: 141498999.

Ta wiadomość zawiera poufne informacje przeznaczone tylko dla adresata.

Jeżeli nie jesteście Państwo jej adresatem, bądź otrzymaliście ją przez

pomyłkę, prosimy o powiadomienie o tym nadawcy oraz trwałe jej usunięcie.

Odmienne zachowanie jest niezgodne z interesem Future Mind Sp. z o.o. i

może naruszać prawo.

This message contains confidential information intended solely for the

addressee. If you are not the addressee or if you have received the message

in error, please contact the sender and delete it permanently. Failing to

comply is contrary to Future Mind Sp. z o.o. interest and may be unlawful.

On Sat, 30 Sep 2023 at 17:12, MikeMighty @.***> wrote:

Hi tomaszkoperski,

New to homey I installed your app, gave my Q450 a static adress in my

router and added that IP (with code 0000) in the app. No matter what i do,

i cant connect to the Lan C unit and I dont get any readouts. I am not sure

what to do now. I already re-installed the app and the Lan C unit in the

homey app. I removed the static IP although that doesnt change the IP

adress.

Any ideas?

Reply to this email directly, view it on GitHub

< https://github.com/tomaszkoperski/com.zehnder-systems.comfoconnect/issues/2#issuecomment-1741786999 ,

or unsubscribe

< https://github.com/notifications/unsubscribe-auth/AAJBQ5U6K234RJK7IMNQRRTX5AZEZANCNFSM55FCPHYQ

.

You are receiving this because you authored the thread.Message ID:

<tomaszkoperski/com.zehnder-systems.comfoconnect/issues/2/1741786999@

github.com>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/tomaszkoperski/com.zehnder-systems.comfoconnect/issues/2#issuecomment-1741793520, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJBQ5UYUVBRAXS6S2NEPALX5A4X3ANCNFSM55FCPHYQ . You are receiving this because you authored the thread.Message ID: <tomaszkoperski/com.zehnder-systems.comfoconnect/issues/2/1741793520@ github.com>

MikeMighty commented 11 months ago

Oke, I changed the PIN in the Lan C mocule so that I am sure about the pin. I made a static IP. Now the app keeps crashing and when adding the Lan C it keeps giving a null value.

6e027a83-bbf3-4d9c-a5c0-e09b45e8e2a2