jhschuster / homebridge-intesisweb

Homebridge plugin for IntesisHome devices
Other
1 stars 1 forks source link

IntesisWeb plugin in loop #4

Open PieroOliviero opened 3 years ago

PieroOliviero commented 3 years ago

Hello, i'm pretty sure that i've correctly configured the plugin, but i'm getting these errors when hombridge starts

11/29/2020, 12:59:33] [IntesisWeb] POST /login OK [11/29/2020, 12:59:33] [IntesisWeb] IntesisWeb.getHeaders() called. [11/29/2020, 12:59:33] [IntesisWeb] GET /panel/headers LOGIN [11/29/2020, 12:59:33] [IntesisWeb] IntesisWeb.doLogin() called. [11/29/2020, 12:59:34] [IntesisWeb] GET /login OK [11/29/2020, 12:59:34] [IntesisWeb] POST /login OK

in a loop and homebridge remains in a non started status.

jhschuster commented 3 years ago

That looping happens when it gets an unexpected login page which has happened to me when developing this if cookies aren't being preserved and/or the _csrf_token isn't being sent.

Are you sure you're running the latest version? Have you specified an apiBaseUrl in the configuration? The most current release defaults to "https://accloud.intesis.com/" which will cause this in the logs for me:

[2/16/2021, 12:00:18 PM] [IntesisWeb] Initializing IntesisWeb platform... [2/16/2021, 12:00:18 PM] [IntesisWeb] IntesisWeb(log, config) called. [2/16/2021, 12:00:18 PM] [IntesisWeb] IntesisWeb.accessories(callback) called. [2/16/2021, 12:00:18 PM] [IntesisWeb] IntesisWeb.getConfig() called. [2/16/2021, 12:00:18 PM] [IntesisWeb] IntesisWeb.doLogin() called. [2/16/2021, 12:00:20 PM] [IntesisWeb] GET /login OK [2/16/2021, 12:00:20 PM] [IntesisWeb] POST /login 302 [2/16/2021, 12:00:20 PM] [IntesisWeb] POST /login OK [2/16/2021, 12:00:20 PM] [IntesisWeb] IntesisWeb.getHeaders() called. [2/16/2021, 12:00:21 PM] [IntesisWeb] GET /panel/headers OK

That you get a /panel/headers/LOGIN means that for some reason that page thinks you're not logged in, which is weird.

PieroOliviero commented 3 years ago

Hello, thank you for your kind reply.

I’m using this version of the plugin:

homebridge-intesisweb v1.0.7 (2020-10-02) That seems to be the more recent.

I’ve tried this configuration:

   {
        "username": "Piero_oliviero",
        "password": "XXxxXXxxx",
        "swingMode": "H",
        "platform": "IntesisWeb"
    }

But now hav a doubt .. that user and password are not correct because I’ve registered with Intesis using two username. One for the mobile app that works perfectly, and one for the web application in wich I can’t see my air conditioneers:

[cid:image004.jpg@01D7057B.BF4B2C10]

Message says that there are no air conditioner set on the web app, So perhaps this is not a plugin problem but an intesis problem.

I thought that mobile and web app could work together, but perhaps is not true.

Thank you for your support.

[DIGIBYTE] Piero Oliviero | Servizio di assistenza tecnica E-mail: piero@digibyte.itmailto:piero@digibyte.it

[Twitter]https://twitter.com/digibytesrl[LinkedIn]http://www.linkedin.com/company/digibyte

Digibyte | Servizi e sistemi informatici via Marziale, 9 - 40128 - Bologna (Italia) E-mail: digibyte@digibyte.itmailto:digibyte@digibyte.it - Website: www.digibyte.ithttp://www.digibyte.it Tel. +39 051 6388614 - Fax +39 051 323735

Assistenza - Vendita - Consulenza - Formazione - Networking - Internetworking - Internet Provider - IT Security IBM Business Partner - VMWare Partner - Microsoft Partner - Supporto Linux - Apple

Da: Jay Schuster notifications@github.com Inviato: martedì 16 febbraio 2021 19:32 A: jhschuster/homebridge-intesisweb homebridge-intesisweb@noreply.github.com Cc: Piero Oliviero - DIGIBYTE srl Piero@digibyte.it; Author author@noreply.github.com Oggetto: {Probabile Spam} Re: [jhschuster/homebridge-intesisweb] IntesisWeb plugin in loop (#4)

That looping happens when it gets an unexpected login page which has happened to me when developing this if cookies aren't being preserved and/or the _csrf_token isn't being sent.

Are you sure you're running the latest version? Have you specified an apiBaseUrl in the configuration? The most current release defaults to "https://accloud.intesis.com/" which will cause this in the logs for me:

[2/16/2021, 12:00:18 PM] [IntesisWeb] Initializing IntesisWeb platform... [2/16/2021, 12:00:18 PM] [IntesisWeb] IntesisWeb(log, config) called. [2/16/2021, 12:00:18 PM] [IntesisWeb] IntesisWeb.accessories(callback) called. [2/16/2021, 12:00:18 PM] [IntesisWeb] IntesisWeb.getConfig() called. [2/16/2021, 12:00:18 PM] [IntesisWeb] IntesisWeb.doLogin() called. [2/16/2021, 12:00:20 PM] [IntesisWeb] GET /login OK [2/16/2021, 12:00:20 PM] [IntesisWeb] POST /login 302 [2/16/2021, 12:00:20 PM] [IntesisWeb] POST /login OK [2/16/2021, 12:00:20 PM] [IntesisWeb] IntesisWeb.getHeaders() called. [2/16/2021, 12:00:21 PM] [IntesisWeb] GET /panel/headers OK

That you get a /panel/headers/LOGIN means that for some reason that page thinks you're not logged in, which is weird.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jhschuster/homebridge-intesisweb/issues/4#issuecomment-780034622, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR5YQFIED7CXFL6WBYGYRUDS7K22TANCNFSM4UGO7XIQ. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/jhschuster/homebridge-intesisweb/issues/4#issuecomment-780034622", "url": "https://github.com/jhschuster/homebridge-intesisweb/issues/4#issuecomment-780034622", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

jhschuster commented 3 years ago

I'm able to use the web app and the Homebridge app at the same time using the same login.

PieroOliviero commented 3 years ago

Hello,

Yes, but I mean that it seems that at Intesis there are two different “platforms”.

One is the one we are talking about, that’s web based only. I’ve a user (userA) to log in but there are no air conditioner registered there. So, perhaps, when Intesisweb plug-in logs in, can’t find anything and hangs.

The other is Mobile app based. I’ve a user (userB) that can login through the mobile app and see all the air conditioners.

it seems that they have built two different applications and databases.

Now, my air conditioners are registered to a platform that the plug-in can’t use.

Unfortunately, there must be some kind of link between the two platforms, because I can’t register my devices on the first one (because seems already registered) And can’t log in to platform 1 with userB ...

So, it seems not a problem of intesisweb plug-in.

Think I’ve to write to Intesis to understand how the two systems are bound and if Is possible to switch from the app to intesisweb.

Thank you very much for support.

Piero Oliviero DIGIBYTE srl 

Il giorno 17 feb 2021, alle ore 22:55, Jay Schuster notifications@github.com ha scritto:



I'm able to use the web app and the Homebridge app at the same time using the same login.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jhschuster/homebridge-intesisweb/issues/4#issuecomment-780879609, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR5YQFMKJMLFYPLRTHZKD7LS7Q3J7ANCNFSM4UGO7XIQ.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/jhschuster/homebridge-intesisweb/issues/4#issuecomment-780879609", "url": "https://github.com/jhschuster/homebridge-intesisweb/issues/4#issuecomment-780879609", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]