Statut / état alarme non mis à jour

Bonjour à tous,

Suite à l’installation du plugin pour l’alarme IMA, le statut et l’état de l’alarme ne sont pas mis à jour.

Ce qui marche

  • La synchro avec les identifiants fonctionne car ca me remonte la liste des contacts
  • L’onglet « Notifications » fonctionne car j’ai bien les notifs qui se déclenchent lors du changement de statut de l’alarme
  • Les « Commandes » pour lister les évènements et les images des « caméras » fonctionnent car je les vois bien dans l’onglet.

Ce qui ne marche pas

  • La mise à jour des infos « Statut binaire de l’alarme », « Etat alarme », « Statut alarme », « Mode alarme » qui ont toujours leurs valeurs initiales. Meme quand j’appuie sur le bouton « Evaluer » de « Rafraichir statut alarme », l’info n’est pas MAJ.

Capture de l’onglet « Notifications »

Extrait des logs en mode « debug »
Les email, MdP, tokens ont été anonymisés

[2023-01-03 11:11:35]DEBUG :   * Execution cmd alarmeIMA | cmd : refreshAlarmeStatus => title :  | message :
[2023-01-03 11:11:35]DEBUG : *********************************************************************
[2023-01-03 11:11:35]DEBUG : Click on refresh alarm status
[2023-01-03 11:11:35]DEBUG :   GetAlarmState Start
[2023-01-03 11:11:35]DEBUG : 	* instanciation api ima protect
[2023-01-03 11:11:35]DEBUG : 			==> constructor of class imaProtectNewAPI - Start
[2023-01-03 11:11:35]DEBUG : 			==> getDatasSession
[2023-01-03 11:11:35]DEBUG : 			==> plugin config : {"expireImaCookie":"Tue, 03-Jan-2023 10:31:11 GMT,Tue, 03-Jan-2023 10:31:12 GMT","imainternational":"IMA_INT_1","TS013a2ec2":"TS013_2","TS0192ac0d":"TS019_2","statusToken":"STATUS_TOKEN_1","captureToken":"CAPTURE_TOKEN_1","csrfToken":"CRSF_TOKEN_1"}
[2023-01-03 11:11:35]DEBUG : 			==> Read datas session ... datas {"expireImaCookie":"Tue, 03-Jan-2023 10:31:11 GMT,Tue, 03-Jan-2023 10:31:12 GMT","imainternational":"IMA_INT_1","TS013a2ec2":"TS013_2","TS0192ac0d":"TS019_2","statusToken":"STATUS_TOKEN_1","captureToken":"CAPTURE_TOKEN_1","csrfToken":"CRSF_TOKEN_1"}
[2023-01-03 11:11:35]DEBUG : 				* sessionID is expired
[2023-01-03 11:11:35]DEBUG : 	* Validation couple user / mdp
[2023-01-03 11:11:35]DEBUG : 		* login
[2023-01-03 11:11:35]DEBUG : 			==> doRequest
[2023-01-03 11:11:35]DEBUG : 				==> Params : https://www.imaprotect.com/fr/client/login |  | GET | null
[2023-01-03 11:11:35]DEBUG : 				==> Params json input : null
[2023-01-03 11:11:36]DEBUG : 				==> Response
[2023-01-03 11:11:36]DEBUG : 					# Code Http : 200
[2023-01-03 11:11:36]DEBUG : 					# Header  : HTTP/1.1 200 OK Date: Tue, 03 Jan 2023 10:11:35 GMT Cache-Control: max-age=0, must-revalidate, private Expires: Tue, 03 Jan 2023 10:11:35 GMT Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: imainternational=IMA_INT_2; expires=Tue, 03-Jan-2023 10:31:36 GMT; Max-Age=1200; path=/; domain=www.imaprotect.com; HttpOnly; SameSite=lax; Secure;  Set-Cookie: TS013a2ec2=TS013_1; Path=/; Domain=.www.imaprotect.com; Secure; HTTPOnly Transfer-Encoding: chunked
[2023-01-03 11:11:36]DEBUG : 				==> Recover cookies get : IMA_INT_2|TS013_1|Tue, 03-Jan-2023 10:31:36 GMT|CSRF_TOKEN_2
[2023-01-03 11:11:36]DEBUG : 		* loginCheck
[2023-01-03 11:11:36]DEBUG : 			==> doRequest
[2023-01-03 11:11:36]DEBUG : 				==> Params : https://www.imaprotect.com/fr/client/login_check | _username=EMAIL_PERSO&_password=MDP_PERSO&_csrf_token=CSRF_TOKEN_2 | POST | ["Host: www.imaprotect.com","Origin: https:\/\/www.imaprotect.com","Referer: https:\/\/www.imaprotect.com\/fr\/client\/login","Content-Type: application\/x-www-form-urlencoded","Cookie: imainternational=IMA_INT_2; tr=REFERER%3Awww.imaprotect.com;TS013a2ec2=TS013_1"]
[2023-01-03 11:11:36]DEBUG : 				==> Params json input : "_username=EMAIL_PERSO&_password=MDP_PERSO&_csrf_token=CSRF_TOKEN_2"
[2023-01-03 11:11:37]DEBUG : 				==> Response
[2023-01-03 11:11:37]DEBUG : 					# Code Http : 200
[2023-01-03 11:11:37]DEBUG : 					# Header  : HTTP/1.1 302 Found Date: Tue, 03 Jan 2023 10:11:36 GMT Cache-Control: max-age=0, must-revalidate, private Expires: Tue, 03 Jan 2023 10:11:36 GMT Location: http://www.imaprotect.com/fr/client/ Content-Type: text/html; charset=UTF-8 Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: imainternational=IMA_INT_2; expires=Tue, 03-Jan-2023 10:31:36 GMT; Max-Age=1200; path=/; domain=www.imaprotect.com; HttpOnly; SameSite=lax; Secure;  Set-Cookie: last_logged_at=1672740696; expires=Tue, 10-Jan-2023 10:11:36 GMT; Max-Age=604800; path=/; httponly; Secure;  Set-Cookie: REMEMBERME=deleted; expires=Mon, 03-Jan-2022 10:11:35 GMT; Max-Age=0; path=/client; httponly; Secure;  Set-Cookie: TS013a2ec2=TS013_3; Path=/; Domain=.www.imaprotect.com; Secure; HTTPOnly Set-Cookie: TS0192ac0d=TS019_3; path=/client; HTTPonly; Secure Transfer-Encoding: chunked  HTTP/1.0 302 Moved Temporarily Location: https://www.imaprotect.com/fr/client/ Server: BigIP Connection: Keep-Alive Content-Length: 0  HTTP/1.1 200 OK Date: Tue, 03 Jan 2023 10:11:37 GMT Cache-Control: max-age=0, must-revalidate, private pragma: no-cache Expires: Tue, 03 Jan 2023 10:11:37 GMT Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 9167 Connection: close Content-Type: text/html; charset=UTF-8 Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: imainternational=IMA_INT_2; expires=Tue, 03-Jan-2023 10:31:37 GMT; Max-Age=1200; path=/; domain=www.imaprotect.com; HttpOnly; SameSite=lax; Secure;  Set-Cookie: TS013a2ec2=TS013_1; Path=/; Domain=.www.imaprotect.com; Secure; HTTPOnly
[2023-01-03 11:11:37]DEBUG : 				==> Recover cookies : IMA_INT_2|TS013_3|TS019_3|Tue, 03-Jan-2023 10:31:36 GMT,Tue, 03-Jan-2023 10:31:37 GMT
[2023-01-03 11:11:37]DEBUG : 	* Recuperation token IMA Protect
[2023-01-03 11:11:37]DEBUG : 			==> doRequest
[2023-01-03 11:11:37]DEBUG : 				==> Params : https://www.imaprotect.com/fr/client/management |  | GET | ["Host: www.imaprotect.com","Connection: keep-alive","Accept: application\/json, text\/plain, *\/*","Referer: https:\/\/www.imaprotect.com\/fr\/client\/","Accept-Encoding: gzip, deflate, br","Cookie: imainternational=IMA_INT_2; TS013a2ec2=TS013_3"]
[2023-01-03 11:11:37]DEBUG : 				==> Params json input : ""
[2023-01-03 11:11:37]DEBUG : 				==> Response
[2023-01-03 11:11:37]DEBUG : 					# Code Http : 200
[2023-01-03 11:11:37]DEBUG : 					# Header  : HTTP/1.1 200 OK Date: Tue, 03 Jan 2023 10:11:37 GMT Cache-Control: max-age=0, must-revalidate, private Expires: Tue, 03 Jan 2023 10:11:37 GMT Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 8580 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: text/html; charset=UTF-8 Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: imainternational=IMA_INT_2; expires=Tue, 03-Jan-2023 10:31:37 GMT; Max-Age=1200; path=/; domain=www.imaprotect.com; HttpOnly; SameSite=lax; Secure;  Set-Cookie: tr=REFERER%3Awww.imaprotect.com; expires=Thu, 02-Feb-2023 10:11:37 GMT; Max-Age=2592000; path=/; domain=www.imaprotect.com; httponly Set-Cookie: TS013a2ec2=TS013_4; Path=/; Domain=.www.imaprotect.com; Secure; HTTPOnly
[2023-01-03 11:11:37]DEBUG : 	* Recuperation informations sur les caméras IMA Protect
[2023-01-03 11:11:37]DEBUG : 			==> getOtherInfo
[2023-01-03 11:11:37]DEBUG : 			==> doRequest
[2023-01-03 11:11:37]DEBUG : 				==> Params : https://www.imaprotect.com/fr/client/management/cameras |  | GET | ["Host: www.imaprotect.com","Connection: keep-alive","Accept: application\/json, text\/plain, *\/*","Referer: https:\/\/www.imaprotect.com\/fr\/client\/","Accept-Encoding: gzip, deflate, br","Cookie: imainternational=IMA_INT_2; TS013a2ec2=TS013_3"]
[2023-01-03 11:11:37]DEBUG : 				==> Params json input : ""
[2023-01-03 11:11:38]DEBUG : 				==> Response
[2023-01-03 11:11:38]DEBUG : 					# Code Http : 200
[2023-01-03 11:11:38]DEBUG : 					# Body  : [{"name":"couloir rdc","device_type":"ircam","capability_set":[{"model":"hss.capability","pk":"device_PK_1_crd_capture","fields":{"mode":"crd","type":"capture"}}],"pk":"PK_1","can_create":true,"can_read":true,"can_update":false,"can_delete":true},{"name":"sejour","device_type":"ircam","capability_set":[{"model":"hss.capability","pk":"device_PK_2_crd_capture","fields":{"mode":"crd","type":"capture"}}],"pk":"PK_2","can_create":true,"can_read":true,"can_update":false,"can_delete":true},{"name":"etage","device_type":"ircam","capability_set":[{"model":"hss.capability","pk":"device_PK_3_crd_capture","fields":{"mode":"crd","type":"capture"}}],"pk":"PK_3","can_create":true,"can_read":true,"can_update":false,"can_delete":true}]
[2023-01-03 11:11:38]DEBUG : 					# Header  : HTTP/1.1 200 OK Date: Tue, 03 Jan 2023 10:11:38 GMT Cache-Control: max-age=0, must-revalidate, private Expires: Tue, 03 Jan 2023 10:11:38 GMT Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: imainternational=IMA_INT_2; expires=Tue, 03-Jan-2023 10:31:38 GMT; Max-Age=1200; path=/; domain=www.imaprotect.com; HttpOnly; SameSite=lax; Secure;  Set-Cookie: tr=REFERER%3Awww.imaprotect.com; expires=Thu, 02-Feb-2023 10:11:38 GMT; Max-Age=2592000; path=/; domain=www.imaprotect.com; httponly Set-Cookie: TS013a2ec2=TS013_4; Path=/; Domain=.www.imaprotect.com; Secure; HTTPOnly Transfer-Encoding: chunked
[2023-01-03 11:11:38]DEBUG : 				==> readResponseForGetOtherInfo - Start
[2023-01-03 11:11:38]DEBUG : 				==> readResponseForGetOtherInfo - End -> response :  [{"room":"couloir rdc","pk":"PK_1"},{"room":"sejour","pk":"PK_2"},{"room":"etage","pk":"PK_3"}]
[2023-01-03 11:11:38]DEBUG : 	* setRoomsList Start : [{"room":"couloir rdc","pk":"PK_1"},{"room":"sejour","pk":"PK_2"},{"room":"etage","pk":"PK_3"}]
[2023-01-03 11:11:38]DEBUG : 	* setRoomsList End
[2023-01-03 11:11:38]DEBUG : 	* Recuperation statut de l'alarme
[2023-01-03 11:11:38]DEBUG : 			==> getAlarmStatus - attemp : 1
[2023-01-03 11:11:38]DEBUG : 			==> doRequest
[2023-01-03 11:11:38]DEBUG : 				==> Params : https://www.imaprotect.com/fr/client/management/status |  | GET | ["Host: www.imaprotect.com","Connection: keep-alive","Accept: application\/json, text\/plain, *\/*","Referer: https:\/\/www.imaprotect.com\/fr\/client\/","Accept-Encoding: gzip, deflate, br","Cookie: imainternational=IMA_INT_2; TS013a2ec2=TS013_3"]
[2023-01-03 11:11:38]DEBUG : 				==> Params json input : ""
[2023-01-03 11:11:39]DEBUG : 				==> Response
[2023-01-03 11:11:39]DEBUG : 					# Code Http : 200
[2023-01-03 11:11:39]DEBUG : 					# Body  : "on"
[2023-01-03 11:11:39]DEBUG : 					# Header  : HTTP/1.1 200 OK Date: Tue, 03 Jan 2023 10:11:39 GMT Cache-Control: max-age=0, must-revalidate, private Expires: Tue, 03 Jan 2023 10:11:39 GMT Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: imainternational=IMA_INT_2; expires=Tue, 03-Jan-2023 10:31:39 GMT; Max-Age=1200; path=/; domain=www.imaprotect.com; HttpOnly; SameSite=lax; Secure;  Set-Cookie: tr=REFERER%3Awww.imaprotect.com; expires=Thu, 02-Feb-2023 10:11:39 GMT; Max-Age=2592000; path=/; domain=www.imaprotect.com; httponly Set-Cookie: TS013a2ec2=TS013_4; Path=/; Domain=.www.imaprotect.com; Secure; HTTPOnly Transfer-Encoding: chunked
[2023-01-03 11:11:39]DEBUG : 	    - Nouveau status numerique alarme: 2 | on
[2023-01-03 11:11:39]DEBUG :   * Execution cmd alarmeIMA | cmd : refreshAlarmEvents => title :  | message :
[2023-01-03 11:11:39]DEBUG : *********************************************************************
[2023-01-03 11:11:39]DEBUG : Click on refresh alarm events
[2023-01-03 11:11:39]DEBUG :   GetAlarmEvents Start
[2023-01-03 11:11:39]DEBUG : 	* instanciation api ima protect
[2023-01-03 11:11:39]DEBUG : 			==> constructor of class imaProtectNewAPI - Start
[2023-01-03 11:11:39]DEBUG : 			==> getDatasSession
[2023-01-03 11:11:39]DEBUG : 			==> plugin config : {"expireImaCookie":"Tue, 03-Jan-2023 10:31:36 GMT,Tue, 03-Jan-2023 10:31:37 GMT","imainternational":"IMA_INT_2","TS013a2ec2":"TS013_3","TS0192ac0d":"TS019_3","statusToken":"STATUS_TOKEN_2","captureToken":"CAPTURE_TOKEN_2","csrfToken":"CSRF_TOKEN_2"}
[2023-01-03 11:11:39]DEBUG : 			==> Read datas session ... datas {"expireImaCookie":"Tue, 03-Jan-2023 10:31:36 GMT,Tue, 03-Jan-2023 10:31:37 GMT","imainternational":"IMA_INT_2","TS013a2ec2":"TS013_3","TS0192ac0d":"TS019_3","statusToken":"STATUS_TOKEN_2","captureToken":"CAPTURE_TOKEN_2","csrfToken":"CSRF_TOKEN_2"}
[2023-01-03 11:11:39]DEBUG : 				* sessionID is expired
[2023-01-03 11:11:39]DEBUG : 	* Validation couple user / mdp
[2023-01-03 11:11:39]DEBUG : 		* login
[2023-01-03 11:11:39]DEBUG : 			==> doRequest
[2023-01-03 11:11:39]DEBUG : 				==> Params : https://www.imaprotect.com/fr/client/login |  | GET | null
[2023-01-03 11:11:39]DEBUG : 				==> Params json input : null
[2023-01-03 11:11:39]DEBUG : 				==> Response
[2023-01-03 11:11:39]DEBUG : 					# Code Http : 200
[2023-01-03 11:11:39]DEBUG : 					# Header  : HTTP/1.1 200 OK Date: Tue, 03 Jan 2023 10:11:39 GMT Cache-Control: max-age=0, must-revalidate, private Expires: Tue, 03 Jan 2023 10:11:39 GMT Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: imainternational=IMA_INT_3; expires=Tue, 03-Jan-2023 10:31:39 GMT; Max-Age=1200; path=/; domain=www.imaprotect.com; HttpOnly; SameSite=lax; Secure;  Set-Cookie: TS013a2ec2=TS013_5; Path=/; Domain=.www.imaprotect.com; Secure; HTTPOnly Transfer-Encoding: chunked
[2023-01-03 11:11:39]DEBUG : 				==> Recover cookies get : IMA_INT_3|TS013_5|Tue, 03-Jan-2023 10:31:39 GMT|CSRF_TOKEN_3
[2023-01-03 11:11:39]DEBUG : 		* loginCheck
[2023-01-03 11:11:39]DEBUG : 			==> doRequest
[2023-01-03 11:11:39]DEBUG : 				==> Params : https://www.imaprotect.com/fr/client/login_check | _username=EMAIL_PERSO&_password=MDP_PERSO&_csrf_token=CSRF_TOKEN_3 | POST | ["Host: www.imaprotect.com","Origin: https:\/\/www.imaprotect.com","Referer: https:\/\/www.imaprotect.com\/fr\/client\/login","Content-Type: application\/x-www-form-urlencoded","Cookie: imainternational=IMA_INT_3; tr=REFERER%3Awww.imaprotect.com;TS013a2ec2=TS013_5"]
[2023-01-03 11:11:39]DEBUG : 				==> Params json input : "_username=EMAIL_PERSO&_password=MDP_PERSO&_csrf_token=CSRF_TOKEN_3"
[2023-01-03 11:11:41]DEBUG : 				==> Response
[2023-01-03 11:11:41]DEBUG : 					# Code Http : 200
[2023-01-03 11:11:41]DEBUG : 					# Header  : HTTP/1.1 302 Found Date: Tue, 03 Jan 2023 10:11:40 GMT Cache-Control: max-age=0, must-revalidate, private Expires: Tue, 03 Jan 2023 10:11:40 GMT Location: http://www.imaprotect.com/fr/client/ Content-Type: text/html; charset=UTF-8 Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: imainternational=IMA_INT_3; expires=Tue, 03-Jan-2023 10:31:40 GMT; Max-Age=1200; path=/; domain=www.imaprotect.com; HttpOnly; SameSite=lax; Secure;  Set-Cookie: last_logged_at=1672740700; expires=Tue, 10-Jan-2023 10:11:40 GMT; Max-Age=604800; path=/; httponly; Secure;  Set-Cookie: REMEMBERME=deleted; expires=Mon, 03-Jan-2022 10:11:39 GMT; Max-Age=0; path=/client; httponly; Secure;  Set-Cookie: TS013a2ec2=TS013_6; Path=/; Domain=.www.imaprotect.com; Secure; HTTPOnly Set-Cookie: TS0192ac0d=TS019_4; path=/client; HTTPonly; Secure Transfer-Encoding: chunked  HTTP/1.0 302 Moved Temporarily Location: https://www.imaprotect.com/fr/client/ Server: BigIP Connection: Keep-Alive Content-Length: 0  HTTP/1.1 200 OK Date: Tue, 03 Jan 2023 10:11:41 GMT Cache-Control: max-age=0, must-revalidate, private pragma: no-cache Expires: Tue, 03 Jan 2023 10:11:41 GMT Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 9165 Connection: close Content-Type: text/html; charset=UTF-8 Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: imainternational=IMA_INT_3; expires=Tue, 03-Jan-2023 10:31:41 GMT; Max-Age=1200; path=/; domain=www.imaprotect.com; HttpOnly; SameSite=lax; Secure;  Set-Cookie: TS013a2ec2=TS013_5; Path=/; Domain=.www.imaprotect.com; Secure; HTTPOnly
[2023-01-03 11:11:41]DEBUG : 				==> Recover cookies : IMA_INT_3|TS013_6|TS019_4|Tue, 03-Jan-2023 10:31:40 GMT,Tue, 03-Jan-2023 10:31:41 GMT
[2023-01-03 11:11:41]DEBUG : 	* Recuperation token IMA Protect
[2023-01-03 11:11:41]DEBUG : 			==> doRequest
[2023-01-03 11:11:41]DEBUG : 				==> Params : https://www.imaprotect.com/fr/client/management |  | GET | ["Host: www.imaprotect.com","Connection: keep-alive","Accept: application\/json, text\/plain, *\/*","Referer: https:\/\/www.imaprotect.com\/fr\/client\/","Accept-Encoding: gzip, deflate, br","Cookie: imainternational=IMA_INT_3; TS013a2ec2=TS013_6"]
[2023-01-03 11:11:41]DEBUG : 				==> Params json input : ""
[2023-01-03 11:11:41]DEBUG : 				==> Response
[2023-01-03 11:11:41]DEBUG : 					# Code Http : 200
[2023-01-03 11:11:41]DEBUG : 					# Header  : HTTP/1.1 200 OK Date: Tue, 03 Jan 2023 10:11:41 GMT Cache-Control: max-age=0, must-revalidate, private Expires: Tue, 03 Jan 2023 10:11:41 GMT Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 8580 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: text/html; charset=UTF-8 Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: imainternational=IMA_INT_3; expires=Tue, 03-Jan-2023 10:31:41 GMT; Max-Age=1200; path=/; domain=www.imaprotect.com; HttpOnly; SameSite=lax; Secure;  Set-Cookie: tr=REFERER%3Awww.imaprotect.com; expires=Thu, 02-Feb-2023 10:11:41 GMT; Max-Age=2592000; path=/; domain=www.imaprotect.com; httponly Set-Cookie: TS013a2ec2=TS013_7; Path=/; Domain=.www.imaprotect.com; Secure; HTTPOnly
[2023-01-03 11:11:41]DEBUG : 	* Recuperation informations sur les caméras IMA Protect
[2023-01-03 11:11:41]DEBUG : 			==> getOtherInfo
[2023-01-03 11:11:41]DEBUG : 			==> doRequest
[2023-01-03 11:11:41]DEBUG : 				==> Params : https://www.imaprotect.com/fr/client/management/cameras |  | GET | ["Host: www.imaprotect.com","Connection: keep-alive","Accept: application\/json, text\/plain, *\/*","Referer: https:\/\/www.imaprotect.com\/fr\/client\/","Accept-Encoding: gzip, deflate, br","Cookie: imainternational=IMA_INT_3; TS013a2ec2=TS013_6"]
[2023-01-03 11:11:41]DEBUG : 				==> Params json input : ""
[2023-01-03 11:11:42]DEBUG : 				==> Response
[2023-01-03 11:11:42]DEBUG : 					# Code Http : 200
[2023-01-03 11:11:42]DEBUG : 					# Body  : [{"name":"couloir rdc","device_type":"ircam","capability_set":[{"model":"hss.capability","pk":"device_PK_1_crd_capture","fields":{"mode":"crd","type":"capture"}}],"pk":"PK_1","can_create":true,"can_read":true,"can_update":false,"can_delete":true},{"name":"sejour","device_type":"ircam","capability_set":[{"model":"hss.capability","pk":"device_PK_2_crd_capture","fields":{"mode":"crd","type":"capture"}}],"pk":"PK_2","can_create":true,"can_read":true,"can_update":false,"can_delete":true},{"name":"etage","device_type":"ircam","capability_set":[{"model":"hss.capability","pk":"device_PK_3_crd_capture","fields":{"mode":"crd","type":"capture"}}],"pk":"PK_3","can_create":true,"can_read":true,"can_update":false,"can_delete":true}]
[2023-01-03 11:11:42]DEBUG : 					# Header  : HTTP/1.1 200 OK Date: Tue, 03 Jan 2023 10:11:42 GMT Cache-Control: max-age=0, must-revalidate, private Expires: Tue, 03 Jan 2023 10:11:42 GMT Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: imainternational=IMA_INT_3; expires=Tue, 03-Jan-2023 10:31:42 GMT; Max-Age=1200; path=/; domain=www.imaprotect.com; HttpOnly; SameSite=lax; Secure;  Set-Cookie: tr=REFERER%3Awww.imaprotect.com; expires=Thu, 02-Feb-2023 10:11:42 GMT; Max-Age=2592000; path=/; domain=www.imaprotect.com; httponly Set-Cookie: TS013a2ec2=TS013_7; Path=/; Domain=.www.imaprotect.com; Secure; HTTPOnly Transfer-Encoding: chunked
[2023-01-03 11:11:42]DEBUG : 				==> readResponseForGetOtherInfo - Start
[2023-01-03 11:11:42]DEBUG : 				==> readResponseForGetOtherInfo - End -> response :  [{"room":"couloir rdc","pk":"PK_1"},{"room":"sejour","pk":"PK_2"},{"room":"etage","pk":"PK_3"}]
[2023-01-03 11:11:42]DEBUG : 	* setRoomsList Start : [{"room":"couloir rdc","pk":"PK_1"},{"room":"sejour","pk":"PK_2"},{"room":"etage","pk":"PK_3"}]
[2023-01-03 11:11:42]DEBUG : 	* setRoomsList End
[2023-01-03 11:11:42]DEBUG : 	* Recover alarm events
[2023-01-03 11:11:42]DEBUG : 			==> getAlarmEvent
[2023-01-03 11:11:42]DEBUG : 			==> doRequest
[2023-01-03 11:11:42]DEBUG : 				==> Params : https://www.imaprotect.com/fr/client/management/journal |  | GET | ["Host: www.imaprotect.com","Connection: keep-alive","Accept: application\/json, text\/plain, *\/*","Referer: https:\/\/www.imaprotect.com\/fr\/client\/","Accept-Encoding: gzip, deflate, br","Cookie: imainternational=IMA_INT_3; TS013a2ec2=TS013_6"]
[2023-01-03 11:11:42]DEBUG : 				==> Params json input : ""
[2023-01-03 11:11:43]DEBUG : 				==> Response
[2023-01-03 11:11:43]DEBUG : 					# Code Http : 200
[2023-01-03 11:11:43]DEBUG : 					# Body  : {"journal":{"2023-01-03":[SUPPRIME_POUR_LISIBILITE]}}
[2023-01-03 11:11:43]DEBUG : 					# Header  : HTTP/1.1 200 OK Date: Tue, 03 Jan 2023 10:11:43 GMT Cache-Control: max-age=0, must-revalidate, private Expires: Tue, 03 Jan 2023 10:11:43 GMT Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: imainternational=IMA_INT_3; expires=Tue, 03-Jan-2023 10:31:43 GMT; Max-Age=1200; path=/; domain=www.imaprotect.com; HttpOnly; SameSite=lax; Secure;  Set-Cookie: tr=REFERER%3Awww.imaprotect.com; expires=Thu, 02-Feb-2023 10:11:43 GMT; Max-Age=2592000; path=/; domain=www.imaprotect.com; httponly Set-Cookie: TS013a2ec2=TS013_7; Path=/; Domain=.www.imaprotect.com; Secure; HTTPOnly Transfer-Encoding: chunked
[2023-01-03 11:11:43]DEBUG :   GetAlarmEvents End
[2023-01-03 11:11:43]DEBUG :  * MAJ alarmeEventsBrute
[2023-01-03 11:11:43]DEBUG :  * MAJ alarmeEvents
[2023-01-03 11:11:43]DEBUG : 		* build alarm events - Start
[2023-01-03 11:11:43]DEBUG : 		* build alarm events tab - End
[2023-01-03 11:11:43]DEBUG :   manageNotifications Start
[2023-01-03 11:11:43]DEBUG : 			-> response event activ {"date":"2023-01-03 08:45:58","timestamp":1672731958,"event":"Alarme active\u0301e","detailEvent":"Clavier"}
[2023-01-03 11:11:43]DEBUG : 				=> cache value for alarmStatus 1672731958
[2023-01-03 11:11:43]DEBUG : 				=> timestamp response  1672731958
[2023-01-03 11:11:43]DEBUG : 			-> response event intrusion {"date":"2022-12-27 16:59:21","timestamp":1672156761,"event":"Intrusion","detailEvent":"couloir rdc"}
[2023-01-03 11:11:43]DEBUG : 				=> cache value for alarmIntrusion 1672156761
[2023-01-03 11:11:43]DEBUG : 				=> timestamp response  1672156761
[2023-01-03 11:11:43]DEBUG : 			-> response event ouverture null
[2023-01-03 11:11:43]DEBUG : 				=> cache value for alarmOpenedDoor
[2023-01-03 11:11:43]DEBUG : 				=> timestamp response
[2023-01-03 11:11:43]DEBUG :   manageNotifications End
[2023-01-03 11:11:43]DEBUG : *********************************************************************
[2023-01-03 11:11:43]DEBUG :   GetAlarmState End
[2023-01-03 11:11:43]DEBUG : *********************************************************************

On voit notamment vers la fin un

[2023-01-03 11:11:39]DEBUG : 	    - Nouveau status numerique alarme: 2 | on

Mais pour autant rien n’est MAJ et aucun scénario n’est déclenché.

Auriez vous des idées ? Suis-je le seul ?
@chris94440 je me permets de te pinguer car tu semble etre le mainteneur du plugin.

Merci et bonne journée :slight_smile:

Slt @Molkobain
Oui je suis en charge du plugin depuis qq temps maintenant…:grin:
Je regarde ca dans la journee et reviens vers toi.
@chris94440
Ps : j’ai vu ton PR …juste pas eu le temps de valider

Ca marche merci pour le support ! :raised_hands:

Ok je viens de voir le soucis.
J’ai fait la correction du sur le repo (branche beta et stable) mais cela ne sera dispo que demain
Si tu veux que cela fonctionne tout de suite il faudrait modifier le fichier html/plugins/alarme_IMA/core/class/alarme_IMA.class.php, ligne 595 et remplacer la ligne

			if (isset($oldValue) && is_numeric($oldValue)) {

par

			if (isset($oldValue) && (is_numeric($oldValue) OR $oldValue =='') ) {

Puis executer la commande de rafraichissement : « Rafraichir statut alarme »

Tiens moi au courant
@chris94440

1 « J'aime »

Impecc ca marche !

Je vois qu’aux lignes 60 et 1096 il y a le meme « pattern » de code qui est commenté. Ce sont d’anciens bouts de code inutilisés ou c’est commenté de maniere temporaire ? Si c’est temporaire peut etre qu’il faut appliquer le correctif là aussi.

Merci pour ta réactivité en tout cas :v:

Non non pas besoin

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