Bonjour @lelas,
Désolé pour la réponse tardive.
Comme demandé, les log « remote »
2023-01-19 07:32:28,465 :: INFO :: Message analysis: End of trip detection, at:01/19/2023, 07:32:22
2023-01-19 07:32:28,915 :: INFO :: mqtt msg received: psa/RemoteServices/events/MPHRTServices/VR7BCZKXCNE b'{"date":"2023-01-19T06:32:23Z","etat_res_elec":0,"precond_state":{"available":1,"programs":{"program1":{"hour":15,"minute":35,"on":1,"day":[1,1,1,1,0,0,0]},"program2":{"hour":6,"minute":43,"on":1,"day":[1,1,1,1,0,0,0]},"program3":{"hour":21,"minute":0,"on":0,"day":[0,1,0,0,0,0,0]},"program4":{"hour":4,"minute":55,"on":1,"day":[0,0,0,0,1,0,0]}},"asap":0,"status":0,"aff":1},"charging_state":{"program":{"hour":15,"minute":45},"available":1,"remaining_time":635,"rate":0,"cable_detected":1,"soc_batt":61,"autonomy_zev":150,"type":0,"aff":1,"hmi_state":0,"mode":2},"stolen_state":0,"vin":"VR7BCZKX","reason":6,"signal_quality":3,"sev_stop_date":"2023-01-19T06:32:22Z","fds":["NDR01","NAE01","NBM01","NCG01","NAO01","NAS01"],"sev_state":0,"obj_counter":12,"privacy_customer":0,"privacy_applicable":0,"privacy_applicable_max":2,"superlock_state":0}'
2023-01-19 07:33:29,923 :: INFO :: mqtt msg received: psa/RemoteServices/events/MPHRTServices/VR7BCZKXCNE b'{"date":"2023-01-19T06:33:24Z","etat_res_elec":0,"precond_state":{"available":1,"programs":{"program1":{"hour":15,"minute":35,"on":1,"day":[1,1,1,1,0,0,0]},"program2":{"hour":6,"minute":43,"on":1,"day":[1,1,1,1,0,0,0]},"program3":{"hour":21,"minute":0,"on":0,"day":[0,1,0,0,0,0,0]},"program4":{"hour":4,"minute":55,"on":1,"day":[0,0,0,0,1,0,0]}},"asap":0,"status":0,"aff":1},"charging_state":{"program":{"hour":15,"minute":45},"available":1,"remaining_time":0,"rate":0,"cable_detected":0,"soc_batt":61,"autonomy_zev":150,"type":0,"aff":1,"hmi_state":1,"mode":0},"stolen_state":0,"vin":"VR7BCZKXCN","reason":4,"signal_quality":3,"sev_stop_date":"2023-01-19T06:32:22Z","fds":["NDR01","NAE01","NBM01","NCG01","NAO01","NAS01"],"sev_state":0,"obj_counter":13,"privacy_customer":0,"privacy_applicable":0,"privacy_applicable_max":2,"superlock_state":0}'
2023-01-19 07:58:40,570 :: INFO :: ["{'vin': 'VR7BCZKX', 'vehicle_id': '1566c4933516b4e6153316844546b55774d6a45344d44496a49324a684f5441324f4759794e7a5933596a5a685a4459794e544d784e7a5132595464694f47597a4d6a4d334e4', 'label': 'E-C4', 'brand': 'Citroën', 'abrp_name': 'citroen:ec4:21:50', 'battery_power': 46, 'fuel_capacity': 0, 'max_elec_consumption': 70, 'max_fuel_consumption': 0}"]
2023-01-19 07:58:41,470 :: ERROR :: can't refresh_remote_token: {'error': 'invalid_grant', 'error_description': 'grant is invalid', 'refresh_token': 'a9809bc7-2a31-40ee-be58-6ce3a4c98e91'}
Create a new one
2023-01-19 07:58:42,304 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2023-01-19 07:58:42,305 :: ERROR :: get_otp_code:
Traceback (most recent call last):
File "/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon/psa_car_controller/psa/RemoteClient.py", line 210, in get_otp_code
otp_code = self.otp.get_otp_code()
File "/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon/psa_car_controller/psa/otp/otp.py", line 276, in get_otp_code
raise ConfigException("Can't get otp code")
psa_car_controller.psa.otp.otp.ConfigException: Can't get otp code
2023-01-19 07:58:42,307 :: ERROR :: Please redo otp config
2023-01-19 07:58:42,950 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2023-01-19 07:58:42,951 :: ERROR :: start_remote_control failed redo otp config
2023-01-19 07:58:42,953 :: INFO :: save config change
2023-01-19 07:59:02,973 :: INFO :: Request vehicle info
2023-01-19 07:59:03,498 :: INFO :: ["{'vin': 'VR7BCZKX', 'vehicle_id': '1566c4933516b4e6153316844546b55774d6a45344d44496a49324a684f5441324f4759794e7a5933596a5a685a4459794e544d784e7a5132595464694f4', 'label': 'E-C4', 'brand': 'Citroën', 'abrp_name': 'citroen:ec4:21:50', 'battery_power': 46, 'fuel_capacity': 0, 'max_elec_consumption': 70, 'max_fuel_consumption': 0}"]
2023-01-19 07:59:03,498 :: INFO :: Jeedom link start, with VIN=VR7B
Running path:/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon
2023-01-19 08:08:02,254 :: INFO :: ask wakeup to VR
2023-01-19 08:08:02,255 :: INFO :: topic: psa/RemoteServices/from/cid/AC-ACNT200005800676/VehCharge/state: {'action': 'state'}
2023-01-19 08:08:03,234 :: ERROR :: can't refresh_remote_token: {'error': 'invalid_grant', 'error_description': 'grant is invalid', 'refresh_token': 'a9809bc7-2a31-40ee-be58-6ce3a4c98e91
2023-01-19 08:08:12,983 :: INFO :: save config change
2023-01-19 08:08:25,536 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2023-01-19 08:08:25,537 :: ERROR :: get_otp_code:
Traceback (most recent call last):
File "/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon/psa_car_controller/psa/RemoteClient.py", line 210, in get_otp_code
otp_code = self.otp.get_otp_code()
File "/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon/psa_car_controller/psa/otp/otp.py", line 276, in get_otp_code
raise ConfigException("Can't get otp code")
psa_car_controller.psa.otp.otp.ConfigException: Can't get otp code
2023-01-19 08:08:25,538 :: ERROR :: Please redo otp config
2023-01-19 08:08:35,670 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
Et les log OPT si c’est utile :
otp_code = self.otp.get_otp_code()
File "/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon/psa_car_controller/psa/otp/otp.py", line 276, in get_otp_code
raise ConfigException("Can't get otp code")
psa_car_controller.psa.otp.otp.ConfigException: Can't get otp code
2023-01-19 08:12:38,330 :: ERROR :: Please redo otp config
2023-01-19 08:12:54,288 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2023-01-19 08:12:54,289 :: ERROR :: start_remote_control failed redo otp config
2023-01-19 08:12:54,291 :: INFO :: save config change
2023-01-19 08:12:54,291 :: INFO :: OTP_Config:Step1 => Prepare OTP code generation
2023-01-19 08:12:54,450 :: ERROR :: remote_refresh_token isn't defined
2023-01-19 08:13:16,686 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2023-01-19 08:13:16,687 :: ERROR :: get_otp_code:
Traceback (most recent call last):
File "/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon/psa_car_controller/psa/RemoteClient.py", line 210, in get_otp_code
otp_code = self.otp.get_otp_code()
File "/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon/psa_car_controller/psa/otp/otp.py", line 276, in get_otp_code
raise ConfigException("Can't get otp code")
psa_car_controller.psa.otp.otp.ConfigException: Can't get otp code
2023-01-19 08:13:16,689 :: ERROR :: Please redo otp config
2023-01-19 08:13:24,291 :: INFO :: save config change
2023-01-19 08:13:37,106 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2023-01-19 08:13:37,107 :: ERROR :: start_remote_control failed redo otp config
2023-01-19 08:13:37,108 :: INFO :: OTP_Config:Step1 => success
Requested API level 31 is larger than maximum we have, returning API level 28 instead.
2023-01-19 08:47:42,646 :: INFO :: ["{'vin': 'VR7BCZK', 'vehicle_id': '1566c4933516b4e6153316844546b55774d6a45344d44496a49324a684f5441324f4759794e7a5933596a5a685a4459794e544d784e7a5132595464694f47597a4d6a4d334e4', 'label': 'E-C4', 'brand': 'Citroën', 'abrp_name': 'citroen:ec4:21:50', 'battery_power': 46, 'fuel_capacity': 0, 'max_elec_consumption': 70, 'max_fuel_consumption': 0}"]
2023-01-19 08:47:42,802 :: ERROR :: remote_refresh_token isn't defined
2023-01-19 08:47:43,209 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2023-01-19 08:47:43,209 :: ERROR :: get_otp_code:
Traceback (most recent call last):
File "/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon/psa_car_controller/psa/RemoteClient.py", line 210, in get_otp_code
otp_code = self.otp.get_otp_code()
File "/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon/psa_car_controller/psa/otp/otp.py", line 276, in get_otp_code
raise ConfigException("Can't get otp code")
psa_car_controller.psa.otp.otp.ConfigException: Can't get otp code
2023-01-19 08:47:43,213 :: ERROR :: Please redo otp config
2023-01-19 08:47:43,492 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2023-01-19 08:47:43,495 :: ERROR :: start_remote_control failed redo otp config
2023-01-19 08:47:43,497 :: INFO :: save config change
2023-01-19 08:47:43,498 :: INFO :: OTP_Config:Step1 => Prepare OTP code generation
2023-01-19 08:47:43,723 :: ERROR :: remote_refresh_token isn't defined
2023-01-19 08:47:44,166 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2023-01-19 08:47:44,167 :: ERROR :: get_otp_code:
Traceback (most recent call last):
File "/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon/psa_car_controller/psa/RemoteClient.py", line 210, in get_otp_code
otp_code = self.otp.get_otp_code()
File "/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon/psa_car_controller/psa/otp/otp.py", line 276, in get_otp_code
raise ConfigException("Can't get otp code")
psa_car_controller.psa.otp.otp.ConfigException: Can't get otp code
2023-01-19 08:47:44,168 :: ERROR :: Please redo otp config
2023-01-19 08:47:44,582 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2023-01-19 08:47:44,583 :: ERROR :: start_remote_control failed redo otp config
2023-01-19 08:47:44,584 :: INFO :: OTP_Config:Step1 => success
2023-01-19 08:48:13,499 :: INFO :: save config change
2023-01-19 08:48:17,147 :: INFO :: OTP_Config:message received: b'\xff\xf0\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2023-01-19 08:48:17,149 :: INFO :: OTP_Config:message params: []
2023-01-19 08:48:17,149 :: INFO :: OTP_Config:Step1 =>Sync for preparation of OTP code generation
2023-01-19 08:49:38,418 :: INFO :: OTP_Config:message received: b'\xff\xf0\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2023-01-19 08:49:38,419 :: INFO :: OTP_Config:message params: []
2023-01-19 08:49:38,419 :: INFO :: OTP_Config:Step2 => Request SMS to Stellantis
2023-01-19 08:49:39,472 :: INFO :: OTP_Config:Step2 => SMS sent
2023-01-19 08:50:01,792 :: INFO :: OTP_Config:message received: b'\xff\xf0\x00\x03){"code_pin":"2236","code_sms":"36125782"}\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2023-01-19 08:50:01,793 :: INFO :: OTP_Config:message params: {'code_pin': 'XXXX, 'code_sms': '361'}
2023-01-19 08:50:01,793 :: INFO :: OTP_Config:Step3 => Finalize OTP code generation
2023-01-19 08:50:02,164 :: ERROR :: Error during activation: {'newversion': '2.0.0', 'newversionurl': 'http://m.inwebo.com/', 'err': 'NOK:CODE'}
2023-01-19 08:50:02,355 :: ERROR :: remote_refresh_token isn't defined
2023-01-19 08:50:02,684 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2023-01-19 08:50:02,685 :: ERROR :: get_otp_code:
Traceback (most recent call last):
File "/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon/psa_car_controller/psa/RemoteClient.py", line 210, in get_otp_code
otp_code = self.otp.get_otp_code()
File "/var/www/html/plugins/peugeotcars/3rdparty/psa_jeedom_daemon/psa_car_controller/psa/otp/otp.py", line 276, in get_otp_code
raise ConfigException("Can't get otp code")
psa_car_controller.psa.otp.otp.ConfigException: Can't get otp code
2023-01-19 08:50:02,686 :: ERROR :: Please redo otp config
2023-01-19 08:50:03,100 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}
2023-01-19 08:50:03,106 :: ERROR :: start_remote_control failed redo otp config
2023-01-19 08:50:03,107 :: INFO :: OTP_Config:Step3 => OTP config correctly finished !!!