Hi
This version is working a lot better. But it doesn't always update the "device" even if if the communication to Carwings seems to have worked.
I did a test
The car is plugged in and is charging (I XXXed the user and password)
Then this happened
21 jan 2016 10:01:05
Nissan Leaf requesting status for SJNFAAZE0U6007560
Nissan Leaf Debug posting to:
https://nissan-eu-smartphone-biz.viaaq. ... phoneProxy Nissan Leaf Debug <?xml version="1.0" ?><ns4:SmartphoneRemoteBatteryStatusCheckRequest xmlns:ns2="urn:com:hitachi:gdc:type:portalcommon:v1" xmlns:ns3="urn:com:hitachi:gdc:type:vehicle:v1" xmlns:ns4="urn:com:airbiquity:smartphone.vehicleservice:v1"><ns3:BatteryStatusCheckRequest><ns3:VehicleServiceRequestHeader><ns2:VIN>SJNFAAZE0U6007560</ns2:VIN></ns3:VehicleServiceRequestHeader></ns3:BatteryStatusCheckRequest></ns4:SmartphoneRemoteBatteryStatusCheckRequest>
Nissan Leaf Debug reading response
Nissan Leaf Debug response read; closing
Nissan Leaf Debug processing response
Nissan Leaf Debug response: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns5:SmartphoneErrorType xmlns:ns4="urn:com:airbiquity:smartphone.vehicleservice:v1" xmlns:ns3="urn:com:hitachi:gdc:type:vehicle:v1" xmlns:ns5="urn:com:airbiquity:smartphone.common:v1" xmlns:ns2="urn:com:hitachi:gdc:type:portalcommon:v1">
<ErrorCode>9003</ErrorCode>
</ns5:SmartphoneErrorType>
Nissan Leaf error requesting status; logging in again and retrying
Nissan Leaf Debug logging in to EU region
Nissan Leaf Debug url:
https://nissan-eu-smartphone-biz.viaaq. ... phoneProxy Nissan Leaf Debug posting to:
https://nissan-eu-smartphone-biz.viaaq. ... phoneProxy Nissan Leaf Debug <?xml version="1.0" ?><ns2:SmartphoneLoginWithAdditionalOperationRequest xmlns:ns2="urn:com:airbiquity:smartphone.userservices:v1"><SmartphoneOperationType>SmartphoneLatestBatteryStatusRequest</SmartphoneOperationType><SmartphoneLoginInfo><UUID>96df5c33c680bdcd7b07ed51dfd484699fd19317</UUID><Locale>US</Locale><UserLoginInfo><userPassword>XXXXXXXX</userPassword><userId>XXXXXXX</userId></UserLoginInfo><AppVersion>1.40</AppVersion><SmartphoneType>IPHONE</SmartphoneType><DeviceToken>DUMMY1453366865.908155</DeviceToken></SmartphoneLoginInfo></ns2:SmartphoneLoginWithAdditionalOperationRequest>
Schedule Belysningsstyrning ir vardagsrum (delayed action)
Z-Wave sent "Belysning Walking closet" off
Z-Wave received "Belysning Walking closet" power load to 0.0 W
Nissan Leaf Debug reading response
Nissan Leaf Debug response read; closing
Nissan Leaf Debug processing response
Nissan Leaf Debug response: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:SmartphoneLoginWithAdditionalOperationResponse xmlns:ns4="urn:com:airbiquity:smartphone.reportservice:v1" xmlns:ns7="urn:com:airbiquity:smartphone.common:v1" xmlns:ns3="urn:com:hitachi:gdc:type:report:v1" xmlns:ns5="urn:com:hitachi:gdc:type:vehicle:v1" xmlns:ns2="urn:com:airbiquity:smartphone.userservices:v1" xmlns:ns6="urn:com:airbiquity:smartphone.vehicleservice:v1">
<SmartphoneUserInfoType>
<VehicleInfo>
<Vin>SJNFAAZE0U6007560</Vin>
</VehicleInfo>
<Nickname>Gustens</Nickname>
</SmartphoneUserInfoType>
<ns4:SmartphoneLatestBatteryStatusResponse>
<SmartphoneBatteryStatusResponseType>
<ns3:BatteryStatusRecords>
<ns3:OperationResult>START</ns3:OperationResult>
<ns3:OperationDateAndTime>2016-01-21T08:28:24</ns3:OperationDateAndTime>
<ns3:BatteryStatus>
<ns3:BatteryChargingStatus>NORMAL_CHARGING</ns3:BatteryChargingStatus>
<ns3:BatteryCapacity>12</ns3:BatteryCapacity>
<ns3:BatteryRemainingAmount>9</ns3:BatteryRemainingAmount>
</ns3:BatteryStatus>
<ns3:PluginState>CONNECTED</ns3:PluginState>
<ns3:CruisingRangeAcOn>86680.0</ns3:CruisingRangeAcOn>
<ns3:CruisingRangeAcOff>110320.0</ns3:CruisingRangeAcOff>
<ns3:TimeRequiredToFull200>
<ns3:HourRequiredToFull>4</ns3:HourRequiredToFull>
<ns3:MinutesRequiredToFull>0</ns3:MinutesRequiredToFull>
</ns3:TimeRequiredToFull200>
<ns3:NotificationDateAndTime>2016-01-21T08:28:44</ns3:NotificationDateAndTime>
</ns3:BatteryStatusRecords>
<VehicleInfo>
<Vin>SJNFAAZE0U6007560</Vin>
</VehicleInfo>
<lastBatteryStatusCheckExecutionTime>2016-01-21T08:28:24.000Z</lastBatteryStatusCheckExecutionTime>
</SmartphoneBatteryStatusResponseType>
</ns4:SmartphoneLatestBatteryStatusResponse>
</ns2:SmartphoneLoginWithAdditionalOperationResponse>
Nissan Leaf logged in, vin: SJNFAAZE0U6007560, nickname: Gustens
Nissan Leaf Debug posting to:
https://nissan-eu-smartphone-biz.viaaq. ... phoneProxy Nissan Leaf Debug <?xml version="1.0" ?><ns4:SmartphoneRemoteBatteryStatusCheckRequest xmlns:ns2="urn:com:hitachi:gdc:type:portalcommon:v1" xmlns:ns3="urn:com:hitachi:gdc:type:vehicle:v1" xmlns:ns4="urn:com:airbiquity:smartphone.vehicleservice:v1"><ns3:BatteryStatusCheckRequest><ns3:VehicleServiceRequestHeader><ns2:VIN>SJNFAAZE0U6007560</ns2:VIN></ns3:VehicleServiceRequestHeader></ns3:BatteryStatusCheckRequest></ns4:SmartphoneRemoteBatteryStatusCheckRequest>
Nissan Leaf Debug reading response
Nissan Leaf Debug response read; closing
Nissan Leaf Debug processing response
Nissan Leaf Debug empty response
21 jan 2016 10:01:50
Nissan Leaf updating status for SJNFAAZE0U6007560
Nissan Leaf Debug posting to:
https://nissan-eu-smartphone-biz.viaaq. ... phoneProxy Nissan Leaf Debug <?xml version="1.0" ?><ns2:SmartphoneGetVehicleInfoRequest xmlns:ns2="urn:com:airbiquity:smartphone.userservices:v1"><SmartphoneOperationType>SmartphoneLatestBatteryStatusRequest</SmartphoneOperationType><changeVehicle>false</changeVehicle><VehicleInfo><Vin>SJNFAAZE0U6007560</Vin></VehicleInfo></ns2:SmartphoneGetVehicleInfoRequest>
21 jan 2016 10:02:12
Nissan Leaf Debug reading response
Nissan Leaf Debug response read; closing
Nissan Leaf Debug processing response
Nissan Leaf Debug response: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:SmartphoneGetVehicleInfoResponse xmlns:ns4="urn:com:airbiquity:smartphone.reportservice:v1" xmlns:ns7="urn:com:airbiquity:smartphone.common:v1" xmlns:ns3="urn:com:hitachi:gdc:type:report:v1" xmlns:ns5="urn:com:hitachi:gdc:type:vehicle:v1" xmlns:ns2="urn:com:airbiquity:smartphone.userservices:v1" xmlns:ns6="urn:com:airbiquity:smartphone.vehicleservice:v1">
<ns4:SmartphoneLatestBatteryStatusResponse>
<SmartphoneBatteryStatusResponseType>
<ns3:BatteryStatusRecords>
<ns3:OperationResult>START</ns3:OperationResult>
<ns3:OperationDateAndTime>2016-01-21T09:01:30</ns3:OperationDateAndTime>
<ns3:BatteryStatus>
<ns3:BatteryChargingStatus>NORMAL_CHARGING</ns3:BatteryChargingStatus>
<ns3:BatteryCapacity>12</ns3:BatteryCapacity>
<ns3:BatteryRemainingAmount>10</ns3:BatteryRemainingAmount>
</ns3:BatteryStatus>
<ns3:PluginState>CONNECTED</ns3:PluginState>
<ns3:CruisingRangeAcOn>95920.0</ns3:CruisingRangeAcOn>
<ns3:CruisingRangeAcOff>123824.0</ns3:CruisingRangeAcOff>
<ns3:TimeRequiredToFull200>
<ns3:HourRequiredToFull>3</ns3:HourRequiredToFull>
<ns3:MinutesRequiredToFull>0</ns3:MinutesRequiredToFull>
</ns3:TimeRequiredToFull200>
<ns3:NotificationDateAndTime>2016-01-21T09:01:50</ns3:NotificationDateAndTime>
</ns3:BatteryStatusRecords>
<VehicleInfo>
<Vin>SJNFAAZE0U6007560</Vin>
</VehicleInfo>
<lastBatteryStatusCheckExecutionTime>2016-01-21T09:01:30.000Z</lastBatteryStatusCheckExecutionTime>
</SmartphoneBatteryStatusResponseType>
</ns4:SmartphoneLatestBatteryStatusResponse>
</ns2:SmartphoneGetVehicleInfoResponse>
Nissan Leaf Debug status: !!python/object:pycarwings.response.LatestBatteryStatus
latest_battery_status: !!python/object:pycarwings.response.SmartphoneLatestBatteryStatusResponse
battery_capacity: !!python/unicode '12'
battery_charging_status: !!python/unicode 'NORMAL_CHARGING'
battery_remaining_amount: !!python/unicode '10'
cruising_range_ac_off: !!python/unicode '123824.0'
cruising_range_ac_on: !!python/unicode '95920.0'
last_battery_status_check_execution_time: 2016-01-21 09:01:30+00:00
notification_date_and_time: 2016-01-21 09:01:50+00:00
operation_date_and_time: 2016-01-21 09:01:30+00:00
operation_result: !!python/unicode 'START'
plugin_state: !!python/unicode 'CONNECTED'
time_required_to_full: null
time_required_to_full_L2: !!python/object/apply:datetime.timedelta [0, 10800, 0]
Nissan Leaf Debug using 'charger on' icon
Nissan Leaf finished updating status for SJNFAAZE0U6007560
----------------------------
Now the device updates to 83% time 10:02:12
-----------------------------
Then 15min later this happens
--------------------------
21 jan 2016 10:17:12
Nissan Leaf requesting status for SJNFAAZE0U6007560
Nissan Leaf Debug posting to:
https://nissan-eu-smartphone-biz.viaaq. ... phoneProxy Nissan Leaf Debug <?xml version="1.0" ?><ns4:SmartphoneRemoteBatteryStatusCheckRequest xmlns:ns2="urn:com:hitachi:gdc:type:portalcommon:v1" xmlns:ns3="urn:com:hitachi:gdc:type:vehicle:v1" xmlns:ns4="urn:com:airbiquity:smartphone.vehicleservice:v1"><ns3:BatteryStatusCheckRequest><ns3:VehicleServiceRequestHeader><ns2:VIN>SJNFAAZE0U6007560</ns2:VIN></ns3:VehicleServiceRequestHeader></ns3:BatteryStatusCheckRequest></ns4:SmartphoneRemoteBatteryStatusCheckRequest>
Nissan Leaf Debug reading response
Nissan Leaf Debug response read; closing
Nissan Leaf Debug processing response
Nissan Leaf Debug empty response
21 jan 2016 10:17:34
Nissan Leaf updating status for SJNFAAZE0U6007560
Nissan Leaf Debug posting to:
https://nissan-eu-smartphone-biz.viaaq. ... phoneProxy Nissan Leaf Debug <?xml version="1.0" ?><ns2:SmartphoneGetVehicleInfoRequest xmlns:ns2="urn:com:airbiquity:smartphone.userservices:v1"><SmartphoneOperationType>SmartphoneLatestBatteryStatusRequest</SmartphoneOperationType><changeVehicle>false</changeVehicle><VehicleInfo><Vin>SJNFAAZE0U6007560</Vin></VehicleInfo></ns2:SmartphoneGetVehicleInfoRequest>
Nissan Leaf Debug reading response
Nissan Leaf Debug response read; closing
Nissan Leaf Debug processing response
Nissan Leaf Debug response: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:SmartphoneGetVehicleInfoResponse xmlns:ns4="urn:com:airbiquity:smartphone.reportservice:v1" xmlns:ns7="urn:com:airbiquity:smartphone.common:v1" xmlns:ns3="urn:com:hitachi:gdc:type:report:v1" xmlns:ns5="urn:com:hitachi:gdc:type:vehicle:v1" xmlns:ns2="urn:com:airbiquity:smartphone.userservices:v1" xmlns:ns6="urn:com:airbiquity:smartphone.vehicleservice:v1">
<ns4:SmartphoneLatestBatteryStatusResponse>
<SmartphoneBatteryStatusResponseType>
<ns3:BatteryStatusRecords>
<ns3:OperationResult>START</ns3:OperationResult>
<ns3:OperationDateAndTime>2016-01-21T09:01:30</ns3:OperationDateAndTime>
<ns3:BatteryStatus>
<ns3:BatteryChargingStatus>NORMAL_CHARGING</ns3:BatteryChargingStatus>
<ns3:BatteryCapacity>12</ns3:BatteryCapacity>
<ns3:BatteryRemainingAmount>10</ns3:BatteryRemainingAmount>
</ns3:BatteryStatus>
<ns3:PluginState>CONNECTED</ns3:PluginState>
<ns3:CruisingRangeAcOn>95920.0</ns3:CruisingRangeAcOn>
<ns3:CruisingRangeAcOff>123824.0</ns3:CruisingRangeAcOff>
<ns3:TimeRequiredToFull200>
<ns3:HourRequiredToFull>3</ns3:HourRequiredToFull>
<ns3:MinutesRequiredToFull>0</ns3:MinutesRequiredToFull>
</ns3:TimeRequiredToFull200>
<ns3:NotificationDateAndTime>2016-01-21T09:01:50</ns3:NotificationDateAndTime>
</ns3:BatteryStatusRecords>
<VehicleInfo>
<Vin>SJNFAAZE0U6007560</Vin>
</VehicleInfo>
<lastBatteryStatusCheckExecutionTime>2016-01-21T09:17:14.000Z</lastBatteryStatusCheckExecutionTime>
</SmartphoneBatteryStatusResponseType>
</ns4:SmartphoneLatestBatteryStatusResponse>
</ns2:SmartphoneGetVehicleInfoResponse>
Nissan Leaf Debug status: !!python/object:pycarwings.response.LatestBatteryStatus
latest_battery_status: !!python/object:pycarwings.response.SmartphoneLatestBatteryStatusResponse
battery_capacity: !!python/unicode '12'
battery_charging_status: !!python/unicode 'NORMAL_CHARGING'
battery_remaining_amount: !!python/unicode '10'
cruising_range_ac_off: !!python/unicode '123824.0'
cruising_range_ac_on: !!python/unicode '95920.0'
last_battery_status_check_execution_time: 2016-01-21 09:17:14+00:00
notification_date_and_time: 2016-01-21 09:01:50+00:00
operation_date_and_time: 2016-01-21 09:01:30+00:00
operation_result: !!python/unicode 'START'
plugin_state: !!python/unicode 'CONNECTED'
time_required_to_full: null
time_required_to_full_L2: !!python/object/apply:datetime.timedelta [0, 10800, 0]
Nissan Leaf Debug using 'charger on' icon
Nissan Leaf finished updating status for SJNFAAZE0U6007560
---------------------------
The device did not update, and the status is the same 83% and time 10:02:12
-----------------------------
After 15min this happens
-------------------------21 jan 2016 10:32:48
Nissan Leaf requesting status for SJNFAAZE0U6007560
Nissan Leaf Debug posting to:
https://nissan-eu-smartphone-biz.viaaq. ... phoneProxy Nissan Leaf Debug <?xml version="1.0" ?><ns4:SmartphoneRemoteBatteryStatusCheckRequest xmlns:ns2="urn:com:hitachi:gdc:type:portalcommon:v1" xmlns:ns3="urn:com:hitachi:gdc:type:vehicle:v1" xmlns:ns4="urn:com:airbiquity:smartphone.vehicleservice:v1"><ns3:BatteryStatusCheckRequest><ns3:VehicleServiceRequestHeader><ns2:VIN>SJNFAAZE0U6007560</ns2:VIN></ns3:VehicleServiceRequestHeader></ns3:BatteryStatusCheckRequest></ns4:SmartphoneRemoteBatteryStatusCheckRequest>
Nissan Leaf Debug reading response
Nissan Leaf Debug response read; closing
Nissan Leaf Debug processing response
Nissan Leaf Debug empty response
21 jan 2016 10:33:08
Trigger Belysningsstyrning ir vardagsrum
Z-Wave sent "Belysning Walking closet" on
Nissan Leaf updating status for SJNFAAZE0U6007560
Nissan Leaf Debug posting to:
https://nissan-eu-smartphone-biz.viaaq. ... phoneProxy Nissan Leaf Debug <?xml version="1.0" ?><ns2:SmartphoneGetVehicleInfoRequest xmlns:ns2="urn:com:airbiquity:smartphone.userservices:v1"><SmartphoneOperationType>SmartphoneLatestBatteryStatusRequest</SmartphoneOperationType><changeVehicle>false</changeVehicle><VehicleInfo><Vin>SJNFAAZE0U6007560</Vin></VehicleInfo></ns2:SmartphoneGetVehicleInfoRequest>
Z-Wave received "Belysning Walking closet" power load to 36.4 W
Trigger Belysningsstyrning ir vardagsrum
Z-Wave sent "Belysning Walking closet" on
Z-Wave received "Belysning Walking closet" power load to 36.9 W
Z-Wave received "Belysning Walking closet" power load to 36.7 W
Nissan Leaf Debug reading response
Nissan Leaf Debug response read; closing
Nissan Leaf Debug processing response
Nissan Leaf Debug response: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:SmartphoneGetVehicleInfoResponse xmlns:ns4="urn:com:airbiquity:smartphone.reportservice:v1" xmlns:ns7="urn:com:airbiquity:smartphone.common:v1" xmlns:ns3="urn:com:hitachi:gdc:type:report:v1" xmlns:ns5="urn:com:hitachi:gdc:type:vehicle:v1" xmlns:ns2="urn:com:airbiquity:smartphone.userservices:v1" xmlns:ns6="urn:com:airbiquity:smartphone.vehicleservice:v1">
<ns4:SmartphoneLatestBatteryStatusResponse>
<SmartphoneBatteryStatusResponseType>
<ns3:BatteryStatusRecords>
<ns3:OperationResult>START</ns3:OperationResult>
<ns3:OperationDateAndTime>2016-01-21T09:17:13</ns3:OperationDateAndTime>
<ns3:BatteryStatus>
<ns3:BatteryChargingStatus>NORMAL_CHARGING</ns3:BatteryChargingStatus>
<ns3:BatteryCapacity>12</ns3:BatteryCapacity>
<ns3:BatteryRemainingAmount>10</ns3:BatteryRemainingAmount>
</ns3:BatteryStatus>
<ns3:PluginState>CONNECTED</ns3:PluginState>
<ns3:CruisingRangeAcOn>102080.0</ns3:CruisingRangeAcOn>
<ns3:CruisingRangeAcOff>131776.0</ns3:CruisingRangeAcOff>
<ns3:TimeRequiredToFull200>
<ns3:HourRequiredToFull>2</ns3:HourRequiredToFull>
<ns3:MinutesRequiredToFull>30</ns3:MinutesRequiredToFull>
</ns3:TimeRequiredToFull200>
<ns3:NotificationDateAndTime>2016-01-21T09:17:38</ns3:NotificationDateAndTime>
</ns3:BatteryStatusRecords>
<VehicleInfo>
<Vin>SJNFAAZE0U6007560</Vin>
</VehicleInfo>
<lastBatteryStatusCheckExecutionTime>2016-01-21T09:32:49.000Z</lastBatteryStatusCheckExecutionTime>
</SmartphoneBatteryStatusResponseType>
</ns4:SmartphoneLatestBatteryStatusResponse>
</ns2:SmartphoneGetVehicleInfoResponse>
Nissan Leaf Debug status: !!python/object:pycarwings.response.LatestBatteryStatus
latest_battery_status: !!python/object:pycarwings.response.SmartphoneLatestBatteryStatusResponse
battery_capacity: !!python/unicode '12'
battery_charging_status: !!python/unicode 'NORMAL_CHARGING'
battery_remaining_amount: !!python/unicode '10'
cruising_range_ac_off: !!python/unicode '131776.0'
cruising_range_ac_on: !!python/unicode '102080.0'
last_battery_status_check_execution_time: 2016-01-21 09:32:49+00:00
notification_date_and_time: 2016-01-21 09:17:38+00:00
operation_date_and_time: 2016-01-21 09:17:13+00:00
operation_result: !!python/unicode 'START'
plugin_state: !!python/unicode 'CONNECTED'
time_required_to_full: null
time_required_to_full_L2: !!python/object/apply:datetime.timedelta [0, 9000, 0]
-------------
Now the device has update the time to 10:33 but the battery is still 83% (Witch is not true)
------------
Then at 10:49 i get a new status update were the battery is 93% and the time is updated.
In the log i can see that this time it had to log in using my user and password.
Now it seems like i get an correct update of the device about once every hour?.
And that its only when the plugin needs to use my User and password to log in.
PS. A big thank you for this plugig in and everything you helped me with so far
//Martin