FHEM und Carwings/ConnectEV/You+NISSAN-API (Modul 98_Carwings.pm)

Begonnen von c2j2, 17 Oktober 2018, 09:10:37

Vorheriges Thema - Nächstes Thema

Yvo

Hallo Zusammen,

Nachdem (aufgrund der letzten Nissan API-Server Änderung) das Modul bei mir in 2022 nicht aktiv war, wollte ich mit den Hinweisen oben das Modul für meinen ZE1 wiede rzum Laufen bekommen. Ich bekomme aber nach wie vor die Fehlermeldung unten. Passwort und User sind korrek eingestellt, Zugriff über die Nissan APP funktioniert auch...

Hat jemand eine Idee ?

2023.01.28 15:38:45 3: Carwings::Leaf: query battery started
2023.01.28 15:38:45 3: Carwings::Leaf: Carwings_ExecuteNextJob
2023.01.28 15:38:45 3: Carwings::Leaf: ***** remaining jobs connect, battery
2023.01.28 15:38:45 3: Carwings::Leaf: >>>JOB connect (InitialApp_v2.php)
2023.01.28 15:38:45 3: Carwings::Leaf: >>>JOB $VAR1 = {
          'timeout' => 120,
          'method' => 'POST',
          'url' => 'https://gdcportalgw.its-mo.com/api_v210707_NE/gdc/InitialApp_v2.php',
          'callback' => sub { "DUMMY" },
          'data' => {
                      'custom_sessionid' => '',
                      'initial_app_str' => '9s5rfKVuMrT03RtzajWNcA',
                      'RegionCode' => 'NE'
                    }
        };

2023.01.28 15:38:45 3: Leaf_update: ok, query started. to do now: battery
2023.01.28 15:38:46 3: Carwings::Leaf: <<<JOB connect result: $VAR1 = {
          'baseprm' => '88dSp7wWnV3bvv9Z88zEwg',
          'message' => 'success',
          'status' => 200
        };

2023.01.28 15:38:46 3: Carwings::Leaf: >>>JOB login (UserLoginRequest.php)
2023.01.28 15:38:46 3: Carwings::Leaf: >>>JOB $VAR1 = {
          'url' => 'https://gdcportalgw.its-mo.com/api_v210707_NE/gdc/UserLoginRequest.php',
          'callback' => sub { "DUMMY" },
          'timeout' => 120,
          'method' => 'POST',
          'data' => {
                      'initial_app_str' => '9s5rfKVuMrT03RtzajWNcA',
                      'Password' => 'xxxxxxxxxxxxxx',
                      'custom_sessionid' => '',
                      'RegionCode' => 'NE',
                      'UserId' => 'xxxxxxxxxxxxxxx'
                    }
        };

2023.01.28 15:38:47 3: Carwings::Leaf: <<<JOB login result: $VAR1 = {
          'status' => 404,
          'message' => 'INVALID PARAMS'
        };

2023.01.28 15:38:47 3: Carwings::Leaf: <<<JOB login failed: {"status":404,"message":"INVALID PARAMS"}
2023.01.28 15:38:47 3: Carwings::Leaf: ERR>>>$VAR1 = 'status 404: INVALID PARAMS';

2023.01.28 15:38:47 3: Carwings::Leaf: status 404: INVALID PARAMS
2023.01.28 15:38:47 3: Carwings::Leaf: ERR login 1 status 404: INVALID PARAMS
2023.01.28 15:38:47 3: Carwings::Leaf: Carwings_ExecuteNextJob

docolli

Bin spät dran, weil ich erst heute wieder wegen meines "blessed" Problems hier reingestolpert bin.

Dein Problem wird vermutlich an einer (mal wieder) geänderten URL liegen. Ändere mal zu folgendem Code ab:

if ($hash->{RegionCode} eq 'NNA')
{
$hash->{'.CW_URL'} = 'https://gdcportalgw.its-mo.com/gworchest_160803EC/gdc/';
}
  else
{
$hash->{'.CW_URL'} = 'https://gdcportalgw.its-mo.com/api_v200413_NE/gdc/';
}