Aucune caméra (presence, welcome, sonnette) créées

Bonjour.

Mon installation : j’ai 1 caméra présence, 1 welcome, 1 sonnette et 3 coach health.
C’est ma première installation de ce plugin.
En stable, j’ai une erreur « Bad request » lors de la synchronisation, et aucun équipement ne remonte. La méthode d’authentication semble ancienne.

En beta, après une synchronisation, j’ai mes 3 coachs et les personnes inscrites qui ont été créé dans un équipement, mais aucune caméra. Lors d’une synchronisation, j’ai ce message qui apparait :

Voilà les log de cette synchro :

[2022-11-26 15:23:58][DEBUG] : synchronize:: update:false
[2022-11-26 15:23:58][DEBUG] : synchronize:: scope:array ( )
[2022-11-26 15:23:58][DEBUG] : synchronize:: NAWSApiClient
[2022-11-26 15:23:58][DEBUG] : synchronize:: WS:array (   'devices' =>    array (   ),   'user' =>    array (     'mail' => 'XXXXX@XXXXX.XXX',     'administrative' =>      array (       'lang' => 'fr',       'reg_locale' => 'fr-FR',       'country' => 'FR',       'unit' => 0,       'windunit' => 0,       'pressureunit' => 0,       'feel_like_algo' => 0,     ),   ), )
[2022-11-26 15:23:58][DEBUG] : synchronize:: NAHomeApiClient
[2022-11-26 15:23:58][DEBUG] : synchronize:: HOME:array (   'devices' =>    array (     0 =>      array (       '_id' => 'XX:XX:XX:XX:XX:XX',       'station_name' => 'Qualité air salon',       'date_setup' => 1669047817,       'last_setup' => 1669047817,       'type' => 'NHC',       'last_status_store' => 1669472595,       'module_name' => 'Indoor',       'firmware' => 59,       'wifi_status' => 44,       'reachable' => true,       'co2_calibrating' => false,       'data_type' =>        array (         0 => 'Temperature',         1 => 'CO2',         2 => 'Humidity',         3 => 'Noise',         4 => 'Pressure',         5 => 'health_idx',       ),       'place' =>        array (         'altitude' => 40,         'city' => 'XXXXX',         'country' => 'FR',         'timezone' => 'Europe/Paris',         'location' =>          array (           0 => 2.162935594230705,           1 => 48.755143240383415,         ),       ),       'dashboard_data' =>        array (         'time_utc' => 1669472594,         'Temperature' => 17.9,         'CO2' => 630,         'Humidity' => 63,         'Noise' => 38,         'Pressure' => 1028.7,         'AbsolutePressure' => 1023.9,         'health_idx' => 1,         'min_temp' => 16.5,         'max_temp' => 20,         'date_max_temp' => 1669459882,         'date_min_temp' => 1669449588,       ),     ),     1 =>      array (       '_id' => 'XX:XX:XX:XX:XX:XX',       'station_name' => 'Qualité air Atelier XXXXX',       'date_setup' => 1669048516,       'last_setup' => 1669048516,       'type' => 'NHC',       'last_status_store' => 1669472476,       'module_name' => 'Indoor',       'firmware' => 59,       'wifi_status' => 91,       'reachable' => true,       'co2_calibrating' => false,       'data_type' =>        array (         0 => 'Temperature',         1 => 'CO2',         2 => 'Humidity',         3 => 'Noise',         4 => 'Pressure',         5 => 'health_idx',       ),       'place' =>        array (         'altitude' => 39,         'city' => 'XXXXX',         'country' => 'FR',         'timezone' => 'Europe/Paris',         'location' =>          array (           0 => 2.5634146183054027,           1 => 48.875438261562564,         ),       ),       'dashboard_data' =>        array (         'time_utc' => 1669472475,         'Temperature' => 18,         'CO2' => 710,         'Humidity' => 59,         'Noise' => 36,         'Pressure' => 1028.8,         'AbsolutePressure' => 1024.1,         'health_idx' => 1,         'min_temp' => 16.5,         'max_temp' => 18.9,         'date_max_temp' => 1669437201,         'date_min_temp' => 1669417543,       ),     ),     2 =>      array (       '_id' => 'XX:XX:XX:XX:XX:XX',       'station_name' => 'Qualité air XXXXX',       'date_setup' => 1669049196,       'last_setup' => 1669049196,       'type' => 'NHC',       'last_status_store' => 1669472437,       'module_name' => 'Indoor',       'firmware' => 59,       'wifi_status' => 78,       'reachable' => true,       'co2_calibrating' => false,       'data_type' =>        array (         0 => 'Temperature',         1 => 'CO2',         2 => 'Humidity',         3 => 'Noise',         4 => 'Pressure',         5 => 'health_idx',       ),       'place' =>        array (         'altitude' => 39,         'city' => 'XXXXX',         'country' => 'FR',         'timezone' => 'Europe/Paris',         'location' =>          array (           0 => 2.162935594230705,           1 => 48.755143240383415,         ),       ),       'dashboard_data' =>        array (         'time_utc' => 1669472437,         'Temperature' => 15.7,         'CO2' => 1030,         'Humidity' => 71,         'Noise' => 31,         'Pressure' => 1027.9,         'AbsolutePressure' => 1023.2,         'health_idx' => 3,         'min_temp' => 15.2,         'max_temp' => 16.3,         'date_max_temp' => 1669418172,         'date_min_temp' => 1669449516,       ),     ),   ),   'user' =>    array (     'mail' => 'XXXXX@XXXXX.XXX',     'administrative' =>      array (       'lang' => 'fr',       'reg_locale' => 'fr-FR',       'country' => 'FR',       'unit' => 0,       'windunit' => 0,       'pressureunit' => 0,       'feel_like_algo' => 0,     ),   ), )
[2022-11-26 15:23:58][DEBUG] : synchronize:: D_UPDATE_IN_PROGRESS:array (   '_id' => 'XX:XX:XX:XX:XX:XX',   'station_name' => 'Qualité air salon',   'date_setup' => 1669047817,   'last_setup' => 1669047817,   'type' => 'NHC',   'last_status_store' => 1669472595,   'module_name' => 'Indoor',   'firmware' => 59,   'wifi_status' => 44,   'reachable' => true,   'co2_calibrating' => false,   'data_type' =>    array (     0 => 'Temperature',     1 => 'CO2',     2 => 'Humidity',     3 => 'Noise',     4 => 'Pressure',     5 => 'health_idx',   ),   'place' =>    array (     'altitude' => 40,     'city' => 'XXXXX',     'country' => 'FR',     'timezone' => 'Europe/Paris',     'location' =>      array (       0 => 2.162935594230705,       1 => 48.755143240383415,     ),   ),   'dashboard_data' =>    array (     'time_utc' => 1669472594,     'Temperature' => 17.9,     'CO2' => 630,     'Humidity' => 63,     'Noise' => 38,     'Pressure' => 1028.7,     'AbsolutePressure' => 1023.9,     'health_idx' => 1,     'min_temp' => 16.5,     'max_temp' => 20,     'date_max_temp' => 1669459882,     'date_min_temp' => 1669449588,   ), )
[2022-11-26 15:23:58][DEBUG] : synchronize:: D_UPDATE_IN_PROGRESS:array (   '_id' => 'XX:XX:XX:XX:XX:XX',   'station_name' => 'Qualité air Atelier XXXXX',   'date_setup' => 1669048516,   'last_setup' => 1669048516,   'type' => 'NHC',   'last_status_store' => 1669472476,   'module_name' => 'Indoor',   'firmware' => 59,   'wifi_status' => 91,   'reachable' => true,   'co2_calibrating' => false,   'data_type' =>    array (     0 => 'Temperature',     1 => 'CO2',     2 => 'Humidity',     3 => 'Noise',     4 => 'Pressure',     5 => 'health_idx',   ),   'place' =>    array (     'altitude' => 39,     'city' => 'XXXXX',     'country' => 'FR',     'timezone' => 'Europe/Paris',     'location' =>      array (       0 => 2.162935594230705,       1 => 48.162935594230705,     ),   ),   'dashboard_data' =>    array (     'time_utc' => 1669472475,     'Temperature' => 18,     'CO2' => 710,     'Humidity' => 59,     'Noise' => 36,     'Pressure' => 1028.8,     'AbsolutePressure' => 1024.1,     'health_idx' => 1,     'min_temp' => 16.5,     'max_temp' => 18.9,     'date_max_temp' => 1669437201,     'date_min_temp' => 1669417543,   ), )
[2022-11-26 15:23:58][DEBUG] : synchronize:: D_UPDATE_IN_PROGRESS:array (   '_id' => 'XX:XX:XX:XX:XX:XX',   'station_name' => 'Qualité air XXXXX',   'date_setup' => 1669049196,   'last_setup' => 1669049196,   'type' => 'NHC',   'last_status_store' => 1669472437,   'module_name' => 'Indoor',   'firmware' => 59,   'wifi_status' => 78,   'reachable' => true,   'co2_calibrating' => false,   'data_type' =>    array (     0 => 'Temperature',     1 => 'CO2',     2 => 'Humidity',     3 => 'Noise',     4 => 'Pressure',     5 => 'health_idx',   ),   'place' =>    array (     'altitude' => 39,     'city' => 'XXXXX',     'country' => 'FR',     'timezone' => 'Europe/Paris',     'location' =>      array (       0 => 2.563135571031357,       1 => 48.87522143495087,     ),   ),   'dashboard_data' =>    array (     'time_utc' => 1669472437,     'Temperature' => 15.7,     'CO2' => 1030,     'Humidity' => 71,     'Noise' => 31,     'Pressure' => 1027.9,     'AbsolutePressure' => 1023.2,     'health_idx' => 3,     'min_temp' => 15.2,     'max_temp' => 16.3,     'date_max_temp' => 1669418172,     'date_min_temp' => 1669449516,   ), )
[2022-11-26 15:23:58][DEBUG] : synchronize:: NAWelcomeApiClient
[2022-11-26 15:23:58][DEBUG] : synchronize:: SECURITY:array (   'homes' =>    array (     0 =>      array (       'id' => '6196570b753fce3314094509',       'name' => 'Ma maison',       'persons' =>        array (         0 =>          array (           'id' => '5d01e384-79f3-4013-aa05-c37a73454261',           'last_seen' => 1668980258,           'out_of_sight' => true,           'face' =>            array (             'id' => '62ee15947d78371e8d306cfa',             'version' => 2,             'key' => '172e5f80b77e60de5ddaef43dc30eb23cdf7e39ef0b1b3f4cc45e403e6233fff',             'url' => 'https://netatmocameraimage.blob.core.windows.net/production/XXXXXX',           ),           'pseudo' => 'XXXXX',         ),         1 =>          array (           'id' => '772aeb80-1158-4a1b-b247-e93ec8e42fad',           'last_seen' => 1668971155,           'out_of_sight' => true,           'face' =>            array (             'id' => '62ee15bbc99ac5526c2e175f',             'version' => 2,             'key' => 'e2db3f7e53dd9e27b179e47698b1a86dfa6bb582940e5b2423e7b5b05a3662bf',             'url' => 'https://netatmocameraimage.blob.core.windows.net/production/XXXXX',           ),           'pseudo' => 'XXXXX',         ),         2 =>          array (           'id' => '8f19e462-b7d4-4bff-a8eb-f130d2624320',           'last_seen' => 1668958460,           'out_of_sight' => true,           'face' =>            array (             'id' => '62ee9f24326c0d48ab48ec6e',             'version' => 2,             'key' => 'ab5438c15ba7027441d31c3ff0313ff9353075f5f82b193a65fbdc86d0ca21b3',             'url' => 'https://netatmocameraimage.blob.core.windows.net/production/XXXXX',           ),           'pseudo' => 'XXXXX',         ),         3 =>          array (           'id' => '4810645d-e5e2-4e62-9f21-27e74eab7e96',           'last_seen' => 1668958758,           'out_of_sight' => true,           'face' =>            array (             'id' => '62eea44c528d1b316a28b092',             'version' => 2,             'key' => '21cecf5a22609d947f424f619a7d0873ebeb9099670a760da187888e2a49ac58',             'url' => 'https://netatmocameraimage.blob.core.windows.net/production/XXXXX',           ),           'pseudo' => 'XXXXX',         ),         4 =>          array (           'id' => '19d2e42f-f9dd-4ac0-9a11-7100e6f1e884',           'last_seen' => 1663345130,           'out_of_sight' => true,           'face' =>            array (             'id' => '6324a1ed1f7e8556127b01e2',             'version' => 1,             'key' => 'bdf6b1aa3976ce0a598d1fd205e05b2819677f694ae4041117b8d5b1a192a795',             'url' => 'https://netatmocameraimage.blob.core.windows.net/production/XXXXX',           ),           'pseudo' => 'XXXXX',         ),         5 =>          array (           'id' => '87acd3b7-5acb-48bb-ad57-b0dfa7000126',           'last_seen' => 1668969925,           'out_of_sight' => true,           'face' =>            array (             'id' => '637a7483471be7bdd2037f68',             'version' => 1,             'key' => 'b66474d3049aa35f77f8c38c702c047068c8fde4d3c158d12bc0d4a2b83a816b',             'url' => 'https://netatmocameraimage.blob.core.windows.net/production/637a7483471be7bdd2037f68b66474d3049aa35f77f8c38c702c047068c8fde4d3c158d12bc0d4a2b83a816b',           ),         ),         6 =>          array (           'id' => '2aff0f1a-5995-42ba-acea-aa6ee2820ccc',           'last_seen' => 1668969777,           'out_of_sight' => true,           'face' =>            array (             'id' => '637a7483c7dcf7dead0c33d5',             'version' => 1,             'key' => 'fe257a838ff2329c669c97e60401d84655a3915fe7fa54fc03e85ce5b4b2f685',             'url' => 'https://netatmocameraimage.blob.core.windows.net/production/XXXXX',           ),         ),       ),       'place' =>        array (         'city' => 'XXXXX',         'country' => 'FR',         'timezone' => 'Europe/Paris',       ),       'cameras' =>        array (         0 =>          array (           'id' => '70:ee:50:67:e5:2e',           'type' => 'NACamera',           'status' => 'off',           'vpn_url' => 'https://prodvpn-eu-13.netatmo.net/restricted/10.255.66.36/4290d0fbee6cb9f2cdb3532a60e0bbdc/XXXXX,,',           'is_local' => true,           'sd_status' => 'on',           'alim_status' => 'on',           'name' => 'Caméra porte entrée',           'last_setup' => 1659713545,         ),         1 =>          array (           'id' => '70:ee:50:92:40:52',           'type' => 'NOC',           'status' => 'on',           'vpn_url' => 'https://prodvpn-eu-11.netatmo.net/restricted/10.255.23.162/17a1cdbaa66c11dc8b188cebfd286ac7/XXXXX,,',           'is_local' => true,           'sd_status' => 'on',           'alim_status' => 'on',           'name' => 'Caméra Extérieure',           'use_pin_code' => false,           'last_setup' => 1660295900,           'light_mode_status' => 'auto',           'siren_status' => 'no_sound',         ),         2 =>          array (           'id' => '70:ee:50:94:51:f2',           'type' => 'NDB',           'status' => 'on',           'vpn_url' => 'https://prodvpn-eu-13.netatmo.net/restricted/10.255.194.43/5721869ca7e78b47748d3b5abad4b505/XXXXXX-OYRw,,',           'is_local' => true,           'websocket_connected' => true,           'sd_status' => 'on',           'alim_status' => 'on',           'name' => 'Sonnette Vidéo',           'last_setup' => 1660402869,           'quick_display_zone' => 62,           'max_peers_reached' => false,         ),       ),       'smokedetectors' =>        array (       ),       'events' =>        array (       ),     ),   ),   'user' =>    array (     'reg_locale' => 'fr-FR',     'lang' => 'fr',     'country' => 'FR',     'mail' => 'XXXXX@XXXXX.XXX',   ),   'global_info' =>    array (     'show_tags' => true,   ), )
[2022-11-26 15:23:58][DEBUG] : synchronize:: D_UPDATE_IN_PROGRESS:array (   'id' => '5d01e384-79f3-4013-aa05-c37a73454261',   'last_seen' => 1668980258,   'out_of_sight' => true,   'face' =>    array (     'id' => '62ee15947d78371e8d301cfa',     'version' => 2,     'key' => '172e5f80b77e61de5ddaef43dc30eb23cdf7e39ef0b1b3f4cc45e403e6233fff',     'url' => 'https://netatmocameraimage.blob.core.windows.net/production/62ee15947d78371e8d306cfa172e5f80b77e60de5ddaef43dc30eb23cdf7e39ef0b1b3f4cc45e403e6233fff',   ),   'pseudo' => 'XXXXX',   'type' => 'NAPerson', )
[2022-11-26 15:23:58][DEBUG] : synchronize:: D_UPDATE_IN_PROGRESS:array (   'id' => '772aeb80-1158-4a1b-b247-e93ec8e42fad',   'last_seen' => 1668971155,   'out_of_sight' => true,   'face' =>    array (     'id' => '62ee15bbc99ac5526c21175f',     'version' => 2,     'key' => 'e2db3f7e53dd9127b179e47698b1a86dfa6bb582940e5b2423e7b5b05a3662bf',     'url' => 'https://netatmocameraimage.blob.core.windows.net/production/62ee15bbc99ac5526c2e175fe2db3f7e53dd9e27b179e47698b1a86dfa6bb582940e5b2423e7b5b05a3662bf',   ),   'pseudo' => 'XXXXX',   'type' => 'NAPerson', )
[2022-11-26 15:23:58][DEBUG] : synchronize:: D_UPDATE_IN_PROGRESS:array (   'id' => '8f19e462-b7d4-4bff-a8eb-f130d2624320',   'last_seen' => 1668958460,   'out_of_sight' => true,   'face' =>    array (     'id' => '62ee9f24326c0d48ab18ec6e',     'version' => 2,     'key' => 'ab5438c15ba7017441d31c3ff0313ff9353075f5f82b193a65fbdc86d0ca21b3',     'url' => 'https://netatmocameraimage.blob.core.windows.net/production/62ee9f24326c0d48ab48ec6eab5438c15ba7027441d31c3ff0313ff9353075f5f82b193a65fbdc86d0ca21b3',   ),   'pseudo' => 'XXXXX',   'type' => 'NAPerson', )
[2022-11-26 15:23:58][DEBUG] : synchronize:: D_UPDATE_IN_PROGRESS:array (   'id' => '4810645d-e5e2-4e62-9f21-27e74eab7e96',   'last_seen' => 1668958758,   'out_of_sight' => true,   'face' =>    array (     'id' => '62eea44c528d1b316128b092',     'version' => 2,     'key' => '21cecf5a226091947f424f619a7d0873ebeb9099670a760da187888e2a49ac58',     'url' => 'https://netatmocameraimage.blob.core.windows.net/production/62eea44c528d1b316a28b09221cecf5a22609d947f424f619a7d0873ebeb9099670a760da187888e2a49ac58',   ),   'pseudo' => 'XXXXX',   'type' => 'NAPerson', )
[2022-11-26 15:23:58][DEBUG] : synchronize:: D_UPDATE_IN_PROGRESS:array (   'id' => '19d2e42f-f9dd-4ac0-9a11-7100e6f1e884',   'last_seen' => 1663345130,   'out_of_sight' => true,   'face' =>    array (     'id' => '6324a1ed1f7e8551127b01e2',     'version' => 1,     'key' => 'bdf6b1aa3976c10a598d1fd205e05b2819677f694ae4041117b8d5b1a192a795',     'url' => 'https://netatmocameraimage.blob.core.windows.net/production/6324a1ed1f7e8556127b01e2bdf6b1aa3976ce0a598d1fd205e05b2819677f694ae4041117b8d5b1a192a795',   ),   'pseudo' => 'XXXXX',   'type' => 'NAPerson', )
[2022-11-26 15:23:58][DEBUG] : GetGuzzleHd:: FileCookieJar:GuzzleHttp\Cookie\FileCookieJar::__set_state(array(    'filename' => '/tmp/jeedom/netatmopro/b27536f76a9d4d240a34dbd84bc85085',    'storeSessionCookies' => true,    'cookies' =>    array (   ),    'strictMode' => false, ))
[2022-11-26 15:23:58][DEBUG] : GetGuzzleHd:: netatmocomaccess_token:NULL
[2022-11-26 15:23:59][DEBUG] : GetGuzzleHd:: csrf:'{"token":"FVuRM81TUHAan2baae70UuoFihAcqegOPwBqaxgp"}'
[2022-11-26 15:23:59][DEBUG] : synchronize:: guzzle:GuzzleHttp\Client::__set_state(array(    'config' =>    array (     'cookies' =>      GuzzleHttp\Cookie\FileCookieJar::__set_state(array(        'filename' => '/tmp/jeedom/netatmopro/b27536f76a9d4d240a34dbd84bc85085',        'storeSessionCookies' => true,        'cookies' =>        array (         6 =>          GuzzleHttp\Cookie\SetCookie::__set_state(array(            'data' =>            array (             'Name' => 'authnetatmocomrefresh_token',             'Value' => 'eyJpdiI6IjRCUEd1VnEveUJQeVJXRmNLUDNYY2c9PSIsInZhbHVlIjoiZGRMU0d1VnNDSjhkTGI5NGFoY1VTUDc2UHAza2kwT3ZCZ2l3ZUdjT2V2RnlxRVY0UUs5djhrL1RqRWdQOWJLUiIsIm1hYyI6Ijc3ODk5OGVkZWQ4ODA3MDY4ZDVjYTEyZGQwMjVlYWIyNTMyZThkYTI1OWY0MzBhN2VjZmZmNjYwNzVkMjI4YzAiLCJ0YWciOiIifQ%3D%3D',             'Domain' => '.auth.netatmo.com',             'Path' => '/',             'Max-Age' => '0',             'Expires' => 1511792639,             'Secure' => true,             'Discard' => false,             'HttpOnly' => true,           ),         )),         7 =>          GuzzleHttp\Cookie\SetCookie::__set_state(array(            'data' =>            array (             'Name' => 'netatmocomaccess_token',             'Value' => 'deleted',             'Domain' => '.netatmo.com',             'Path' => '/',             'Max-Age' => '0',             'Expires' => 1637936638,             'Secure' => true,             'Discard' => false,             'HttpOnly' => false,           ),         )),         8 =>          GuzzleHttp\Cookie\SetCookie::__set_state(array(            'data' =>            array (             'Name' => 'XSRF-TOKEN',             'Value' => 'eyJpdiI6IlNDSXZlRjViYVZ6bFkzK0NlOVlySEE9PSIsInZhbHVlIjoiQ2RNYSt5WWhxc2o2Tjlha3BHV21kZ29kVUJLaEErajBZVXFRRFZ4VUxXUWd6SkUwVk1pV0VRTW84V3BrUFlXQ0ltMkJXOWVQckxwQlpINHBmNEM0YkIxSFJFYms1Z3hEREJ3OTMzWTU4dmRVcGFLRDU0amI4bk0rU2ptYmpyT0siLCJtYWMiOiI0OWYyMDg2MDNhZTk3NjIxYmYwZWQxZTVlMWM5OGQwNWY3ZTgwYzZiMTZiMDE5MmY4NjJhNDdhZDNmOGVhMGJlIiwidGFnIjoiIn0%3D',             'Domain' => '.auth.netatmo.com',             'Path' => '/',             'Max-Age' => '7200',             'Expires' => 1669479839,             'Secure' => true,             'Discard' => false,             'HttpOnly' => false,           ),         )),         9 =>          GuzzleHttp\Cookie\SetCookie::__set_state(array(            'data' =>            array (             'Name' => 'authnetatmocomlaravel_session',             'Value' => 'eyJpdiI6IlZJSGxLZ05HWDJiNUdXbUhKMFRQMHc9PSIsInZhbHVlIjoiRThNcFR5VzcvQktlK1JiMmYxN2RjUHVzc2JrNnRPajFPbkRNcU5IWDB0dVdSa3V4RWthMFU0cTVjZStGa1FEUWJiWUV3N1FKN3VSY0tpT3NXL3pzR1FLcjlxZ3RaYWdkZkpmWGNEaGhJa2lseWFzWStheThLYVBiZFdDa3RaWVEiLCJtYWMiOiI1ZTBmODE3NmRlNzJhZWEyNjlkMmI3ZTBjNWJkNmVlOGE1OTEzNzlkNDgyNmE1YWVlYzZhMWVkZmQ3ZDMwMWQyIiwidGFnIjoiIn0%3D',             'Domain' => '.auth.netatmo.com',             'Path' => '/',             'Max-Age' => '7200',             'Expires' => 1669479839,             'Secure' => true,             'Discard' => false,             'HttpOnly' => true,           ),         )),       ),        'strictMode' => false,     )),     'handler' =>      GuzzleHttp\HandlerStack::__set_state(array(        'handler' =>        Closure::__set_state(array(       )),        'stack' =>        array (         0 =>          array (           0 =>            Closure::__set_state(array(           )),           1 => 'http_errors',         ),         1 =>          array (           0 =>            Closure::__set_state(array(           )),           1 => 'allow_redirects',         ),         2 =>          array (           0 =>            Closure::__set_state(array(           )),           1 => 'cookies',         ),         3 =>          array (           0 =>            Closure::__set_state(array(           )),           1 => 'prepare_body',         ),       ),        'cached' =>        Closure::__set_state(array(       )),     )),     'allow_redirects' =>      array (       'max' => 5,       'protocols' =>        array (         0 => 'http',         1 => 'https',       ),       'strict' => false,       'referer' => false,       'track_redirects' => false,     ),     'http_errors' => true,     'decode_content' => true,     'verify' => true,     'idn_conversion' => true,     'headers' =>      array (       'User-Agent' => 'GuzzleHttp/6.5.5 curl/7.64.0 PHP/7.3.31-1~deb10u1',     ),   ), ))
[2022-11-26 15:23:59][DEBUG] : synchronize:: jar:GuzzleHttp\Cookie\FileCookieJar::__set_state(array(    'filename' => '/tmp/jeedom/netatmopro/b27536f76a9d4d240a34dbd84bc85085',    'storeSessionCookies' => true,    'cookies' =>    array (     6 =>      GuzzleHttp\Cookie\SetCookie::__set_state(array(        'data' =>        array (         'Name' => 'authnetatmocomrefresh_token',         'Value' => 'eyJpdiI6IjRCUEd1VnEveUJQeVJXRmNLUDNYY2c9PSIsInZhbHVlIjoiZGRMU0d1VnNDSjhkTGI5NGFoY1VTUDc2UHAza2kwT3ZCZ2l3ZUdjT2V2RnlxRVY0UUs5djhrL1RqRWdQOWJLUiIsIm1hYyI6Ijc3ODk5OGVkZWQ4ODA3MDY4ZDVjYTEyZGQwMjVlYWIyNTMyZThkYTI1OWY0MzBhN2VjZmZmNjYwNzVkMjI4YzAiLCJ0YWciOiIifQ%3D%3D',         'Domain' => '.auth.netatmo.com',         'Path' => '/',         'Max-Age' => '0',         'Expires' => 1511792639,         'Secure' => true,         'Discard' => false,         'HttpOnly' => true,       ),     )),     7 =>      GuzzleHttp\Cookie\SetCookie::__set_state(array(        'data' =>        array (         'Name' => 'netatmocomaccess_token',         'Value' => 'deleted',         'Domain' => '.netatmo.com',         'Path' => '/',         'Max-Age' => '0',         'Expires' => 1637936638,         'Secure' => true,         'Discard' => false,         'HttpOnly' => false,       ),     )),     8 =>      GuzzleHttp\Cookie\SetCookie::__set_state(array(        'data' =>        array (         'Name' => 'XSRF-TOKEN',         'Value' => 'eyJpdiI6IlNDSXZlRjViYVZ6bFkzK0NlOVlySEE9PSIsInZhbHVlIjoiQ2RNYSt5WWhxc2o2Tjlha3BHV21kZ29kVUJLaEErajBZVXFRRFZ4VUxXUWd6SkUwVk1pV0VRTW84V3BrUFlXQ0ltMkJXOWVQckxwQlpINHBmNEM0YkIxSFJFYms1Z3hEREJ3OTMzWTU4dmRVcGFLRDU0amI4bk0rU2ptYmpyT0siLCJtYWMiOiI0OWYyMDg2MDNhZTk3NjIxYmYwZWQxZTVlMWM5OGQwNWY3ZTgwYzZiMTZiMDE5MmY4NjJhNDdhZDNmOGVhMGJlIiwidGFnIjoiIn0%3D',         'Domain' => '.auth.netatmo.com',         'Path' => '/',         'Max-Age' => '7200',         'Expires' => 1669479839,         'Secure' => true,         'Discard' => false,         'HttpOnly' => false,       ),     )),     9 =>      GuzzleHttp\Cookie\SetCookie::__set_state(array(        'data' =>        array (         'Name' => 'authnetatmocomlaravel_session',         'Value' => 'eyJpdiI6IlZJSGxLZ05HWDJiNUdXbUhKMFRQMHc9PSIsInZhbHVlIjoiRThNcFR5VzcvQktlK1JiMmYxN2RjUHVzc2JrNnRPajFPbkRNcU5IWDB0dVdSa3V4RWthMFU0cTVjZStGa1FEUWJiWUV3N1FKN3VSY0tpT3NXL3pzR1FLcjlxZ3RaYWdkZkpmWGNEaGhJa2lseWFzWStheThLYVBiZFdDa3RaWVEiLCJtYWMiOiI1ZTBmODE3NmRlNzJhZWEyNjlkMmI3ZTBjNWJkNmVlOGE1OTEzNzlkNDgyNmE1YWVlYzZhMWVkZmQ3ZDMwMWQyIiwidGFnIjoiIn0%3D',         'Domain' => '.auth.netatmo.com',         'Path' => '/',         'Max-Age' => '7200',         'Expires' => 1669479839,         'Secure' => true,         'Discard' => false,         'HttpOnly' => true,       ),     )),   ),    'strictMode' => false, ))
[2022-11-26 15:23:59][DEBUG] : synchronize:: uri:'https://app.netatmo.net/api/gethomedata'

La portion de code par laquelle la réponse doit remonter est « Deprecated » d’après la doc de l’API (ne vaudrait-il pas mieux passer par /homedata et /homestatus ?)

                      $uri = 'https://app.netatmo.net/api/gethomedata';
                      log::add('netatmopro', 'debug', 'synchronize:: uri:' . var_export($uri, true));
                      $response = $guzzle->request('POST', $uri, [
                          'headers' => [
                              'Authorization' => 'Bearer ' . urldecode($jar->getCookieByName('netatmocomaccess_token')->getValue())
                          ],
                          'body' => '{"home_id":"' . $home['id'] . '"}'
                      ]);

En regardant mes logs, on voit bien que le jeton netatmocomaccess_token est à la valeur « deleted ».

Une idée ?

Plugin en stable ou en version beta ?

Je viens de faire un test et mes 3 cameras Presence sont bien présentes…
En beta, il faut bien faire attention à lier ton compte pour utiliser la nouvelle API d’authentiication

En stable, « Bad request » et ça donne rien.

En beta, le message ci-dessus et les log.

Oui, c’est lié. Sinon j’aurais pas eu les coach health créés.

La seule option auquel je pense (pour l’instant) est un mauvais mot de passe dans la page de configuration du plugin.

J’ai exactement ce même message en indiquant un mauvais mot de passe…

Je suis passé du plugin netatmowelcome à celui-ci en gardant les mêmes id/secret/email/mdp.

Je vais créer une autre app pour voir.

Ce n’est pas lié à l’application car j’utilise le login/password pour avoir accès à des informations non disponible dans l’API…
Et j’ai reproduis exactement ce même log (Invalid access token) en indiquant un mauvais mot de passe.

[EDIT] : aucune camera n’est remontée pour information si j’indique un mauvais mot de passe

C’est bien le mot de passe… :face_with_head_bandage:
Mauvais copié/collé lors de la récup. Le pire c’est qu’ensuite je l’ai tapé manuellement et ai refait l’erreur.

Merci du tuyau et désolé du dérangement.

Aucun souci !

Pour information, il va y avoir très prochainement une refonte du plugin pour éliminer cette connexion Web ainsi que la suppression des méthodes deprecated de l’API.

Très bon week-end :wink:

1 « J'aime »

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.